/* Reusable components */

/* Buttons: square, quiet, with a fill that wipes in on hover */
.btn {
  --wipe: var(--brand-strong); --wipe-text: #fff;
  position: relative; overflow: hidden; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 28px; border-radius: var(--r-sm); border: 1px solid var(--brand); background: var(--brand); color: var(--brand-contrast);
  font: 500 0.72rem/1 var(--font-ui); letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: color 0.45s var(--ease-out), border-color 0.45s var(--ease-out);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--wipe);
  transform: translateY(101%); transition: transform 0.55s var(--ease-out);
}
.btn:hover { color: var(--wipe-text); border-color: var(--wipe); text-decoration: none; }
.btn:hover::before { transform: none; }
.btn .icon { transition: transform 0.45s var(--ease-out); }
.btn:hover .icon:last-child:not(:first-child) { transform: translateX(4px); }
.btn-accent { --wipe: var(--forest-800); --wipe-text: #fff; background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }
.btn-ghost { --wipe: var(--text); --wipe-text: var(--bg); background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-glass { --wipe: #fff; --wipe-text: var(--forest-900); background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-lg { min-height: 56px; padding: 0 36px; font-size: 0.76rem; }
.btn-sm { min-height: 40px; padding: 0 20px; font-size: 0.68rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }
@media (max-width: 480px) { .btn { white-space: normal; text-align: center; line-height: 1.35; padding-block: 12px; letter-spacing: 0.1em; } }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--text);
  transition: background 0.3s, transform 0.3s var(--ease-out);
}
.icon-btn:hover { background: var(--brand-soft); }
.icon-btn.solid { background: var(--surface); box-shadow: var(--shadow-2); }
body.home .site-header:not(.is-scrolled) .icon-btn:hover { background: rgba(255, 255, 255, 0.16); }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: block; }
}

/* Text links with an arrow and an underline that draws in */
.link-arrow, .card-link {
  position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 8px 0 10px; color: var(--text); text-decoration: none;
  font: 500 0.72rem/1 var(--font-ui); letter-spacing: 0.14em; text-transform: uppercase;
}
.link-arrow::after, .card-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line-strong); }
.link-arrow::before, .card-link::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); z-index: 1;
  transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease-out);
}
.link-arrow:hover::before, .card-link:hover::before, .tile:hover .card-link::before, .adv:hover .card-link::before { transform: scaleX(1); }
.link-arrow .icon, .card-link .icon { transition: transform 0.45s var(--ease-out); }
.link-arrow:hover .icon, .tile:hover .card-link .icon, .adv:hover .card-link .icon, .card-link:hover .icon { transform: translateX(5px); }
.link-arrow:hover, .card-link:hover { text-decoration: none; }

/* Chips and badges: quiet outlines */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: var(--r-sm); font: 500 0.72rem/1.2 var(--font-ui); letter-spacing: 0.06em; text-transform: uppercase;
  background: transparent; color: var(--text); border: 1px solid var(--line-strong); text-decoration: none; transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.chip .icon { color: var(--accent-text); }
