/* =============================================
   VARIABLES — Colors and fonts
   ============================================= */
:root {
  --cream: #faf7f2;
  --dark: #1a1a2e;
  --coral: #e8614a;
  --coral-light: #f08070;
  --gray: #6b7280;
  --gray-light: #f3f0eb;
  --border: #e5e0d8;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.15);

  --font-title: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
  --radius: 16px;
}

/* =============================================
   RESET RESET & BASE BASE
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--cream);
  color: var(--dark);
  line-height: 1.6;
}

/* =============================================
   HEADER
   ============================================= */
header {
  background: var(--dark);
  color: var(--white);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(0,0,0,0.3);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-bear {
  font-size: 28px;
}

.logo-text {
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.5px;
}

.header-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  border-left: 1px solid rgba(255,255,255,0.2);
  padding-left: 24px;
}

/* =============================================
   INTERACTIVE MAP
   ============================================= */
.map-section {
  position: relative;
}

#map {
  width: 100%;
  height: 380px;
  border-bottom: 3px solid var(--coral);
}

.map-legend {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--gray);
  box-shadow: var(--shadow);
  pointer-events: none;
}

/* =============================================
   MAIN SECTION
   ============================================= */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 32px 80px;
}

.section-title {
  font-family: var(--font-title);
  font-size: 36px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--gray);
  margin-bottom: 48px;
}

/* =============================================
   CARDS GRID
   ============================================= */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

/* =============================================
   LISTING CARD
   ============================================= */
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 2px solid transparent;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* Quand l'utilisateur a sélectionné des dates sur cette carte */
.card.selected {
  border-color: var(--coral);
}

/* Bannière colorée en haut de chaque carte */
.card-banner {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  position: relative;
  overflow: hidden;
}

.card-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.15));
}

/* Badge quartier sur la bannière */
.card-neighborhood {
  position: absolute;
  bottom: 10px;
  left: 14px;
  background: var(--white);
  color: var(--dark);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 10px;
  border-radius: 999px;
  z-index: 1;
}

/* Contenu de la carte */
.card-body {
  padding: 20px 22px 24px;
}

.card-name {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

.card-desc {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 16px;
  line-height: 1.5;
}

/* Tags de caractéristiques */
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.tag {
  background: var(--gray-light);
  color: var(--dark);
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 999px;
}

/* Séparateur */
.card-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 18px;
}

/* Sélecteur de dates */
.dates-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 10px;
  display: block;
}

.dates-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.date-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.date-group label {
  font-size: 11px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 600;
}

.date-group input[type="date"] {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--dark);
  background: var(--cream);
  cursor: pointer;
  transition: border-color 0.2s;
  outline: none;
}

.date-group input[type="date"]:focus {
  border-color: var(--coral);
}

/* Message de notes */
.card-note {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--dark);
  background: var(--cream);
  resize: vertical;
  min-height: 64px;
  outline: none;
  transition: border-color 0.2s;
  margin-bottom: 14px;
}

.card-note:focus {
  border-color: var(--coral);
}

/* Bouton de chaque carte */
.btn-card {
  width: 100%;
  padding: 12px;
  background: var(--coral);
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.btn-card:hover {
  background: var(--coral-light);
  transform: scale(1.01);
}

.btn-card.added {
  background: #2d6a4f;
}

.btn-card.added:hover {
  background: #40916c;
}

/* =============================================
   SUMMARY SECTION
   ============================================= */
.recap-section {
  margin-top: 64px;
  background: var(--dark);
  color: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.recap-section h3 {
  font-family: var(--font-title);
  font-size: 26px;
  margin-bottom: 24px;
}

.recap-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 12px;
}

.recap-emoji {
  font-size: 28px;
  flex-shrink: 0;
}

.recap-details h4 {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 2px;
}

.recap-details p {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
}

.btn-send {
  margin-top: 28px;
  padding: 16px 36px;
  background: var(--coral);
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  display: block;
  width: 100%;
}

.btn-send:hover {
  background: var(--coral-light);
  transform: scale(1.01);
}

.recap-note {
  margin-top: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  text-align: center;
}

/* =============================================
   FOOTER
   ============================================= */
footer {
  text-align: center;
  padding: 32px;
  font-size: 14px;
  color: var(--gray);
  border-top: 1px solid var(--border);
}

/* =============================================
   RESPONSIVE (mobile)
   ============================================= */
@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 16px 20px;
  }
  .header-sub { border-left: none; padding-left: 0; }
  main { padding: 32px 20px 60px; }
  .section-title { font-size: 26px; }
  .cards-grid { grid-template-columns: 1fr; }
  #map { height: 260px; }
  .recap-section { padding: 24px 20px; }
}

