/* ============================================================
   EHTDP — Public site (site.css)
   Marketing pages: homepage, destinations, provider response,
   legal pages. Requires: tokens.css. No JavaScript.

   Brand pass: overrides the shared tokens.css teal palette with
   the official Triptotrip brand (deep petrol / warm sand / coral)
   for public-site pages only. admin/ and crm/ keep tokens.css +
   app.css untouched — this file loads after tokens.css and only
   on pages that include it, so the override is scoped to /site.
   ============================================================ */

:root {
  /* Brand — deep petrol, overriding tokens.css teal for /site only */
  --brand-900: #0A2F2C;
  --brand-800: #0D3E3B;
  --brand-700: #0F4C4C; /* primary brand */
  --brand-600: #135953;
  --brand-500: #1B7A72;
  --brand-400: #3FA79E;
  --brand-100: #DCEAE7;
  --brand-50:  #F1F6F5;

  /* Ink — dark gray-green */
  --ink-900: #1C2B2D;
  --ink-800: #263A3B;
  --ink-700: #3A4C4A;
  --ink-500: #64756F;
  --ink-400: #8B9895;
  --ink-300: #B3BDB8;

  /* Surfaces & lines, warmed */
  --surface-0: #FFFFFF;
  --surface-1: #FCF9F3;
  --surface-2: #F3EDE1;
  --bg-warm: #E8DCC8;
  --line: rgba(15, 76, 76, .14);
  --line-strong: rgba(15, 76, 76, .28);

  /* Accent — coral, new to /site (not present in tokens.css) */
  --accent: #E8763C;
  --accent-600: #D8672E;
  --accent-tint: #F6C7A8;

  /* Shape & depth, recalibrated: crisp cards, pill controls */
  --radius: 6px;
  --radius-sm: 4px;
  --radius-lg: 8px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(28, 43, 45, .08);
  --shadow: 0 6px 20px -6px rgba(28, 43, 45, .18);
  --shadow-lg: 0 24px 56px -20px rgba(10, 30, 30, .45);

  /* Type */
  --font-display: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, 'Noto Serif', serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.65;
  color: var(--ink-800); background: var(--surface-0);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
h1, h2, h3 { margin: 0 0 10px; line-height: 1.12; color: var(--ink-900); font-family: var(--font-display); font-weight: 600; text-wrap: balance; }
p { margin: 0 0 14px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(250, 248, 245, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 80px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--brand-700); font-family: var(--font-display); }
.brand img { height: 40px; width: auto; display: block; }
.site-footer .brand img { height: 24px; }
.brand .logo {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--brand-700);
  display: inline-flex; align-items: center; justify-content: center; color: var(--surface-1); font-size: 16px; font-family: var(--font-display);
}
.brand small { display: block; font-size: 10px; font-weight: 600; letter-spacing: .12em; color: var(--ink-400); text-transform: uppercase; font-family: var(--font); }
.site-nav { display: flex; gap: 22px; margin-left: auto; margin-right: 28px; }
.site-nav a { color: var(--ink-500); font-size: 14px; font-weight: 500; }
.site-nav a:hover { color: var(--brand-700); text-decoration: none; }
.site-nav a.is-active { color: var(--brand-700); font-weight: 700; }
.header-cta { display: flex; gap: 14px; align-items: center; }
.lang-select { display: flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: var(--radius-pill); border: 1px solid var(--line); font-size: 13px; }
.lang-select__ico { font-size: .95em; }
.lang-select select { appearance: none; -webkit-appearance: none; -moz-appearance: none; border: none; background: transparent; font-weight: 700; font-size: 13px; color: var(--ink-500); padding: 0; letter-spacing: .02em; }
.lang-select__caret { font-size: .65em; color: var(--ink-500); }

.nav-toggle-input { display: none; }
.nav-toggle-btn { display: none; margin-left: auto; width: 40px; height: 40px; align-items: center; justify-content: center; cursor: pointer; color: var(--brand-700); font-size: 22px; border-radius: var(--radius-sm); }
.nav-toggle-btn:hover { background: var(--surface-2); }
.nav-mobile-cta { display: none; }

.btn {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid transparent; border-radius: var(--radius-pill);
  padding: 10px 18px; font-size: 14px; font-weight: 600; cursor: pointer;
  font-family: var(--font); text-decoration: none !important; line-height: 1.2;
  transition: transform .12s ease, background .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-600); }
