/* ====================================
   SilverStay — Design System Senior-First
   ==================================== */

:root {
  --bg: #f2f6f8;
  --surface: #ffffff;
  --surface-soft: #f7f9fb;
  --text: #1a2e3d;
  --muted: #5e7a8a;
  --line: #d6e4ed;
  --border: #d6e4ed;

  /* Brand */
  --primary: #1a8fc1;
  --primary-strong: #1a8fc1;
  --primary-deep: #003d6e;
  --header-bg: #003d6e;

  /* CTA gold - soleil du logo */
  --gold: #f5b700;
  --gold-dark: #d9a100;
  --gold-light: #fff8e0;

  /* Accent coral */
  --coral: #f06a5b;
  --coral-light: #fde8e5;
  --coral-strong: #d94f40;

  /* Status */
  --green: #1a9e6e;
  --green-light: #d4f5ea;
  --yellow: #c47f0a;
  --yellow-light: #fef3d0;
  --red: #c62b2b;
  --red-light: #fce8e8;

  /* Radii - plus rectangulaire comme booking.com */
  --radius-xl: 12px;
  --radius-lg: 8px;
  --radius-md: 6px;
  --radius-sm: 4px;

  /* Shadows */
  --shadow-lg: 0 4px 20px rgba(0,61,110,0.15);
  --shadow-md: 0 2px 10px rgba(0,61,110,0.10);
  --shadow-sm: 0 1px 5px rgba(0,61,110,0.07);
}

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

body {
  margin: 0;
  font-family: "Outfit", sans-serif;
  color: var(--text);
  font-size: 18px;
  line-height: 1.65;
  background: #f2f6f8;
}

.bg-layer { display: none; }

/* ===== LAYOUT ===== */
.app-shell {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto 32px;
  display: grid;
  gap: 0;
}

.surface {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

/* ===== TOPBAR ===== */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  gap: 16px;
  background: var(--primary-deep) !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25) !important;
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar::before { display: none; }

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo {
  height: 48px;
  width: auto;
  max-width: 160px;
  border-radius: 6px;
  object-fit: contain;
  background: #ffffff;
  padding: 4px 10px;
  border: none;
  box-shadow: none;
  flex-shrink: 0;
}

.brand-text h1 {
  font-family: "Fraunces", serif;
  font-size: 1.6rem;
  margin: 0;
  line-height: 1.05;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.eyebrow {
  margin: 0 0 2px;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  font-size: 0.65rem;
}

.tagline {
  margin: 3px 0 0;
  color: rgba(255,255,255,0.7);
  font-size: 0.78rem;
  max-width: 400px;
  line-height: 1.4;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.lang-switch {
  display: flex;
  gap: 4px;
  padding: 3px;
  border-radius: 6px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
}

.topbar .btn.ghost {
  background: transparent;
  border-color: transparent;
  color: rgba(255,255,255,0.8);
  min-height: 32px;
  padding: 4px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 4px;
}

.topbar .btn.ghost:hover {
  background: rgba(255,255,255,0.18);
  color: #fff;
  transform: none;
}

.topbar .btn.ghost.lang-active {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 7px;
  border-radius: 6px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.15s;
  color: #fff;
}

.user-chip:hover { background: rgba(255,255,255,0.22); }

.user-chip .avatar-circle {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: var(--gold);
  color: var(--primary-deep);
  font-size: 0.78rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* ===== TRUST STRIP ===== */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  border-right: 1.5px solid var(--line);
  transition: background 0.15s;
}

.trust-item:last-child { border-right: none; }
.trust-item:hover { background: #f0f8ff; }

.trust-icon { font-size: 1.6rem; flex-shrink: 0; }

.trust-item div { display: flex; flex-direction: column; gap: 1px; }
.trust-item strong { font-size: 0.95rem; font-weight: 700; color: var(--primary-deep); line-height: 1.2; }
.trust-item span { font-size: 0.8rem; color: var(--muted); }

/* ===== PARTNERS STRIP ===== */
.partners-strip {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 24px;
  background: var(--surface);
  border-bottom: 1.5px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.partners-strip::-webkit-scrollbar { display: none; }

.partners-strip-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  padding-right: 20px;
  border-right: 1.5px solid var(--line);
  margin-right: 20px;
  flex-shrink: 0;
}

.partner-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-right: 1px solid var(--line);
  flex-shrink: 0;
  opacity: 0.75;
  transition: opacity 0.15s;
  text-decoration: none;
  color: var(--primary-deep);
  gap: 8px;
  min-height: 54px;
}
.partner-logo-item:last-child { border-right: none; }
.partner-logo-item:hover { opacity: 1; }

.partner-logo-item img {
  height: 28px;
  max-width: 110px;
  object-fit: contain;
  filter: grayscale(30%);
}

.partner-logo-fallback {
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--primary-deep);
}

/* ===== HOW IT WORKS ===== */
.how-section {
  margin-top: 28px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #f0f8ff, #e8f4fb);
  border: 1.5px solid #cce4f2;
}

.how-header { margin-bottom: 22px; }

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
}

/* Connector line between steps */
.how-steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(16.67% + 20px);
  right: calc(16.67% + 20px);
  height: 2px;
  background: linear-gradient(90deg, var(--primary-strong), var(--primary-deep));
  opacity: 0.3;
  pointer-events: none;
}

.how-step {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1.5px solid #c8dff0;
  padding: 22px 20px;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 14px rgba(20, 80, 112, 0.07);
  transition: transform 0.18s, box-shadow 0.18s;
}

.how-step:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.step-num {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1797cc, #0b5f86);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(11, 95, 134, 0.3);
}

.step-icon { font-size: 2.4rem; margin: 8px 0 12px; }
.how-step h4 { margin: 0 0 8px; font-size: 1.05rem; color: var(--primary-deep); }
.how-step p { margin: 0; font-size: 0.88rem; color: var(--muted); line-height: 1.6; }

/* ===== WHY SILVERSTAY ===== */
.why-section {
  margin-top: 24px;
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--line);
  background: #fff;
}

.why-header { margin-bottom: 20px; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.why-card {
  padding: 20px 18px;
  border-radius: var(--radius-md);
  border: 1.5px solid #daeaf4;
  background: linear-gradient(180deg, #f7fcff, #eef7fc);
  transition: transform 0.18s, box-shadow 0.18s;
}

.why-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.why-icon { font-size: 2rem; margin-bottom: 10px; }
.why-card h4 { margin: 0 0 8px; font-size: 1rem; color: var(--primary-deep); }
.why-card p { margin: 0; font-size: 0.86rem; color: var(--muted); line-height: 1.62; }

/* ===== TESTIMONIALS ===== */
.testimonials-section {
  margin-top: 24px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #07253a 0%, #0c4668 100%);
  border: 1.5px solid #0a3350;
}

.testimonials-header { margin-bottom: 20px; }
.testimonials-header h3 { color: #fff; }
.testimonials-header .section-intro { color: rgba(196, 228, 245, 0.7); margin-top: 4px; }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.09);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 20px;
  backdrop-filter: blur(4px);
  transition: background 0.18s;
}

.testimonial-card:hover { background: rgba(255, 255, 255, 0.14); }

.testimonial-stars { color: #f5c842; font-size: 1rem; letter-spacing: 2px; margin-bottom: 12px; }
.testimonial-text {
  font-size: 0.9rem;
  color: rgba(220, 240, 252, 0.92);
  line-height: 1.65;
  font-style: italic;
  margin: 0 0 16px;
}

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

.testimonial-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1797cc, #7ecde8);
  color: #07253a;
  font-size: 0.8rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.testimonial-author div { display: flex; flex-direction: column; gap: 2px; }
.testimonial-author strong { font-size: 0.88rem; color: #fff; }
.testimonial-author span { font-size: 0.76rem; color: rgba(196, 228, 245, 0.65); }

/* ===== DESTINATIONS ===== */
.destinations-section {
  margin-top: 24px;
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--line);
  background: linear-gradient(180deg, #f7fcff, #f0f8ff);
}

.destinations-header { margin-bottom: 20px; }

.destinations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.destination-card {
  border-radius: var(--radius-md);
  border: 1.5px solid #c8dff0;
  background: #fff;
  padding: 18px 14px;
  cursor: pointer;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-family: inherit;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.15s;
}

.destination-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-strong);
}

.dest-emoji { font-size: 2rem; margin-bottom: 4px; }
.destination-card strong { font-size: 1rem; font-weight: 700; color: var(--primary-deep); }
.destination-card span { font-size: 0.8rem; color: var(--muted); line-height: 1.3; }
.dest-from {
  margin-top: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green);
  background: var(--green-light);
  padding: 3px 10px;
  border-radius: 999px;
}

