/* Shared foundation for every theme and section variant.
 *
 * Token contract: every theme file (themes/*.css) defines all of these on
 * :root, and section CSS uses only these, never hard-coded colours or fonts.
 * That is what lets any section sit inside any theme.
 *
 *   --bg --bg-2 --bg-3        page backgrounds, darkest last
 *   --page-bg                 body background (colour or gradient)
 *   --surface --surface-2     cards and raised panels (may be translucent)
 *   --panel                   opaque panel colour (menus, dialogs)
 *   --header-bg               header background once scrolled
 *   --glass                   translucent fill over photos
 *   --ink --ink-2 --muted     text, softer text, labels
 *   --line                    hairlines and borders
 *   --accent --accent-2       the orange gradient
 *   --on-accent               text on the orange
 *   --accent-soft             faint orange fill
 *   --radius                  default corner radius
 *   --font-body               running text
 *   --font-head               labels, buttons, small headings
 *   --font-display            big headings (sans in A/C, serif in B)
 *   --display-weight          weight for --font-display
 *   --display-tracking        letter-spacing for --font-display
 *   --font-logo               the wordmark
 *   --gutter --max            page side padding and content width
 *   --head-h                  header height (heroes pad their top by this)
 *
 * Optional, with dark defaults here (the light themes of the second design set them):
 *   --scheme                  light or dark: form controls and the date picker
 *   --btn-shadow --btn-shadow-hover   the primary button's glow
 *   --ghost-bg --ghost-bg-hover --ghost-line   the ghost button
 *   --shadow-pop              popups (date picker, phone codes)
 *   --bad --good              error and success text
 *
 * Gamla útlitið (theme gamla, the pages in sections/pages-sidur.css) adds tokens
 * only it defines and uses:
 *   --paper                   the page column's background
 *   --logo-accent             the coloured last word of the wordmark
 *   --accent-ink              the accent as text on the page (darker, readable)
 *   --shadow                  soft card shadow
 *   --radius-sm               small corners (fields, chips)
 *   --dark --on-dark          the dark band (footer, menu) and its text
 */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--page-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.menu-open { overflow: hidden; }
.no-anim *, .no-anim *::before, .no-anim *::after { transition: none !important; animation-duration: 0s !important; }

/* ---------- Buttons ---------- */
/* Section heading (partials/section_title.html), the same in every section and theme */
.sec-head { margin: 0; }
.sec-head h2 { margin: 0; font: var(--display-weight) clamp(36px, 5vw, 64px)/1 var(--font-display); letter-spacing: var(--display-tracking); color: var(--accent); text-wrap: balance; }
.sec-head p { margin: 12px 0 0; font: 600 clamp(18px, 2vw, 24px)/1.3 var(--font-head); color: var(--ink); text-wrap: balance; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; border: 0; cursor: pointer;
  font: 700 15px/1 var(--font-head); text-decoration: none; white-space: nowrap;
  transition: transform .15s, box-shadow .2s, background .2s;
}
.btn-primary { color: var(--on-accent); background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: var(--btn-shadow, 0 10px 30px rgba(255, 127, 80, .28)); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--btn-shadow-hover, 0 14px 34px rgba(255, 127, 80, .38)); }
.btn-ghost { color: var(--ink); background: var(--ghost-bg, rgba(255, 255, 255, .08)); border: 1px solid var(--ghost-line, rgba(255, 255, 255, .22)); }
.btn-ghost:hover { background: var(--ghost-bg-hover, rgba(255, 255, 255, .14)); }
.btn-glass { color: var(--ink); background: var(--glass); border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(10px); }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }

/* ---------- Booking form: shared hooks every hero styles ----------
 * form.booking > .booking-title > strong + .booking-summary
 *              > label.field > span + input/select
 *              > button.btn  > p.booking-note > p.booking-hint (live availability)
 */
