/* DiviStay – pastel theme taken from the logo: navy ink, sage, peach on cream */
:root {
  --bg: #FBF6EF;
  --bg-2: #F5EDE2;
  --surface: #FFFDF9;
  --ink: #253447;
  --muted: #626D79;
  --line: #EDE3D6;
  --sage: #8FA48D;
  --sage-deep: #5C775B;
  --sage-soft: #E5EDE2;
  --peach: #E2AE88;
  --peach-deep: #9A5F37;
  --peach-soft: #FAE8DA;
  --blush: #F4DCD3;
  --sky-soft: #E3EAF2;
  --ok: #3F7651;
  --ok-soft: #DFF0E3;
  --err: #A8473B;
  --err-soft: #FBE4DF;
  --warn-soft: #FFF0D6;
  --warn: #84590C;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 18px 44px rgba(37, 52, 71, .10), 0 3px 10px rgba(37, 52, 71, .05);
  --shadow-sm: 0 4px 14px rgba(37, 52, 71, .07);
  --shadow-lift: 0 26px 60px rgba(37, 52, 71, .16), 0 6px 16px rgba(37, 52, 71, .07);
  --font-display: "Fredoka", "Varela Round", "Arial Rounded MT Bold", sans-serif;
  --font-ui: "Rubik", "Segoe UI", system-ui, sans-serif;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease: cubic-bezier(.22, .8, .3, 1);
  --field: #FFFFFF;
  --on-ink: #FFFFFF;
  --primary-hover: #31445D;
  --info: #3D5A80;
  --cover-a: #DCEAF0; --cover-b: #F3E7D3; --cover-c: #DDEFEA; --cover-d: #E6E9F4;
  color-scheme: light;
}

/* ---------- dark mode: deep navy from the logo, the same pastels made softer ---------- */
:root[data-theme="dark"] {
  --bg: #1A2230;
  --bg-2: #222C3C;
  --surface: #243042;
  --ink: #F3EDE4;
  --muted: #A9B3BF;
  --line: #34425A;
  --sage: #9DB59A;
  --sage-deep: #B9D2B5;
  --sage-soft: #2B3A35;
  --peach: #E9B794;
  --peach-deep: #F0B48A;
  --peach-soft: #3B302B;
  --blush: #3D2E33;
  --sky-soft: #26344A;
  --ok: #8FD3A4;
  --ok-soft: #1F3A2B;
  --err: #FF9C8C;
  --err-soft: #432826;
  --warn-soft: #3F3420;
  --warn: #F2CB7A;
  --field: #1E2838;
  --on-ink: #1A2230;
  --primary-hover: #FFFFFF;
  --info: #A9C4EA;
  --shadow: 0 18px 44px rgba(0, 0, 0, .40), 0 3px 10px rgba(0, 0, 0, .25);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, .30);
  --shadow-lift: 0 26px 60px rgba(0, 0, 0, .50), 0 6px 16px rgba(0, 0, 0, .3);
  --cover-a: #23394A; --cover-b: #3A3328; --cover-c: #1F3C3A; --cover-d: #2A3046;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  font-family: var(--font-ui); color: var(--ink); background: var(--bg); line-height: 1.55; font-size: .97rem;
  min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden;
}
main { flex: 1; }
a { color: var(--sage-deep); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .4em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.12rem; }
.wrap { width: min(1100px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(580px, 100% - 32px); }
.page { padding: 30px 0 56px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.hint { color: var(--muted); font-size: .9rem; margin: .5em 0 0; }
::selection { background: var(--peach-soft); }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 48px; height: auto; transition: transform .5s var(--spring); }
.brand:hover img { transform: rotate(-6deg) scale(1.08); }
.wordmark { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: -.02em; }
.wordmark .divi { color: var(--ink); }
.wordmark .stay { color: var(--sage); }
.tagline { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* ---------- footer ---------- */
.footer { color: var(--muted); font-size: .86rem; padding: 26px 0 34px; margin-top: 24px; border-top: 1px solid var(--line); }
.footer .wrap { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer img { width: 34px; opacity: .9; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 46px 0 70px; overflow: hidden; isolation: isolate; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 700; }
.hero h1 .hl { color: var(--sage-deep); position: relative; white-space: nowrap; }
.hero h1 .hl::after {
  content: ""; position: absolute; inset-inline: -4px; bottom: .06em; height: .32em; border-radius: 99px;
  background: var(--peach-soft); z-index: -1; transform-origin: left; animation: grow 1s .6s var(--ease) both;
}
.lead { max-width: 560px; color: var(--muted); font-size: 1.06rem; }
.hero-art { position: relative; display: grid; place-items: center; min-height: 320px; }
.hero-art img { width: min(360px, 100%); position: relative; z-index: 2; animation: float 6s ease-in-out infinite; filter: drop-shadow(0 22px 30px rgba(37, 52, 71, .13)); }
.blob { position: absolute; border-radius: 50%; filter: blur(2px); z-index: -1; opacity: .75; animation: drift 14s ease-in-out infinite alternate; }
.blob.b1 { width: 340px; height: 340px; background: var(--sage-soft); top: -60px; right: -80px; }
.blob.b2 { width: 230px; height: 230px; background: var(--peach-soft); bottom: 10px; right: 26%; animation-duration: 17s; }
.blob.b3 { width: 180px; height: 180px; background: var(--blush); top: 40px; left: -70px; animation-duration: 20s; }
.hero-art .ring { position: absolute; width: 82%; aspect-ratio: 1; border-radius: 50%; border: 2px dashed color-mix(in srgb, var(--sage) 40%, transparent); animation: spin 40s linear infinite; z-index: 1; }
.chip-float {
  position: absolute; z-index: 3; background: var(--surface); border-radius: 999px; padding: 8px 14px; box-shadow: var(--shadow);
  font-weight: 600; font-size: .86rem; display: flex; align-items: center; gap: 6px; animation: float 5s ease-in-out infinite;
}
.chip-float.c1 { top: 12%; left: 0; animation-delay: -1.5s; }
.chip-float.c2 { bottom: 10%; right: 0; animation-delay: -3s; }
.chip-float .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 var(--ok); animation: ping 2s infinite; }

.search {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-top: 26px;
  background: var(--surface); padding: 16px; border-radius: var(--radius); box-shadow: var(--shadow);
}

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: -26px auto 40px; position: relative; z-index: 2; }
.step { background: var(--surface); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); transition: transform .35s var(--spring), box-shadow .35s; }
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.step .ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 16px; font-size: 1.35rem; margin-bottom: 10px; }
.step:nth-child(1) .ic { background: var(--sage-soft); }
.step:nth-child(2) .ic { background: var(--peach-soft); }
.step:nth-child(3) .ic { background: var(--sky-soft); }
.step:nth-child(4) .ic { background: var(--blush); }
.step h3 { margin: 0 0 4px; }
.step p { margin: 0; color: var(--muted); font-size: .92rem; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }

/* ---------- cards & grids ---------- */
.card { background: var(--surface); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); margin-bottom: 18px; border: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.card.hotel-card { padding: 0; }
.hotel-card { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; overflow: hidden; transition: transform .4s var(--spring), box-shadow .4s; }
.hotel-card:hover { transform: translateY(-8px) rotate(-.4deg); box-shadow: var(--shadow-lift); }
.hotel-card .cover { height: 118px; position: relative; display: grid; place-items: center; font-size: 3rem; background: linear-gradient(135deg, var(--sage-soft), var(--peach-soft)); overflow: hidden; }
.hotel-card .cover::before { content: "🏨"; transition: transform .5s var(--spring); }
.hotel-card:hover .cover::before { transform: scale(1.18) rotate(-8deg); }
.hotel-card .cover::after { content: ""; position: absolute; width: 140px; height: 140px; border-radius: 50%; background: rgba(255, 255, 255, .35); right: -40px; top: -50px; }
.hotel-card[data-city="Tel Aviv"] .cover { background: linear-gradient(135deg, var(--cover-a), var(--peach-soft)); }
.hotel-card[data-city="Tel Aviv"] .cover::before { content: "🌊"; }
.hotel-card[data-city="Jerusalem"] .cover { background: linear-gradient(135deg, var(--cover-b), var(--blush)); }
.hotel-card[data-city="Jerusalem"] .cover::before { content: "🏛️"; }
.hotel-card[data-city="Eilat"] .cover { background: linear-gradient(135deg, var(--peach-soft), var(--cover-c)); }
.hotel-card[data-city="Eilat"] .cover::before { content: "🐠"; }
.hotel-card[data-city="Haifa"] .cover { background: linear-gradient(135deg, var(--sage-soft), var(--cover-d)); }
.hotel-card[data-city="Haifa"] .cover::before { content: "🌿"; }
.hotel-card .body { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.hotel-card .body p { margin: .2em 0; }
.hotel-card .btn { margin-top: auto; align-self: flex-start; }
.hotel-city { text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 700; color: var(--peach-deep); }
.price { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--ink); }
.empty { color: var(--muted); }
.back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; text-decoration: none; font-weight: 600; transition: gap .25s; }
.back:hover { gap: 10px; }

/* ---------- forms ---------- */
label { display: grid; gap: 6px; font-weight: 600; font-size: .88rem; }
input, select {
  font: inherit; font-weight: 400; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--field); color: var(--ink); width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
input:hover, select:hover { border-color: color-mix(in srgb, var(--sage) 50%, var(--line)); }
input:focus, select:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sage) 22%, transparent); }
button:focus-visible, a:focus-visible { outline: 3px solid color-mix(in srgb, var(--sage) 50%, transparent); outline-offset: 2px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
form.card > label, form.card > .row3 { margin-bottom: 14px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
  padding: 11px 18px; border-radius: 999px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
  transition: transform .3s var(--spring), box-shadow .3s, background .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); border-color: var(--sage); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0) scale(.97); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: var(--on-ink); position: relative; overflow: hidden; }