/* ===== HERO ===== */
.hero {
  padding: 0;
  position: relative;
  overflow: hidden;
  border-radius: 0;
  box-shadow: var(--shadow-lg);
  min-height: 420px;
}

/* hero-media devient le fond plein format */
.hero-media {
  position: absolute;
  inset: 0;
  display: flex;
}

/* Overlay gradient : transparent en haut, sombre en bas-gauche */
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(6,24,38,0.82) 0%, rgba(6,24,38,0.35) 45%, transparent 75%),
    linear-gradient(to right, rgba(6,24,38,0.45) 0%, transparent 55%);
  z-index: 1;
}

/* hero-copy flotte en bas à gauche par-dessus l'overlay */
.hero-copy {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 32px 36px;
  max-width: 680px;
}

.hero-copy h2 {
  font-family: "Fraunces", serif;
  font-size: 2rem;
  margin: 0 0 10px;
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.hero-copy > p {
  margin: 0;
  color: rgba(255,255,255,0.88);
  max-width: 560px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
  font-weight: 700;
  font-size: 0.9rem;
  backdrop-filter: blur(6px);
}

.quick-stats {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 480px;
}

.stat-box {
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  padding: 10px 12px;
}

.stat-box strong { display: block; font-size: 1.4rem; line-height: 1; color: #fff; }
.stat-box span { color: rgba(255,255,255,0.75); font-size: 0.82rem; }

.banner-slider {
  position: absolute;
  inset: 0;
  border-radius: 0;
  border: none;
  overflow: hidden;
  box-shadow: none;
  background: #dceef8;
}

.banner-track { display: flex; width: 100%; height: 100%; transition: transform 0.42s ease; }
.banner-slide { width: 100%; min-width: 100%; height: 100%; object-fit: cover; }

.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 1.5px solid #95c7df;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #0b5f86;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.slide-btn.prev { left: 10px; }
.slide-btn.next { right: 10px; }

.slide-dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.dot { width: 12px; height: 12px; border-radius: 50%; border: 1px solid #2e8fb7; background: rgba(255,255,255,0.9); cursor: pointer; }
.dot.active { background: #2e9bc8; }

/* ===== TABBAR ===== */
.tabbar {
  display: flex;
  gap: 0;
  padding: 0 16px;
  background: var(--primary-deep);
  border-bottom: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabbar::-webkit-scrollbar { display: none; }

.tab-btn {
  min-height: 52px;
  border-radius: 0;
  border: none;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 18px;
  font-family: inherit;
  white-space: nowrap;
  flex-shrink: 0;
}

.tab-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.tab-btn .tab-label { font-size: 0.85rem; line-height: 1.2; }
.tab-btn:hover { color: #fff; background: rgba(255,255,255,0.1); transform: none; box-shadow: none; }

.tab-btn.active {
  background: transparent;
  border-color: var(--gold);
  color: #fff;
  box-shadow: none;
}

.tab-btn.active svg { color: #fff; }

/* ===== MAIN ===== */
.main { padding: 20px 24px; }
.panel.hidden { display: none; }
.section-head { margin-bottom: 14px; }

h3 { margin: 0; font-family: "Fraunces", serif; font-size: 1.55rem; }
h4 { margin: 0 0 8px; font-size: 1.1rem; }
.section-intro { margin: 7px 0 0; color: var(--muted); }

/* ===== FORMS ===== */
.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-weight: 600;
  font-size: 0.93rem;
}

.label-icon { display: flex; align-items: center; gap: 6px; }

input, select, textarea {
  min-height: 54px;
  border-radius: var(--radius-sm);
  border: 1.5px solid #bfd5e6;
  background: #fff;
  padding: 10px 14px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary-strong);
  box-shadow: 0 0 0 3px rgba(23, 151, 204, 0.15);
}

textarea { min-height: 120px; resize: vertical; }

/* ===== BUTTONS ===== */
.btn {
  min-height: 58px;
  border-radius: var(--radius-md);
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid transparent;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
  text-decoration: none;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn.primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--primary-deep);
  font-weight: 700;
}
.btn.primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--primary-deep);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245,183,0,0.35);
}

.btn.ghost {
  background: #f0f7fb;
  border-color: #c0d5e4;
  color: var(--text);
}

.btn.coral {
  background: linear-gradient(180deg, var(--coral), var(--coral-strong));
  color: #fff;
  border-color: var(--coral-strong);
}

.btn.sm { min-height: 42px; font-size: 0.88rem; padding: 8px 14px; }
.btn.icon-btn { min-height: 44px; width: 44px; padding: 0; border-radius: 999px; }

/* ===== RESULTS GRID ===== */
.results {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ===== RESULT CARD ===== */
.result-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: row;
  min-height: 200px;
  position: relative;
}

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

.result-card .img-wrapper {
  position: relative;
  width: 220px;
  min-width: 220px;
  flex-shrink: 0;
  overflow: hidden;
}

.result-card .img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.result-card:hover .img-wrapper img { transform: scale(1.04); }

.result-card .img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 60%, rgba(0,0,0,0.15));
}

.result-card .img-actions {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 6px;
}

.fav-btn {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.9);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1rem;
  transition: transform 0.15s, background 0.15s;
  backdrop-filter: blur(4px);
}

.fav-btn:hover { transform: scale(1.1); background: #fff; }
.fav-btn.active { background: var(--coral-light); border-color: var(--coral); }

.result-card .star-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0,61,110,0.85);
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  backdrop-filter: blur(4px);
}

.result-card .body {
  padding: 16px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.result-card h3 {
  font-family: "Outfit", sans-serif;
  font-size: 1.1rem;
  margin: 0;
  line-height: 1.3;
  color: var(--primary-deep);
}

.result-card .location { margin: 0; color: var(--muted); font-size: 0.86rem; }

.result-card .price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary-deep);
  margin: 0;
}

.result-card .price span { font-size: 0.82rem; font-weight: 500; color: var(--muted); }

/* Score badge booking.com style */
.score-badge-bk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-deep);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  border-radius: 6px 6px 6px 0;
  padding: 4px 10px;
  min-width: 42px;
  text-align: center;
}

.score-badge-label {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}

.result-card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  padding: 16px 16px 16px 8px;
  flex-shrink: 0;
  min-width: 140px;
  border-left: 1px solid var(--line);
}

.result-card .actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}

/* ===== SCORE BARS ===== */
.score-bar-group { margin: 10px 0; display: grid; gap: 6px; }

