/* Naviyahu design system. Presentation only: the experiments rely on the markup, not on these styles. */

:root {
  color-scheme: light;
  --bg: #faf7f2;
  --surface: #ffffff;
  --sand: #f3ede4;
  --sand-2: #ebe3d6;
  --ink: #1d2420;
  --ink-2: #4a524d;
  --ink-3: #646b66;
  --line: #e7e0d5;
  --line-strong: #d3c9b9;
  --brand: #1f4d45;
  --brand-hover: #163a34;
  --brand-soft: #e3ede9;
  --accent: #a94f2d;
  --star: #c48a2c;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --notice: #fff6e3;
  --notice-line: #efd49c;
  --ring: 0 0 0 3px rgba(31, 77, 69, .28);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-1: 0 1px 2px rgba(29, 36, 32, .05), 0 1px 6px rgba(29, 36, 32, .04);
  --shadow-2: 0 2px 4px rgba(29, 36, 32, .04), 0 14px 36px rgba(29, 36, 32, .10);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font: 16px/1.55 var(--sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-hover); }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.7rem); line-height: 1.12; margin: 0 0 .6rem; }
h2 { font-size: 1.4rem; line-height: 1.25; margin: 2.25rem 0 .9rem; }
p { margin: 0 0 .9rem; }
code { font-size: .88em; background: var(--sand); padding: .1em .35em; border-radius: 5px; }

:focus-visible { outline: 3px solid rgba(31, 77, 69, .45); outline-offset: 2px; border-radius: 6px; }

main { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 2rem 1.5rem 4.5rem; flex: 1 0 auto; }

/* Header and footer */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem max(1.5rem, calc((100% - var(--wrap)) / 2 + 1.5rem));
  background: rgba(250, 247, 242, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--serif); font-weight: 600; font-size: 1.4rem; letter-spacing: -.01em;
  color: var(--ink); text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand-mark { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 10px; background: var(--brand); }
.brand-mark svg { width: 1.15rem; height: 1.15rem; }
.topbar nav { display: flex; align-items: center; gap: .25rem; }
.topbar nav a {
  padding: .45rem .85rem; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--ink-2);
}
.topbar nav a:hover { background: var(--sand); color: var(--ink); }

.site-footer { border-top: 1px solid var(--line); background: var(--sand); color: var(--ink-2); font-size: .9rem; }
.site-footer .inner {
  max-width: var(--wrap); margin: 0 auto; padding: 2rem 1.5rem;
  display: flex; flex-wrap: wrap; gap: .5rem 2rem; align-items: center; justify-content: space-between;
}
.site-footer .brand { font-size: 1.15rem; }
.site-footer .brand-mark { width: 1.6rem; height: 1.6rem; border-radius: 8px; }
.site-footer .brand-mark svg { width: .95rem; height: .95rem; }
.site-footer p { margin: 0; }

/* Type helpers */
.lede { font-size: 1.12rem; color: var(--ink-2); margin: 0 0 1.5rem; max-width: 46rem; }
.quiet { color: var(--ink-3); font-size: .92rem; }
.optional { color: var(--ink-3); font-weight: 400; font-size: .85em; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 700; color: var(--accent); margin: 0 0 .75rem; }
.error { color: var(--danger); margin: .1rem 0 .6rem; font-size: .9rem; font-weight: 600; }
p.error[role="alert"] { background: var(--danger-soft); border: 1px solid #f5c2bd; padding: .7rem 1rem; border-radius: var(--radius-sm); }
.notice {
  background: var(--notice); border: 1px solid var(--notice-line); border-radius: var(--radius-sm);
  padding: .85rem 1.1rem; margin: .9rem 0; color: #4b3a14; font-size: .95rem;
}
.notice .button { display: flex; width: fit-content; margin-top: .6rem; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 2.9rem; padding: .7rem 1.3rem; border: 1px solid var(--brand); border-radius: 12px;
  background: var(--brand); color: #fff; font: inherit; font-weight: 650; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, box-shadow .15s;
}
.button:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: #fff; }
.button:focus-visible { outline: none; box-shadow: var(--ring); }
.button.secondary { background: var(--surface); color: var(--brand); border-color: var(--line-strong); }
.button.secondary:hover { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-hover); }
.button.small { min-height: 2.4rem; padding: .45rem 1rem; font-size: .92rem; border-radius: 10px; }