.btn.primary:hover { background: var(--primary-hover); box-shadow: 0 10px 24px rgba(37, 52, 71, .25); }
.btn.primary::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .22) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn.primary:hover::after { transform: translateX(120%); }
.btn.sage { background: var(--sage); border-color: var(--sage); color: var(--on-ink); }
.btn.ghost { background: transparent; border-style: dashed; }
.btn.danger { color: var(--err); border-color: color-mix(in srgb, var(--err) 35%, var(--surface)); }
.btn.small { padding: 6px 12px; font-size: .84rem; }
.btn.big { width: 100%; padding: 15px; font-size: 1.06rem; }

h2 .num {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--sage-soft); color: var(--sage-deep);
  font-size: .95rem; margin-inline-end: 8px; vertical-align: 2px;
}
.rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.room {
  display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 16px; padding: 14px; cursor: pointer; font-weight: 400;
  transition: transform .3s var(--spring), border-color .2s, background .2s, box-shadow .3s;
}
.room:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.room:has(input:checked) { border-color: var(--sage); background: color-mix(in srgb, var(--sage-soft) 60%, var(--surface)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sage) 14%, transparent); }
.room:has(input:checked) .room-icon { animation: pop .45s var(--spring); background: var(--sage); color: #fff; }
.room input { position: absolute; opacity: 0; pointer-events: none; }
.room-icon { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--peach-soft); font-size: 1.15rem; transition: background .25s; }
.room-body { display: grid; gap: 2px; }
.total-line { margin: 16px 0 0; padding: 12px 16px; border-radius: 14px; background: var(--bg-2); display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.total-line strong { font-family: var(--font-display); font-size: 1.2rem; }
.bump { animation: bump .4s var(--spring); }

.split-options { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); }
.split {
  display: flex; gap: 10px; border: 1.5px solid var(--line); border-radius: 16px; padding: 14px; cursor: pointer; font-weight: 400;
  transition: transform .3s var(--spring), border-color .2s, background .2s;
}
.split:hover { transform: translateY(-3px); }
.split:has(input:checked) { border-color: var(--peach); background: color-mix(in srgb, var(--peach-soft) 70%, var(--surface)); }
.split input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--peach-deep); flex: none; }
.split span { display: grid; gap: 2px; }

.members { display: grid; gap: 10px; margin: 14px 0; }
.member-row { display: grid; grid-template-columns: 1fr 1.3fr 36px; gap: 10px; position: relative; align-items: center; animation: slideIn .4s var(--ease) both; }
.member-row[hidden] { display: none; }
.col-room, .col-amount { display: none; }
form.show-room .member-row { grid-template-columns: 1fr 1.3fr 1fr 36px; }
form.show-room .col-room { display: block; animation: fadeIn .3s both; }
form.show-amount .member-row { grid-template-columns: 1fr 1.3fr .7fr 36px; }
form.show-amount .col-amount { display: block; animation: fadeIn .3s both; }

.alert { border-radius: 16px; padding: 14px 18px; margin-bottom: 18px; animation: drop .5s var(--spring) both; }
.alert.error { background: var(--err-soft); color: var(--err); }
.alert.success { background: var(--ok-soft); color: var(--ok); }