.score-bar-item { display: flex; align-items: center; gap: 8px; }

.score-bar-label {
  font-size: 0.78rem;
  font-weight: 700;
  width: 58px;
  flex-shrink: 0;
  color: var(--muted);
}

.score-bar-track {
  flex: 1;
  height: 7px;
  border-radius: 999px;
  background: #e2eef6;
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary-strong), var(--primary-deep));
  transition: width 0.7s ease;
}

.score-bar-fill.high { background: linear-gradient(90deg, #1a9e6e, #128058); }
.score-bar-fill.medium { background: linear-gradient(90deg, #c47f0a, #a06a08); }
.score-bar-fill.low { background: linear-gradient(90deg, var(--coral), var(--coral-strong)); }

.score-bar-val { font-size: 0.78rem; font-weight: 700; width: 26px; text-align: right; flex-shrink: 0; }

/* ===== MAP ===== */
.map-panel {
  margin-top: 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid #cadeec;
  background: #f8fcff;
  padding: 14px;
}

.map-head p { margin: 0; color: var(--muted); }

.map-canvas {
  margin-top: 10px;
  width: 100%;
  height: 340px;
  border-radius: var(--radius-md);
  border: 1.5px solid #c6dbe9;
  overflow: hidden;
}

/* ===== SKELETON ===== */
.skeleton {
  background: linear-gradient(90deg, #e8f2f9 25%, #d4eaf6 50%, #e8f2f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-card {
  border-radius: var(--radius-lg);
  border: 1.5px solid #d4e5f1;
  overflow: hidden;
}

.skeleton-img { height: 220px; }
.skeleton-body { padding: 14px; display: grid; gap: 10px; }
.skeleton-line { height: 13px; }
.skeleton-line.short { width: 55%; }
.skeleton-line.med { width: 78%; }

/* ===== DETAIL / CARD ===== */
.detail, .card {
  margin-top: 14px;
  border-radius: var(--radius-lg);
  border: 1.5px solid #cadeec;
  background: #f8fcff;
  padding: 16px;
}

.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.checkbox { flex-direction: row; align-items: center; gap: 8px; }

/* ===== LISTS ===== */
.list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 10px; }

/* ===== BOOKING CARDS ===== */
.booking-card {
  border-radius: var(--radius-md);
  border: 1.5px solid #d3e4ef;
  background: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(20, 80, 112, 0.06);
}

.booking-card .booking-info { flex: 1; }
.booking-card h4 { margin: 0 0 4px; font-size: 1rem; }
.booking-card p { margin: 3px 0; color: var(--muted); font-size: 0.88rem; }
.booking-card .booking-price { font-size: 1.1rem; font-weight: 800; color: var(--primary-deep); }

.booking-card .booking-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.status-pill.confirmed { background: var(--green-light); color: var(--green); }
.status-pill.pending { background: var(--yellow-light); color: var(--yellow); }
.status-pill.cancelled { background: #f0f0f0; color: #666; }

/* ===== SUPPORT THREADS ===== */
.thread-card {
  border-radius: var(--radius-md);
  border: 1.5px solid #d3e4ef;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(20, 80, 112, 0.06);
}

.thread-header {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
}

.thread-header:hover { background: #f5fafd; }
.thread-header .thread-subject { flex: 1; font-weight: 600; font-size: 0.95rem; }

.thread-priority {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}

.thread-priority.URGENT { background: var(--coral-light); color: var(--coral-strong); }
.thread-priority.NORMAL { background: #e8f3fa; color: var(--muted); }

.thread-chevron { transition: transform 0.2s; font-size: 0.9rem; color: var(--muted); }
.thread-card.open .thread-chevron { transform: rotate(180deg); }

.thread-body { display: none; padding: 0 16px 14px; border-top: 1.5px solid #e5eff7; }
.thread-card.open .thread-body { display: block; }

.thread-message {
  margin-top: 10px;
  padding: 10px 14px;
  background: var(--surface-soft);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  line-height: 1.6;
}

.thread-reply {
  margin-top: 8px;
  padding: 10px 14px;
  background: #eaf6f0;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--green);
  font-size: 0.9rem;
  line-height: 1.6;
}

.thread-reply-label { font-size: 0.76rem; font-weight: 700; color: var(--green); margin-bottom: 4px; }

/* ===== COMPARE GRID ===== */
.compare-section { margin-top: 22px; }
.compare-section > h4 { font-size: 1.15rem; margin-bottom: 12px; font-family: "Fraunces", serif; }

.compare-grid {
  display: grid;
  grid-template-columns: 150px repeat(var(--cols, 2), 1fr);
  border-radius: var(--radius-md);
  border: 1.5px solid #cadeec;
  overflow: hidden;
}

.cg-header { background: #f0f8ff; border-bottom: 1.5px solid #cadeec; }

.cg-cell {
  padding: 11px 14px;
  border-bottom: 1.5px solid #eaf2f8;
  font-size: 0.88rem;
  vertical-align: middle;
}

.cg-cell:not(:last-child) { border-right: 1.5px solid #eaf2f8; }
.cg-label { font-weight: 700; color: var(--muted); font-size: 0.82rem; }
.cg-best { background: #edfaf3; color: var(--green); font-weight: 700; }
.cg-worst { background: #fff2f0; color: var(--coral-strong); font-weight: 700; }

.compare-hotel-col { padding: 14px 12px; border-bottom: 1.5px solid #cadeec; text-align: center; }
.compare-hotel-col img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; margin-bottom: 6px; display: block; margin-left: auto; margin-right: auto; }
.compare-hotel-col h4 { font-size: 0.88rem; margin: 0 0 8px; line-height: 1.3; }

/* ===== FAVORITES LIST ===== */
.fav-item {
  border-radius: var(--radius-md);
  border: 1.5px solid #d3e4ef;
  background: #fff;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(20, 80, 112, 0.06);
}

.fav-item img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.fav-item .fav-info { flex: 1; }
.fav-item h4 { margin: 0 0 3px; font-size: 0.95rem; }
.fav-item p { margin: 0; color: var(--muted); font-size: 0.85rem; }
.fav-item .fav-actions { display: flex; gap: 6px; flex-shrink: 0; }

/* ===== PROFILE ===== */
.profile-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 16px;
  margin-top: 4px;
}

.profile-sidebar {
  border-radius: var(--radius-lg);
  border: 1.5px solid #cadeec;
  background: linear-gradient(180deg, #fff, #f5fafd);
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1797cc, #0b5f86);
  color: #fff;
  font-size: 1.75rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 3px solid #b7d6ec;
}

.profile-name { font-size: 1.1rem; font-weight: 700; margin: 0; }
.profile-email { font-size: 0.86rem; color: var(--muted); margin: 0; }

.profile-stats { width: 100%; display: grid; gap: 8px; }

.profile-stat {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: #f0f8ff;
  border: 1.5px solid #daeaf4;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.profile-stat-num { font-size: 1.3rem; font-weight: 800; color: var(--primary-deep); line-height: 1; }
.profile-stat-label { font-size: 0.8rem; color: var(--muted); line-height: 1.3; }

.profile-content {
  border-radius: var(--radius-lg);
  border: 1.5px solid #cadeec;
  background: #fff;
  padding: 20px;
}

/* ===== ONBOARDING ===== */
.onboarding-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(8, 20, 32, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

.onboarding-modal.hidden { display: none; }

.onboarding-box {
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: 0 32px 80px rgba(8, 20, 32, 0.35);
  max-width: 500px;
  width: 90%;
  overflow: hidden;
}

.onboarding-slide {
  display: none;
  padding: 42px 38px 28px;
  text-align: center;
}

.onboarding-slide.active { display: block; }

.onboarding-slide .slide-icon { font-size: 3.5rem; margin-bottom: 18px; }

.onboarding-slide h2 {
  font-family: "Fraunces", serif;
  font-size: 1.7rem;
  margin: 0 0 12px;
  color: var(--primary-deep);
}

.onboarding-slide p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 6px;
}

.onboarding-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 38px 32px;
}

.onboarding-dots { display: flex; gap: 8px; align-items: center; }

.onboarding-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d4e5f1;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  padding: 0;
}

.onboarding-dot.active { background: var(--primary-strong); transform: scale(1.3); }

.onboarding-actions { display: flex; gap: 8px; }

/* ===== TOASTS ===== */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
  width: calc(100vw - 40px);
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 36px 14px 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid;
  background: #fff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
  animation: toastIn 0.3s ease;
  position: relative;
  overflow: hidden;
}

.toast.success { border-color: var(--green); }
.toast.error { border-color: var(--coral); }
.toast.info { border-color: var(--primary-strong); }

.toast-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 1px; }
.toast.success .toast-icon { color: var(--green); }
.toast.error .toast-icon { color: var(--coral); }
.toast.info .toast-icon { color: var(--primary-strong); }

.toast-text { flex: 1; font-size: 0.93rem; font-weight: 600; line-height: 1.45; }

.toast-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 2px 4px;
  line-height: 1;
}

.toast-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  animation: toastShrink 4s linear forwards;
}

.toast.success .toast-bar { background: var(--green); }
.toast.error .toast-bar { background: var(--coral); }
.toast.info .toast-bar { background: var(--primary-strong); }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); max-height: 120px; margin-bottom: 0; }
  to { opacity: 0; transform: translateX(40px); max-height: 0; padding-top: 0; padding-bottom: 0; }
}

@keyframes toastShrink {
  from { width: 100%; }
  to { width: 0; }
}

.toast.removing { animation: toastOut 0.35s ease forwards; }

/* ===== FOOTER ===== */
.footer-main {
  background: linear-gradient(135deg, #07253a 0%, #0c4668 60%, #0f5580 100%);
  border: 1.5px solid #0a3350;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(6, 28, 46, 0.3);
  overflow: hidden;
  position: relative;
}

.footer-main::before {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(23, 151, 204, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 0;
  padding: 32px 34px 24px;
  position: relative;
}

.footer-col { padding-right: 24px; }
.footer-col:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  margin-right: 0;
}
.footer-col + .footer-col { padding-left: 28px; padding-right: 0; }
.footer-col + .footer-col + .footer-col { padding-left: 28px; }

/* Brand col */
.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.footer-logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.95);
  padding: 6px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

.footer-brand-name {
  font-family: "Fraunces", serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 2px;
  line-height: 1;
}

.footer-tagline-text {
  font-size: 0.8rem;
  color: rgba(196, 228, 245, 0.75);
  margin: 0;
  line-height: 1.4;
}

.footer-desc {
  font-size: 0.86rem;
  color: rgba(196, 228, 245, 0.65);
  line-height: 1.65;
  margin: 0;
  max-width: 280px;
}

/* Column titles */
.footer-col-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #7ecde8;
  margin: 0 0 14px;
}

/* Nav links */
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a {
  color: rgba(196, 228, 245, 0.82);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-nav a:hover { color: #fff; }
.footer-nav a::before { content: '›'; font-size: 1rem; color: var(--primary-strong); }

/* Emergency lines */
.footer-emergency { display: flex; flex-direction: column; gap: 9px; }

.footer-emergency-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: rgba(196, 228, 245, 0.82);
}

.footer-emergency-line strong { color: #fff; font-size: 1rem; }

.footer-emergency-note {
  margin-top: 4px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: rgba(240, 106, 91, 0.18);
  border: 1px solid rgba(240, 106, 91, 0.35);
  font-size: 0.78rem;
  color: #f5b8b2;
  line-height: 1.5;
}

/* Bottom bar */
.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.footer-bar-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-copyright {
  font-size: 0.8rem;
  color: rgba(196, 228, 245, 0.5);
  margin: 0;
}

.footer-admin-link {
  font-size: 0.78rem;
  color: rgba(126, 205, 232, 0.6);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-admin-link:hover { color: #7ecde8; }

#status {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(196, 228, 245, 0.45);
  font-family: monospace;
}

#status.error { color: #f5b8b2; }

/* ===== DETAIL PAGE ===== */
.detail-hero {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  border: 1.5px solid #c9ddec;
  display: block;
}

.detail-hero-fallback {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #1797cc, #0b5f86);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 5rem;
}

.score-rings {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 20px 0;
}

.score-ring-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.score-ring-item .ring-label { font-size: 0.82rem; font-weight: 700; color: var(--muted); text-align: center; }
.score-ring-item .ring-val { font-size: 1rem; font-weight: 800; color: var(--primary-deep); }

.score-ring svg { transform: rotate(-90deg); overflow: visible; }
.score-ring svg .ring-bg { fill: none; stroke: #e2eef6; stroke-width: 6; }
.score-ring svg .ring-prog { fill: none; stroke-width: 6; stroke-linecap: round; transition: stroke-dashoffset 0.9s ease; }

.service-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }

.service-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #eaf4fb;
  border: 1.5px solid #b5d8ee;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--primary-deep);
}

.room-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.room-card {
  border-radius: var(--radius-md);
  border: 2px solid #c9ddec;
  background: #fff;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.room-card:hover { border-color: var(--primary-strong); box-shadow: var(--shadow-sm); }
.room-card.selected { border-color: var(--primary-strong); background: #eaf6fc; box-shadow: 0 0 0 3px rgba(23, 151, 204, 0.18); }
.room-card h4 { margin: 0 0 4px; font-size: 0.95rem; }
.room-card .room-type { font-size: 0.82rem; color: var(--muted); margin: 0 0 8px; }
.room-card .room-price { font-size: 1.1rem; font-weight: 800; color: var(--primary-deep); }

.booking-total-display {
  margin-top: 14px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #eaf6fc, #d8eef8);
  border: 1.5px solid #a8d4ea;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.booking-total-display .total-label { font-size: 0.95rem; color: var(--muted); }
.booking-total-display .total-amount { font-size: 1.55rem; font-weight: 800; color: var(--primary-deep); }

/* ===== CLINICS ===== */
.clinic-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-deep);
  margin: 0 0 14px;
}

.clinic-section-title::before {
  content: '🏥';
  font-size: 1.2rem;
}

.clinic-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 14px;
}

.clinic-card {
  border-radius: var(--radius-md);
  border: 1.5px solid #c9ddec;
  background: #fff;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.clinic-card:hover {
  border-color: #1a9e6e;
  box-shadow: 0 4px 16px rgba(26, 158, 110, 0.12);
}

.clinic-card-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-deep);
  margin: 0;
}

.clinic-card-address {
  font-size: 0.84rem;
  color: var(--muted);
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.clinic-card-address::before { content: '📍'; flex-shrink: 0; }

.clinic-card-phone {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a9e6e;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.clinic-card-phone::before { content: '📞'; }
.clinic-card-phone:hover { text-decoration: underline; }

.clinic-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--muted);
}

.clinic-card-distance {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #edf7f1;
  border: 1px solid #b5dfcb;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #1a9e6e;
}

.clinic-card-rating {
  color: #c47f0a;
  font-weight: 700;
}

.clinic-specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.clinic-specialty {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: #eaf4fb;
  border: 1px solid #b5d8ee;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary-deep);
}

/* Leaflet clinic marker */
.clinic-map-marker {
  background: #1a9e6e;
  border: 2px solid #fff;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  cursor: pointer;
}

/* ===== ADMIN ===== */
.admin-metrics {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

/* ===== SORT + RESULTS CONTROLS ===== */
.results-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0 4px;
  flex-wrap: wrap;
}

.results-count {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
}

.sort-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort-select {
  font-family: var(--font-body, Outfit, sans-serif);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm, 10px);
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--primary-deep);
  cursor: pointer;
  min-height: 40px;
}

.sort-select:focus { outline: 2px solid var(--primary-deep); }

/* ===== TAB BADGES ===== */
.tab-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tab-icon-wrap svg { display: block; }

.tab-badge {
  position: absolute;
  top: -5px;
  right: -8px;
  background: var(--coral);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
  border: 1.5px solid #fff;
  pointer-events: none;
}

.tab-badge.hidden { display: none; }

/* ===== CARD RATING ===== */
.card-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 4px 0 0;
  font-size: 0.82rem;
}