/* Forms */
label { font-weight: 600; font-size: .88rem; color: var(--ink); }
input, select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  min-height: 2.9rem; padding: .6rem .8rem; margin: .3rem 0 .65rem;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 5rem; }
input::placeholder, textarea::placeholder { color: #8a8f8a; }
input:hover, select:hover, textarea:hover { border-color: #b9ad99; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
input[type="checkbox"] { accent-color: var(--brand); }
label.check { display: flex; align-items: flex-start; gap: .6rem; font-weight: 500; font-size: .95rem; line-height: 1.4; cursor: pointer; }
label.check input { width: 1.15rem; height: 1.15rem; min-height: 0; margin: .1rem 0 0; flex: none; padding: 0; }

.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; margin: 0 0 1.25rem; box-shadow: var(--shadow-1);
}
.panel h2 { margin-top: 0; font-size: 1.25rem; }
fieldset.panel { min-width: 0; }
fieldset.panel legend { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; padding: 0 .4rem; margin-left: -.4rem; }
.stack { display: flex; flex-direction: column; }
.stack > .button { align-self: flex-start; margin-top: .6rem; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.row > div { min-width: 0; }
.actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: .25rem; }

/* Search form */
.search-form {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 1rem; align-items: end;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem 1.4rem .75rem; box-shadow: var(--shadow-2);
}
.search-form .field { grid-column: span 2; min-width: 0; }
.search-form .field.wide { grid-column: span 4; }
.search-form .field:nth-of-type(2), .search-form .field:nth-of-type(3) { grid-column: span 3; }
.search-form .field:nth-of-type(5), .search-form .field:nth-of-type(6) { grid-column: span 3; }
.search-form label.check { grid-column: span 3; align-self: center; margin-bottom: .65rem; }
.search-form .button { grid-column: span 3; margin-bottom: .65rem; }
.search-form.compact { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; box-shadow: var(--shadow-1); margin-bottom: 1rem; }
.search-form.compact .field, .search-form.compact .field:nth-of-type(2), .search-form.compact .field:nth-of-type(3) { grid-column: auto; }
.search-form.compact .button { grid-column: auto; }

/* Home */
.home-hero {
  position: relative; margin: -2rem calc(50% - 50vw) 0; padding: 4.5rem 1.5rem 3rem; overflow: hidden;
  background: linear-gradient(180deg, #f2c499 0%, #f4c9a0 40%);
}
.home-hero-art { position: absolute; inset: 0; }
.home-hero-art img { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; min-height: 62%; object-fit: cover; object-position: center bottom; }
.home-hero-art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(250, 247, 242, .0) 0%, rgba(250, 247, 242, .15) 55%, rgba(250, 247, 242, .95) 100%);
}
.home-hero-inner { position: relative; max-width: calc(var(--wrap) - 3rem); margin: 0 auto; }
.home-hero h1 { font-size: clamp(2.3rem, 1.6rem + 3vw, 3.9rem); max-width: 14ch; }
.home-hero .lede { color: #3b332b; font-size: 1.2rem; max-width: 32rem; }
.home-hero .search-form { margin-top: clamp(6rem, 14vw, 15rem); }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 3rem 0 1rem; }
.section-head h2 { margin: 0; font-size: 1.75rem; }

.destinations { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; }
.destinations a {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 5;
  text-decoration: none; color: #fff; box-shadow: var(--shadow-1); background: var(--sand);
}
.destinations img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.destinations a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(20, 24, 22, .62)); }
.destinations span { position: absolute; left: 1.1rem; bottom: .95rem; z-index: 1; font-family: var(--serif); font-size: 1.6rem; font-weight: 600; }
.destinations a:hover img { transform: scale(1.04); }

.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; margin-top: 3rem; padding: 0; list-style: none; }
.values li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; }
.values h3 { margin: .7rem 0 .3rem; font-size: 1.15rem; }
.values p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.values svg { width: 2.25rem; height: 2.25rem; }

/* Page headers */
.page-head { margin-bottom: 1.5rem; }
.page-head .quiet { margin: 0; }