/* ---------- dashboard ---------- */
.dash-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.status { border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: .9rem; background: var(--bg-2); display: inline-flex; align-items: center; gap: 8px; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.st-collecting_payments { background: var(--warn-soft); color: var(--warn); }
.st-collecting_payments::before, .st-awaiting_hotel_retry::before, .st-fully_funded::before { animation: ping 1.8s infinite; box-shadow: 0 0 0 0 currentColor; }
.st-fully_funded, .st-awaiting_hotel_retry { background: var(--sky-soft); color: var(--info); }
.st-confirmed { background: var(--ok-soft); color: var(--ok); }
.st-cancelled { background: var(--err-soft); color: var(--err); }
.progress-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; align-items: baseline; }
.progress-head strong { font-family: var(--font-display); font-size: 1.5rem; }
.bar { height: 14px; background: var(--bg-2); border-radius: 99px; overflow: hidden; }
.bar span {
  display: block; height: 100%; border-radius: 99px; width: var(--w, 0%);
  background: linear-gradient(90deg, var(--sage), var(--peach)), var(--sage);
  background-size: 200% 100%; animation: fillBar 1.4s var(--ease) both, sheen 3s linear infinite;
  position: relative;
}
.bar span::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .22) 0 10px, transparent 10px 20px);
  animation: stripes 1s linear infinite; background-size: 28px 28px;
}
.countdown { display: inline-flex; align-items: center; gap: 6px; }
.countdown .cd { font-family: var(--font-display); font-variant-numeric: tabular-nums; font-size: 1.1rem; }
.countdown.urgent { color: var(--err); }
.countdown.urgent .cd { animation: heartbeat 1s infinite; }
.big-note { margin: 16px 0 0; font-size: 1.04rem; padding: 14px 16px; border-radius: 14px; background: var(--bg-2); }
.confirmed-note { background: var(--ok-soft); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: start; padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr { transition: background .2s; }
tbody tr:hover { background: color-mix(in srgb, var(--bg-2) 60%, transparent); }
th { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.who { display: flex; align-items: center; gap: 10px; }
.avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: var(--ink); background: var(--peach-soft); text-transform: uppercase; }
tbody tr:nth-child(3n+2) .avatar { background: var(--sage-soft); }
tbody tr:nth-child(3n+3) .avatar { background: var(--sky-soft); }
.pill { border-radius: 999px; padding: 4px 12px; font-size: .8rem; font-weight: 600; white-space: nowrap; display: inline-block; }
.ms-pending { background: var(--warn-soft); color: var(--warn); }
.ms-authorized, .ms-captured { background: var(--ok-soft); color: var(--ok); animation: pop .5s var(--spring); }
.ms-voided { background: var(--bg-2); color: var(--muted); }
.outbox { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-height: 440px; overflow: auto; }
.outbox li { border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; background: color-mix(in srgb, var(--bg) 50%, var(--surface)); border-inline-start: 4px solid var(--peach); }
.outbox li:nth-child(even) { border-inline-start-color: var(--sage); }
.ob-head { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.outbox a { font-weight: 600; display: inline-block; margin-top: 4px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- payment page ---------- */
.pay-summary { position: relative; overflow: hidden; }
.pay-summary::after { content: ""; position: absolute; width: 200px; height: 200px; border-radius: 50%; background: var(--peach-soft); top: -90px; right: -70px; z-index: 0; }
.pay-summary > * { position: relative; z-index: 1; }
.pay-summary .share { font-size: 1.05rem; margin: 12px 0; color: var(--muted); }
.pay-summary .share strong { display: block; font-family: var(--font-display); font-size: 2.6rem; color: var(--ink); line-height: 1.1; }
.card-visual {
  aspect-ratio: 1.6; max-width: 340px; margin: 4px auto 20px; border-radius: 20px; padding: 20px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--sage) 0%, #7D957C 55%, var(--peach) 140%); box-shadow: var(--shadow);
  display: flex; flex-direction: column; justify-content: space-between; transition: transform .6s var(--spring);
}
.card-visual:hover { transform: rotate(-2deg) translateY(-4px); }
.card-visual::before { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .14); right: -70px; top: -90px; }
.card-visual .chip { width: 44px; height: 32px; border-radius: 7px; background: linear-gradient(135deg, #F3D7B6, #D9A877); }
.card-visual .num { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.card-visual .meta { display: flex; justify-content: space-between; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; opacity: .92; }
.done { text-align: center; }
.done h2 { color: var(--ok); }
.done.cancel h2 { color: var(--err); }
.check { width: 84px; height: 84px; margin: 4px auto 10px; display: block; }
.check circle { stroke: var(--ok); stroke-width: 4; fill: var(--ok-soft); stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw .8s var(--ease) forwards; }
.check path { stroke: var(--ok); stroke-width: 5; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .5s .7s var(--ease) forwards; }
.test-cards { margin-top: 16px; color: var(--muted); font-size: .9rem; background: var(--bg-2); border-radius: 14px; padding: 10px 14px; }
.test-cards summary { cursor: pointer; font-weight: 600; }
code { background: var(--bg-2); padding: 2px 7px; border-radius: 7px; font-size: .9em; }
.test-cards code { background: var(--surface); }

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 50; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 10px; height: 14px; border-radius: 3px; animation: fall linear forwards; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes drift { to { transform: translate(30px, 24px) scale(1.08); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 45%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes pop { 0% { transform: scale(.6); } 100% { transform: scale(1); } }
@keyframes bump { 50% { transform: scale(1.12); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(-12px); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes drop { from { opacity: 0; transform: translateY(-14px); } }
@keyframes fillBar { from { width: 0; } }
@keyframes sheen { to { background-position: -200% 0; } }
@keyframes stripes { to { background-position: 28px 0; } }
@keyframes heartbeat { 50% { transform: scale(1.12); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 240px; order: -1; }
  .hero-art img { width: 230px; }
  .chip-float { display: none; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .row2, .split-options { grid-template-columns: 1fr; }
  .search label, .search .btn { flex-basis: 100%; }
  .steps { margin-top: 16px; gap: 12px; }
  .step { padding: 16px; }
  .step p { font-size: .85rem; }
  .card.hotel-card { padding: 0; }
  .tagline { display: none; }
  .brand img { width: 40px; }
  .card { padding: 18px; }
  form.show-room .member-row, form.show-amount .member-row, .member-row { grid-template-columns: 1fr; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
}

/* =====================================================================
   Logo per theme, header tools, footer, legal pages
   ===================================================================== */
.logo-dark { display: none; }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: inline-block; }
.hero-art img.logo-dark { display: none; }
:root[data-theme="dark"] .hero-art img.logo-dark { display: block; }
:root[data-theme="dark"] .hero-art img.logo-light { display: none; }
.float-soft { animation: float 6s ease-in-out infinite; opacity: .9; }
.brand img { height: auto; }

.tools { display: flex; align-items: center; gap: 8px; }
.tool {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; min-width: 40px; padding: 0 12px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; font-size: .9rem;
  text-decoration: none; cursor: pointer; transition: transform .3s var(--spring), border-color .2s, box-shadow .3s;
}
.tool:hover { transform: translateY(-2px); border-color: var(--sage); box-shadow: var(--shadow-sm); }
.tool.theme { padding: 0; justify-content: center; width: 40px; position: relative; overflow: hidden; }
.tool.theme span { position: absolute; transition: transform .5s var(--spring), opacity .3s; }
.tool.theme .moon { transform: translateY(140%) rotate(-40deg); opacity: 0; }
:root[data-theme="dark"] .tool.theme .sun { transform: translateY(-140%) rotate(40deg); opacity: 0; }
:root[data-theme="dark"] .tool.theme .moon { transform: none; opacity: 1; }

.skip {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--on-ink);
  padding: 10px 16px; border-radius: 12px; font-weight: 600; text-decoration: none; transition: top .2s;
}
.skip:focus { top: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
main:focus { outline: none; }

.h2 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; line-height: 1.15; }
.h3 { font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; line-height: 1.15; margin: 0 0 4px; }
fieldset.card { min-inline-size: 0; }
fieldset.card legend { float: inline-start; width: 100%; padding: 0; margin: 0 0 .7em; }
fieldset.card legend + * { clear: both; }

.footer-grid { display: flex !important; justify-content: space-between; align-items: center; gap: 18px 28px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 40px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-links a { color: var(--muted); text-decoration: none; font-weight: 500; transition: color .2s; display: inline-flex; align-items: center; gap: 6px; }
.footer-links a:hover { color: var(--sage-deep); text-decoration: underline; }
.footer-links .linkedin { color: var(--sage-deep); }

.legal article { max-width: 780px; padding: 30px clamp(20px, 4vw, 40px); }
.legal h2 { margin-top: 1.4em; color: var(--sage-deep); }
.legal ul { padding-inline-start: 1.2em; }
.legal li { margin: .35em 0; }
.legal .lead-in { font-size: 1.05rem; }

/* =====================================================================
   Accessibility menu
   ===================================================================== */
.a11y-btn {
  position: fixed; inset-inline-start: 18px; bottom: 18px; z-index: 60; width: 54px; height: 54px; border-radius: 50%;
  border: 3px solid var(--surface); background: var(--ink); color: var(--on-ink); cursor: pointer; display: grid; place-items: center;
  box-shadow: var(--shadow); transition: transform .35s var(--spring);
}
.a11y-btn:hover, .a11y-btn[aria-expanded="true"] { transform: scale(1.08) rotate(-8deg); }
.a11y-panel {
  position: fixed; inset-inline-start: 18px; bottom: 84px; z-index: 61; width: min(340px, calc(100vw - 36px));
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 22px; padding: 18px; box-shadow: var(--shadow-lift);
  animation: drop .35s var(--spring) both; max-height: calc(100vh - 110px); overflow: auto;
}
.a11y-panel[hidden] { display: none; }
.a11y-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.a11y-head h2 { margin: 0; font-size: 1.2rem; }
.a11y-close { border: 0; background: var(--bg-2); color: var(--ink); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 1rem; }
.a11y-size { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--bg-2); border-radius: 14px; margin-bottom: 10px; font-weight: 600; }
.a11y-size span { flex: 1; }
.a11y-size button { width: 40px; height: 36px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.a11y-size output { min-width: 48px; text-align: center; font-variant-numeric: tabular-nums; }
.a11y-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.a11y-grid button {
  display: flex; align-items: center; gap: 8px; text-align: start; padding: 12px; min-height: 52px; border-radius: 14px;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: .88rem; font-weight: 500; cursor: pointer;
  transition: border-color .2s, background .2s;
}
.a11y-grid button:hover { border-color: var(--sage); }
.a11y-grid button[aria-pressed="true"] { border-color: var(--sage-deep); background: var(--sage-soft); font-weight: 700; }
.a11y-grid button span[aria-hidden] { font-size: 1.1rem; width: 1.4em; text-align: center; }
.a11y-link { display: block; margin-top: 12px; text-align: center; font-weight: 600; }

/* settings applied on <html> */
.a11y-contrast {
  --ink: #000; --muted: #1E1E1E; --line: #000; --bg: #FFF; --bg-2: #F2F2F2; --surface: #FFF; --field: #FFF;
  --sage-deep: #0B4A0B; --peach-deep: #6B2E00; --sage-soft: #E8F2E8; --peach-soft: #FFF0E0; --on-ink: #FFF; --primary-hover: #222;
}
:root.a11y-contrast[data-theme="dark"] {
  --ink: #FFF; --muted: #EEE; --line: #FFF; --bg: #000; --bg-2: #111; --surface: #000; --field: #000;
  --sage-deep: #B6FFB0; --peach-deep: #FFD2A8; --sage-soft: #0E2A10; --peach-soft: #2A1A08; --on-ink: #000; --primary-hover: #DDD;
}
.a11y-contrast .card, .a11y-contrast .step, .a11y-contrast .room, .a11y-contrast .split, .a11y-contrast input, .a11y-contrast select, .a11y-contrast .tool, .a11y-contrast .btn { border: 2px solid var(--ink); }
.a11y-contrast .blob, .a11y-contrast .ring { display: none; }
.a11y-links a { text-decoration: underline !important; text-decoration-thickness: 2px !important; outline: 2px dashed var(--peach-deep); outline-offset: 2px; }
.a11y-links .btn, .a11y-links .tool { outline: 2px dashed var(--peach-deep); outline-offset: 2px; }
.a11y-font body, .a11y-font h1, .a11y-font h2, .a11y-font h3, .a11y-font .h2, .a11y-font .h3, .a11y-font .wordmark, .a11y-font .price,
.a11y-font button, .a11y-font input, .a11y-font select {
  font-family: Arial, "Segoe UI", sans-serif !important; letter-spacing: .03em !important; word-spacing: .12em;
}
.a11y-font body { line-height: 1.75; }
.a11y-motion *, .a11y-motion *::before, .a11y-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
.a11y-motion .reveal { opacity: 1 !important; transform: none !important; }
.a11y-cursor, .a11y-cursor * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='M4 2l26 15-12 3 7 14-5 3-7-14-9 9z' fill='%23000' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") 4 2, auto !important;
}

/* =====================================================================
   Right-to-left (Hebrew)
   ===================================================================== */
[dir="rtl"] .hero h1 .hl::after { transform-origin: right; }
[dir="rtl"] .member-row { animation-name: slideInRtl; }
@keyframes slideInRtl { from { opacity: 0; transform: translateX(12px); } }
[dir="rtl"] .back:hover { gap: 10px; }
[dir="rtl"] body { font-family: "Rubik", "Segoe UI", Arial, sans-serif; }
[dir="rtl"] .chip-float.c1 { left: auto; right: 0; }
[dir="rtl"] .chip-float.c2 { right: auto; left: 0; }
[dir="rtl"] .tagline { letter-spacing: .02em; text-transform: none; font-size: .85rem; }
[dir="rtl"] .hotel-city, [dir="rtl"] th { letter-spacing: 0; }
[dir="rtl"] .wordmark { direction: ltr; }

@media (max-width: 860px) {
  .tagline { display: none; }
}
@media (max-width: 640px) {
  .tool.lang span:last-child { display: none; }
  .tool.lang { padding: 0; width: 40px; justify-content: center; }
  .a11y-btn { width: 48px; height: 48px; inset-inline-start: 12px; bottom: 12px; }
  .a11y-panel { inset-inline-start: 12px; bottom: 70px; }
  .footer-grid { flex-direction: column; align-items: flex-start; }
  .footer { padding-bottom: 80px; }
}

.search label { flex: 1 1 140px; }
.search .btn { flex: 0 0 auto; height: 46px; }
:root[data-theme="dark"] .blob { opacity: .45; }
@media (max-width: 640px) {
  .search label, .search .btn { flex: 1 1 100%; }
}

/* =====================================================================
   v3 – a more polished, interactive home page
   ===================================================================== */
.topbar { transition: padding .3s, box-shadow .3s, background .3s; }
.topbar.scrolled { box-shadow: 0 8px 28px rgba(20, 30, 45, .08); }
.topbar.scrolled .topbar-inner { padding: 6px 0; }
.topbar .topbar-inner { transition: padding .3s; }
.progress-top { position: fixed; inset-inline: 0; top: 0; height: 3px; z-index: 40; transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, var(--sage), var(--peach)); pointer-events: none; }
[dir="rtl"] .progress-top { transform-origin: right; }
.to-top { position: fixed; inset-inline-end: 18px; bottom: 18px; z-index: 55; width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font-size: 1.2rem; cursor: pointer; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(16px) scale(.8); pointer-events: none; transition: opacity .3s, transform .4s var(--spring); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: var(--sage); }
.toasts { position: fixed; z-index: 80; bottom: 22px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; pointer-events: none; }
.toast { background: var(--ink); color: var(--on-ink); padding: 12px 18px; border-radius: 14px; box-shadow: var(--shadow-lift); font-weight: 600;
  animation: toastIn .45s var(--spring) both; }
.toast.ok::before { content: "✓ "; color: var(--ok-soft); }
.toast.out { animation: toastOut .4s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(18px) scale(.95); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px); } }
.btn { position: relative; overflow: hidden; isolation: isolate; }
.ripple { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: currentColor; opacity: .25;
  pointer-events: none; animation: ripple .65s ease-out forwards; z-index: -1; }
@keyframes ripple { to { transform: scale(40); opacity: 0; } }

/* ---------- hero with the big logo ---------- */
.hero2 { position: relative; overflow: hidden; isolation: isolate; padding: 34px 0 70px; }
.hero2-inner { display: grid; grid-template-columns: minmax(300px, 470px) 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero2 h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); font-weight: 700; }
.hero2 h1 .hl { color: var(--sage-deep); position: relative; white-space: nowrap; }
.hero2 h1 .hl::after { content: ""; position: absolute; inset-inline: -4px; bottom: .06em; height: .32em; border-radius: 99px;
  background: var(--peach-soft); z-index: -1; transform-origin: left; animation: grow 1s 1.6s var(--ease) both; }
[dir="rtl"] .hero2 h1 .hl::after { transform-origin: right; }
.hero2-copy > * { animation: rise .8s var(--ease) both; }
.hero2-copy > :nth-child(1) { animation-delay: 1.1s; }
.hero2-copy > :nth-child(2) { animation-delay: 1.25s; }
.hero2-copy > :nth-child(3) { animation-delay: 1.4s; }
.hero2-copy > :nth-child(4) { animation-delay: 1.55s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

.brand-stage { position: relative; width: 100%; max-width: 470px; margin-inline: auto; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.brand-stage::before { content: ""; position: absolute; inset: 4% 2% 30%; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--sage-soft) 80%, transparent), transparent 70%); filter: blur(6px);
  animation: breathe 6s ease-in-out infinite; }
:root[data-theme="dark"] .brand-stage { background: #FBF6EF; border-radius: 42px; padding: 22px 22px 12px; box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 30px 80px rgba(0,0,0,.45), 0 0 120px rgba(233,183,148,.12); }
:root[data-theme="dark"] .brand-stage::before { display: none; }
.logo-stack { position: relative; aspect-ratio: 480 / 495; animation: float 7s 2.6s ease-in-out infinite; }
.ly { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: translate .35s var(--ease); will-change: transform; user-select: none; -webkit-user-drag: none; }
.ly-arcL { transform-origin: 50% 36%; animation: arcInL 1s .1s var(--ease) both; }
.ly-arcR { transform-origin: 50% 36%; animation: arcInR 1s .1s var(--ease) both; }
.ly-building { animation: buildUp .9s .35s var(--ease) both; }
.ly-cardG { transform-origin: 30% 50%; animation: cardInL .85s .8s var(--spring) both, idleL 6s 2.6s ease-in-out infinite; }
.ly-cardP { transform-origin: 70% 50%; animation: cardInR .85s .95s var(--spring) both, idleR 6s 2.6s ease-in-out infinite; }
.ly-word { animation: wipe 1s 1.25s var(--ease) both; }
.ly-tag { animation: fadeUp .8s 1.8s var(--ease) both; }
@keyframes arcInL { from { opacity: 0; transform: rotate(-70deg) scale(.7); } }
@keyframes arcInR { from { opacity: 0; transform: rotate(70deg) scale(.7); } }
@keyframes buildUp { from { opacity: 0; clip-path: inset(60% 0 40% 0); transform: translateY(6%); } to { opacity: 1; clip-path: inset(0 0 0 0); transform: none; } }
@keyframes cardInL { from { opacity: 0; transform: translate(-45%, 14%) rotate(-38deg); } }
@keyframes cardInR { from { opacity: 0; transform: translate(45%, 14%) rotate(38deg); } }
@keyframes idleL { 50% { transform: rotate(-2.5deg) translateY(-1.5%); } }
@keyframes idleR { 50% { transform: rotate(2.5deg) translateY(-1.5%); } }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } }
@keyframes breathe { 50% { transform: scale(1.06); opacity: .8; } }
.brand-stage.boing .logo-stack { animation: boing .7s var(--spring); }
@keyframes boing { 30% { transform: scale(.94); } 60% { transform: scale(1.04); } }
.spark { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--peach); opacity: 0; animation: twinkle 3.2s ease-in-out infinite; }
.spark::before, .spark::after { content: ""; position: absolute; inset: 4px -6px; background: inherit; border-radius: 4px; }
.spark::after { inset: -6px 4px; }
.spark.s1 { top: 8%; inset-inline-start: 12%; animation-delay: 2.2s; background: var(--sage); }
.spark.s2 { top: 18%; inset-inline-end: 6%; animation-delay: 3s; }
.spark.s3 { top: 52%; inset-inline-start: 2%; animation-delay: 3.8s; width: 7px; height: 7px; }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.4) rotate(0); } 50% { opacity: .9; transform: scale(1) rotate(45deg); } }
.brand-stage .chip-float { animation: chipIn .6s var(--spring) both, float 5s ease-in-out infinite; }
.brand-stage .chip-float.c1 { top: 16%; left: -6%; right: auto; animation-delay: 2s, 2.6s; }
.brand-stage .chip-float.c2 { top: 50%; right: -8%; left: auto; bottom: auto; animation-delay: 2.3s, 3.4s; }
.brand-stage .chip-float.c3 { top: 2%; right: 4%; left: auto; bottom: auto; animation-delay: 2.6s, 4s; }
@keyframes chipIn { from { opacity: 0; transform: scale(.6) translateY(10px); } }
:root[data-theme="dark"] .brand-stage .chip-float { background: var(--surface); color: var(--ink); }