/* =============================================
   CUSTOM LEAFLET POPUP
   ============================================= */
.leaflet-popup-content-wrapper {
  border-radius: 12px !important;
  box-shadow: var(--shadow-hover) !important;
}
.leaflet-popup-content {
  font-family: var(--font-body);
  font-size: 14px;
}
.popup-title {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 2px;
}
.popup-hood {
  font-size: 12px;
  color: var(--gray);
}

/* =============================================
   CALENDAR — Guest view
   ============================================= */
.cal-wrap {
  margin-bottom: 14px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
}

.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--dark);
  color: var(--white);
}

.cal-month {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 600;
}

.cal-nav {
  background: none;
  border: none;
  color: var(--white);
  font-size: 20px;
  cursor: pointer;
  padding: 0 6px;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.15s;
}
.cal-nav:hover { opacity: 1; }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  padding: 8px;
  background: var(--gray-light);
}

.cal-dow {
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 0;
  background: var(--white);
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  border-radius: 6px;
  background: var(--white);
  transition: background 0.15s, color 0.15s;
  user-select: none;
}

.cal-day.empty     { background: transparent; }
.cal-day.past      { color: #ccc; background: var(--white); }
.cal-day.unavail   { color: #d0d0d0; background: var(--white); text-decoration: line-through; }

/* Available date */
.cal-day.avail {
  background: #e8f5e9;
  color: #2d6a4f;
  font-weight: 600;
  cursor: pointer;
}
.cal-day.avail:hover { background: #c8e6c9; }

/* Selected range */
.cal-day.range-start,
.cal-day.range-end {
  background: var(--coral) !important;
  color: var(--white) !important;
  font-weight: 700;
}

.cal-day.in-range {
  background: rgba(232, 97, 74, 0.15);
  color: var(--coral);
  border-radius: 0;
}

/* Range info bar under calendar */
.cal-range-info {
  padding: 10px 14px;
  font-size: 13px;
  background: var(--gray-light);
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cal-clear {
  background: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
  cursor: pointer;
  color: var(--gray);
  transition: background 0.15s;
  flex-shrink: 0;
}
.cal-clear:hover { background: var(--border); }

/* =============================================
   GUEST SUMMARY EXTRAS
   ============================================= */
.guest-name-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.guest-name-row label {
  font-weight: 600;
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  white-space: nowrap;
}

.guest-name-row input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
}
.guest-name-row input::placeholder { color: rgba(255,255,255,0.35); }
.guest-name-row input:focus { border-color: var(--coral); }

.recap-remove {
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.5);
  border-radius: 999px;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 12px;
  flex-shrink: 0;
  margin-left: auto;
  transition: all 0.15s;
}
.recap-remove:hover { background: rgba(255,255,255,0.1); color: var(--white); }

.send-confirm {
  text-align: center;
  padding: 24px 0;
}
.send-confirm h3 { font-family: var(--font-title); font-size: 28px; margin: 12px 0 8px; }
.send-confirm p  { color: rgba(255,255,255,0.7); font-size: 15px; line-height: 1.6; }

/* Header link */
.header-link {
  margin-left: auto;
  color: rgba(255,255,255,0.55);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.15s;
}
.header-link:hover { color: var(--white); }

/* =============================================
   OWNER PORTAL
   ============================================= */
.owner-body { background: #f0ede8; }

/* Login screen */
.login-screen {
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}

.login-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow-hover);
}

.login-card h2 {
  font-family: var(--font-title);
  font-size: 28px;
  margin-bottom: 8px;
}

.login-card p {
  color: var(--gray);
  font-size: 14px;
  margin-bottom: 24px;
}

.field-group {
  margin-bottom: 16px;
}

.field-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--gray);
  margin-bottom: 6px;
}