/* Search results */
.search-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 2rem; align-items: start; }
.search-layout .search-form {
  position: sticky; top: 5.5rem; grid-template-columns: 1fr 1fr; padding: 1.25rem 1.25rem .6rem; box-shadow: var(--shadow-1);
}
.search-layout .search-form .field,
.search-layout .search-form .field.wide,
.search-layout .search-form .button,
.search-layout .search-form label.check { grid-column: span 2; }
.search-layout .search-form .button { margin-top: .25rem; width: 100%; }
.search-layout .search-form label.check { margin: .1rem 0 1rem; }
.results-head { margin: 0 0 1rem; }
.results-placeholder { border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.results-placeholder img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; opacity: .9; }

.results { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1rem; }
.offer {
  display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; gap: 1.4rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem; box-shadow: var(--shadow-1);
}
.offer-media { border-radius: 12px; overflow: hidden; background: var(--sand); aspect-ratio: 4 / 3; }
.offer-media img { width: 100%; height: 100%; object-fit: cover; }
.offer-body { padding: .3rem 0; min-width: 0; }
.offer h2 { margin: 0 0 .25rem; font-size: 1.35rem; }
.offer h2 a { color: var(--ink); text-decoration: none; }
.offer h2 a:hover { color: var(--brand); text-decoration: underline; }
.offer p { margin: .3rem 0; }
.offer-body > p:not(.meta):not(.policy) { color: var(--ink-2); font-size: .95rem; }
.offer-price {
  display: flex; flex-direction: column; align-items: flex-end; justify-content: flex-end; text-align: right;
  min-width: 11.5rem; padding: .3rem .4rem .3rem 1.2rem; border-left: 1px solid var(--line);
}
.offer-price p { margin: 0 0 .2rem; color: var(--ink-2); }
.offer-price strong { font-size: 1.6rem; color: var(--ink); font-weight: 700; letter-spacing: -.01em; }
.offer-price .button { margin-top: .7rem; }
.meta { color: var(--ink-3); font-size: .9rem; }
.stars { color: var(--star); letter-spacing: .05em; }
.score { display: inline-block; background: var(--brand); color: #fff; font-weight: 700; font-size: .8rem; padding: .05rem .4rem; border-radius: 6px; }
.policy { font-weight: 600; font-size: .9rem; color: var(--ink-2); }
.empty { padding: 2rem; color: var(--ink-3); background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius); text-align: center; }

.offer.sponsored { display: block; border: 1px solid #e2b36a; margin: 0 0 1rem; padding: 1.25rem 1.4rem; box-shadow: var(--shadow-1); }
.tag { display: inline-block; margin: 0 0 .4rem; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #7a5200; }
.offer.sponsored .price { font-size: .95rem; }
.offer.sponsored .price strong { font-size: 1.1rem; }

.layout-b .results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.layout-b .offer { grid-template-columns: 1fr; gap: .9rem; }
.layout-b .offer-media { aspect-ratio: 16 / 9; }
.layout-b .offer-body { padding: 0 .3rem; }
.layout-b .offer-price { align-items: flex-start; text-align: left; border-left: 0; border-top: 1px solid var(--line); padding: .9rem .3rem .3rem; }

/* Hotel page */
.crumbs { margin: 0 0 1.25rem; font-size: .92rem; }
.crumbs a { text-decoration: none; font-weight: 600; }
.crumbs a:hover { text-decoration: underline; }
.hotel-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: .25rem; margin-bottom: 1.25rem; }
.hotel-head h1 { margin-bottom: .2rem; }
.gallery { display: grid; grid-template-columns: 2fr 1fr; gap: .75rem; margin: 0 0 1.75rem; }
.gallery > div { border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; }
.gallery > div:last-child img { aspect-ratio: auto; }
.hotel-about { max-width: 48rem; }
.hotel-about > p { font-size: 1.08rem; color: var(--ink-2); }
.amenities { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0 0 .5rem; list-style: none; }
.amenities li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .3rem .85rem; font-size: .88rem; color: var(--ink-2); }

.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1); }
.rates { width: 100%; border-collapse: collapse; }
.rates th, .rates td { text-align: left; padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.rates tbody tr:last-child td { border-bottom: 0; }
.rates thead th { font-size: .76rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); background: var(--sand); font-weight: 700; padding-top: .8rem; padding-bottom: .8rem; }
.rates td:first-child { font-weight: 650; }
.rates td.price { font-size: 1.15rem; font-weight: 700; white-space: nowrap; }
.rates td.total { white-space: nowrap; color: var(--ink-2); }
.rates td .quiet { display: inline-block; margin-top: .15rem; font-size: .86rem; }
.rates td:last-child { text-align: right; }
.rates form { margin: 0; }
.rates .per-night { display: none; }