.card-rating-stars {
  color: #f5a623;
  font-size: 0.88rem;
  letter-spacing: 1px;
}

.card-rating-num {
  font-weight: 700;
  color: var(--text);
}

.card-rating-count {
  color: var(--muted);
}

/* ===== FAQ SECTION ===== */
.faq-section {
  padding: 32px 0 8px;
}

.faq-header {
  margin-bottom: 20px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.15s;
}

.faq-item[open] {
  box-shadow: 0 4px 16px rgba(11, 95, 134, 0.1);
}

.faq-question {
  font-size: 1rem;
  font-weight: 700;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--primary-deep);
  user-select: none;
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question::after {
  content: '▸';
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item[open] .faq-question::after {
  transform: rotate(90deg);
}

.faq-answer {
  padding: 0 20px 16px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
  border-top: 1px solid #eaf2f8;
}

.faq-answer p:first-child { margin-top: 12px; }

/* ===== ACCESSIBILITY CONTROLS ===== */
.a11y-controls {
  display: flex;
  gap: 4px;
  align-items: center;
}

.a11y-btn {
  font-weight: 700;
  font-size: 0.8rem !important;
  min-height: 36px !important;
  padding: 4px 10px !important;
  letter-spacing: 0.02em;
}

/* High contrast mode */
html.high-contrast {
  --primary-deep: #002b40;
  --surface: #ffffff;
  --text: #000000;
  --muted: #3a3a3a;
  --line: #000000;
  filter: contrast(1.25);
}

html.high-contrast .result-card,
html.high-contrast .card,
html.high-contrast .booking-card {
  border-color: #000 !important;
}

/* ===== SEARCH FILTERS ===== */
.filters-fieldset {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin: 0;
}

.filters-legend {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--primary-deep);
  padding: 0 6px;
}