.search2 { margin-top: 22px; }
.trust { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .9rem; }
.trust li { display: inline-flex; gap: 6px; align-items: center; }
.scroll-cue { position: absolute; left: 50%; bottom: 14px; width: 26px; height: 40px; margin-left: -13px; border: 2px solid var(--line); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--sage); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- sections ---------- */
.section { padding: 46px 0 10px; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 26px; }
.section-head.row { text-align: start; max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); margin: 0; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--peach-deep);
  background: var(--peach-soft); padding: 5px 12px; border-radius: 999px; margin-bottom: 10px; }
[dir="rtl"] .eyebrow { letter-spacing: .02em; }
.narrow-section { max-width: 820px; }

/* timeline */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; counter-reset: none; }
.timeline::before { content: ""; position: absolute; top: 26px; inset-inline: 12%; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--sage), var(--peach)); opacity: .45; }
.t-step { position: relative; background: var(--surface); border: 1px solid color-mix(in srgb, var(--line) 60%, transparent); border-radius: var(--radius);
  padding: 46px 20px 22px; text-align: center; box-shadow: var(--shadow-sm); transition: transform .35s var(--spring), box-shadow .35s; margin-top: 26px; }
.t-step:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.t-num { position: absolute; top: -26px; left: 50%; transform: translateX(-50%); width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--on-ink); font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; box-shadow: 0 0 0 6px var(--bg); }
.t-step .ic { font-size: 1.7rem; margin-bottom: 6px; }
.t-step h3 { margin: 0 0 6px; }
.t-step p { margin: 0; color: var(--muted); font-size: .92rem; }

/* calculator + demo */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
.two-col .card { margin: 0; padding: 26px; }
.two-col h2 { font-size: 1.45rem; }
.calc-row { margin: 16px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.calc-row label { display: flex; justify-content: space-between; width: 100%; font-size: .95rem; }
.calc-row output { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--ink); }
.calc-label { font-weight: 600; font-size: .95rem; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 10px; padding: 0; border: 0; border-radius: 99px; cursor: pointer;
  background: linear-gradient(90deg, var(--sage) 0 var(--fill, 20%), var(--bg-2) var(--fill, 20%) 100%); }
[dir="rtl"] input[type="range"] { background: linear-gradient(270deg, var(--sage) 0 var(--fill, 20%), var(--bg-2) var(--fill, 20%) 100%); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--surface);
  border: 3px solid var(--sage-deep); box-shadow: var(--shadow-sm); transition: transform .2s var(--spring); }
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--surface); border: 3px solid var(--sage-deep); }
input[type="range"]:focus { box-shadow: none; }
input[type="range"]:focus-visible { outline: 3px solid color-mix(in srgb, var(--sage) 50%, transparent); outline-offset: 4px; }
.stepper { display: inline-flex; align-items: center; gap: 4px; background: var(--bg-2); border-radius: 999px; padding: 4px; }
.stepper button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--surface); color: var(--ink); font-size: 1.2rem; font-weight: 700; cursor: pointer;
  box-shadow: var(--shadow-sm); transition: transform .25s var(--spring); }