.btn--outline { border-color: var(--line-strong); color: var(--ink-800); background: transparent; }
.btn--outline:hover { border-color: var(--brand-700); color: var(--brand-700); }
.btn--light { background: var(--surface-1); color: var(--accent); }
.btn--light:hover { background: #fff; }
.btn--danger { background: var(--bad-500); color: #fff; }
.btn--danger:hover { background: var(--bad-700); }
.btn--lg { padding: 14px 26px; font-size: 15px; }

/* ---------- Marquee ribbon (destinations, CSS-only) ---------- */
.ribbon {
  position: relative; left: 50%; width: 100vw; margin-left: -50vw;
  transform: rotate(-1.4deg); transform-origin: center;
  background: var(--accent); overflow: hidden; white-space: nowrap;
  margin-top: 40px; box-shadow: 0 12px 30px -16px rgba(6, 20, 20, .55);
}
.ribbon__track {
  display: inline-flex; animation: ribbon-scroll 32s linear infinite;
  font-family: var(--font-display); font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: #FAF8F5; font-size: 13px; padding-block: 10px;
}
.ribbon__track span { padding-inline: 22px; border-right: 1px solid rgba(250, 248, 245, .35); }
@keyframes ribbon-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(760px 400px at 88% -10%, rgba(232, 118, 60, .16), transparent 60%),
    radial-gradient(900px 460px at -10% 110%, rgba(232, 220, 200, .10), transparent 55%),
    repeating-linear-gradient(115deg, rgba(250, 248, 245, .045) 0 2px, transparent 2px 46px),
    linear-gradient(165deg, var(--brand-900) 0%, var(--brand-800) 55%, var(--brand-700) 100%);
  color: #E8F1EE; padding: 56px 0 0;
}
.hero .wrap { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; position: relative; z-index: 1; padding-bottom: 56px; }
.hero h1 { color: #FAF8F5; font-size: clamp(2.2rem, 3vw + 1rem, 3.4rem); line-height: 1.05; letter-spacing: -.01em; }
.hero h1 em { font-style: normal; color: var(--accent-tint); }
.hero p.lead { font-size: 17px; color: #D8E6E2; max-width: 540px; margin: 18px 0 28px; }
.hero .cta-row { display: flex; gap: 12px; flex-wrap: nowrap; }
.hero .btn--outline, .page-hero .btn--outline { border-color: rgba(250, 248, 245, .4); color: #FAF8F5; background: transparent; }
.hero .btn--outline:hover, .page-hero .btn--outline:hover { border-color: #FAF8F5; color: #FAF8F5; }
.hero .trust { margin-top: 40px; display: flex; gap: 30px; flex-wrap: wrap; align-items: flex-end; font-size: 13px; color: #A9CFC8; padding-top: 22px; border-top: 1px solid rgba(250, 248, 245, .16); }
.hero .trust b { display: block; color: var(--accent-tint); font-size: 28px; line-height: 1; font-family: var(--font-display); font-weight: 600; margin-bottom: 4px; }

.hero-card {
  background: var(--surface-1); border-radius: var(--radius-lg); padding: 30px; color: var(--ink-800);
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  transform: rotate(.6deg); transition: transform .2s ease;
}
.hero-card:hover, .hero-card:focus-within { transform: rotate(0deg); }
.hero-card h3 { font-size: 17px; margin-bottom: 22px; font-family: var(--font); font-weight: 700; }
.hero-card .field label { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-500); font-weight: 600; display: block; margin-bottom: 8px; }
.hero-card .input, .hero-card .select {
  width: 100%; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 12px 13px; font-size: 14px; font-family: var(--font); background: #fff;
  color: var(--ink-800); transition: border-color .15s ease, box-shadow .15s ease;
}
.hero-card .field { margin-bottom: 20px; }
.hero-card .input:focus, .hero-card .select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.hero-card .btn { width: 100%; justify-content: center; margin-top: 4px; }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 46px; }
.password-toggle {
  position: absolute; top: 50%; right: 5px; transform: translateY(-50%);
  border: none; background: transparent; cursor: pointer; font-size: .95rem; line-height: 1;
  padding: 8px; border-radius: 6px; color: var(--ink-500); transition: color .15s ease, background .15s ease;
  display: flex; align-items: center; justify-content: center;
}
.password-toggle:hover { color: var(--accent); background: var(--bg-warm, rgba(0,0,0,.04)); }
.hero-card .note { font-size: 12px; color: var(--ink-500); margin-top: 16px; text-align: center; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section--alt { position: relative; padding: 108px 0; }
.section--alt::before {
  content: ""; position: absolute; inset: 0; z-index: 0; background: var(--bg-warm);
  clip-path: polygon(0 2.6vw, 100% 0, 100% calc(100% - 2.6vw), 0 100%);
}
.section--alt .wrap { position: relative; z-index: 1; }
.sec-head { max-width: 640px; margin-bottom: 42px; }
.sec-head h2 { font-size: clamp(1.6rem, 1.6vw + 1rem, 2.3rem); }
.sec-head p { color: var(--ink-500); }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Value props */
.vprops { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.vprop { background: var(--surface-1); padding: 26px 24px; }
.vprop .ico {
  width: 40px; height: 40px; border-radius: var(--radius-sm); margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center; font-size: 19px;
  background: var(--brand-100); color: var(--brand-700);
}
.vprop h3 { font-size: 16px; font-family: var(--font); font-weight: 700; }
.vprop p { font-size: 14px; color: var(--ink-500); margin: 0; }

/* Flow steps — a real sequence, numbered deliberately */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; counter-reset: step; align-items: start; }
.flow .step {
  position: relative; padding: 10px 4px 0; font-size: 13px; color: var(--ink-700);
  border-top: 1px solid var(--line-strong);
}
.flow .step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; font-family: var(--font-display); font-size: 2rem; color: var(--accent-tint);
  line-height: 1; margin-bottom: 10px;
}
.flow .step b { display: block; font-size: 15px; color: var(--ink-900); margin-bottom: 4px; font-family: var(--font); }
.flow .arrow { display: none; }

/* Destination cards */
.dest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dest {
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface-0); display: block; color: inherit; transition: box-shadow .15s ease, transform .15s ease;
}
.dest:hover { text-decoration: none; box-shadow: var(--shadow); transform: translateY(-2px); }
.dest__img {
  height: 150px; display: flex; align-items: flex-end; padding: 14px;
  color: #fff; font-weight: 700; font-size: 18px; font-family: var(--font-display);
}
.dest__body { padding: 16px 18px; }
.dest__body .muted { color: var(--ink-500); font-size: 13px; }
.dest__body .provs { font-size: 12px; color: var(--accent); font-weight: 600; margin-top: 6px; }

/* CTA band — the deliberate second bold color moment */
.cta-band {
  background: var(--accent);
  border-radius: var(--radius-lg); padding: 48px 44px; color: #FFF3EA;
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
}
.cta-band h2 { color: #FAF8F5; font-size: clamp(1.4rem, 1.6vw + 1rem, 2rem); margin: 0 0 6px; }
.cta-band p { margin: 0; color: #FCE3D2; }
.cta-band .btn { margin-left: auto; }
.cta-band .btn--light { background: #FAF8F5; color: var(--accent); }
.cta-band .btn--light:hover { background: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-900); color: #A9BAB5; padding: 56px 0 30px; font-size: 13px; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 34px; }
.site-footer h4 { color: #fff; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; font-family: var(--font); font-weight: 700; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #C7D4CF; }
.site-footer a:hover { color: var(--accent-tint); text-decoration: none; }
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.site-footer .brand .logo { background: var(--accent); color: #fff; }
.social-row { display: flex; gap: 10px; margin-top: 14px; }
.social-row a {
  width: 32px; height: 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .08); color: #C7D4CF;
  transition: background .15s ease, color .15s ease;
}
.social-row a:hover { background: var(--accent); color: #fff; }
.site-footer .legal-row {
  border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 20px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 12px;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(155deg, var(--brand-900), var(--brand-700));
  color: #E8F1EE; padding: 64px 0 74px;
}
.page-hero h1 { color: #FAF8F5; font-size: clamp(1.8rem, 2vw + 1rem, 2.4rem); }
.page-hero .crumb { font-size: 13px; color: var(--accent-tint); margin-bottom: 10px; letter-spacing: .02em; }
.page-hero p { color: #D8E6E2; max-width: 620px; margin: 0; }

/* ---------- Legal prose ---------- */
.legal { max-width: 760px; padding: 56px 24px 90px; margin: 0 auto; }
.legal h1 { font-size: 30px; margin-bottom: 6px; }
.legal .updated { color: var(--ink-400); font-size: 13px; margin-bottom: 28px; }
.legal h2 { font-size: 19px; margin-top: 32px; font-family: var(--font); font-weight: 700; }
.legal p, .legal li { color: var(--ink-700); }
.legal .placeholder {
  background: var(--surface-2); border: 1px dashed var(--accent-tint); color: var(--accent-600);
  border-radius: var(--radius-sm); padding: 12px 16px; font-size: 13px; margin: 16px 0;
}

/* ---------- Provider response page ---------- */
.resp-wrap { max-width: 620px; margin: 0 auto; padding: 48px 20px 70px; }
.resp-card { background: var(--surface-0); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.resp-card__head { background: var(--brand-900); color: #fff; padding: 18px 22px; display: flex; align-items: center; gap: 12px; }
.resp-card__head .logo { width: 30px; height: 30px; border-radius: var(--radius-sm); background: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-size: 15px; font-family: var(--font-display); }
.resp-card__head b { font-size: 15px; }
.resp-card__head small { display: block; color: #A9CFC8; font-size: 12px; }
.resp-card__body { padding: 24px; }
.resp-sec { margin-bottom: 24px; }
.resp-sec h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-400); margin-bottom: 12px; font-family: var(--font); font-weight: 700; }
.resp-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.resp-actions .btn { justify-content: center; padding: 12px; }
.token-note {
  background: var(--surface-1); border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm); padding: 12px 14px; font-size: 12px; color: var(--ink-500); margin-top: 20px;
}
.token-note code { background: var(--surface-2); padding: 1px 5px; border-radius: 4px; font-size: 11px; }

/* Alerts (used on provider-response) */
.alert { border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 13px; margin-bottom: 22px; }
.alert--info { background: var(--brand-50); border-color: var(--brand-100); color: var(--brand-700); }
.alert--danger { background: #FDECE7; border-color: var(--accent-tint); color: var(--accent-600); }

/* Key/value list (used on provider-response) */
.kv { display: grid; grid-template-columns: 170px 1fr; gap: 8px 16px; font-size: 13px; margin: 0; }
.kv dt { color: var(--ink-500); }
.kv dd { margin: 0; font-weight: 600; color: var(--ink-900); }

/* Generic field/input (used outside .hero-card, e.g. provider-response) */
.field { margin-bottom: 14px; display: block; }
.field > span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--ink-800); }
.textarea {
  width: 100%; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 10px 12px; font-size: 14px; font-family: var(--font); background: #fff; color: var(--ink-800);
  min-height: 92px; resize: vertical;
}
.textarea:focus { outline: 2px solid var(--accent-tint); border-color: var(--accent); }

/* ---------- Responsive: tablet ---------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; padding-top: 8px; padding-bottom: 40px; }
  .hero { padding-top: 40px; }
  .hero-card { transform: none; padding: 20px; }
  .vprops, .dest-grid, .flow { grid-template-columns: repeat(2, 1fr); }
  .vprops { background: transparent; border: 0; gap: 16px; }
  .vprop { border: 1px solid var(--line); border-radius: var(--radius-lg); }
  .flow .arrow { display: none; }

  /* hamburger nav */
  .site-header .wrap { position: relative; }
  .header-cta { display: none; }
  .nav-toggle-btn { display: inline-flex; }
  .site-nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--surface-0); border-bottom: 1px solid var(--line);
    padding: 8px 24px 18px; margin: 0; box-shadow: var(--shadow);
    max-height: 0; overflow: hidden; opacity: 0; visibility: hidden;
    transition: max-height .25s ease, opacity .2s ease;
  }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .nav-toggle-input:checked ~ .site-nav { max-height: 420px; opacity: 1; visibility: visible; }
  .nav-mobile-cta { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
  .nav-mobile-cta .btn { width: 100%; justify-content: center; }

  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .cta-band .btn { margin-left: 0; }
  .resp-actions { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 140px 1fr; }
}

/* ---------- Responsive: phone ---------- */
@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .site-header .wrap { height: 68px; }
  .brand img { height: 32px; }
  .hero h1 { font-size: clamp(1.7rem, 6vw, 2.2rem); }
  .hero p.lead { font-size: 15px; }
  .hero .cta-row .btn { flex: 1 1 0; padding-left: 10px; padding-right: 10px; justify-content: center; white-space: nowrap; }
  .hero .trust { display: flex; flex-wrap: nowrap; justify-content: space-between; align-items: flex-start; gap: 10px; margin-top: 28px; padding-top: 18px; }
  .hero .trust > div { flex: 1 1 0; min-width: 0; }
  .hero .trust b { font-size: 19px; }
  .hero-card { transform: none; padding: 20px; }
  .hero-card .input, .hero-card .select { font-size: 16px; padding: 11px 12px; }
  .password-field input { padding-right: 42px; }
  .password-toggle { padding: 10px; font-size: 1rem; }
  .vprops, .dest-grid, .flow, .site-footer .cols { grid-template-columns: 1fr; }
  .flow .arrow { display: block; text-align: center; color: var(--ink-300); }
  .section { padding: 56px 0; }
  .section--alt { padding: 64px 0; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 32px 26px; }
  .cta-band .btn { margin-left: 0; width: 100%; justify-content: center; }
  .page-hero { padding: 44px 0 52px; }
  .legal, .resp-wrap { padding-left: 18px; padding-right: 18px; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dt { margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .ribbon__track { animation: none; }
  .dest, .hero-card, .btn { transition: none; }
}

/* reviews */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review-card { margin: 0; background: var(--surface-0); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.review-card__stars { color: #E8763C; letter-spacing: .12em; font-size: 1.05rem; }
.review-card blockquote { margin: 0; color: var(--ink-700); line-height: 1.6; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.review-card figcaption { display: flex; flex-direction: column; gap: 2px; margin-top: auto; }
.review-card figcaption span { font-size: .85rem; color: var(--ink-500); }
@media (max-width: 900px) { .reviews-grid { grid-template-columns: 1fr; } }

/* ---------- Header: floats over the hero card, nav in a notched tab (all public pages) ---------- */
.site-header { position: fixed; top: 14px; left: 14px; right: 14px; z-index: 40; margin: 0; border: 0; border-radius: 0; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; transition: top .3s ease, left .3s ease, right .3s ease, background .3s ease, box-shadow .3s ease; }
.site-header .wrap { max-width: none; padding: 0 36px; height: 86px; transition: height .3s ease; }
.site-header .brand img { filter: brightness(0) invert(1); height: 42px; }
.site-header .site-nav a { color: #D8E6E3; font-size: 15px; }
.site-header .site-nav a:hover, .site-header .site-nav a.is-active { color: #fff; }
.site-header .header-cta { margin-left: auto; }
.site-header .header-cta .btn { border-radius: 999px; }
.site-header .header-cta .btn--outline { border-color: rgba(250, 248, 245, .55); color: #FAF8F5; }
.site-header .header-cta .btn--outline:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .1); }
.site-header .header-cta .btn--primary { box-shadow: 0 8px 22px -8px rgba(232, 118, 60, .8); }
.site-header .lang-select { border-color: rgba(250, 248, 245, .3); }
.site-header .lang-select select { color: #EAF3F1; }
.site-header .lang-select select option { color: #1C2B2D; }
.site-header .lang-select__ico, .site-header .lang-select__caret { color: #D8E6E3; }
.site-header .nav-toggle-btn { color: #fff; }
.site-header .nav-toggle-btn:hover { background: rgba(255, 255, 255, .1); }
@media (min-width: 1181px) {
  .site-header .site-nav {
    position: absolute; left: 50%; top: -14px; transform: translateX(-50%); margin: 0;
    height: 86px; align-items: center; gap: 36px; padding: 14px 76px 0;
    background: #101A1B; clip-path: polygon(0 0, 100% 0, calc(100% - 34px) 100%, 34px 100%);
    transition: top .3s ease, height .3s ease, padding .3s ease, background .3s ease, clip-path .3s ease;
  }
  .site-header.is-scrolled .site-nav { top: 0; height: 72px; padding: 0 76px; background: rgba(16, 26, 27, 0); clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
}
/* Scrolled: the figure flattens into a straight full-width bar */
.site-header.is-scrolled { top: 0; left: 0; right: 0; background: rgba(16, 26, 27, .94); backdrop-filter: blur(10px); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .8); }
.site-header.is-scrolled .wrap { height: 72px; }
@media (max-width: 1180px) {
  .site-header .wrap { position: relative; gap: 12px; }
  .site-header .header-cta { display: flex; gap: 10px; }
  .site-header .header-cta .btn--primary, .site-header .header-cta .lang-select { display: none; }
  .site-header .nav-toggle-btn { display: inline-flex; margin-left: 0; width: 46px; height: 46px; border-radius: 50%; background: #101A1B; font-size: 20px; }
  .site-header.is-scrolled .nav-toggle-btn { background: rgba(255, 255, 255, .08); }
  .site-header .site-nav {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0; transform: none; clip-path: none; height: auto; margin: 0;
    display: flex; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px;
    background: #101A1B; border-radius: 26px; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .8);
    max-height: 0; overflow: hidden; opacity: 0; visibility: hidden; transition: max-height .25s ease, opacity .2s ease;
  }
  .site-header.is-scrolled .site-nav { top: calc(100% + 8px); height: auto; padding: 12px; margin: 0 14px; background: #101A1B; clip-path: none; }
  .site-header .nav-toggle-input:checked ~ .site-nav { max-height: 560px; opacity: 1; visibility: visible; }
  .site-header .site-nav { padding: 12px; gap: 4px; }
  .site-header .site-nav a:not(.btn) { padding: 14px 18px; border: 0; border-radius: 999px; font-size: 18px; }
  .site-header .site-nav a:not(.btn).is-active, .site-header .site-nav a:not(.btn):hover { background: rgba(250, 248, 245, .1); }
  .site-header .nav-mobile-cta { padding: 0 6px 6px; }
  .site-header .nav-mobile-cta { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
  .site-header .nav-mobile-cta .btn { width: 100%; justify-content: center; border-radius: 999px; }
  .site-header .nav-mobile-cta .btn--outline { color: #FAF8F5; border-color: rgba(250, 248, 245, .45); }
  .site-header .nav-mobile-cta .lang-select { display: flex; justify-content: center; align-self: stretch; }
}
@media (max-width: 640px) {
  .site-header { top: 8px; left: 8px; right: 8px; }
  .site-header .wrap { padding: 0 14px; height: 72px; }
  .site-header .brand img { height: 34px; }
  .site-header .header-cta .btn { padding: 10px 16px; font-size: 13px; }
}

/* ---------- Footer: two rounded cards + notched legal tab (all public pages) ---------- */
.site-footer { position: relative; padding: 14px 14px 14px; background: #151B1C; color: #9FB0AB; font-size: 15px; }
.footer-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.footer-card { display: flex; flex-direction: column; min-height: 400px; padding: 52px 56px 48px; border-radius: 34px; background: #1B2D2F; }
.footer-tagline { margin: 0 0 56px; font-size: 17px; color: #F6F3D5; }
.footer-links, .footer-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.site-footer h4 { margin: 0 0 22px; font-family: var(--font); font-size: 18px; font-weight: 500; letter-spacing: 0; text-transform: none; color: #F6F3D5; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 14px; font-size: 16px; line-height: 1.5; color: #9FB0AB; }
.site-footer a { color: #9FB0AB; }
.site-footer a:hover { color: #F6F3D5; text-decoration: none; }
.footer-card--main .social-row { margin-top: auto; padding-top: 32px; display: flex; gap: 12px; }
.footer-card--main .social-row a { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 1px solid #F6F3D5; border-radius: 12px; color: #F6F3D5; }
.footer-card--main .social-row svg { width: 20px; height: 20px; }
.footer-card--contact .brand { margin: auto 0 0 auto; padding-top: 32px; }
.footer-card--contact .brand img { height: 44px; }
.footer-legal { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); padding: 14px 36px; border-radius: 22px 22px 0 0; background: #151B1C; color: #9FB0AB; font-size: 14px; white-space: nowrap; }
@media (max-width: 1000px) {
  .footer-cards { grid-template-columns: 1fr; }
  .footer-card { min-height: 0; }
}
@media (max-width: 640px) {
  .footer-card { padding: 34px 26px 36px; border-radius: 26px; }
  .footer-links, .footer-contact { grid-template-columns: 1fr; }
  .footer-contact .footer-actions { margin-top: 12px; }
  .footer-legal { position: static; transform: none; padding: 18px 8px 4px; text-align: center; white-space: normal; }
}

.footer-actions { margin-top: 44px; }
.footer-contact .footer-actions { margin-top: 0; }
.footer-actions__row { display: flex; flex-wrap: wrap; gap: 12px; }
.site-footer .footer-actions .btn { border-radius: 999px; }
.site-footer .footer-actions .btn--primary { color: #fff; }
.site-footer .footer-actions .btn--outline { color: #F6F3D5; border-color: rgba(246, 243, 213, .5); }
.site-footer .footer-actions .btn--outline:hover { color: #F6F3D5; border-color: #F6F3D5; background: rgba(246, 243, 213, .08); }

.footer-card--main .footer-logo { margin: 0 0 48px; align-self: flex-start; }
.footer-card--main .footer-logo img { height: 44px; }

/* ---------- Dark theme for inner public pages (everything except home) ---------- */
body:not(.is-home) {
  --ink-900: #F6F3D5; --ink-800: #E6E5CC; --ink-700: #BCC8C3; --ink-500: #9FB0AB; --ink-400: #7F918C; --ink-300: #5F716C;
  --surface-0: #1B2D2F; --surface-1: #1B2D2F; --surface-2: #223A3C; --bg-warm: #162526;
  --line: rgba(246, 243, 213, .1); --line-strong: rgba(246, 243, 213, .22);
  --brand-700: #F6F3D5; --brand-600: #F6F3D5; --brand-100: rgba(246, 243, 213, .1); --brand-50: rgba(246, 243, 213, .06);
  --accent-tint: #F4B48E;
  background: #142223; color: var(--ink-700);
}
body:not(.is-home) a:hover { text-decoration: none; opacity: .85; }
body:not(.is-home) .page-hero { margin: 14px 14px 0; border-radius: 30px; padding: 150px 0 72px; background: radial-gradient(700px 400px at 85% 0%, rgba(232, 118, 60, .28), transparent 60%), linear-gradient(135deg, #083F44, #0D5C63); }
body:not(.is-home) .page-hero .wrap { position: relative; z-index: 1; }
body:not(.is-home) .page-hero h1 { color: #F6F3D5; }
body:not(.is-home) .page-hero .crumb a { color: inherit; }
body:not(.is-home) .section--alt::before { clip-path: none; margin: 0 14px; border-radius: 30px; background: #1A2B2D; }
body:not(.is-home) .vprops, body:not(.is-home) .vprop { background: #1B2D2F; }
body:not(.is-home) .vprop .ico { color: #F6F3D5; }
body:not(.is-home) .dest, body:not(.is-home) .review-card { background: #1B2D2F; border-color: rgba(246, 243, 213, .14); }
body:not(.is-home) .dest__img { color: #fff; }
body:not(.is-home) .cta-band { color: #fff; }
body:not(.is-home) .cta-band h2 { color: #fff; }
body:not(.is-home) .cta-band p { color: #FCE3D2; }
body:not(.is-home) .btn--primary { color: #fff; }
body:not(.is-home) .btn--outline { color: #F6F3D5; border-color: rgba(246, 243, 213, .35); }
body:not(.is-home) .btn--outline:hover { color: #fff; border-color: #F6F3D5; }
body:not(.is-home) .input, body:not(.is-home) .select, body:not(.is-home) .textarea { background: #1B2D2F; color: #F6F3D5; border-color: rgba(246, 243, 213, .22); }
body:not(.is-home) .legal .placeholder { background: #16282A; }
body:not(.is-home) .resp-card { background: #1B2D2F; }
body:not(.is-home) .resp-card__head { background: #0D5C63; }

/* ---------- Outlined principle cards (inner pages) ---------- */
body:not(.is-home) .sec-head, body:not(.is-home) .sec-head.center { max-width: 760px; margin-left: 0; margin-right: 0; text-align: left; margin-bottom: 52px; }
body:not(.is-home) .sec-head h2 { font-size: clamp(2rem, 2.4vw + 1rem, 3.2rem); line-height: 1.08; font-weight: 500; letter-spacing: -.015em; }
body:not(.is-home) .sec-head p { font-size: 18px; }
body:not(.is-home) .vprops, body:not(.is-home) .dest-grid { display: flex; flex-wrap: wrap; gap: 20px; border: 0; background: none; border-radius: 0; overflow: visible; }
body:not(.is-home) .vprop, body:not(.is-home) .dest {
  flex: 1 1 calc(33.333% - 20px); min-width: 280px; padding: 34px 40px 36px; border-radius: 36px;
  background: #1B2D2F; border: 1px solid rgba(246, 243, 213, .16); box-shadow: none; transform: none; overflow: visible;
}
body:not(.is-home) .vprop .ico { display: none; }
body:not(.is-home) .vprop h3, body:not(.is-home) .dest__img {
  display: flex; align-items: center; gap: 14px; height: auto; padding: 0; margin: 0 0 18px; background: none !important;
  font-family: var(--font); font-size: 21px; font-weight: 400; color: #F6F3D5;
}
body:not(.is-home) .vprop h3::before, body:not(.is-home) .dest__img::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #F6F3D5; flex-shrink: 0; }
body:not(.is-home) .vprop p, body:not(.is-home) .dest__body p { font-size: 17px; line-height: 1.65; color: #9FB0AB; margin: 0; }
body:not(.is-home) .dest__body { padding: 0; }
body:not(.is-home) .dest__body b { display: block; margin-bottom: 8px; font-weight: 500; color: #E6E5CC; }
body:not(.is-home) .dest:hover { box-shadow: none; border-color: rgba(246, 243, 213, .35); }

/* ---------- CTA band: same look as the home page CTA ---------- */
body:not(.is-home) .section--alt:has(.cta-band)::before { display: none; }
body:not(.is-home) .section--alt:has(.cta-band) { padding: 24px 0 110px; }
body:not(.is-home) .cta-band {
  position: relative; overflow: hidden; justify-content: space-between; gap: 32px;
  padding: 58px 60px; border-radius: 28px; color: #1C2B2D;
  background: linear-gradient(120deg, #F5995F 0%, #E8763C 55%, #DD6428 100%);
}
body:not(.is-home) .cta-band::before, body:not(.is-home) .cta-band::after { content: ""; position: absolute; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .35); pointer-events: none; }
body:not(.is-home) .cta-band::before { width: 360px; height: 360px; right: -80px; top: -140px; }
body:not(.is-home) .cta-band::after { width: 220px; height: 220px; right: 40px; top: -60px; }
body:not(.is-home) .cta-band > * { position: relative; z-index: 1; }
body:not(.is-home) .cta-band h2 { margin-bottom: 10px; color: #1C2B2D; font-size: clamp(1.8rem, 1.6vw + 1rem, 2.5rem); }
body:not(.is-home) .cta-band p { max-width: 520px; font-size: 16px; color: rgba(28, 43, 45, .85); }
body:not(.is-home) .cta-band .btn { flex-shrink: 0; margin-left: 0; color: #fff; background: #083F44; border-radius: 999px; padding: 17px 34px; box-shadow: 0 18px 30px -14px rgba(8, 63, 68, .9); }
body:not(.is-home) .cta-band .btn:hover { background: #052C30; opacity: 1; transform: translateY(-2px); }
@media (max-width: 640px) {
  body:not(.is-home) .cta-band { flex-direction: column; align-items: flex-start; padding: 38px 26px; border-radius: 22px; }
  body:not(.is-home) .cta-band .btn { width: 100%; justify-content: center; }
}

/* ---------- Page hero: centred title (inner pages) ---------- */
body:not(.is-home) .page-hero { text-align: center; padding: 160px 0 84px; }
body:not(.is-home) .page-hero .crumb { display: none; }
body:not(.is-home) .page-hero h1 { font-size: clamp(2.4rem, 3.4vw + 1rem, 4.2rem); font-weight: 500; letter-spacing: -.02em; margin-bottom: 14px; }
body:not(.is-home) .page-hero p { margin: 0 auto; font-size: 18px; color: #E8F1EE; }
.legal { padding-top: 56px; }

/* ---------- Contact form (UI only) ---------- */
.section--form { padding-top: 0; }
.contact-form { max-width: 940px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
body:not(.is-home) .contact-form .input, body:not(.is-home) .contact-form .textarea {
  width: 100%; padding: 30px 30px; font: inherit; font-size: 18px; line-height: 1.4; color: #F6F3D5;
  background: #1B2D2F; border: 1px solid rgba(246, 243, 213, .08); border-radius: 22px;
}
body:not(.is-home) .contact-form .textarea { min-height: 220px; resize: vertical; }
.contact-form .input::placeholder, .contact-form .textarea::placeholder { color: #9FB0AB; }
body:not(.is-home) .contact-form .input:focus, body:not(.is-home) .contact-form .textarea:focus { outline: none; border-color: rgba(246, 243, 213, .45); }
.contact-form__submit { margin-top: 8px; padding: 24px; font: inherit; font-size: 19px; font-weight: 500; color: #0A1112; background: #F6F3D5; border: 0; border-radius: 22px; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.contact-form__submit:hover { background: #fff; transform: translateY(-2px); }
@media (max-width: 640px) { .contact-form__row { grid-template-columns: 1fr; } }

/* ---------- Contact info cards (pinwheel icons) ---------- */
body:not(.is-home) .vprops--contact .vprop { background: #1B2D2F; border-color: rgba(246, 243, 213, .08); padding: 38px 44px 42px; }
.vprop__head { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }
.vprop__icon { width: 46px; height: 46px; flex-shrink: 0; color: #F6F3D5; }
body:not(.is-home) .vprops--contact .vprop__head h3 { margin: 0; font-size: 26px; font-weight: 400; }
body:not(.is-home) .vprops--contact .vprop__head h3::before { display: none; }
body:not(.is-home) .vprops--contact .vprop p { font-size: 18px; margin-bottom: 6px; }
body:not(.is-home) .vprops--contact .vprop a { color: #CFD8D3; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- About: "Why partners choose" + "How we operate" polish ---------- */
body:not(.is-home) .vprops--why { counter-reset: why; gap: 22px; }
body:not(.is-home) .vprops--why .vprop {
  counter-increment: why; position: relative; overflow: hidden; padding: 40px 38px 42px;
  background: radial-gradient(360px 220px at 100% 0%, rgba(63, 167, 158, .18), transparent 70%), linear-gradient(170deg, #1F3436, #1B2D2F 70%);
  transition: transform .3s ease, border-color .3s ease;
}
body:not(.is-home) .vprops--why .vprop::before {
  content: counter(why, decimal-leading-zero); display: block; margin-bottom: 38px;
  font-family: var(--font-display); font-size: 64px; line-height: 1; font-weight: 400; letter-spacing: -.02em;
  background: linear-gradient(135deg, #F6F3D5, rgba(246, 243, 213, .15)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
body:not(.is-home) .vprops--why .vprop:hover { transform: translateY(-6px); border-color: rgba(232, 118, 60, .55); }
body:not(.is-home) .vprops--why .vprop h3 { display: block; font-size: 24px; line-height: 1.25; margin-bottom: 14px; }
body:not(.is-home) .vprops--why .vprop h3::before { display: none; }

body:not(.is-home) .dest-grid--roles { gap: 22px; counter-reset: role; }
body:not(.is-home) .dest-grid--roles .dest {
  position: relative; overflow: hidden; padding: 40px 38px 42px; counter-increment: role;
  background: radial-gradient(380px 240px at 0% 0%, var(--role, rgba(63, 167, 158, .22)), transparent 70%), #1B2D2F;
  transition: transform .3s ease, border-color .3s ease;
}
body:not(.is-home) .dest-grid--roles .dest:nth-child(1) { --role: rgba(63, 167, 158, .28); --role-solid: #3FA79E; }
body:not(.is-home) .dest-grid--roles .dest:nth-child(2) { --role: rgba(232, 118, 60, .30); --role-solid: #E8763C; }
body:not(.is-home) .dest-grid--roles .dest:nth-child(3) { --role: rgba(232, 220, 200, .20); --role-solid: #E8DCC8; }
body:not(.is-home) .dest-grid--roles .dest:hover { transform: translateY(-6px); border-color: var(--role-solid); }
body:not(.is-home) .dest-grid--roles .dest__img {
  display: inline-flex; margin: 0 0 28px; padding: 8px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: #0A1112; background: var(--role-solid) !important;
}
body:not(.is-home) .dest-grid--roles .dest__img::before { display: none; }
body:not(.is-home) .dest-grid--roles .dest__body b { font-family: var(--font-display); font-size: 26px; line-height: 1.2; font-weight: 400; color: #F6F3D5; margin-bottom: 14px; }
body:not(.is-home) .dest-grid--roles .dest:not(:last-child)::after {
  content: "→"; position: absolute; right: 22px; bottom: 18px; font-size: 22px; color: var(--role-solid); opacity: .8;
}
@media (max-width: 1000px) { body:not(.is-home) .dest-grid--roles .dest:not(:last-child)::after { display: none; } }

/* Header / nav Agent Login: filled cream pill, distinct from coral Join as Partner */
.site-header .header-cta .btn--outline,
.site-header .nav-mobile-cta .btn--outline { background: #F6F3D5; border-color: #F6F3D5; color: #1C2B2D; box-shadow: 0 8px 22px -10px rgba(246, 243, 213, .55); }
.site-header .header-cta .btn--outline:hover,
.site-header .nav-mobile-cta .btn--outline:hover { background: #fff; border-color: #fff; color: #0D5C63; }

/* ---------- Sanatoriums listing ---------- */
.san-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.san-card { padding: 24px 24px 30px; border-radius: 28px; background: #1B2D2F; border: 1px solid rgba(246, 243, 213, .12); transition: background .3s ease, transform .3s ease; }
.san-card:hover { background: #243A3C; transform: translateY(-4px); }
.san-card__img { aspect-ratio: 1 / .96; border-radius: 20px; overflow: hidden; background: #243A3C; }
.san-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.san-card:hover .san-card__img img { transform: scale(1.04); }
.san-card h3 { margin: 24px 4px 0; font-family: var(--font); font-size: 24px; font-weight: 500; line-height: 1.25; color: #F6F3D5; }
.san-empty { text-align: center; color: #9FB0AB; font-size: 17px; }
.san-pager { display: flex; justify-content: center; margin-top: 40px; }
@media (max-width: 1000px) { .san-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .san-grid { grid-template-columns: 1fr; gap: 14px; } .san-card { padding: 16px 16px 22px; border-radius: 24px; } .san-card h3 { font-size: 21px; margin-top: 18px; } }

.reviews-filter { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; margin-bottom: 32px; }
.reviews-filter select { padding: 11px 14px; border: 1px solid rgba(246, 243, 213, .22); border-radius: 12px; background: #1B2D2F; color: #F6F3D5; font: inherit; min-width: 190px; }
/* custom select arrow with proper inset (dark pages) */
.reviews-filter select, body:not(.is-home) select.select {
  -webkit-appearance: none; appearance: none; cursor: pointer; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239FB0AB' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 14px;
}
.reviews-filter select option { background: #1B2D2F; color: #F6F3D5; }
.reviews-filter__clear { color: #F4B48E; font-weight: 600; text-decoration: none; }
@media (max-width: 640px) {
  .reviews-filter { flex-direction: column; align-items: stretch; gap: 10px; }
  .reviews-filter select { width: 100%; min-width: 0; }
  .reviews-filter__clear { text-align: center; padding: 4px 0; }
  .review-card { padding: 20px; }
}

/* ---------- Sanatorium detail ---------- */
a.san-card { display: block; text-decoration: none; color: inherit; }
.sd-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.sd-chip { padding: 7px 14px; border-radius: 999px; background: rgba(246, 243, 213, .14); color: #F6F3D5; font-size: 14px; }
.sd-gallery { margin-bottom: 36px; }
.sd-gallery__main { aspect-ratio: 16 / 7; border-radius: 28px; overflow: hidden; background: #243A3C; }
.sd-gallery__main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sd-gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.sd-thumb { flex: 0 0 110px; height: 76px; padding: 0; border: 2px solid transparent; border-radius: 14px; overflow: hidden; background: #243A3C; cursor: pointer; opacity: .7; transition: opacity .2s, border-color .2s; }
.sd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sd-thumb:hover, .sd-thumb.is-active { opacity: 1; }
.sd-thumb.is-active { border-color: #E8763C; }
.sd-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.sd-lead { margin: 0 0 32px; font-size: 19px; line-height: 1.7; color: #E6E5CC; }
.sd-block { margin-bottom: 40px; }
.sd-block h2 { margin: 0 0 18px; font-size: 26px; font-weight: 500; color: #F6F3D5; }
.sd-tags { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.sd-tags li { padding: 9px 16px; border-radius: 999px; background: #1B2D2F; border: 1px solid rgba(246, 243, 213, .14); color: #E6E5CC; font-size: 15px; }
.sd-tags li::before { content: "✓"; color: #E8763C; margin-right: 8px; font-weight: 700; }
.sd-rooms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sd-room { background: #1B2D2F; border: 1px solid rgba(246, 243, 213, .12); border-radius: 24px; overflow: hidden; }
.sd-room__img { aspect-ratio: 16 / 9; background: #243A3C; }
.sd-room__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sd-room__body { padding: 18px 20px 22px; }
.sd-room__body h3 { margin: 0 0 10px; font-size: 19px; font-weight: 500; color: #F6F3D5; }
.sd-room__facts { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: #BCC8C3; }
.sd-room__body p { margin: 12px 0 0; font-size: 15px; line-height: 1.6; color: #9FB0AB; }
.sd-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sd-list__item { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 18px; background: #1B2D2F; border: 1px solid rgba(246, 243, 213, .12); }
.sd-list__item b { color: #F6F3D5; font-weight: 500; }
.sd-list__item span { font-size: 14px; line-height: 1.55; color: #9FB0AB; }
.sd-prose { font-size: 17px; line-height: 1.75; color: #BCC8C3; }
.sd-prose p { margin: 0 0 14px; }
.sd-prose ul, .sd-prose ol { padding-left: 22px; margin: 0 0 14px; }
.sd-prose a { color: #F4B48E; text-decoration: underline; }
.sd-prose h2, .sd-prose h3, .sd-prose h4 { color: #F6F3D5; margin: 20px 0 10px; font-size: 20px; }
.sd-side { position: sticky; top: 96px; }
.sd-card { padding: 26px; border-radius: 26px; background: #1B2D2F; border: 1px solid rgba(246, 243, 213, .14); }
.sd-card h3 { margin: 0 0 16px; font-size: 20px; font-weight: 500; color: #F6F3D5; }
.sd-card dl { margin: 0 0 20px; display: grid; gap: 4px; }
.sd-card dt { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #7F918C; margin-top: 10px; }
.sd-card dd { margin: 0; color: #E6E5CC; font-size: 15px; line-height: 1.5; }
.sd-btn { display: block; width: 100%; text-align: center; margin-top: 10px; box-sizing: border-box; }
.sd-note { margin: 14px 0 0; font-size: 13px; line-height: 1.5; color: #9FB0AB; text-align: center; }
@media (max-width: 960px) {
  .sd-layout { grid-template-columns: minmax(0, 1fr); }
  .sd-side { position: static; order: -1; }
}
@media (max-width: 640px) {
  .sd-gallery__main { aspect-ratio: 4 / 3; border-radius: 22px; }
  .sd-thumb { flex-basis: 84px; height: 60px; }
  .sd-rooms, .sd-list { grid-template-columns: 1fr; }
  .sd-meta { gap: 8px; }
  .sd-chip { font-size: 13px; padding: 6px 12px; }
  .sd-slide { flex-basis: 86%; }
  .sd-slider__nav { display: none; }
  .sd-lead { font-size: 17px; }
  .sd-block h2 { font-size: 22px; }
  .sd-card { padding: 20px; }
}

.sd-block__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.sd-block__head h2 { margin: 0; }
.sd-slider__nav { display: flex; gap: 8px; }
.sd-slider__btn { width: 44px; height: 40px; border: 1px solid rgba(246, 243, 213, .2); border-radius: 12px; background: #1B2D2F; color: #F6F3D5; font-size: 22px; line-height: 1; cursor: pointer; transition: background .2s, border-color .2s; }
.sd-slider__btn:hover { background: #E8763C; border-color: #E8763C; }
.sd-slider { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.sd-slider::-webkit-scrollbar { display: none; }
.sd-slide { flex: 0 0 calc((100% - 16px) / 2); scroll-snap-align: start; box-sizing: border-box; }
.sd-card, .sd-room, .sd-list__item, .sd-slide { min-width: 0; }
.sd-prose, .sd-lead { overflow-wrap: anywhere; }
.sd-prose img { max-width: 100%; height: auto; }

.sd, .sd-main, .sd-side, .sd-gallery { min-width: 0; max-width: 100%; }
.sd { overflow-x: clip; }

/* Mobile overrides for the sanatorium detail extras (must stay after the base rules above) */
@media (max-width: 640px) {
  .sd-slide { flex-basis: 86%; }
  .sd-slider__nav { display: none; }
  .sd-block__head { margin-bottom: 14px; }
}

/* Hamburger icon drawn with CSS so it is exactly centred in the circle (the ☰ glyph sits low in the font) */
.nav-toggle-btn { font-size: 0 !important; line-height: 0; position: relative; padding: 0; }
.nav-toggle-btn::before { content: ""; display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; }

/* ---------- Mobile / tablet: compact floating header + rounder, tighter banner ---------- */
@media (max-width: 1180px) {
  .site-header { top: 8px; left: 8px; right: 8px; }
  .site-header .wrap { padding: 0 24px; height: 80px; }
  .site-header .brand img { height: 38px; }
  body .hm-hero, body:not(.is-home) .page-hero { margin: 8px 8px 0; border-radius: 38px; }
  body:not(.is-home) .page-hero { padding-top: 140px; }
}
@media (max-width: 640px) {
  .site-header .wrap { padding: 0 20px; height: 72px; }
  body .hm-hero, body:not(.is-home) .page-hero { border-radius: 32px; }
  body:not(.is-home) .page-hero { padding: 120px 0 60px; }
}

/* Rounder banner corners (override of the values above) */
@media (max-width: 1180px) {
  body .hm-hero, body:not(.is-home) .page-hero { border-radius: 60px; }
}
@media (max-width: 640px) {
  body .hm-hero, body:not(.is-home) .page-hero { border-radius: 52px; }
}

/* Crisp banner edge: a thin light outline + isolated clipping so the corners read as a border, not a soft shadow */
body .hm-hero, body:not(.is-home) .page-hero {
  border: 1px solid rgba(246, 243, 213, .28);
  box-shadow: none;
  isolation: isolate;
  overflow: hidden;
  background-clip: padding-box;
}

/* Group tour cards (reuse .san-card) */
.tour-card .san-card__img { position: relative; }
.tour-card__tag { position: absolute; top: 14px; left: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(16, 26, 27, .78); color: #F6F3D5; font-size: 13px; backdrop-filter: blur(4px); }
.tour-card__meta { list-style: none; margin: 14px 4px 0; padding: 0; display: grid; gap: 6px; font-size: 15px; color: #BCC8C3; }
.tour-card:hover { transform: none; }
.tour-card { display: flex; flex-direction: column; }
.tour-card__btn { margin-top: 20px; width: 100%; box-sizing: border-box; justify-content: center; text-align: center; border-radius: 999px; color: #fff; }
/* Group tour cards: pin the button to the bottom so all buttons line up */
.tour-card { height: 100%; box-sizing: border-box; }
.tour-card__meta { margin-bottom: 22px; }
.tour-card .tour-card__btn { margin-top: auto; }

/* ---------- Footer: single card (agent panel + 4 columns); bottom copyright tab kept ---------- */
.footer-box { padding: 52px 56px 64px; border-radius: 34px; background: #1B2D2F; }
.footer-box__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid rgba(246, 243, 213, .1); }
.footer-box__brand .footer-logo { display: inline-block; margin: 0 0 18px; }
.footer-box__brand .footer-logo img { height: 44px; }
.footer-box__brand .footer-tagline { margin: 0; font-size: 16px; color: #BCC8C3; }
.footer-agent { display: flex; align-items: center; gap: 28px; padding: 20px 24px; border-radius: 22px; background: rgba(246, 243, 213, .06); }
.footer-agent b { display: block; font-size: 17px; font-weight: 600; color: #F6F3D5; }
.footer-agent span { font-size: 14px; color: #9FB0AB; }
.footer-agent .btn { flex-shrink: 0; border-radius: 999px; color: #fff; white-space: nowrap; }
.footer-box__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-top: 40px; }
.footer-box__cols h4 { margin-bottom: 20px; }
.footer-box__cols .social-row { margin-top: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.footer-box__cols .social-row a { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 1px solid #F6F3D5; border-radius: 12px; color: #F6F3D5; background: rgba(246, 243, 213, .06); }
.footer-box__cols .social-row a:hover { background: #E8763C; border-color: #E8763C; color: #fff; }
.footer-box__cols .social-row svg { width: 20px; height: 20px; }
@media (max-width: 960px) {
  .footer-box__top { flex-direction: column; align-items: stretch; }
  .footer-box__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .footer-box { padding: 34px 24px 28px; border-radius: 26px; }
  .footer-agent { flex-direction: column; align-items: stretch; gap: 16px; }
  .footer-agent .btn { text-align: center; justify-content: center; }
  .footer-box__cols { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Footer: tablet & mobile polish ---------- */
@media (max-width: 960px) {
  .footer-box { padding: 40px 36px 36px; }
  .footer-box__top { gap: 26px; padding-bottom: 32px; }
  .footer-box__brand .footer-logo { margin-bottom: 14px; }
  .footer-box__brand .footer-logo img { height: 38px; }
  .footer-box__brand .footer-tagline { font-size: 15px; line-height: 1.5; max-width: 46ch; }
  .footer-agent { justify-content: space-between; padding: 18px 22px; border-radius: 20px; }
  .footer-agent b { font-size: 16px; }
  .footer-agent span { display: block; margin-top: 4px; font-size: 14px; line-height: 1.45; }
  .footer-box__cols { gap: 30px 32px; padding-top: 32px; }
  .footer-box__cols h4 { margin-bottom: 14px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #F6F3D5; opacity: .9; }
  .footer-box__cols li { margin-bottom: 10px; font-size: 15px; line-height: 1.4; }
  .footer-box__cols .social-row a { width: 42px; height: 42px; border-radius: 12px; }
  .site-footer .footer-legal { position: static; transform: none; padding: 18px 8px 6px; text-align: center; white-space: normal; font-size: 13px; background: transparent; }
}
@media (max-width: 640px) {
  .footer-box { padding: 30px 22px 28px; }
  .footer-box__brand .footer-logo img { height: 34px; }
  .footer-agent { flex-direction: column; align-items: stretch; gap: 14px; padding: 18px; }
  .footer-agent .btn { width: 100%; }
  .footer-box__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 20px; padding-top: 28px; }
  .footer-box__cols > div:last-child { grid-column: 1 / -1; }
  .footer-box__cols li { font-size: 14px; overflow-wrap: anywhere; }
}

/* Floating back-to-top, chatbot-style */
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 60; display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; padding: 0; border: 0; border-radius: 50%; background: #E8763C; color: #fff; cursor: pointer; box-shadow: 0 14px 30px -10px rgba(232, 118, 60, .8), 0 0 0 4px rgba(20, 34, 35, .6); transition: transform .2s ease, background .2s ease; }
.to-top[hidden] { display: none; }
.to-top:hover { transform: translateY(-3px); background: #F0864F; }
@media (max-width: 640px) { .to-top { right: 14px; bottom: 14px; width: 48px; height: 48px; } }

/* ---------- Group tour cards: tablet & mobile polish ---------- */
@media (max-width: 1000px) {
  .san-grid { gap: 16px; }
  .tour-card { padding: 16px 16px 20px; border-radius: 26px; }
  .tour-card .san-card__img { aspect-ratio: 16 / 10; border-radius: 18px; }
  .tour-card .san-card__img img { object-fit: contain; padding: 6%; box-sizing: border-box; }
  .tour-card__tag { top: 12px; left: 12px; padding: 5px 12px; font-size: 12px; letter-spacing: .02em; }
  .tour-card h3 { margin: 18px 4px 0; font-size: 20px; line-height: 1.25; }
  .tour-card__meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 4px 20px; }
  .tour-card__meta li { padding: 6px 12px; border-radius: 999px; background: rgba(246, 243, 213, .07); border: 1px solid rgba(246, 243, 213, .1); font-size: 13px; line-height: 1.3; color: #D5DDD9; }
  .tour-card__btn { padding: 13px 20px; }
  /* odd last card spans the row instead of leaving a hole */
  .tour-card:last-child:nth-child(odd) { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); column-gap: 22px; align-items: center; }
  .tour-card:last-child:nth-child(odd) .san-card__img { grid-row: 1 / span 3; height: 100%; aspect-ratio: auto; min-height: 220px; }
  .tour-card:last-child:nth-child(odd) h3 { margin-top: 4px; align-self: end; }
  .tour-card:last-child:nth-child(odd) .tour-card__meta { align-self: start; }
  .tour-card:last-child:nth-child(odd) .tour-card__btn { align-self: end; margin-top: 0; }
}
@media (max-width: 640px) {
  .san-grid { gap: 14px; }
  .tour-card, .tour-card:last-child:nth-child(odd) { display: flex; flex-direction: column; padding: 14px 14px 18px; border-radius: 24px; }
  .tour-card .san-card__img, .tour-card:last-child:nth-child(odd) .san-card__img { aspect-ratio: 16 / 9; height: auto; min-height: 0; border-radius: 16px; }
  .tour-card h3 { font-size: 19px; margin-top: 16px; }
  .tour-card__meta { margin: 12px 4px 18px; }
}

/* Sanatoriums list: 3 per row, compact */
.san-grid--compact { grid-template-columns: repeat(3, 1fr); gap: 20px; }
.san-grid--compact .san-card { padding: 14px 14px 20px; border-radius: 24px; }
.san-grid--compact .san-card__img { aspect-ratio: 16 / 11; border-radius: 18px; }
.san-grid--compact .san-card h3 { margin: 16px 6px 0; font-size: 18px; line-height: 1.3; font-weight: 500; }
.san-card__desc { margin: 8px 6px 0; font-size: 14px; line-height: 1.55; color: #9FB0AB; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
@media (max-width: 1000px) { .san-grid--compact { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .san-grid--compact { grid-template-columns: 1fr; gap: 14px; } .san-grid--compact .san-card h3 { font-size: 17px; } }

/* Group tours (desktop): smaller cards like the sanatoriums list */
@media (min-width: 1001px) {
  .tour-card.san-card { padding: 14px 14px 20px; border-radius: 24px; }
  .tour-card .san-card__img { aspect-ratio: 16 / 11; border-radius: 18px; }
  .tour-card.san-card h3 { margin: 16px 6px 0; font-size: 18px; line-height: 1.3; }
  .tour-card__meta { margin: 10px 6px 16px; font-size: 14px; gap: 4px; }
  .tour-card__tag { top: 10px; left: 10px; padding: 4px 10px; font-size: 12px; }
  .tour-card .tour-card__btn { padding: 11px 18px; font-size: 15px; }
}

/* header phone from Admin → Settings (key_phone_header) */
.site-header .header-phone { font-weight: 600; font-size: .92rem; color: #FAF8F5; white-space: nowrap; opacity: .92; }
.site-header .header-phone:hover { opacity: 1; }