.filters-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 8px;
}

/* ===== REVIEWS ===== */
.review-avg {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
}

.review-avg-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-deep);
  line-height: 1;
}

.review-avg-stars {
  font-size: 1.3rem;
  color: #f5a623;
  line-height: 1;
}

.review-avg-count {
  font-size: 0.85rem;
  color: var(--muted);
}

.review-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.review-card {
  background: #f7fbff;
  border: 1.5px solid #daeaf5;
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.review-author {
  font-weight: 700;
  font-size: 0.92rem;
}

.review-stars {
  color: #f5a623;
  font-size: 1rem;
  letter-spacing: 1px;
}

.review-date {
  font-size: 0.78rem;
  color: var(--muted);
  margin-left: auto;
}

.review-comment {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text);
}

.star-picker {
  display: flex;
  gap: 4px;
}

.star-btn {
  background: none;
  border: none;
  font-size: 2rem;
  color: #ccc;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  transition: color 0.1s, transform 0.1s;
}

.star-btn:hover,
.star-btn.hover,
.star-btn.selected {
  color: #f5a623;
  transform: scale(1.15);
}

/* ===== SIMILAR HOTELS ===== */
.similar-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 12px;
}

.similar-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  border: 1.5px solid #c9ddec;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: #fff;
  transition: box-shadow 0.15s, transform 0.15s;
}

.similar-card:hover {
  box-shadow: 0 6px 20px rgba(11, 95, 134, 0.14);
  transform: translateY(-2px);
}

.similar-card img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  display: block;
}

.similar-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  font-size: 0.85rem;
}

.similar-body strong {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.similar-score {
  font-size: 0.8rem;
  color: var(--muted);
}

@media (max-width: 760px) {
  .similar-cards { grid-template-columns: 1fr 1fr; }
  .a11y-controls { gap: 2px; }
  .a11y-btn { padding: 2px 7px !important; font-size: 0.75rem !important; }
}

/* ===== AD ZONES ===== */
.ad-zone { margin: 16px 0; }

.ad-banner {
  display: block;
  position: relative;
  border-radius: var(--radius-md);
  border: 1.5px solid #c9ddec;
  background: #f0f7fc;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s;
}

.ad-banner:hover { box-shadow: 0 4px 18px rgba(11, 95, 134, 0.15); }

.ad-banner img {
  width: 100%;
  max-height: 120px;
  object-fit: cover;
  display: block;
}

.ad-label {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: 999px;
  pointer-events: none;
}

/* ===== AD ENHANCEMENTS ===== */
.ad-banner-image { position: relative; }

.ad-title-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  color: #fff;
  padding: 18px 14px 10px;
  font-size: 0.9rem;
  font-weight: 600;
  pointer-events: none;
}

.ad-banner-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  background: linear-gradient(135deg, #0b5f86 0%, #1797cc 100%);
  border-color: #0b5f86;
  color: #fff;
  text-decoration: none;
}

.ad-banner-text-title {
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
  padding: 12px 20px;
  color: #fff;
}

/* ===== PAYMENT MODAL ===== */
.payment-badge {
  display: inline-block;
  background: #e8f8ee;
  color: #1a7f3c;
  border: 1px solid #a3d9b1;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 1px 9px;
  margin-left: 6px;
  vertical-align: middle;
}

.payment-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(8, 20, 32, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  padding: 20px;
}

.payment-modal {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 32px 28px 28px;
  max-width: 420px;
  width: 100%;
  position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
}

.payment-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
  padding: 4px;
}

.payment-modal-icon { font-size: 2.4rem; text-align: center; margin-bottom: 12px; }

.payment-modal h3 {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin: 0 0 6px;
  color: var(--primary-deep);
}

.payment-modal-amount {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-deep);
  margin: 0 0 8px;
}

.payment-modal-hint {
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0 0 20px;
}

.payment-modal-form { display: flex; flex-direction: column; gap: 12px; }

.payment-modal-form label { display: flex; flex-direction: column; gap: 4px; font-size: 0.88rem; font-weight: 600; }

.payment-modal-form input {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 1rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.15s;
}

.payment-modal-form input:focus { border-color: var(--primary-deep); }