.stepper button:hover { transform: scale(1.1); }
.stepper button:active { transform: scale(.92); }
.stepper output { min-width: 34px; text-align: center; display: inline-block; }
.seg { display: inline-flex; background: var(--bg-2); border-radius: 999px; padding: 4px; gap: 4px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 600; font-size: .88rem; padding: 8px 14px; border-radius: 999px; cursor: pointer; transition: background .25s, color .25s; }
.seg button[aria-checked="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.shares { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; max-height: 300px; overflow: auto; }
.shares li { display: grid; grid-template-columns: 32px minmax(90px, 1fr) 1.2fr auto; align-items: center; gap: 10px; animation: rise .45s var(--ease) both; animation-delay: calc(var(--i) * 35ms); }
.shares .avatar, .demo-people .avatar, .sum-shares .avatar { width: 32px; height: 32px; font-size: .85rem; }
.shares .who-name { font-size: .88rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-mini { height: 10px; background: var(--bg-2); border-radius: 99px; overflow: hidden; }
.bar-mini span { display: block; height: 100%; width: var(--w); border-radius: 99px; background: linear-gradient(90deg, var(--sage), var(--peach)); transition: width .5s var(--ease); }
.shares b { font-family: var(--font-display); font-variant-numeric: tabular-nums; }
.calc-compare { margin: 16px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--peach-soft); font-size: .9rem; }

.demo-top { display: flex; align-items: center; gap: 18px; margin: 14px 0 10px; position: relative; }
.ring { width: 112px; height: 112px; transform: rotate(-90deg); flex: none; }
.ring circle { fill: none; stroke-width: 10; }
.ring-bg { stroke: var(--bg-2); }
.ring-fg { stroke: var(--sage-deep); stroke-linecap: round; transition: stroke-dashoffset .8s var(--ease), stroke .4s; }
.demo-widget.finished .ring-fg { stroke: var(--ok); }
.ring-text { position: absolute; inset-inline-start: 0; width: 112px; height: 112px; display: grid; place-content: center; text-align: center; line-height: 1.1; }
.ring-text b { font-family: var(--font-display); font-size: 1.5rem; }
.ring-text span { font-size: .78rem; color: var(--muted); }
.demo-hotel { display: grid; gap: 4px; }
.demo-status { justify-self: start; padding: 4px 12px; border-radius: 999px; background: var(--warn-soft); color: var(--warn); font-weight: 600; font-size: .85rem; transition: background .3s, color .3s; }
.demo-status.ok { background: var(--ok-soft); color: var(--ok); animation: pop .5s var(--spring); }
.demo-people { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.demo-people li { display: grid; grid-template-columns: 32px 1fr auto auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 14px; background: var(--bg-2);
  transition: background .4s, transform .4s var(--spring); }
.demo-people li.paid { background: color-mix(in srgb, var(--ok-soft) 70%, var(--surface)); transform: translateX(4px); }
[dir="rtl"] .demo-people li.paid { transform: translateX(-4px); }
.demo-people .amt { font-variant-numeric: tabular-nums; color: var(--muted); }
.demo-widget.finished { box-shadow: 0 0 0 2px var(--ok-soft), var(--shadow); }

/* hotel cards: tilt + glare + price badge */
.hotel-card.tilt { transition: transform .18s ease-out, box-shadow .4s; transform-style: preserve-3d; }
.hotel-card.tilt::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .35), transparent 55%); }
.hotel-card.tilt:hover::after { opacity: 1; }
:root[data-theme="dark"] .hotel-card.tilt::after { background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .08), transparent 55%); }
.hotel-card { position: relative; }
.cover-price { position: absolute; bottom: 10px; inset-inline-end: 12px; background: var(--surface); color: var(--ink); font-family: var(--font-display); font-weight: 700;
  font-size: .95rem; padding: 4px 10px; border-radius: 999px; box-shadow: var(--shadow-sm); z-index: 1; }
.meta-row { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.rooms-count { margin-inline-start: auto; font-size: .78rem; font-weight: 600; color: var(--sage-deep); background: var(--sage-soft); padding: 2px 10px; border-radius: 999px; }

/* features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
  box-shadow: var(--shadow-sm); transition: transform .35s var(--spring), box-shadow .35s, border-color .3s; }
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--sage); }
.f-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 12px;
  background: linear-gradient(135deg, var(--sage-soft), var(--peach-soft)); transition: transform .5s var(--spring); }
.feature:hover .f-ic { transform: rotate(-8deg) scale(1.08); }
.feature h3 { margin: 0 0 6px; }
.feature p { margin: 0; color: var(--muted); font-size: .92rem; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 0 20px; transition: box-shadow .3s, border-color .3s; }
.faq details[open] { box-shadow: var(--shadow-sm); border-color: var(--sage); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2);
  font-size: 1.2rem; transition: transform .35s var(--spring), background .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--sage-soft); }
.faq details p { margin: 0 0 18px; color: var(--muted); animation: rise .4s var(--ease); }

/* CTA */
.cta { display: flex; align-items: center; gap: 24px; padding: 28px 32px; border-radius: 28px; flex-wrap: wrap;
  background: linear-gradient(120deg, var(--sage-soft), var(--peach-soft)); border: 1px solid var(--line); position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, .25); inset-inline-end: -60px; top: -120px; }
.cta > div { flex: 1 1 260px; position: relative; z-index: 1; }
.cta h2 { margin: 0 0 4px; font-size: 1.5rem; }
.cta p { margin: 0; color: var(--muted); }
.cta-logo { width: 96px; flex: none; animation: float 6s ease-in-out infinite; position: relative; z-index: 1; }
.cta .btn { position: relative; z-index: 1; }
.big-inline { padding: 14px 26px; font-size: 1.05rem; }

/* ---------- hotel page: live summary ---------- */
.booking-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.summary { position: sticky; top: 84px; margin: 0; padding: 22px; }
.summary .h2 { margin-bottom: 4px; }
.sum-dates { margin: 0 0 14px; }
.sum-rooms { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.sum-rooms li { display: flex; justify-content: space-between; gap: 8px; font-size: .92rem; animation: rise .35s var(--ease) both; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; border-block: 1px dashed var(--line); margin-bottom: 12px; }
.sum-total strong { font-family: var(--font-display); font-size: 1.5rem; display: inline-block; }
.beds-head { display: flex; justify-content: space-between; font-size: .88rem; margin-bottom: 6px; }
.beds-bar { height: 8px; border-radius: 99px; background: var(--bg-2); overflow: hidden; }
.beds-bar span { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--sage); transition: width .4s var(--ease), background .3s; }
.beds-bar span.over { background: var(--err); width: 100% !important; }
.beds-warn { margin: 6px 0 0; color: var(--err); font-size: .85rem; font-weight: 600; }
.sum-sub { margin: 16px 0 8px; font-size: 1rem; }
.sum-shares { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; max-height: 240px; overflow: auto; }
.sum-shares li { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 8px; font-size: .9rem; }
.sum-shares .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sum-shares b { font-variant-numeric: tabular-nums; }
.sum-note { margin: 8px 0 0; font-size: .85rem; font-weight: 600; min-height: 1em; }
.sum-note.warn { color: var(--warn); }
.sum-note.ok { color: var(--ok); }
.checklist { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 6px; font-size: .9rem; color: var(--muted); }
.checklist li { display: flex; align-items: center; gap: 8px; transition: color .3s; }
.checklist li::before { content: ""; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); flex: none; transition: all .35s var(--spring);
  display: grid; place-items: center; font-size: .75rem; }
.checklist li.done { color: var(--ink); }
.checklist li.done::before { content: "✓"; background: var(--ok); border-color: var(--ok); color: var(--on-ink); transform: scale(1.1); }
.row-remove { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); color: var(--muted); font-size: 1.2rem;
  cursor: pointer; line-height: 1; transition: color .2s, border-color .2s, transform .25s var(--spring); }
.row-remove:hover { color: var(--err); border-color: var(--err); transform: rotate(90deg); }