.booking-summary { font-size: 13px; color: var(--accent); }
.booking-hint { margin: 0; font-size: 13px; color: var(--accent); grid-column: 1 / -1; }
.booking-hint:empty { display: none; }
.booking-hint.bad { color: var(--bad, #ff9b8f); }
/* Until a bookable stay is chosen: still clickable (opens the calendar), but quiet. */
.booking .btn.btn-primary.is-waiting { opacity: .5; box-shadow: none; filter: saturate(.5); transform: none; }
.booking .field input, .booking .field select { color-scheme: var(--scheme, dark); }
.booking-closed { padding: 18px 20px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--line); max-width: 560px; }
.booking-closed p { margin: 0 0 10px; }
.booking-closed a { color: var(--accent); }

/* ---------- Language flags (shared markup, variants restyle) ---------- */
.flag img, .lang-flag img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; z-index: 130; left: 50%; bottom: 96px; translate: -50% 20px; opacity: 0; pointer-events: none;
  width: max-content; max-width: calc(100vw - 32px); text-align: center;
  padding: 12px 18px; border-radius: 12px; background: #fff; color: #111; font-weight: 500; transition: opacity .25s, translate .25s;
}
.toast.show { opacity: 1; translate: -50% 0; }
/* Above the date picker, which covers the bottom of the screen on phones */
body.dp-open .toast { bottom: auto; top: 16px; translate: -50% -20px; }
body.dp-open .toast.show { translate: -50% 0; }