.payment-modal-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ===== VIP TRANSPORT ===== */
.vip-transport-card {
  background: linear-gradient(135deg, #0b3d5e 0%, #0b5f86 100%);
  border-radius: var(--radius-lg);
  padding: 20px;
  color: #fff;
  margin-top: 4px;
}
.vip-transport-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}
.vip-badge-large {
  background: rgba(255,255,255,0.18);
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
.vip-included-badge {
  background: #1a9e6e;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  align-self: flex-start;
  margin-left: auto;
}
.vip-transport-options {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.vip-option {
  flex: 1;
  min-width: 100px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.vip-option--glc {
  border-color: #d4af37;
  background: rgba(212,175,55,0.15);
  position: relative;
}
.vip-option--glc::after {
  content: 'Premium';
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 0.65rem;
  font-weight: 700;
  color: #d4af37;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.vip-option-icon { font-size: 1.5rem; }
.vip-option-label { font-weight: 700; font-size: 0.95rem; }
.vip-option-cap { font-size: 0.78rem; opacity: 0.75; }
.vip-option-price { font-size: 1rem; font-weight: 800; color: #9fe0c8; margin-top: 4px; }
.vip-transport-form label span {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  opacity: 0.85;
  margin-bottom: 4px;
}
.vip-transport-form select,
.vip-transport-form input[type="datetime-local"],
.vip-transport-form input[type="number"] {
  width: 100%;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  color: #fff;
  padding: 8px 10px;
  font-size: 0.95rem;
  appearance: none;
  -webkit-appearance: none;
}
.vip-transport-form option { color: #0b3d5e; background: #fff; }
.vip-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 500px) {
  .vip-form-grid { grid-template-columns: 1fr; }
  .vip-transport-options { flex-direction: column; }
}
.vip-card-badge {
  display: inline-block;
  background: #0b5f86;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1050px) {
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: none; }
  .trust-item:nth-child(3) { border-top: 1.5px solid var(--line); }
  .trust-item:nth-child(4) { border-top: 1.5px solid var(--line); border-right: none; }
  .how-steps { grid-template-columns: 1fr; }
  .how-steps::before { display: none; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .destinations-grid { grid-template-columns: repeat(2, 1fr); }
  .topbar { padding: 16px 20px; }
  .topbar { align-items: flex-start; flex-direction: column; gap: 14px; }
  .hero { min-height: 320px; }
  .hero-copy { padding: 24px 20px; max-width: 100%; }
  .hero-copy h2 { font-size: 1.55rem; }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tabbar { padding: 0 8px; }
  .destination-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-layout { grid-template-columns: 1fr; }
  .score-rings { grid-template-columns: repeat(2, 1fr); }
  .compare-grid { font-size: 0.84rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 0; }
  .footer-col:nth-child(3) { grid-column: 1 / -1; padding-left: 0; margin-top: 20px; border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; border-right: none; }
  .footer-col:nth-child(2) { border-right: none; }
}

@media (max-width: 760px) {
  .trust-strip { grid-template-columns: 1fr; }
  .trust-item { border-right: none; border-bottom: 1.5px solid var(--line); }
  .trust-item:last-child { border-bottom: none; }
  .why-grid { grid-template-columns: 1fr; }
  .destinations-grid { grid-template-columns: repeat(2, 1fr); }
  body { font-size: 17px; }
  .logo { height: 48px; width: auto; max-width: 150px; }
  .brand-text h1 { font-size: 1.65rem; }
  .hero-copy h2 { font-size: 1.45rem; }
  .quick-stats { grid-template-columns: 1fr; }
  .tab-btn { padding: 0 12px; }
  .result-card { flex-direction: column; }
  .result-card .img-wrapper { width: 100%; min-width: 0; height: 180px; }
  .result-card-right { border-left: none; border-top: 1px solid var(--line); flex-direction: row; justify-content: space-between; align-items: center; min-width: 0; }
  .form-grid, .two-col { grid-template-columns: 1fr; }
  .admin-metrics { grid-template-columns: 1fr; }
  .score-rings { grid-template-columns: repeat(2, 1fr); }
  .compare-grid { overflow-x: auto; min-width: 0; }
  .room-cards { grid-template-columns: 1fr; }
  .detail-hero, .detail-hero-fallback { height: 240px; }
  .booking-card { flex-direction: column; }
  .booking-card .booking-right { flex-direction: row; align-items: center; }
  .footer-grid { grid-template-columns: 1fr; padding: 24px 20px 18px; }
  .footer-col { border-right: none !important; padding: 0 !important; margin: 0 !important; }
  .footer-col:not(:first-child) { border-top: 1px solid rgba(255,255,255,.1); padding-top: 18px !important; margin-top: 4px; }
  .footer-bar { flex-direction: column; gap: 8px; align-items: flex-start; padding: 12px 20px; }
}

@media (max-width: 480px) {
  .tab-btn .tab-label { font-size: 0.74rem; }
  .toast-container { right: 12px; top: 12px; }
  .topbar { padding: 14px 16px; }
}

/* ===== EXPLORER TAB ===== */

.explore-subnav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 16px 16px 4px;
  scrollbar-width: none;
}
.explore-subnav::-webkit-scrollbar { display: none; }

.explore-tab {
  flex-shrink: 0;
  padding: 10px 22px;
  border-radius: 50px;
  border: 1.5px solid var(--line);
  background: var(--surface-soft);
  color: var(--muted);
  font-family: "Outfit", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}
.explore-tab:hover { background: #e0eef8; color: var(--primary-deep); }
.explore-tab.active {
  background: var(--primary-deep);
  border-color: var(--primary-deep);
  color: #fff;
}

.explore-panel { display: none; padding: 20px 16px; }
.explore-panel.active { display: block; }

/* --- Companion Cards --- */
.companions-filter-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.companions-filter-row select,
.companions-filter-row input {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  font-family: "Outfit", sans-serif;
  font-size: 0.95rem;
  background: #fff;
  color: var(--text);
}

.companions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.companion-card {
  display: flex;
  gap: 16px;
  padding: 18px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  align-items: flex-start;
  transition: box-shadow 0.18s;
}
.companion-card:hover { box-shadow: var(--shadow-md); }

.companion-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--line);
  background: var(--surface-soft);
}
.companion-avatar-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary-deep), var(--primary-strong));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: "Fraunces", serif;
}