a.chip:hover { border-color: var(--brand); background: var(--brand-soft); }
.chip-on { background: var(--brand); color: var(--brand-contrast); border-color: var(--brand); }
.chip-on .icon { color: inherit; }
a.chip.chip-on:hover { background: var(--brand-strong); }
.route-chip { background: color-mix(in srgb, var(--c, #888) 12%, var(--surface)); border-color: var(--c, #888); }
.chip-easy { background: var(--ok-soft); border-color: transparent; }
.chip-moderate { background: var(--warn-soft); border-color: transparent; }
.chip-hard { background: var(--danger-soft); border-color: transparent; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: var(--r-sm); font: 500 0.68rem/1.2 var(--font-ui); letter-spacing: 0.1em; text-transform: uppercase; }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-no { background: var(--danger-soft); color: var(--danger); }
.badge-glass { background: rgba(246, 242, 234, 0.92); color: #17231c; backdrop-filter: blur(6px); }

/* Editorial tiles: the image leads, the text sits on the page. No box, no shadow. */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(36px, 4vw, 56px) clamp(20px, 2.6vw, 36px); }
.tile { --s: 1; position: relative; display: flex; flex-direction: column; gap: 20px; color: inherit; text-decoration: none; min-width: 0; }
a.tile:hover, .tile:hover { text-decoration: none; --s: 1.06; }
.tile-media { position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: var(--r-sm); background: linear-gradient(150deg, var(--moss-600), var(--forest-900)); }
.tile-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--s)); transition: transform 1.4s var(--ease-out); }
.tile-media .badge { position: absolute; top: 14px; left: 14px; z-index: 2; }
.tile-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: rgba(236, 230, 216, 0.7); }
.tile-body { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tile-body h3 { margin: 0; font-size: clamp(1.4rem, 1.2rem + 0.7vw, 1.8rem); font-weight: 300; letter-spacing: -0.02em; }
.tile-body p { margin: 0; color: var(--text-muted); font-size: 0.95rem; max-width: 46ch; }
.tile-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font: 500 0.7rem/1.5 var(--font-ui); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.tile-meta span { display: inline-flex; align-items: center; gap: 6px; }
.tile-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }
.tile-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.tile-title-link { color: inherit; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.tile-title-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.tile-actions, .tile-foot .btn { position: relative; z-index: 2; }
/* the gaps between the buttons still belong to the tile's own link */
.tile-actions { pointer-events: none; }
.tile-actions > * { pointer-events: auto; }
.price { font: 300 1.5rem/1.2 var(--font-display); color: var(--text) !important; letter-spacing: -0.01em; margin: 0; }
.price small { font: 400 0.8rem var(--font-ui); color: var(--text-muted); letter-spacing: 0.02em; }
.route-tile .tile-media { aspect-ratio: 16 / 10; }
.route-swatch { display: block; width: 100%; height: 0; border-top: 3px solid var(--c, #888); margin: 0 0 4px; }
.route-swatch.is-dashed { border-top-style: dashed; }
.route-card-swatch { border-left: 3px solid var(--c, var(--brand)); padding-left: 20px; }

/* Horizontal scroller */
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: min(74vw, 300px); gap: 24px; overflow-x: auto; padding: 4px var(--gutter) 24px; margin-inline: calc(-1 * var(--gutter)); scroll-snap-type: x mandatory; scrollbar-width: thin; }
.scroller > * { scroll-snap-align: start; }
@media (min-width: 1200px) { .scroller { grid-auto-columns: 300px; } }

/* Facts */
.facts-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; margin: 0 0 28px; border-top: 1px solid var(--line); }
.fact { display: flex; gap: 14px; align-items: flex-start; padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); }
.fact .icon { color: var(--accent-text); margin-top: 2px; }
.fact-label { display: block; font: 500 0.68rem/1.4 var(--font-ui); text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-muted); }
.fact-value { display: block; margin: 4px 0 0; font-weight: 400; }
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 0; margin-bottom: 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 16px 14px 16px 0; }
.stat + .stat { padding-left: 18px; border-left: 1px solid var(--line); }
.stat strong { display: block; font: 300 1.7rem/1.1 var(--font-display); }
.stat span { font: 500 0.66rem/1.4 var(--font-ui); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.14em; }
.facilities { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.facilities li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; background: transparent; border: 1px solid var(--line-strong); border-radius: var(--r-sm); font-size: 0.88rem; }