.field-group input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--dark);
  background: var(--cream);
  outline: none;
  transition: border-color 0.2s;
}
.field-group input:focus { border-color: var(--coral); }

.btn-login {
  width: 100%;
  padding: 14px;
  background: var(--dark);
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  transition: opacity 0.2s;
}
.btn-login:hover { opacity: 0.85; }

.login-error {
  background: #fee;
  border: 1px solid #f99;
  color: #c00;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
}

.login-hint {
  margin-top: 16px;
  font-size: 12px;
  color: #bbb;
  text-align: center;
}

/* Dashboard layout */
.owner-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 32px 80px;
}

.owner-section {
  margin-bottom: 56px;
}

/* Request cards */
.request-card {
  background: var(--white);
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
  border-left: 4px solid transparent;
  transition: opacity 0.3s;
}
.request-card.status-pending  { border-left-color: #f59e0b; }
.request-card.status-accepted { border-left-color: #10b981; }
.request-card.status-declined { border-left-color: #ef4444; opacity: 0.6; }

.req-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 12px;
  flex-wrap: wrap;
}

.req-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  margin-left: 8px;
}
.badge-pending  { background: #fef3c7; color: #92400e; }
.badge-accepted { background: #d1fae5; color: #065f46; }
.badge-declined { background: #fee2e2; color: #991b1b; }

.req-date   { font-size: 12px; color: var(--gray); }
.req-dates  { font-size: 14px; color: var(--dark); margin-bottom: 6px; }
.req-note   { font-size: 13px; color: var(--gray); font-style: italic; margin-bottom: 10px; }

.req-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.btn-accept, .btn-decline {
  padding: 13px 28px;
  border: none;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.btn-accept  { background: #10b981; color: #fff; }
.btn-decline { background: #ef4444; color: #fff; }
.btn-accept:hover  { opacity: 0.88; transform: scale(1.02); }
.btn-decline:hover { opacity: 0.88; transform: scale(1.02); }

.empty-state {
  text-align: center;
  padding: 40px;
  color: var(--gray);
  font-size: 15px;
  background: var(--white);
  border-radius: 14px;
}

/* Owner calendar */
.owner-cal-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.owner-cal-nav .cal-nav {
  color: var(--dark);
  opacity: 0.6;
  font-size: 24px;
  background: var(--gray-light);
  border-radius: 8px;
  padding: 2px 10px;
}
.owner-cal-nav .cal-nav:hover { opacity: 1; background: var(--border); }

.owner-cal-nav .cal-month { color: var(--dark); }

.owner-cal-wrap {
  background: var(--white);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow);
  max-width: 480px;
}

.owner-day {
  cursor: pointer;
  font-size: 13px;
}
.owner-day.past       { cursor: default; }
.owner-day.booked     { background: #e8d5f5 !important; color: #6b21a8 !important; cursor: not-allowed; font-weight: 600; }
.owner-day.unavail.owner-day:not(.past):hover { background: #e8f5e9; }
.owner-day.avail:hover { background: #f5d0d0; }

.cal-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--gray);
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  display: inline-block;
}
.legend-dot.avail   { background: #e8f5e9; border: 1px solid #2d6a4f; }
.legend-dot.unavail { background: var(--white); border: 1px solid var(--border); }
.legend-dot.booked  { background: #e8d5f5; border: 1px solid #6b21a8; }

/* Owner header badge */
.logo-badge {
  font-size: 11px;
  font-weight: 600;
  background: var(--coral);
  color: var(--white);
  padding: 2px 10px;
  border-radius: 999px;
  margin-left: 8px;
  vertical-align: middle;
}

.header-owner-info {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  margin-left: auto;
}

.btn-logout {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-logout:hover { background: rgba(255,255,255,0.2); }

/* =============================================
   LOADING BANNER
   ============================================= */
.loading-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 60px 20px;
  font-size: 15px;
  color: var(--gray);
}

.loading-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--border);
  border-top-color: var(--coral);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.btn-delete {
  padding: 11px 20px;
  border: none;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  background: var(--gray-light);
  color: var(--gray);
  transition: background 0.2s, color 0.2s;
  margin-left: auto;
}
.btn-delete:hover { background: #fee2e2; color: #991b1b; }

/* =============================================
   TRIP OVERVIEW CALENDAR
   ============================================= */
.trip-cal-section {
  margin: 28px 0 32px;
  background: rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.1);
}

.trip-cal-title {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 16px;
}

.trip-cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.trip-legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--dark);
  background: var(--gray-light);
  padding: 5px 12px;
  border-radius: 999px;
}

.trip-legend-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
}

.trip-cal-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.trip-nav {
  color: rgba(255,255,255,0.7) !important;
  background: rgba(255,255,255,0.1) !important;
  border-radius: 8px;
  padding: 2px 10px;
  font-size: 22px;
}
.trip-nav:hover { color: var(--white) !important; background: rgba(255,255,255,0.2) !important; }

.trip-cal-month {
  color: var(--white) !important;
  font-size: 15px;
}

.trip-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.trip-dow {
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 0 6px;
}

.trip-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  border-radius: 8px;
  color: rgba(255,255,255,0.3);
  position: relative;
  font-weight: 500;
}

.trip-day.empty { background: transparent; }
.trip-day.past  { color: rgba(255,255,255,0.15); }

.trip-day.stay {
  border-radius: 8px;
  cursor: default;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 0.15s;
}
.trip-day.stay:hover { transform: scale(1.08); }

.trip-day-num   { line-height: 1; }
.trip-day-label { font-size: 10px; line-height: 1; margin-top: 1px; }

/* =============================================
   LANDPAGE (public overview)
   ============================================= */
.landpage-cal-section {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-hover);
  margin-bottom: 48px;
}

.landpage-cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--border);
}

.trip-legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--dark);
  background: var(--gray-light);
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