/* ---------- Booking flow pages (/boka/, payment pages) ---------- */
/* Flow pages: the footer sits at the bottom of the screen on short pages instead of below the fold */
body:has(> .flow) { display: flex; flex-direction: column; min-height: 100svh; }
.flow { flex: 1; padding: calc(var(--head-h) + clamp(24px, 4vw, 44px)) 0 clamp(32px, 3vw, 40px); }
.flow-head { margin-bottom: 28px; }
/* The booking form's step has a shorter heading so the form fits a desktop screen */
.flow-head.compact { margin-bottom: 20px; }
.flow-head.compact h1 { font-size: clamp(26px, 3vw, 36px); }
.flow-head.compact p { max-width: none; margin-top: 6px; }
.back-link { display: inline-block; margin-bottom: 18px; color: var(--ink-2); font: 600 14px/1 var(--font-head); text-decoration: none; }
.back-link:hover { color: var(--accent); }
.house-rules { margin: 0; padding-left: 22px; display: grid; gap: 14px; color: var(--ink-2); line-height: 1.6; }
.house-rules li::marker { color: var(--accent); font-weight: 700; }
.flow-head .kicker { font: 700 12px/1 var(--font-head); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
.flow-head h1 { margin: 0; font: var(--display-weight) clamp(30px, 4.4vw, 50px)/1.08 var(--font-display); letter-spacing: var(--display-tracking); }
.flow-head p { margin: 10px 0 0; color: var(--ink-2); max-width: 60ch; }
.flow-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: start; }
.card { padding: clamp(18px, 2.5vw, 28px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.card + .card { margin-top: 18px; }
.card h2 { margin: 0 0 16px; font: 700 19px/1.25 var(--font-head); }
.summary-card { position: sticky; top: calc(var(--head-h) + 16px); }
.summary-photo { aspect-ratio: 2 / 1; object-fit: cover; width: 100%; border-radius: calc(var(--radius) - 6px); margin-bottom: 18px; }
dl.lines { margin: 0; display: grid; }
dl.lines div { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
dl.lines div:last-child { border-bottom: 0; }
dl.lines dt { color: var(--muted); }
dl.lines dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
dl.lines .total { padding-top: 14px; border-top: 1px solid var(--line); border-bottom: 0; }
dl.lines .total dt { color: var(--ink); font-weight: 700; }
dl.lines .total dd { font: 800 22px/1.2 var(--font-head); color: var(--accent); }
dl.lines .discount dd { color: var(--good, #7fd8a8); }
.card-rule { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.approx { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
/* align-content: start keeps inputs their own height when a neighbour in the row shows an error */
.fld { display: grid; gap: 6px; align-content: start; font-size: 13px; font-weight: 600; color: var(--muted); }
.fld[hidden] { display: none; }
.fld input, .fld select, .fld textarea {
  width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); font: 400 16px/1.3 var(--font-body); color-scheme: var(--scheme, dark);
}
/* Own chevron so it sits inside the padding instead of against the edge */
.fld select {
  appearance: none; padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 21px) 50%, calc(100% - 16px) 50%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
/* Flag emoji for the phone code. Windows has no flag glyphs, so bring our own
   (Twemoji, CC-BY 4.0); unicode-range limits it to the flag letters. */
@font-face {
  font-family: "Twemoji Country Flags"; font-display: swap; unicode-range: U+1F1E6-1F1FF;
  src: url("../fonts/TwemojiCountryFlags.a19faae092f7.woff2") format("woff2");
}
.phone-row { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 8px; }
.dial { position: relative; display: block; }
.dial-shown {
  display: flex; align-items: center; height: 100%; padding: 13px 34px 13px 14px; border-radius: 12px; border: 1px solid var(--line);
  background-color: var(--bg); color: var(--ink); font: 400 16px/1.3 var(--font-body); font-variant-numeric: tabular-nums;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
/* The real select sits invisibly on top, so tapping opens the full country list */
.dial select { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dial-shown, .dial select { font-family: "Twemoji Country Flags", var(--font-body); }
/* With JavaScript the select is replaced by a digits-only combobox (site.js) */
.dial.js .dial-shown, .dial.js select { display: none; }
.dial-box {
  display: flex; align-items: center; gap: 6px; height: 100%; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); font: 400 16px/1.3 var(--font-body);
}
.dial-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.fld.invalid .dial-box { border-color: var(--bad, #ff9b8f); }
.fld .dial-box input, .fld .dial-box input:focus {
  width: 100%; min-width: 0; padding: 13px 0; border: 0; border-radius: 0; background: none; box-shadow: none; outline: none;
  font-variant-numeric: tabular-nums;
}
.dial-plus { margin-right: -6px; }
.dial-flag { font-family: "Twemoji Country Flags", var(--font-body); font-weight: 400; }
.dial-box .dial-flag:empty { display: none; }
.dial-list {
  position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; width: min(300px, calc(100vw - 2 * var(--gutter)));
  max-height: 280px; overflow-y: auto; margin: 0; padding: 6px; list-style: none;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-pop, 0 12px 32px rgba(0, 0, 0, .35));
}
.dial-list li {
  display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 8px; cursor: pointer;
  color: var(--ink); font: 400 15px/1.3 var(--font-body);
}
.dial-list li[aria-selected="true"], .dial-list li:hover { background: var(--accent-soft); }
.dial-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dial-code { color: var(--muted); font-variant-numeric: tabular-nums; }
.dial:focus-within .dial-shown { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.fld.invalid .dial-shown { border-color: var(--bad, #ff9b8f); }
.fld textarea { resize: vertical; min-height: 64px; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.fld .err { color: var(--bad, #ff9b8f); font-weight: 500; }
.fld.invalid input, .fld.invalid select { border-color: var(--bad, #ff9b8f); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--accent); flex: none; }
.notice { padding: 14px 16px; border-radius: 14px; background: var(--accent-soft); border: 1px solid rgba(242, 167, 100, .35); }
.notice.bad { background: rgba(240, 113, 107, .1); border-color: rgba(240, 113, 107, .4); }
.notice.ok { background: rgba(95, 207, 154, .1); border-color: rgba(95, 207, 154, .35); }
.alts { display: grid; gap: 10px; margin-top: 16px; }
.alt { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); text-decoration: none; }
.alt:hover { border-color: var(--accent); }
.alt b { font-family: var(--font-head); }
.alt span { color: var(--accent); font-weight: 700; }
.search-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 10px; align-items: end; }
.card > .notice { margin: 16px 0 0; }
.alts-title { margin: 24px 0 0; }
.flow-link { color: var(--accent); }
.flow-narrow { max-width: 680px; margin-inline: auto; }
.flow-head-last { margin-bottom: 0; }
.flow-text { color: var(--ink-2); }
.flow-contact { margin: 0; }
.flow-open-box { display: none; }  /* Gamla útlitið's phones only: opens its booking box */
.flow-rules { margin-top: 14px; color: var(--ink-2); font-size: 14px; }
.flow-rules summary { cursor: pointer; }
.flow-rules ol { padding-left: 20px; }
.flow-rules li { margin-bottom: 6px; }
.summary-note { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.secure { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 13px; margin-top: 12px; }
.pay-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 18px; }
.status-big { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; font-size: 28px; margin-bottom: 16px; }
.status-big.ok { background: rgba(95, 207, 154, .15); color: #5fcf9a; border: 2px solid #5fcf9a; }
.status-big.wait { background: var(--accent-soft); color: var(--accent); border: 2px solid var(--accent); }
.status-big.bad { background: rgba(240, 113, 107, .12); color: #f0716b; border: 2px solid #f0716b; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Simple header used on the booking-flow pages */
.flow-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--head-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-inline: var(--gutter);
  background: var(--header-bg); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.flow-header .logo { font-family: var(--font-logo); font-size: clamp(19px, 2.3vw, 24px); color: var(--accent); text-decoration: none; white-space: nowrap; }
/* Language switch (partials/lang_toggle.html), shared by the B · Birta header and the booking pages */
.lang-toggle { display: flex; flex: none; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.lang-toggle a {
  display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; text-decoration: none;
  font: 600 12px/1 var(--font-head); color: var(--muted); transition: background .2s, color .2s;
}
.lang-toggle a:hover { color: var(--ink); }
.lang-toggle img { width: 22px; height: 15px; object-fit: cover; border-radius: 2px; }
/* the selected language: a neutral fill (the text colour, faint), not the accent */
.lang-toggle a[aria-current="true"] { background: color-mix(in srgb, var(--ink) 13%, transparent); color: var(--ink); }
@media (max-width: 640px) {
  .lang-toggle a { padding: 6px 7px; }
  .lang-toggle a span { display: none; }
}
.flow-footer { padding: 32px var(--gutter); border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.flow-footer a { color: var(--ink); }

@media (max-width: 900px) {
  .flow-grid { grid-template-columns: minmax(0, 1fr); }
  .summary-card { position: static; order: -1; }
  /* The photo would push the form a screen down on a phone */
  .summary-photo { display: none; }
  .search-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .search-row .btn { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  /* One column on a phone, except first and last name, which stay side by side */
  .form-grid > :not([data-field=first_name], [data-field=last_name]) { grid-column: 1 / -1; }
  /* Label plus total is wider than a phone; let it wrap inside a full-width button */
  .pay-actions .btn { flex: 1 1 100%; white-space: normal; line-height: 1.3; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Date picker (site.js) ---------- */
[data-dp-field] { cursor: pointer; caret-color: transparent; }
.dp {
  position: absolute; z-index: 120; width: 660px; max-width: calc(100vw - 24px);
  padding: 16px; border-radius: var(--radius); color: var(--ink);
  background: var(--panel); border: 1px solid var(--line);
  box-shadow: var(--shadow-pop, 0 24px 70px rgba(0, 0, 0, .55));
  font-family: var(--font-body);
}
.dp[hidden] { display: none; }
/* Inline (a [data-dp-inline] host, Gamla útlitið's right column): in the page, one month, compact */
.dp.dp-inline { position: static; z-index: auto; width: auto; max-width: none; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.dp-inline .dp-head { margin-bottom: 4px; gap: 6px; }
.dp-inline .dp-status { font-size: 12.5px; min-height: 2.6em; display: grid; place-items: center; }  /* two lines kept: picking doesn't move the days */
.dp-inline .dp-nav { width: 30px; height: 30px; font-size: 17px; }
.dp-inline .dp-months { grid-template-columns: minmax(0, 1fr); }
.dp-inline .dp-title { font-size: 14px; margin-bottom: 6px; }
.dp-inline .dp-wd span { font-size: 10px; padding-bottom: 4px; letter-spacing: 0; }
.dp-inline .dp-days > span { height: 38px; }
.dp-inline .dp-days button { height: 36px; border-radius: 8px; font-size: 13px; }
.dp-inline .dp-days button small { font-size: 9px; }
.dp-inline .dp-foot { margin-top: 8px; padding-top: 8px; }
.dp-inline .dp-legend { font-size: 11px; }
.dp-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.dp-status { flex: 1; margin: 0; text-align: center; font: 600 14px/1.3 var(--font-head); color: var(--ink-2); }
.dp-nav {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; flex: none;
}
.dp-nav:hover:not([disabled]) { border-color: var(--accent); color: var(--accent); }
.dp-nav[disabled] { opacity: .3; cursor: default; }
.dp-months { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.dp-title { text-align: center; font: 700 15px/1.2 var(--font-head); margin: 2px 0 10px; text-transform: capitalize; }
.dp-wd, .dp-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.dp-days > span { height: 48px; } /* empty cells keep the 6-row height */
.dp-wd span { text-align: center; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding-bottom: 6px; }
.dp-days button {
  position: relative; height: 46px; margin: 1px 0; padding: 0; border: 0; border-radius: 10px; cursor: pointer;
  background: none; color: var(--ink); font: 600 14px/1 var(--font-body);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
}
.dp-days button small { font: 500 10px/1 var(--font-body); color: var(--muted); }
.dp-days button:hover:not([disabled]) { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.dp-days button[disabled] { cursor: default; }
.dp-days button.past { color: var(--muted); opacity: .35; }
.dp-days button.full { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(240, 113, 107, .7); opacity: .6; }
/* a full night can still be a check-out day */
.dp-days button.full.can-out { text-decoration: none; opacity: 1; }
.dp-days button.full.can-out:not(.end) { color: var(--ink); }
.dp-days button.today { box-shadow: inset 0 0 0 1px var(--line); }
/* The range is one band: square in the middle, rounded where a week row starts or ends,
   and running in behind the check-in and check-out tiles (the ::before half-cells). */
.dp-days button.in-range { background: var(--accent-soft); border-radius: 0; }
.dp-days button.in-range:nth-child(7n+1) { border-radius: 10px 0 0 10px; }
.dp-days button.in-range:nth-child(7n) { border-radius: 0 10px 10px 0; }
.dp-days button.in-range:nth-child(7n+1):nth-child(7n) { border-radius: 10px; }
.dp-days button.in-range:hover:not([disabled]) { box-shadow: none; background: color-mix(in srgb, var(--accent) 24%, transparent); }
.dp-days button.start:not(:nth-child(7n)):has(+ .in-range, + .end)::before,
.dp-days button.end:not(:nth-child(7n+1)):is(.in-range + *, .start + *)::before {
  content: ""; position: absolute; top: 0; bottom: 0; z-index: -1; width: 50%; background: var(--accent-soft);
}
.dp-days button.start::before { right: 0; }
.dp-days button.end::before { left: 0; }
.dp-days button.start, .dp-days button.end,
.dp-days button.start:hover:not([disabled]), .dp-days button.end:hover:not([disabled]) {
  box-shadow: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--on-accent); border-radius: 10px;
}
.dp-days button.start small, .dp-days button.end small { color: var(--on-accent); opacity: .8; }
.dp-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.dp-legend { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.dp-legend i { display: inline-block; width: 14px; height: 2px; margin-left: 8px; }
.dp-legend i:first-child { margin-left: 0; }
.dp-key-full { background: rgba(240, 113, 107, .8); }
.dp-key-price { background: var(--muted); height: 8px !important; width: 8px !important; border-radius: 50%; }
.dp-actions { display: flex; gap: 8px; margin-left: auto; }
.dp-clear { border: 0; background: none; color: var(--ink-2); text-decoration: underline; cursor: pointer; font: 600 14px var(--font-body); padding: 10px; }
.dp-done { padding: 11px 20px; }
.dp.sheet {
  position: fixed; left: 0 !important; right: 0; bottom: 0; top: auto !important; width: auto; max-width: none;
  max-height: 88svh; overflow-y: auto; border-radius: 22px 22px 0 0;
  padding: 16px 14px calc(16px + env(safe-area-inset-bottom));
}
.dp.sheet .dp-months { grid-template-columns: minmax(0, 1fr); }
.dp.sheet .dp-days button { height: 50px; }
.dp.sheet .dp-days > span { height: 52px; }
.dp.sheet .dp-legend { display: none; }
body.dp-open .mobile-cta, body.dp-open [class*="mobile-cta"] { visibility: hidden; }
@media (max-width: 699px) {
  body.dp-open::after { content: ""; position: fixed; inset: 0; z-index: 110; background: rgba(0, 0, 0, .5); }
}

/* ---------- Guest picker (site.js) ---------- */
.dp.gp { width: 320px; padding: 8px 14px 12px; }
/* on a phone it's a bottom sheet: full width, clear of the home bar */
.dp.gp.sheet { width: auto; padding: 8px 16px calc(14px + env(safe-area-inset-bottom)); }
.gp-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 2px; border-bottom: 1px solid var(--line); }
.gp-row b { display: block; font: 600 15px/1.3 var(--font-head); }
.gp-row small { display: block; color: var(--muted); font-size: 13px; line-height: 1.3; }
.gp-step { display: flex; align-items: center; gap: 8px; }
.gp-step output { min-width: 22px; text-align: center; font: 700 17px/1 var(--font-head); font-variant-numeric: tabular-nums; }
.gp-step button {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer;
}
.gp-step button:hover:not([disabled]) { border-color: var(--accent); color: var(--accent); }
.gp-step button[disabled] { opacity: .3; cursor: default; }
.gp-note { flex: 1 1 0; min-width: 0; margin: 0 0 0 2px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.dp.gp .dp-foot { margin-top: 0; padding-top: 10px; border-top: 0; } /* the last row's line is enough */

/* ---------- Cookie consent banner (base.html, posthog.js) ----------
 * Shown until the guest picks Accept or Decline, then hidden; closing it
 * leaves the sticky "Book your stay" bar free again, so it never covers it
 * for long. Sits above everything else while it's up. The banner itself
 * always rests at the bottom (see pages-sidur.css for the fab lifting
 * above it instead, the owner's 4 Dec correction). */
.cookie-consent {
  position: fixed; z-index: 200; left: 12px; right: 12px; bottom: 12px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  max-width: 640px; margin-inline: auto;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-pop, 0 14px 34px rgba(0, 0, 0, .3));
  font: 400 14px/1.5 var(--font-body);
}
.cookie-consent[hidden] { display: none; }
.cookie-consent p { flex: 1 1 220px; margin: 0; }
.cookie-consent-actions { display: flex; flex: 1 1 100%; gap: 10px; }
.cookie-consent-actions .btn { flex: 1 1 0; padding: 10px 16px; font-size: 14px; }
@media (min-width: 560px) {
  .cookie-consent-actions { flex: 0 0 auto; }
  .cookie-consent-actions .btn { flex: 0 0 auto; }
}