.reviews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.review { position: relative; margin: 0; padding: 1.25rem 1.4rem 1.1rem 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.review p { margin: 0 0 .6rem; font-family: var(--serif); font-size: 1.08rem; line-height: 1.5; }
.review footer { color: var(--ink-3); font-size: .88rem; font-weight: 600; }

/* Booking steps */
.steps { display: flex; gap: .5rem; list-style: none; padding: 0; margin: 0 0 1.5rem; flex-wrap: wrap; counter-reset: step; }
.steps li {
  counter-increment: step; display: flex; align-items: center; gap: .5rem;
  font-size: .85rem; font-weight: 600; color: var(--ink-3); padding: .3rem .8rem .3rem .35rem; border-radius: 999px; background: var(--sand);
}
.steps li::before {
  content: counter(step); display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line-strong); font-size: .78rem;
}
.steps li.done { color: var(--ink-2); }
.steps li.done::before { background: var(--brand-soft); border-color: transparent; color: var(--brand); }
.steps li[aria-current="step"] { background: var(--brand); color: #fff; }
.steps li[aria-current="step"]::before { background: #fff; color: var(--brand); border-color: transparent; }

.checkout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 1.75rem; align-items: start; }
.checkout > form.stack, .checkout > section { min-width: 0; }
.form-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-1);
}
.checkout > form.stack > label.check { margin: .4rem 0 .5rem; padding: .9rem 1rem; background: var(--sand); border-radius: var(--radius-sm); }

.summary {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 0 1.25rem;
  position: sticky; top: 5.5rem; overflow: hidden; box-shadow: var(--shadow-1);
}
.summary-media { aspect-ratio: 16 / 8; overflow: hidden; background: var(--sand); margin-bottom: 1.1rem; }
.summary-media img { width: 100%; height: 100%; object-fit: cover; }
.summary h2 { margin: 0 1.4rem .15rem; font-size: 1.3rem; }
.summary > p.quiet { margin: 0 1.4rem; }
.summary dl { grid-template-columns: minmax(5.5rem, 7.5rem) minmax(0, 1fr); margin: 1rem 1.4rem 0; padding-top: 1rem; border-top: 1px solid var(--line); }
dl { display: grid; grid-template-columns: auto 1fr; gap: .55rem 1rem; margin: .75rem 0 0; font-size: .95rem; }
dt { color: var(--ink-3); }
dd { margin: 0; text-align: right; }
.panel dd { text-align: left; }
.panel dl { grid-template-columns: minmax(7rem, auto) 1fr; }
dt.total, dd.total { font-weight: 700; color: var(--ink); border-top: 1px solid var(--line); padding-top: .7rem; margin-top: .2rem; font-size: 1.1rem; }
dd.total { margin-left: -1rem; padding-left: 1rem; }

/* Confirmation */
.done-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.done-head h1 { margin: 0; }
.done-head .lede { margin: .2rem 0 0; }
.done-icon { flex: none; display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 50%; background: var(--brand-soft); }
.done-icon svg { width: 1.6rem; height: 1.6rem; }