/* ---------- dashboard ---------- */
.ob-links { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.ob-links .btn.small { padding: 4px 10px; font-size: .8rem; }

/* ---------- payment page: card that flips ---------- */
.card3d { position: relative; max-width: 340px; aspect-ratio: 1.6; margin: 4px auto 20px; perspective: 1100px; }
.card3d .face { position: absolute; inset: 0; margin: 0; max-width: none; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  transition: transform .75s var(--spring); }
.card3d .face.back { transform: rotateY(180deg); background: linear-gradient(135deg, #7D957C 0%, var(--sage) 50%, var(--peach) 140%); padding: 22px 0; justify-content: flex-start; gap: 16px; }
.card3d.flipped .face.front { transform: rotateY(-180deg); }
.card3d.flipped .face.back { transform: rotateY(0); }
.card3d .face.front:hover { transform: rotate(-2deg) translateY(-4px); }
.cv-top { display: flex; justify-content: space-between; align-items: center; }
.brand-mark { font-family: var(--font-display); font-weight: 700; letter-spacing: .08em; font-size: 1rem; opacity: .95; animation: pop .4s var(--spring); }
.stripe { display: block; height: 42px; background: rgba(20, 28, 38, .75); }
.sig { display: flex; justify-content: flex-end; align-items: center; margin: 0 22px; height: 36px; padding: 0 12px; border-radius: 6px;
  background: repeating-linear-gradient(-45deg, #fff 0 6px, #f1ece4 6px 12px); color: #253447; font-family: var(--font-display); font-weight: 700; letter-spacing: .15em; }
.back-note { margin: 0 22px; font-size: .72rem; opacity: .85; letter-spacing: .06em; text-transform: uppercase; }
.test-card-btn { display: inline-flex; gap: 8px; align-items: center; border: 1.5px dashed var(--line); background: transparent; color: inherit; font: inherit;
  padding: 4px 8px; border-radius: 10px; cursor: pointer; transition: border-color .2s, background .2s; margin: 2px 0; }
.test-card-btn:hover { border-color: var(--sage); background: var(--surface); }
.test-cards ul { list-style: none; padding: 0; margin: 8px 0; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .booking-layout { grid-template-columns: 1fr; }
  .summary { position: static; order: 2; }
  .features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .hero2-inner { grid-template-columns: 1fr; text-align: center; }
  .brand-stage { max-width: 340px; }
  .brand-stage .chip-float { display: none; }
  .hero2 .lead { margin-inline: auto; }
  .trust { justify-content: center; }
  .two-col { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .timeline::before { display: none; }
}
@media (max-width: 640px) {
  .brand-stage { max-width: 280px; }
  :root[data-theme="dark"] .brand-stage { padding: 14px 14px 8px; border-radius: 30px; }
  .hero2 { padding-top: 18px; }
  .timeline, .features { grid-template-columns: 1fr; }
  .section { padding-top: 34px; }
  .member-row, form.show-room .member-row, form.show-amount .member-row { grid-template-columns: 1fr; padding-inline-end: 44px; }
  .row-remove { position: absolute; inset-inline-end: 0; top: 4px; }
  .cta { padding: 22px; text-align: center; justify-content: center; }
  .to-top { bottom: 12px; inset-inline-end: 12px; width: 42px; height: 42px; }
  .shares li { grid-template-columns: 32px 1fr auto; }
  .shares .bar-mini { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ly, .hero2-copy > *, .logo-stack { animation: none !important; opacity: 1 !important; clip-path: none !important; }
}
.a11y-motion .ly, .a11y-motion .hero2-copy > * { opacity: 1 !important; clip-path: none !important; }

/* =====================================================================================
   v4 – a real booking site: colourful search box, destinations, photo cards, filters,
   room types with photos, "who's coming" counter and step dots
   ===================================================================================== */
:root {
  --lilac: #B9A7E0; --lilac-soft: #EEE8FA;
  --sky: #8EC5E8; --sky-2: #DDEFFA;
  --lemon: #F3D27A; --lemon-soft: #FFF5D6;
  --rose: #EE9FB2; --rose-soft: #FCE6EC;
  --mint: #8FD6BE; --mint-soft: #E1F6EE;
  --star: #E8A93B;
  --score: #3D5A80;
}
:root[data-theme="dark"] {
  --lilac: #C7B8F0; --lilac-soft: #2F2A44;
  --sky: #9DD0F0; --sky-2: #213648;
  --lemon: #F5DA8C; --lemon-soft: #3A3422;
  --rose: #F2AFC0; --rose-soft: #3F2A33;
  --mint: #9FE0C9; --mint-soft: #1F3A33;
  --star: #F2BE5C;
  --score: #9DB8DC;
}

/* ---------- photos: a pastel picture behind every photo, shown if the photo can't load ---------- */
img.ph { display: block; width: 100%; height: 100%; object-fit: cover; background:
  radial-gradient(circle at 30% 30%, rgba(255,255,255,.55) 0 18%, transparent 19%),
  linear-gradient(135deg, var(--sky-2), var(--peach-soft) 55%, var(--lilac-soft)); }
img.ph.ph-fail { color: transparent; }

/* ---------- search box ---------- */
.search3 { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr auto; gap: 6px; align-items: stretch;
  background: var(--surface); border-radius: 26px; padding: 8px; margin-top: 22px; position: relative; z-index: 6;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--lemon) 60%, transparent), var(--shadow); }
.sb-field { display: grid; gap: 2px; padding: 8px 14px; border-radius: 18px; background: transparent; transition: background .2s; position: relative; min-width: 0; }
.sb-field:hover, .sb-field:focus-within, .sb-guests[open] { background: var(--bg-2); }
.sb-label { font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: none; white-space: nowrap; }
.sb-field input { border: 0; background: transparent; padding: 2px 0; font: inherit; font-weight: 600; color: var(--ink); min-width: 0; width: 100%; box-shadow: none; }
.sb-field input:focus { outline: none; box-shadow: none; }
.sb-guests summary { list-style: none; cursor: pointer; display: grid; gap: 2px; }
.sb-guests summary::-webkit-details-marker { display: none; }
.sb-guests-text { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-pop { position: absolute; top: calc(100% + 10px); inset-inline-end: 0; width: min(360px, 92vw); background: var(--surface); border-radius: 22px;
  box-shadow: var(--shadow-lift); padding: 16px; display: grid; gap: 12px; z-index: 30; animation: drop .35s var(--spring) both; cursor: default; }
.cnt-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cnt-row small { display: block; color: var(--muted); font-size: .8rem; }
.payers-row { border-top: 1px dashed var(--line); padding-top: 12px; }
.payers-row b::before { content: "💳 "; }
.counter { display: inline-flex; align-items: center; gap: 6px; background: var(--bg-2); border-radius: 999px; padding: 4px; flex: none; }
.counter button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--surface); color: var(--ink); font-size: 1.15rem; font-weight: 700; cursor: pointer;
  box-shadow: var(--shadow-sm); transition: transform .25s var(--spring), background .2s; }
.counter button:hover:not(:disabled) { transform: scale(1.12); background: var(--lemon-soft); }
.counter button:active:not(:disabled) { transform: scale(.9); }
.counter button:disabled { opacity: .35; cursor: not-allowed; box-shadow: none; }
.counter output { min-width: 28px; text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.counter.big button { width: 44px; height: 44px; font-size: 1.4rem; }
.counter.big output { min-width: 44px; font-size: 1.6rem; }
.ages { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.ages:empty { display: none; }
.ages label { display: grid; gap: 2px; font-size: .78rem; color: var(--muted); }
.ages select { padding: 6px 8px; border-radius: 10px; }
.pop-in { animation: drop .35s var(--spring) both; }
.sb-done { justify-self: end; }
.sb-go { border-radius: 20px; padding-inline: 22px; font-size: 1.02rem; }
.search-band { background: linear-gradient(120deg, var(--sky-2), var(--lilac-soft) 45%, var(--peach-soft)); padding: 6px 0 26px; }
.search-band .search3 { margin-top: 18px; }
@media (max-width: 900px) {
  .search3 { grid-template-columns: 1fr 1fr; }
  .sb-where, .sb-guests, .sb-go { grid-column: 1 / -1; }
  .sb-pop { inset-inline: 0; width: auto; }
}

/* ---------- destinations ---------- */
.dest-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.dest-card { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 3; color: #fff; text-decoration: none; box-shadow: var(--shadow-sm);
  transition: transform .45s var(--spring), box-shadow .3s; animation: rise .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
.dest-card:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.dest-card img { position: absolute; inset: 0; transition: transform .8s var(--ease); }
.dest-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.dest-card:hover img { transform: scale(1.08); }
.dest-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(20, 28, 40, .78), rgba(20, 28, 40, .05) 60%); }
.dest-text { position: absolute; inset-inline: 16px; bottom: 14px; display: grid; gap: 2px; }
.dest-text b { font-family: var(--font-display); font-size: 1.35rem; text-shadow: 0 2px 8px rgba(0,0,0,.3); }
.dest-card:first-child .dest-text b { font-size: 2rem; }
.dest-text small { opacity: .95; font-weight: 500; }
.dest-from { display: inline-block; width: max-content; background: var(--lemon); color: #3A2A05; border-radius: 999px; padding: 1px 10px; font-weight: 700 !important; margin-top: 4px; }
@media (max-width: 760px) { .dest-grid { grid-template-columns: 1fr 1fr; } .dest-card:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 16 / 9; } }

/* ---------- hotel cards with photos ---------- */
.hgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.hcard { background: var(--surface); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; position: relative;
  transition: transform .18s ease-out, box-shadow .35s; }
.hcard:hover { box-shadow: var(--shadow-lift); }
.hcard-photo { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.hcard-photo img { transition: transform .7s var(--ease); }
.hcard:hover .hcard-photo img { transform: scale(1.07); }
.hcard-body { padding: 14px 16px 16px; display: grid; gap: 4px; flex: 1; }
.hcard-body h3 { margin: 0; font-size: 1.08rem; }
.hcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 6px 0 0; flex-wrap: wrap; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
.stars { color: var(--star); letter-spacing: 1px; font-size: .85em; white-space: nowrap; }
.score { display: inline-grid; place-items: center; min-width: 40px; height: 36px; padding: 0 6px; border-radius: 12px 12px 12px 4px; background: var(--score); color: #fff;
  font-family: var(--font-display); font-weight: 700; flex: none; }
:root[data-theme="dark"] .score { color: #13202F; }
[dir="rtl"] .score { border-radius: 12px 12px 4px 12px; }
.hcard-photo .score { position: absolute; top: 10px; inset-inline-end: 10px; box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.score-box { display: flex; align-items: center; gap: 10px; text-align: end; }
.score-box > span:first-child { display: grid; }
.score-box small { color: var(--muted); font-size: .8rem; }
.score-box.big .score { min-width: 52px; height: 48px; font-size: 1.35rem; }

/* ---------- search results ---------- */
.search-page .footer { margin-top: 30px; }
.results-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 22px; align-items: start; margin-top: 22px; }
.filters { position: sticky; top: 84px; padding: 18px; margin: 0; max-height: calc(100vh - 100px); overflow: auto; }
.filters h2 { margin-top: 0; }
.f-group { border: 0; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.f-group legend { font-weight: 700; margin-bottom: 8px; font-size: .92rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--bg-2); font-weight: 600; font-size: .88rem; transition: background .2s, transform .25s var(--spring); }
.chip:hover span { transform: translateY(-2px); }
.chip input:checked + span { background: var(--lemon); color: #3A2A05; }
.chip input:focus-visible + span { outline: 3px solid var(--info); outline-offset: 2px; }
.fcheck { display: flex; gap: 8px; align-items: center; cursor: pointer; font-size: .92rem; padding: 3px 0; }
.fcheck input { width: 18px; height: 18px; accent-color: var(--sage-deep); }
.filters select { width: 100%; }
.results-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.results-head h1 { margin: 0; }
.sort-form label { display: flex; gap: 8px; align-items: center; font-weight: 600; font-size: .9rem; }
.rcard { display: grid; grid-template-columns: 240px minmax(0, 1fr) 210px; gap: 0; background: var(--surface); border-radius: 22px; overflow: hidden;
  box-shadow: var(--shadow-sm); margin-bottom: 14px; transition: transform .35s var(--spring), box-shadow .3s;
  animation: rise .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 35ms); }
.rcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.rcard-photo { position: relative; min-height: 190px; overflow: hidden; }
.rcard-photo img { position: absolute; inset: 0; transition: transform .7s var(--ease); }
.rcard:hover .rcard-photo img { transform: scale(1.06); }
.rcard-main { padding: 16px 18px; display: grid; gap: 6px; align-content: start; min-width: 0; }
.rcard-main h2 { margin: 0; font-size: 1.18rem; }
.rcard-main h2 a { color: inherit; text-decoration: none; }
.rcard-main h2 a:hover { text-decoration: underline; }
.amen-mini { list-style: none; padding: 0; margin: 2px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.amen-mini li { font-size: .78rem; background: var(--mint-soft); color: var(--ink); border-radius: 999px; padding: 2px 10px; }
.amen-mini li:nth-child(2n) { background: var(--sky-2); }
.amen-mini li:nth-child(3n) { background: var(--lilac-soft); }
.plan-line { margin: 4px 0 0; font-size: .88rem; background: var(--lemon-soft); border-radius: 12px; padding: 6px 10px; }
.rcard-side { padding: 16px; display: grid; gap: 10px; align-content: space-between; border-inline-start: 1px dashed var(--line); background: color-mix(in srgb, var(--bg-2) 45%, var(--surface)); }
.rcard-side .score-box { justify-content: flex-end; }
.price-box { display: grid; text-align: end; gap: 2px; }
.price.big { font-size: 1.55rem; }
.per-payer { justify-self: end; background: var(--sage-soft); color: var(--sage-deep); font-weight: 700; border-radius: 999px; padding: 2px 10px; font-size: .88rem; }
.rcard-side .btn { width: 100%; justify-content: center; }
.pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin: 22px 0; }
.big-emoji { font-size: 2.6rem; display: block; margin-bottom: 6px; }
@media (max-width: 1000px) {
  .results-layout { grid-template-columns: 1fr; }
  .filters { position: static; max-height: none; }
  .rcard { grid-template-columns: 180px minmax(0, 1fr); }
  .rcard-side { grid-column: 1 / -1; border-inline-start: 0; border-top: 1px dashed var(--line); grid-template-columns: 1fr auto; align-items: center; }
  .rcard-side .btn { grid-column: 1 / -1; }
}
@media (max-width: 600px) { .rcard { grid-template-columns: 1fr; } .rcard-photo { min-height: 180px; } }

/* ---------- hotel page ---------- */
.hotel-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.hotel-top h1 { margin: 2px 0 4px; }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 170px 170px; gap: 8px; margin: 16px 0 14px; border-radius: 24px; overflow: hidden; }
.g-shot { position: relative; border: 0; padding: 0; cursor: zoom-in; overflow: hidden; background: var(--bg-2); }
.g-shot img { transition: transform .7s var(--ease), filter .3s; }
.g-shot:hover img { transform: scale(1.06); filter: saturate(1.1); }
.g-shot:focus-visible { outline: 4px solid var(--info); outline-offset: -4px; }
.g0 { grid-row: span 2; }
.g-more { position: absolute; bottom: 10px; inset-inline-end: 10px; background: var(--surface); color: var(--ink); border-radius: 999px; padding: 5px 12px; font-weight: 700; font-size: .85rem; box-shadow: var(--shadow-sm); }
@media (max-width: 700px) { .gallery { grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 200px 90px; } .g0 { grid-column: span 3; grid-row: auto; } .g3 { display: none; } .g-more { font-size: .72rem; padding: 3px 8px; } }
.hotel-desc { font-size: 1.05rem; max-width: 70ch; }
.amen-list { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.amen-list li { background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: .9rem; font-weight: 500; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(15, 20, 30, .9); display: grid; grid-template-columns: 60px 1fr 60px; align-items: center; justify-items: center; padding: 30px 10px; animation: fadeIn .25s both; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox button { width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: #253447; font-size: 1.6rem; cursor: pointer; }
.lb-x { position: absolute; top: 16px; inset-inline-end: 16px; font-size: 1.1rem !important; }
.lb-count { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); color: #fff; font-weight: 600; }
[dir="rtl"] .lb-prev { order: 3; } [dir="rtl"] .lb-next { order: 1; } [dir="rtl"] .lightbox img { order: 2; }
body.no-scroll { overflow: hidden; }

/* step dots */
.stepper-dots { position: sticky; top: 70px; z-index: 8; display: flex; justify-content: space-between; gap: 6px; margin: 6px 0 18px; padding: 10px 14px;
  background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(10px); border-radius: 999px; box-shadow: var(--shadow-sm); counter-reset: s; }
.stepper-dots a { flex: 1; display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .9rem; position: relative; min-width: 0; }
.stepper-dots a:not(:last-child)::after { content: ""; flex: 1; height: 3px; border-radius: 3px; background: var(--line); margin-inline: 6px; transition: background .4s; }
.stepper-dots a.is-done:not(:last-child)::after { background: var(--sage); }
.sd-dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--bg-2); color: var(--muted); border: 2.5px solid var(--line);
  font-style: normal; transition: background .3s, border-color .3s, transform .4s var(--spring); }
.sd-dot i { font-style: normal; font-family: var(--font-display); }
.stepper-dots a.is-current { color: var(--ink); }
.stepper-dots a.is-current .sd-dot { border-color: var(--peach); background: var(--peach-soft); color: var(--peach-deep); transform: scale(1.12); animation: ping 1.6s infinite; }
.stepper-dots a.is-done { color: var(--sage-deep); }
.stepper-dots a.is-done .sd-dot { background: var(--sage); border-color: var(--sage); color: #fff; }
.stepper-dots a.is-done .sd-dot i { font-size: 0; }
.stepper-dots a.is-done .sd-dot i::before { content: "✓"; font-size: 1rem; }
.sd-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 700px) { .sd-text { display: none; } .stepper-dots { border-radius: 22px; } }
.step-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--line); margin-inline-start: 6px; vertical-align: middle; transition: background .3s, transform .4s var(--spring); }
.bstep.is-current .step-dot { background: var(--peach); animation: ping 1.6s infinite; color: var(--peach); }
.bstep.is-done .step-dot { background: var(--sage); transform: scale(1.25); }
.bstep.is-done .step-dot::after { content: "✓"; display: grid; place-items: center; color: #fff; font-size: 8px; height: 100%; font-weight: 800; }
.bstep { scroll-margin-top: 140px; transition: box-shadow .3s; }
.bstep.is-current { box-shadow: 0 0 0 3px color-mix(in srgb, var(--peach) 45%, transparent), var(--shadow-sm); }

/* room types with photos */
.rtypes { display: grid; gap: 14px; margin-top: 10px; }
.rtype { display: grid; grid-template-columns: 230px minmax(0, 1fr); border: 2px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--surface);
  transition: border-color .25s, box-shadow .3s, transform .35s var(--spring); }
.rtype:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.rtype.picked { border-color: var(--sage); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sage) 22%, transparent); }
.rt-photos { position: relative; min-height: 180px; overflow: hidden; }
.rt-photos img { position: absolute; inset: 0; opacity: 0; transition: opacity .45s, transform 1s var(--ease); transform: scale(1.04); }
.rt-photos img.on { opacity: 1; transform: scale(1); }
.rt-dots { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.rt-dot { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.6); cursor: pointer; transition: transform .3s var(--spring), background .2s; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.rt-dot[aria-pressed="true"] { background: #fff; transform: scale(1.3); }
.rt-body { padding: 14px 16px; display: grid; gap: 6px; align-content: start; }
.rt-body h3 { margin: 0; font-size: 1.15rem; }
.rt-body p { margin: 0; }
.rt-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .88rem; }
.rt-facts .left { color: var(--peach-deep); font-weight: 600; }
.rt-facts .left:not(.few) span[aria-hidden] { display: none; }
.rt-buy { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.rt-price b { font-family: var(--font-display); font-size: 1.35rem; }
.rt-price small { display: block; }
.rtype.picked .rt-count { background: var(--sage-soft); }
.rt-numbers summary { cursor: pointer; font-size: .82rem; color: var(--muted); width: max-content; }
.room-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pill-check { position: relative; cursor: pointer; }
.pill-check input { position: absolute; opacity: 0; }
.pill-check span { display: inline-block; padding: 4px 12px; border-radius: 10px; border: 1.5px solid var(--line); font-weight: 600; font-size: .85rem; transition: background .2s, border-color .2s; }
.pill-check input:checked + span { background: var(--sage); border-color: var(--sage); color: #fff; }
.pill-check input:focus-visible + span { outline: 3px solid var(--info); outline-offset: 2px; }
@media (max-width: 640px) { .rtype { grid-template-columns: 1fr; } .rt-photos { min-height: 190px; } }

/* who's coming */
.people-count { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: linear-gradient(120deg, var(--lemon-soft), var(--rose-soft));
  border-radius: 18px; padding: 14px 16px; margin: 6px 0 4px; }
.people-count small { display: block; margin-top: 2px; }
.kids-note { margin: 8px 0 0; }
.member-row { grid-template-columns: 30px 1fr 1.3fr 36px; }
form.show-room .member-row { grid-template-columns: 30px 1fr 1.3fr 1fr 36px; }
form.show-amount .member-row { grid-template-columns: 30px 1fr 1.3fr .7fr 36px; }
.m-badge { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: .9rem; color: #fff; background: var(--sky); }
.member-row:nth-child(4n+2) .m-badge { background: var(--rose); }
.member-row:nth-child(4n+3) .m-badge { background: var(--mint); color: #173A2E; }
.member-row:nth-child(4n+4) .m-badge { background: var(--lilac); }
.member-row:first-child .m-badge { background: var(--peach); }
.row-remove[hidden] { visibility: hidden; display: block; }
.split-hint { margin-top: 10px; }
@media (max-width: 760px) {
  form.show-room .member-row, form.show-amount .member-row, .member-row { grid-template-columns: 30px 1fr 36px; }
  .member-row > input, .member-row > select { grid-column: 2; }
  .member-row .row-remove { grid-column: 3; grid-row: 1; }
}
.sum-photo { margin: -22px -22px 14px; height: 120px; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.footer-photos a { color: inherit; }

@media (prefers-reduced-motion: reduce) { .dest-card, .rcard, .stepper-dots a.is-current .sd-dot, .bstep.is-current .step-dot { animation: none !important; } }
.a11y-motion .dest-card, .a11y-motion .rcard, .a11y-motion .sd-dot, .a11y-motion .step-dot { animation: none !important; }
/* in the hero the search box sits in a narrower column */
.search3-hero { grid-template-columns: 1fr 1fr; }
.search3-hero .sb-where, .search3-hero .sb-guests, .search3-hero .sb-go { grid-column: 1 / -1; }
.search3-hero .sb-go { padding-block: 12px; }

/* v4 fixes after checking in the browser */
.hero2 { overflow-x: clip; overflow-y: visible; }
.hero2 .blob { pointer-events: none; }
.filters .fcheck { width: 100%; display: flex; align-items: center; gap: 10px; }
.filters .fcheck input, .filters .chip input { flex: none; margin: 0; }
.filters .fcheck > span { flex: 1; display: inline; }
.filters .chips .chip { display: inline-block; width: auto; }
.filters fieldset { min-inline-size: 0; }
.summary { top: 140px; }
.sort-form label { white-space: nowrap; }

/* =====================================================================================
   v5 – main menu, destinations by country, notes about real hotels
   ===================================================================================== */
.mainnav { flex: 1; display: flex; justify-content: center; position: relative; }
.menu-links { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; align-items: center; }
.menu-links a { display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .93rem;
  transition: background .2s, color .2s, transform .25s var(--spring); }
.menu-links a:hover { background: var(--lemon-soft); transform: translateY(-1px); }
.menu-links a:focus-visible { outline: 3px solid var(--info); outline-offset: 2px; }
.menu-links a[aria-current="page"] { background: var(--sage-soft); color: var(--sage-deep); }
.menu-toggle { display: none; }
.menu-toggle summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: var(--surface); box-shadow: var(--shadow-sm); font-weight: 700; }
.menu-toggle summary::-webkit-details-marker { display: none; }
.burger { display: inline-grid; gap: 3px; width: 18px; }
.burger i { display: block; height: 2.5px; border-radius: 2px; background: currentColor; transition: transform .3s var(--spring), opacity .2s; }
.menu-toggle[open] .burger i:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-toggle[open] .burger i:nth-child(2) { opacity: 0; }
.menu-toggle[open] .burger i:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
@media (max-width: 1000px) {
  .mainnav { justify-content: flex-start; flex: 0 1 auto; }
  .menu-toggle { display: block; }
  .menu-links { display: none; position: absolute; top: calc(100% + 10px); inset-inline-start: 0; z-index: 50; flex-direction: column; align-items: stretch;
    min-width: 220px; background: var(--surface); border-radius: 20px; padding: 8px; box-shadow: var(--shadow-lift); }
  .mainnav:has(.menu-toggle[open]) .menu-links { display: flex; animation: drop .3s var(--spring) both; }
  .menu-links a { padding: 11px 14px; }
}
@media (max-width: 520px) { .menu-word { display: none; } }

.demo-note { background: var(--sky-2); border-radius: 14px; padding: 10px 14px; margin: 8px 0 14px; color: var(--ink); }
.demo-note a { color: inherit; font-weight: 600; }
.map-link { margin-inline-start: 10px; font-weight: 600; text-decoration: none; background: var(--mint-soft); color: var(--ink); padding: 2px 10px; border-radius: 999px; font-size: .85em; text-transform: none; letter-spacing: 0; }
.map-link:hover { text-decoration: underline; }

/* destinations page */
.dest-hero { padding: 28px 0 30px; }
.dest-hero h1 { margin: 6px 0; }
.country-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cchip { background: var(--surface); color: var(--ink); text-decoration: none; padding: 7px 14px; border-radius: 999px; font-weight: 600; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--spring), background .2s; }
.cchip small { color: var(--muted); font-weight: 500; margin-inline-start: 4px; }
.cchip:hover { transform: translateY(-2px); background: var(--lemon-soft); }
.country { margin: 34px 0; scroll-margin-top: 90px; animation: rise .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms); }
.country-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px;
  border-bottom: 2px dashed var(--line); padding-bottom: 10px; }
.country-head h2 { margin: 0; }
.city-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.city-card { display: flex; gap: 12px; align-items: center; background: var(--surface); border-radius: 18px; padding: 8px; text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow-sm); transition: transform .3s var(--spring), box-shadow .3s; }
.city-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.city-photo { width: 72px; height: 72px; border-radius: 14px; overflow: hidden; flex: none; }
.city-initial { display: grid; place-items: center; font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; color: var(--ink);
  background: linear-gradient(135deg, var(--sky-2), var(--peach-soft)); }
.city-card:nth-child(3n+2) .city-initial { background: linear-gradient(135deg, var(--mint-soft), var(--lemon-soft)); }
.city-card:nth-child(3n+3) .city-initial { background: linear-gradient(135deg, var(--lilac-soft), var(--rose-soft)); }
.city-text { display: grid; gap: 1px; }
.city-text b { font-size: 1.05rem; }
.a11y-motion .country { animation: none !important; }

/* Demo notice shown on every page */
.demo-bar {
  margin: 0;
  padding: 6px 16px;
  background: var(--warn-soft);
  color: var(--warn);
  font-size: .82rem;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
}

/* Hotels: filters stay closed until they are asked for */
.results-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.filter-drop > summary { list-style: none; }
.filter-drop > summary::-webkit-details-marker { display: none; }
.filter-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; cursor: pointer; user-select: none;
  background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: var(--shadow-sm); transition: transform .25s var(--spring), box-shadow .25s; }
.filter-toggle:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.filter-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--sage-soft); color: var(--sage-deep); font-size: .8rem; font-weight: 700; }
.filter-caret { transition: transform .25s var(--ease); line-height: 1; margin-top: -5px; }
.filter-drop[open] .filter-caret { transform: rotate(180deg); margin-top: 5px; }
.filter-drop .filters { position: static; max-height: none; overflow: visible; margin-top: 10px; padding: 18px 20px; animation: rise .3s var(--ease) both; }
.filter-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 24px; align-items: start; }
.filter-form > input { display: none; }
.filter-form .f-group { margin: 0; padding: 0; border: 0; }
.filter-form .f-group:has(.fcheck) { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px 14px; }
.filter-form .f-group:has(.fcheck) legend { grid-column: 1 / -1; }
.filter-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
@media (max-width: 760px) { .filter-form { grid-template-columns: minmax(0, 1fr); } }