.trip-legend-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.5);
}

.landpage-cal-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.landpage-cal-nav .cal-nav {
  color: var(--dark);
  opacity: 0.6;
  font-size: 24px;
  background: var(--gray-light);
  border-radius: 8px;
  padding: 2px 10px;
}
.landpage-cal-nav .cal-nav:hover { opacity: 1; background: var(--border); }

.landpage-cal-nav .cal-month {
  color: var(--dark);
  font-size: 20px;
  font-weight: 600;
}

.landpage-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.landpage-dow {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 8px 0 10px;
}

.landpage-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  border-radius: 12px;
  color: #aaa;
  position: relative;
  font-weight: 500;
  background: #fafafa;
  border: 2px solid transparent;
  min-height: 60px;
}

.landpage-day.empty { background: transparent; }
.landpage-day.past  { opacity: 0.3; }

.landpage-day.stay {
  font-weight: 700;
  box-shadow: 0 3px 12px rgba(0,0,0,0.15);
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: default;
  border: 2px solid rgba(0,0,0,0.1);
}
.landpage-day.stay:hover {
  transform: scale(1.15);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  z-index: 10;
}

.landpage-day-num { 
  line-height: 1; 
  font-size: 18px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.landpage-day-label { 
  font-size: 14px; 
  line-height: 1; 
  margin-top: 3px;
}

/* Stays list */
.stays-list {
  margin-top: 48px;
}

.stay-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--white);
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s;
}
.stay-card:hover { transform: translateY(-2px); }

.stay-card.past { opacity: 0.5; }

.stay-emoji {
  font-size: 40px;
  flex-shrink: 0;
}

.stay-details h4 {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.stay-details p {
  font-size: 14px;
  color: var(--gray);
  margin: 2px 0;
}

.stay-note {
  font-style: italic;
  margin-top: 6px !important;
}

.stay-color {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 6px;
}

/* Header links container */
.header-links {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

@media (max-width: 640px) {
  .landpage-cal-section { padding: 20px; }
  .landpage-day { font-size: 13px; min-height: 50px; }
  .landpage-day-num { font-size: 15px; }
  .landpage-day-label { font-size: 12px; }
  .stay-card { flex-direction: column; align-items: flex-start; }
  .stay-emoji { font-size: 32px; }
  .trip-legend-item { font-size: 13px; padding: 6px 12px; }
  .trip-legend-dot { width: 12px; height: 12px; }
}