.companion-body { flex: 1; min-width: 0; }
.companion-name { font-size: 1.08rem; font-weight: 700; color: var(--text); margin: 0 0 2px; }
.companion-city { font-size: 0.86rem; color: var(--muted); margin-bottom: 6px; }
.companion-bio {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.companion-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.companion-chip {
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.76rem;
  font-weight: 600;
}
.companion-chip.medical { background: #d4f5ea; color: #1a9e6e; }
.companion-chip.tourism { background: #d6eaf8; color: #0b5f86; }
.companion-chip.social { background: #fdeee5; color: #c4620a; }
.companion-chip.lang { background: var(--yellow-light); color: var(--yellow); }

.companion-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.companion-price { font-size: 1rem; font-weight: 700; color: var(--primary-deep); }
.companion-price span { font-size: 0.8rem; font-weight: 400; color: var(--muted); }

/* --- Companion registration form --- */
.companion-reg-section {
  margin-top: 24px;
  border-top: 1.5px solid var(--line);
  padding-top: 20px;
}
.companion-reg-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  font-weight: 600;
  color: var(--primary-deep);
  font-size: 1rem;
  margin-bottom: 12px;
}
.companion-reg-form {
  display: none;
  background: var(--surface-soft);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
}
.companion-reg-form.open { display: block; }
.companion-reg-form .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* --- Destination Guide --- */
.destination-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.destination-card-explore {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(135deg, #0c4668, #1797cc);
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--shadow-sm);
  cursor: default;
}
.destination-card-explore img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.destination-card-explore .dest-overlay {
  position: relative;
  padding: 14px 16px;
  background: linear-gradient(0deg, rgba(0,0,0,0.6) 0%, transparent 100%);
}
.destination-card-explore .dest-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  font-family: "Fraunces", serif;
  margin: 0 0 4px;
}
.destination-card-explore .dest-desc {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.85);
  margin: 0 0 8px;
  line-height: 1.4;
}
.dest-badges { display: flex; flex-wrap: wrap; gap: 5px; }
.dest-badge {
  background: rgba(255,255,255,0.22);
  color: #fff;
  font-size: 0.72rem;
  padding: 3px 9px;
  border-radius: 50px;
  backdrop-filter: blur(4px);
}

/* --- Compare Table (Vivre en Tunisie) --- */
.life-hero {
  background: linear-gradient(135deg, #f8a234 0%, #f06a5b 50%, #e8403c 100%);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  color: #fff;
  margin-bottom: 24px;
}
.life-hero h3 {
  font-family: "Fraunces", serif;
  font-size: 1.7rem;
  margin: 0 0 8px;
  color: #fff;
}
.life-hero p { margin: 0; opacity: 0.92; font-size: 1.05rem; }

.compare-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--line);
  margin-bottom: 24px;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.compare-table th {
  background: var(--primary-deep);
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
}
.compare-table th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.compare-table th:last-child { border-radius: 0 var(--radius-sm) 0 0; }
.compare-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:nth-child(even) td { background: var(--surface-soft); }
.compare-win {
  background: #d4f5ea !important;
  color: #1a7a52;
  font-weight: 700;
}

.life-advantages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
.life-advantage-card {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.life-advantage-icon { font-size: 1.8rem; margin-bottom: 8px; }
.life-advantage-card h5 { font-size: 0.95rem; font-weight: 700; margin: 0 0 4px; }
.life-advantage-card p { font-size: 0.84rem; color: var(--muted); margin: 0; line-height: 1.5; }

.life-testimonials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.life-testimonial {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.life-testimonial blockquote {
  margin: 0 0 12px;
  font-style: italic;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.6;
}
.life-testimonial .testi-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.life-testimonial .testi-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-deep), var(--primary-strong));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.life-testimonial .testi-info strong { display: block; font-size: 0.88rem; }
.life-testimonial .testi-info span { font-size: 0.78rem; color: var(--muted); }

@media (max-width: 1050px) {
  .destination-grid { grid-template-columns: repeat(2, 1fr); }
  .life-advantages { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .companions-grid { grid-template-columns: 1fr; }
  .destination-grid { grid-template-columns: 1fr; }
  .life-advantages { grid-template-columns: 1fr; }
  .life-testimonials { grid-template-columns: 1fr; }
  .companion-reg-form .form-grid { grid-template-columns: 1fr; }
}

/* ===== ACCESSIBILITY CARD ============================= */
.acc-card { padding: 24px; }
.acc-title { font-family: 'Fraunces', serif; font-size: 1.3rem; margin: 0 0 4px; color: var(--primary-deep); }
.acc-subtitle { margin: 0 0 20px; color: var(--muted); font-size: .9rem; }
.acc-scores { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 24px; }
@media (max-width: 600px) { .acc-scores { grid-template-columns: repeat(2, 1fr); } }
.acc-sections { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.acc-section { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.acc-section summary { padding: 14px 18px; font-weight: 600; font-size: 1rem; cursor: pointer; list-style: none; background: var(--surface-alt, #f8fbfe); }
.acc-section summary::-webkit-details-marker { display: none; }
.acc-section[open] summary { background: var(--primary-deep); color: #fff; }
.acc-list { margin: 0; padding: 12px 20px; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.acc-item { font-size: 1rem; padding: 6px 0; border-bottom: 1px solid var(--border); }
.acc-item:last-child { border-bottom: none; }
.acc-ok { color: #0d6e40; }
.acc-no { color: var(--muted); opacity: .7; }
.acc-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 16px 0; }
@media (max-width: 600px) { .acc-gallery { grid-template-columns: repeat(2, 1fr); } }
.acc-photo { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-lg); }
.acc-footer { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }

/* ===== HEALTHCARE SECTION ============================= */
.healthcare-card { padding: 24px; }
.healthcare-table-wrap { overflow-x: auto; margin-bottom: 12px; }
.healthcare-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.healthcare-table th { background: var(--primary-deep); color: #fff; padding: 10px 12px; text-align: left; }
.healthcare-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); }
.healthcare-table tr:last-child td { border-bottom: none; }
.emergency-banner { background: #c62b2b; color: #fff; border-radius: var(--radius-lg); padding: 14px 18px; margin: 16px 0; font-size: 1rem; line-height: 1.5; }
.healthcare-contact { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

/* ===== ACTIVITIES SECTION ============================= */
.activities-week { margin-bottom: 20px; }
.activities-week-title { font-size: 1.05rem; font-weight: 700; color: var(--primary-deep); margin: 0 0 10px; padding-bottom: 6px; border-bottom: 2px solid var(--primary-deep); }
.activities-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.activities-table th { background: var(--primary-deep); color: #fff; padding: 10px 12px; text-align: left; white-space: nowrap; }
.activities-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.activities-table tr.activity-full { opacity: .6; }
.activity-free { display: inline-block; background: #d4f5e8; color: #0d6e40; border-radius: 20px; padding: 2px 10px; font-size: .85rem; font-weight: 600; }
.activities-offers { margin-top: 20px; }

/* ===== TRANSPORT CARDS ================================ */
.transport-cards { display: flex; flex-direction: column; gap: 12px; }
.transport-service-card { display: flex; gap: 16px; align-items: flex-start; padding: 20px; }
.transport-service-icon { font-size: 2rem; flex-shrink: 0; }
.transport-prices { margin: 8px 0 0; padding-left: 18px; line-height: 2; }

/* ===== INSURANCE SECTION ============================== */
.insurance-compare-wrap { overflow-x: auto; margin-bottom: 16px; }

/* ===== BOOKING DISABLED BANNER ======================== */
.booking-disabled-banner {
  display: flex; align-items: center; gap: 16px;
  background: #fff4e5; border: 1.5px solid #f5a623; border-radius: var(--radius-lg);
  padding: 20px 24px; margin-top: 8px;
}
.booking-disabled-banner span { font-size: 2rem; flex-shrink: 0; }
.booking-disabled-banner p { margin: 0; font-size: 1rem; color: #7a4a00; line-height: 1.5; }

/* ===== ADMIN SETTINGS TOGGLE ========================== */
.settings-toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0; border-bottom: 1px solid var(--border);
}
.settings-toggle-row:last-child { border-bottom: none; }
.settings-toggle-label { font-weight: 600; font-size: 1rem; }
.settings-toggle-sub { font-size: .85rem; color: var(--muted); margin-top: 2px; }
.toggle-switch { position: relative; width: 52px; height: 28px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0; background: #ccc; border-radius: 28px; cursor: pointer;
  transition: .3s;
}
.toggle-slider:before {
  content: ''; position: absolute; width: 22px; height: 22px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: .3s;
}
.toggle-switch input:checked + .toggle-slider { background: var(--primary-deep); }
.toggle-switch input:checked + .toggle-slider:before { transform: translateX(24px); }

/* ══════════════════════════════════════════════════════════════
   FICHE TECHNIQUE SENIOR — styles
══════════════════════════════════════════════════════════════ */

/* Header card */
.ft-header-card {
  display: flex; align-items: flex-start; justify-content: space-between;
  background: var(--primary-deep); color: #fff;
  border-radius: var(--radius-lg); padding: 20px;
  gap: 16px; margin-top: 0;
}
.ft-header-body { flex: 1; min-width: 0; }
.ft-header-name { font-size: 1.35rem; font-weight: 800; font-family: 'Fraunces', serif; line-height: 1.2; }
.ft-header-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; font-size: .88rem; color: #aac4d8; }
.ft-stars { color: var(--gold); font-size: 1.1rem; letter-spacing: 2px; }
.ft-description { margin-top: 10px; font-size: .88rem; color: #d0e9f5; line-height: 1.6; }
.ft-chips-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ft-chip { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25);
  border-radius: 4px; padding: 3px 8px; font-size: .75rem; font-weight: 600; color: #fff; }
.ft-header-score {
  flex-shrink: 0; min-width: 72px; border-radius: 10px 10px 10px 0;
  padding: 12px 14px; text-align: center; display: flex; flex-direction: column; align-items: center;
}
.ft-score-num { font-size: 2rem; font-weight: 900; color: #fff; line-height: 1; }
.ft-score-label { font-size: .68rem; color: rgba(255,255,255,.8); font-weight: 600; margin-top: 2px; }
.ft-score-denom { font-size: .65rem; color: rgba(255,255,255,.5); }

/* Section card */
.ft-card {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.06); margin-top: 12px;
}
.ft-card-head {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px; color: #fff;
  font-size: .82rem; font-weight: 800; letter-spacing: .5px;
}
.ft-card-title { flex: 1; }
.ft-badge {
  background: rgba(255,255,255,.25); border-radius: 10px;
  padding: 2px 10px; font-size: .78rem; font-weight: 800; color: #fff;
  white-space: nowrap;
}
.ft-card-body { padding: 14px 16px; }

/* Score bars */
.ft-score-bar-big {
  height: 14px; background: #e2eef6; border-radius: 7px; overflow: hidden; margin-bottom: 6px;
}
.ft-score-bar-fill { height: 100%; border-radius: 7px; transition: width .6s ease; }
.ft-subscore-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.ft-subscore-label { width: 180px; flex-shrink: 0; font-size: .82rem; color: var(--muted); }
.ft-subscore-bar { flex: 1; height: 8px; background: #e2eef6; border-radius: 4px; overflow: hidden; }
.ft-subscore-fill { height: 100%; border-radius: 4px; transition: width .6s ease; }
.ft-subscore-val { font-size: .82rem; font-weight: 700; width: 50px; text-align: right; flex-shrink: 0; }

/* Checklist */
.ft-list { list-style: none; margin: 0; padding: 0; }
.ft-list-item {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 6px 0; border-bottom: 1px solid var(--border);
  font-size: .9rem; line-height: 1.5;
}
.ft-list-item:last-child { border-bottom: none; }
.ft-ok { color: var(--text-dark); }
.ft-no { color: var(--muted); text-decoration: line-through; opacity: .6; }
.ft-list-sm .ft-list-item { font-size: .82rem; padding: 4px 0; }

/* Subsection title */
.ft-subsection-title {
  font-weight: 700; font-size: .85rem; color: var(--primary-deep);
  margin: 14px 0 8px; border-left: 3px solid var(--primary); padding-left: 8px;
}

/* Hospitals table */
.ft-hospitals { margin-top: 14px; }
.ft-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.ft-table th { background: var(--primary-deep); color: #fff; padding: 7px 10px; text-align: left; font-weight: 700; }
.ft-table td { padding: 7px 10px; border-bottom: 1px solid var(--border); }
.ft-table tr:last-child td { border-bottom: none; }
.ft-dist-badge {
  background: var(--primary-deep); color: #fff; border-radius: 4px;
  padding: 2px 6px; font-size: .75rem; font-weight: 700;
}

/* Emergency banner */
.ft-emergency-banner {
  background: #fff3cd; border: 1px solid #ffc107; border-radius: 6px;
  padding: 10px 14px; font-size: .88rem; margin-top: 14px; color: #856404;
}
.ft-emergency-banner a { color: #856404; font-weight: 700; }

/* Gallery */
.ft-gallery { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.ft-gallery-img { width: 120px; height: 80px; object-fit: cover; border-radius: 6px; }

/* Tarifs — room cards */
.ft-rooms-grid { display: flex; flex-direction: column; gap: 8px; }
.ft-room-card {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border: 2px solid var(--border); border-radius: 8px; cursor: pointer;
  transition: border-color .2s, background .2s; background: var(--surface);
}
.ft-room-card:hover { border-color: var(--primary); }
.ft-room-card.selected { border-color: var(--primary); background: #e8f4fb; }
.ft-room-icon { font-size: 1.5rem; }
.ft-room-body { flex: 1; }
.ft-room-name { font-weight: 700; font-size: .95rem; color: var(--primary-deep); }
.ft-room-type, .ft-room-occ { font-size: .78rem; color: var(--muted); margin-top: 2px; }
.ft-room-price { text-align: right; }
.ft-room-amount { font-size: 1.1rem; font-weight: 900; color: var(--primary-deep); }
.ft-room-per { font-size: .72rem; color: var(--muted); }

/* Includes box */
.ft-includes { margin-top: 14px; background: #e8f4fb; border-radius: 8px; padding: 12px; }

/* Booking section */
.ft-booking-section {
  border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(135deg, var(--primary-deep), var(--primary));
  box-shadow: 0 4px 16px rgba(0,0,0,.15); margin-top: 12px;
}
.ft-booking-header {
  padding: 14px 20px; color: #fff; font-size: 1.05rem; font-weight: 800;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.ft-booking-form { padding: 16px 20px 0; display: grid; grid-template-columns: repeat(auto-fill,minmax(140px,1fr)); gap: 12px; }
.ft-booking-form label { color: rgba(255,255,255,.85); font-size: .85rem; font-weight: 600; }
.ft-booking-form input { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); color: #fff; }
.ft-booking-form input::placeholder { color: rgba(255,255,255,.5); }
.ft-reserve-btn {
  grid-column: 1 / -1; background: var(--gold) !important; color: var(--primary-deep) !important;
  font-size: 1rem !important; font-weight: 800 !important; min-height: 52px !important;
  border-radius: 8px !important; margin-top: 4px;
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: #fff; border-top: 3px solid var(--primary-deep);
  box-shadow: 0 -4px 24px rgba(0,0,0,.15);
  padding: 16px 20px; transition: transform .3s ease;
}
.cookie-banner.hidden { display: none; }
.cookie-banner-inner {
  max-width: 900px; margin: 0 auto;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.cookie-banner-text { flex: 1; min-width: 0; }
.cookie-banner-text strong { display: block; font-size: 1rem; margin-bottom: 4px; color: var(--primary-deep); }
.cookie-banner-text p { margin: 0; font-size: .88rem; color: var(--muted); line-height: 1.5; }
.cookie-banner-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* ===== RGPD CARD (Profile) ===== */
.rgpd-card {
  margin-top: 20px; padding: 18px 20px;
  border: 2px solid #e8e0ff; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #f8f6ff 0%, #fff 100%);
}
.rgpd-title { margin: 0 0 8px; font-size: 1rem; color: var(--primary-deep); }
.rgpd-desc { margin: 0 0 14px; font-size: .88rem; color: var(--muted); line-height: 1.55; }
.rgpd-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ===== TERMS LABEL (Signup) ===== */
.terms-label {
  display: flex !important; flex-direction: row !important; align-items: flex-start !important;
  gap: 10px !important; font-size: .88rem !important; line-height: 1.5;
}
.terms-label input[type=checkbox] { width: auto !important; margin-top: 3px; flex-shrink: 0; }

/* Captcha box */
.captcha-box { display:flex; align-items:center; gap:12px; margin-bottom:4px; }
.captcha-question { font-weight:600; color:var(--primary-deep); font-size:1rem; white-space:nowrap; }