/* Gallery + carousel */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.gallery a { position: relative; display: block; border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 4 / 3; background: #1b2d23; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.gallery a:hover img { transform: scale(1.06); }
.gallery .play, .carousel .play {
  position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(11, 21, 16, 0.6); color: #fff; backdrop-filter: blur(4px); border: 1px solid rgba(255, 255, 255, 0.5);
}
.video-tile { height: 100%; display: grid; place-items: center; color: #fff; font-size: 0.8rem; text-align: center; padding: 8px; }
.carousel { position: relative; }
.carousel-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: #1b2d23; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide { position: relative; flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 16 / 10; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(246, 242, 234, 0.92); color: #17231c; display: grid; place-items: center; box-shadow: var(--shadow-2); opacity: 0; transition: opacity 0.3s, background 0.3s; }
.carousel-btn:hover { background: #fff; }
.carousel:hover .carousel-btn, .carousel:focus-within .carousel-btn { opacity: 1; }
.carousel-btn.prev { left: 12px; } .carousel-btn.next { right: 12px; }
@media (hover: none) { .carousel-btn { display: none; } }
.carousel-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 6px; }
.carousel-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.55); transition: width 0.4s var(--ease-out), background 0.3s; }
.carousel-dots span.is-on { width: 24px; border-radius: 3px; background: #fff; }
.photo-credits { margin-top: 10px; line-height: 1.5; }
.photo-credits span + span::before { content: " \00b7  "; }

/* Timeline of route stops */
.route-stops { list-style: none; margin: 0; padding: 0; position: relative; }
.route-stop { position: relative; padding: 0 0 18px 0; }
.route-stop::before { content: ""; position: absolute; left: 17px; top: 36px; bottom: 0; width: 1px; background: var(--line-strong); }
.route-stop:last-child::before { display: none; }
.route-stop.is-active .stop-row { background: var(--accent-soft); }
.stop-row { display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left; background: transparent; border: 0; padding: 4px 8px 4px 0; border-radius: var(--r-sm); cursor: pointer; }
.stop-row:hover { background: var(--brand-soft); }
.stop-num, .stop-pin {
  position: relative; display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand); color: #fff; font: 600 0.85rem/1 var(--font-ui); border: 3px solid var(--surface); box-shadow: var(--shadow-2);
}
.stop-viewpoint { background: #6a4fb3; } .stop-caution { background: #b3261e; } .stop-food { background: #2f7d4f; }
.stop-text { display: flex; flex-direction: column; gap: 2px; padding-top: 2px; }
.stop-text small { color: var(--text-muted); font-size: 0.8rem; }
.stop-note { margin-top: 2px; }
.stop-photo { display: block; margin: 8px 0 0 48px; max-width: 240px; border-radius: var(--r-sm); overflow: hidden; }
.stop-photo img { width: 100%; height: 130px; object-fit: cover; }
.stop-place { display: inline-flex; margin: 6px 0 0 48px; font-size: 0.9rem; font-weight: 500; }
.stop-pin { width: 34px; height: 34px; }
.stop-pin-kind { position: absolute; top: -9px; right: -9px; width: 18px; height: 18px; border-radius: 50%; background: #fff; color: #14301f; display: grid; place-items: center; box-shadow: var(--shadow-1); }
.route-start { background: #17613a; color: #fff; font: 700 11px/22px var(--font-ui); letter-spacing: 0.1em; text-align: center; border-radius: 11px; border: 2px solid #fff; box-shadow: var(--shadow-2); }
.link-back { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: var(--link); padding: 12px 0 0; font-weight: 500; cursor: pointer; }
.link-back[hidden] { display: none; }

/* Forms: hairline fields, brass focus */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: clamp(24px, 3.4vw, 44px); box-shadow: none; }
.field { margin-bottom: 22px; }
.field > label, .field-label { display: block; margin-bottom: 8px; font: 500 0.7rem/1.3 var(--font-ui); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.field > label .small { font-size: inherit; letter-spacing: inherit; }
.field input, .field textarea, .field select, .form input[type="text"], .form input[type="email"], .form input[type="number"], .form textarea, .form select {
  width: 100%; min-height: 52px; padding: 12px 16px; background: var(--bg); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: var(--r-sm); transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.form textarea { min-height: 130px; resize: vertical; }
.form input::placeholder, .form textarea::placeholder { color: var(--text-muted); opacity: 0.8; }
.form input:hover, .form textarea:hover { border-color: var(--text-muted); }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent-strong); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); background: var(--surface); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 640px) { .form .row { grid-template-columns: minmax(0, 1fr); } }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.errorlist { list-style: none; margin: 6px 0 0; padding: 0; color: var(--danger); font-size: 0.875rem; font-weight: 500; }
.nonfield-errors { background: var(--danger-soft); border: 1px solid var(--danger); border-radius: var(--r-sm); padding: 12px 16px; margin-bottom: 18px; }
.nonfield-errors .errorlist { margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--bg); }
.stepper button { width: 48px; height: 50px; border: 0; border-radius: 0; background: transparent; display: grid; place-items: center; transition: background 0.3s; }
.stepper button:hover { background: var(--brand-soft); }
.stepper input { width: 56px !important; min-height: 50px !important; border: 0 !important; background: transparent !important; text-align: center; font-weight: 500; box-shadow: none !important; padding: 0 !important; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Messages */
.messages { width: min(100% - 2 * var(--gutter), 800px); margin: 16px auto 0; }
.message { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: var(--r-sm); background: var(--ok-soft); border: 1px solid var(--ok); color: var(--text); }
.message.error { background: var(--danger-soft); border-color: var(--danger); }

/* The date picker is themed in datepicker.css (it has to load after the vendor stylesheet) */

/* Lightbox caption readable on the dark overlay */
.gslide-description { background: transparent !important; }

/* Small helpers */
.mini-h { font: 500 0.7rem/1 var(--font-ui); text-transform: uppercase; letter-spacing: var(--track-caps); color: var(--accent-text); margin: 32px 0 14px; }
.carousel-empty { aspect-ratio: 16 / 9; display: grid; place-items: center; background: linear-gradient(150deg, var(--moss-600), var(--forest-900)); color: rgba(236, 230, 216, 0.8); }

/* Comfortable tap targets: at least 44px on touch screens and narrow windows */
@media (pointer: coarse), (max-width: 700px) {
  .btn-sm { min-height: 44px; }
  a.chip, button.chip { min-height: 44px; padding-inline: 16px; }
  .link-back, .stop-place, .card-link, .link-arrow, .crumbs a { min-height: 44px; display: inline-flex; align-items: center; }
  .footer-grid a { min-height: 44px; }
  .site-nav a:not(.btn) { min-height: 48px; }
  .stop-row { min-height: 44px; }
  .facilities li { min-height: 40px; }
}

/* ---- Experiences: package rows, selectable choices and time-slot pills ---- */
.packages { border-top: 1px solid var(--line); margin-bottom: 8px; container-type: inline-size; }
.package { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) auto; gap: 16px clamp(24px, 4vw, 56px); align-items: center; padding: clamp(22px, 3vw, 34px) 0; border-bottom: 1px solid var(--line); }
.package h3 { margin: 0 0 10px; font-size: clamp(1.4rem, 1.2rem + 0.7vw, 1.8rem); font-weight: 300; }
.package .chips { margin: 0; }
.package-desc p { margin: 0 0 8px; color: var(--text-muted); font-size: 0.95rem; }
.package-buy { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
/* Stack by the width of the space the rows sit in (the map's side panel is narrow on any screen) */
@container (max-width: 760px) { .package { grid-template-columns: minmax(0, 1fr); } .package-buy { flex-direction: row; align-items: center; flex-wrap: wrap; justify-content: space-between; } }
@media (max-width: 860px) { .package { grid-template-columns: minmax(0, 1fr); } .package-buy { flex-direction: row; align-items: center; flex-wrap: wrap; justify-content: space-between; } }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 12px; border: 0; margin: 0 0 8px; padding: 0; min-width: 0; }
.choice { display: block; cursor: pointer; }
.choice-input, .slot-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice-body { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 18px; background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--r-sm); transition: border-color 0.3s, box-shadow 0.3s, background 0.3s; }
.choice:hover .choice-body { border-color: var(--text-muted); }
.choice-input:checked + .choice-body { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.choice-input:focus-visible + .choice-body, .slot-pill input:focus-visible + .slot-body { outline: 2px solid var(--ring); outline-offset: 3px; }
.choice-price { margin-top: auto; padding-top: 8px; font: 300 1.3rem/1.2 var(--font-display); }
.choice-price small { font: 400 0.8rem var(--font-ui); color: var(--text-muted); }
.slot-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.slot-pill { cursor: pointer; }
.slot-body { display: flex; flex-direction: column; align-items: center; min-width: 108px; min-height: 58px; justify-content: center; padding: 8px 16px; background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--r-sm); text-align: center; transition: border-color 0.3s, background 0.3s, color 0.3s; }
.slot-body small { font-size: 0.72rem; color: var(--text-muted); }
.slot-pill:hover .slot-body { border-color: var(--text-muted); }
.slot-pill input:checked + .slot-body { border-color: var(--brand); background: var(--brand); color: var(--brand-contrast); }
.slot-pill input:checked + .slot-body small { color: inherit; }
.slot-pill.is-off { cursor: not-allowed; }
.slot-pill.is-off .slot-body { opacity: 0.55; background: transparent; border-style: dashed; }
fieldset.has-error .choice-body { border-color: var(--danger); }
.check-list { list-style: none; margin: 4px 0 6px; padding: 0; display: grid; gap: 4px; font-size: 0.92rem; }
.check-list li { display: flex; gap: 8px; align-items: flex-start; }
.check-list .icon { color: var(--accent-text); margin-top: 3px; }
.experience-block { margin: 0 0 clamp(56px, 8vw, 96px); }
.experience-head { display: flex; gap: 20px; align-items: center; margin-bottom: 28px; }
.experience-head .icon-wrap { display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); color: var(--accent-text); }
.experience-head h2 { margin: 0 0 4px; }
.plain-link { color: inherit; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.plain-link:hover { text-decoration: underline; }

/* ---- Rate plans (meal plans and camping packages) ---- */
.rate-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.rate-grid .choice-body { position: relative; gap: 6px; padding-top: 20px; }
.rate-grid .choice.is-popular .choice-body { border-color: var(--accent); }
.rate-grid .code { margin-left: 6px; padding: 2px 6px; border: 1px solid var(--line-strong); border-radius: 2px; font: 500 0.64rem/1.2 var(--font-ui); letter-spacing: 0.1em; color: var(--text-muted); vertical-align: middle; }
.choice-flag { position: absolute; top: -1px; right: 14px; padding: 3px 10px; background: var(--accent); color: var(--accent-contrast); font: 500 0.6rem/1.4 var(--font-ui); letter-spacing: 0.14em; text-transform: uppercase; }
.rate-grid .check-list { margin-top: 8px; font-size: 0.85rem; }
.rate-grid .choice-price small { display: block; margin-top: 2px; }

.rate-grid .choice-price { margin-top: 6px; padding-top: 0; }

/* Extras with a quantity: a small stepper inside the card */
.qty-choice { cursor: default; }
.qty { display: inline-flex; align-items: center; margin-top: 10px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); width: max-content; }
.qty button { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; color: var(--text); transition: background 0.3s; }
.qty button:hover { background: var(--brand-soft); }
.qty input { flex: none; width: 52px; min-height: 44px; border: 0 !important; background: transparent !important; text-align: center; font-weight: 500; padding: 0 !important; box-shadow: none !important; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-choice.has-qty .choice-body { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }

/* Phone / WhatsApp: country code dropdown beside the number, with our own chevron (the browser's arrow sits hard against the edge) */
.phone-field { display: flex; gap: 8px; }
.phone-select { position: relative; flex: 0 0 9.5rem; max-width: 46%; min-width: 0; }
.phone-select select {
  -webkit-appearance: none; appearance: none; width: 100%; min-width: 0; min-height: 52px; padding: 0 38px 0 14px;
  background: var(--bg); color: var(--text); border: 1px solid var(--line-strong); border-radius: var(--r-sm); text-overflow: ellipsis; cursor: pointer;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.phone-select::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 7px; height: 7px; margin-top: -6px; pointer-events: none;
  border-right: 1.5px solid var(--text-muted); border-bottom: 1.5px solid var(--text-muted); transform: rotate(45deg); transition: border-color 0.3s;
}
.phone-select:focus-within::after, .phone-select:hover::after { border-color: var(--text); }
.phone-field input { flex: 1 1 auto; min-width: 0; }
.phone-select select:hover { border-color: var(--text-muted); }
.phone-select select:focus { outline: none; border-color: var(--accent-strong); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.field.has-error .phone-select select { border-color: var(--danger); }

/* ---- Offers: promo code box, offer banner and tags, price lines ---- */
.promo-box { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); margin: 6px 0 22px; }
.promo-box > summary { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; cursor: pointer; list-style: none; font-weight: 500; color: var(--text); }
.promo-box > summary::-webkit-details-marker { display: none; }
.promo-box > summary .icon:first-child { color: var(--accent-text); }
.promo-box > summary .promo-chevron { margin-left: auto; color: var(--text-muted); transition: transform 0.25s var(--ease); }
.promo-box[open] > summary .promo-chevron { transform: rotate(180deg); }
.promo-body { padding: 0 16px 16px; }
.promo-row { display: flex; gap: 10px; align-items: flex-start; }
.promo-row .field { flex: 1; margin: 0; min-width: 0; }
.promo-row input { text-transform: uppercase; letter-spacing: 0.08em; }
.promo-row .btn { display: none; min-height: 48px; }
.js .promo-row .btn { display: inline-flex; }
.promo-msg { min-height: 1.3em; margin-top: 8px; font-size: 0.9rem; color: var(--text-muted); }
.promo-msg:empty { display: none; }
.promo-msg.is-ok { color: var(--ok); font-weight: 500; }
.promo-msg.is-bad { color: var(--danger); font-weight: 500; }
.promo-msg .errorlist { margin: 0; }

.offer-banner { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 24px; padding: 14px 18px; background: var(--accent-soft); border: 1px solid var(--accent); border-radius: var(--r-md); color: var(--text); }
.offer-banner > .icon { flex: none; margin-top: 2px; color: var(--accent-text); }
.offer-banner .offer-fine { display: block; margin: 2px 0; font-size: 0.85rem; color: var(--text-muted); }
.offer-tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; background: var(--accent-soft); color: var(--accent-text); border: 1px solid var(--accent); border-radius: var(--r-pill); font-size: 0.78rem; font-weight: 600; line-height: 1.3; }
.offer-tag .icon { flex: none; }

.summary-lines li.is-saving, .summary-lines li.is-saving span:first-child { color: var(--ok); font-weight: 500; }
.offer-lines:not(:has(li:not([hidden]))) { display: none; }
.price-saving { color: var(--ok); font-weight: 500; }

/* The offer tag sits on its own line under a stay's title, never squeezed beside the price */
.tile-offer { margin: -2px 0 12px; }