/* Entrance */
.hero { margin: .5rem 0 1.75rem; max-width: 50rem; }
.entrance-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 1.5rem; align-items: start; margin-bottom: 1.5rem; }
.entrance-grid > .panel { margin: 0; }
.entrance-grid > .panel:first-child { position: sticky; top: 5.5rem; }
.schema { overflow: auto; font-size: .82rem; line-height: 1.5; background: #1d2420; color: #e9efe9; padding: 1rem 1.2rem; border-radius: 12px; margin: 0; }

/* Narrow pages: sign-in, account, errors, gate result */
.narrow { max-width: 34rem; margin: 1rem auto 0; }
.narrow h1 { font-size: 2rem; }
.narrow > form.panel { padding: 1.75rem; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@media (max-width: 1020px) {
  .search-layout { grid-template-columns: 1fr; gap: 1.25rem; }
  .search-layout .search-form { position: static; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .search-layout .search-form .field, .search-layout .search-form .field.wide,
  .search-layout .search-form .field:nth-of-type(2), .search-layout .search-form .field:nth-of-type(3) { grid-column: span 2; }
  .search-layout .search-form label.check, .search-layout .search-form .button { grid-column: span 2; }
  .offer { grid-template-columns: 180px minmax(0, 1fr); }
  .offer-price { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between;
    text-align: left; border-left: 0; border-top: 1px solid var(--line); padding: .8rem .2rem .1rem; gap: .2rem 1rem; }
  .offer-price .button { margin-top: 0; margin-left: auto; }
  .layout-b .offer { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  main { padding: 1.25rem 1rem 3rem; }
  .topbar { padding: .7rem 1rem; }
  .brand { font-size: 1.25rem; }
  .topbar nav a { padding: .45rem .65rem; }
  h2 { font-size: 1.25rem; margin-top: 1.75rem; }
  .home-hero { margin-top: -1.25rem; padding: 2.5rem 1rem 1.5rem; }
  .home-hero .search-form { margin-top: 7rem; }
  .checkout, .layout-b .results, .entrance-grid, .values, .reviews, .gallery { grid-template-columns: 1fr; }
  .gallery > div:last-child { display: none; }
  .entrance-grid > .panel:first-child { position: static; }
  .search-form, .search-layout .search-form { grid-template-columns: 1fr 1fr; padding: 1rem 1rem .5rem; }
  .search-form .field, .search-form .field:nth-of-type(5), .search-form .field:nth-of-type(6) { grid-column: span 1; }
  .search-form .field.wide, .search-form label.check, .search-form .button,
  .search-layout .search-form .field.wide, .search-layout .search-form label.check, .search-layout .search-form .button { grid-column: span 2; }
  .search-form .field:nth-of-type(2), .search-form .field:nth-of-type(3),
  .search-layout .search-form .field, .search-layout .search-form .field:nth-of-type(2), .search-layout .search-form .field:nth-of-type(3) { grid-column: span 1; }
  .search-layout .search-form .field.wide { grid-column: span 2; }
  .search-form .button { width: 100%; }
  .search-form.compact { grid-template-columns: 1fr 1fr; }
  .search-form.compact .field:first-child, .search-form.compact .field:nth-of-type(2) { grid-column: span 1; }
  .search-form.compact .field:nth-of-type(3), .search-form.compact .button { grid-column: span 2; }
  .destinations { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .destinations a { aspect-ratio: 1 / 1; }
  .destinations span { font-size: 1.3rem; }
  .offer { grid-template-columns: 1fr; gap: .8rem; padding: .75rem; }
  .offer-media { aspect-ratio: 16 / 9; }
  .offer-body { padding: 0 .2rem; }
  .summary { position: static; }
  .row { grid-template-columns: 1fr; }
  .panel { padding: 1.2rem; }
  .actions .button { flex: 1 1 100%; }

  /* Rates become one card per rate. */
  .table-wrap { background: transparent; border: 0; box-shadow: none; overflow: visible; }
  .rates thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .rates, .rates tbody, .rates tr, .rates td { display: block; }
  .rates tr { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; margin-bottom: .8rem; box-shadow: var(--shadow-1); }
  .rates td { padding: 0; border: 0; }
  .rates td:first-child { font-family: var(--serif); font-size: 1.15rem; }
  .rates td.sleeps { color: var(--ink-3); font-size: .9rem; margin-bottom: .5rem; }
  .rates td.sleeps::before { content: "Sleeps "; }
  .rates td.rate { padding: .6rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: .6rem; }
  .rates td.price { display: inline-block; font-size: 1.3rem; }
  .rates .per-night { display: inline; font-size: .9rem; font-weight: 500; color: var(--ink-3); }
  .rates td.total { font-size: .9rem; }
  .rates td.total::after { content: " total incl. taxes"; }
  .rates td:last-child { text-align: left; margin-top: .75rem; }
  .rates td:last-child .button { width: 100%; }
  .done-head { align-items: flex-start; }
}

/* Lets beacon.js notice browser autofill. Kept as separate rules: an unknown selector drops its whole rule. */
@keyframes naviyahuAutofill { from { opacity: 1; } to { opacity: 1; } }
input:-webkit-autofill { animation: naviyahuAutofill 1ms; }
input:autofill { animation: naviyahuAutofill 1ms; }