/* Destinations: each country is a soft card with photo tiles */
.dest-hero .country-chips { gap: 10px; }
.country { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 22px; margin: 22px 0; }
.country-head { border-bottom: 0; padding-bottom: 0; margin-bottom: 16px; }
.country-head h2 { position: relative; padding-bottom: 6px; font-size: 1.6rem; }
.country-head h2::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 44px; height: 4px; border-radius: 4px; background: var(--peach); }
.country:nth-of-type(3n+2) .country-head h2::after { background: var(--sage); }
.country:nth-of-type(3n+3) .country-head h2::after { background: var(--lilac); }
.city-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.city-card { flex-direction: column; align-items: stretch; gap: 0; padding: 0; overflow: hidden; background: var(--bg); box-shadow: none; }
.city-card:hover { box-shadow: var(--shadow); }
.city-photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 0; }
.city-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.city-card:hover .city-photo img { transform: scale(1.06); }
.city-initial { display: grid; font-size: 2.6rem; }
.city-text { padding: 11px 13px 13px; gap: 2px; }
.city-text b { font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; }
@media (max-width: 560px) {
  .country { padding: 16px; }
  .city-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .country-head .btn { width: 100%; text-align: center; }
}
.a11y-motion .city-photo img { transition: none; }

/* ===== Mobile stability: no sideways drift, pinch-zoom stays allowed ===== */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
html,body{max-width:100%;overflow-x:hidden;overflow-x:clip;overscroll-behavior-x:none}
:where(img,svg,video,canvas,iframe,table){max-width:100%}
:where(img,video){height:auto}
:where(h1,h2,h3,h4,p,li,a,span,td,th,label,button){overflow-wrap:break-word}
@media (pointer:coarse){input,select,textarea{font-size:max(16px,1em)}}

/* ===== phone fit: nothing wider than the screen, no sideways wobble, no zoom on inputs ===== */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
html,body{max-width:100%;overflow-x:hidden}
@supports (overflow:clip){html,body{overflow-x:clip}}
img,video,iframe,canvas{max-width:100%}
img,video{height:auto}
h1,h2,h3,h4,h5,p,li,dt,dd,blockquote,figcaption,label,td,th{overflow-wrap:break-word}
pre{max-width:100%;overflow-x:auto}
@media (max-width:700px){
  input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea{font-size:max(16px,1em)}
}
