/* Resort spin-off design — loaded ONLY by layouts/application.html+spinoff.erb.
   The main Stay Utah stylesheet (application.css) is not loaded alongside this.

   Theming: every resort-specific color reads a custom property below. A resort
   overrides them inline on <body> from config/resorts/<slug>.yml (see
   Resort#css_variables); the defaults here are Pecan Valley's. */

@layer reset, base, components;

@layer base {
  :root {
    --ink: #111210;          /* near-black, warm */
    --mute: #73716B;         /* stone gray */
    --bg: #FFFFFF;
    --tint: #F6F5F2;         /* whisper of warm gray */
    --line: #E8E6E1;
    --accent: #9C8553;       /* champagne brass */
    --accent-soft: #CDB686;  /* brass on dark backgrounds */
    --grad: linear-gradient(120deg, #C8B084 0%, #A98F5C 55%, #8C744A 100%);
    --trend: #2F6B4F;
    --display: "Hanken Grotesk", system-ui, sans-serif;
    --body: "Hanken Grotesk", system-ui, sans-serif;
    --max: 1240px;
    --r: 20px;
  }
}

@layer reset {
  * { box-sizing: border-box; margin: 0; padding: 0; }
}

@layer base {
  html { scroll-behavior: smooth; }
  body { font-family: var(--body); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 15.5px; -webkit-font-smoothing: antialiased; }
  img { display: block; max-width: 100%; }
  a { color: inherit; text-decoration: none; }
  button { font-family: var(--body); }
  h1, h2, h3 { font-weight: 700; font-family: var(--display); }
  h2 { font-size: clamp(28px, 3.5vw, 42px); line-height: 1.06; letter-spacing: -.022em; }
  em { font-style: italic; color: var(--accent); }
}

@layer components {
  .wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
  section[id], div[id^="give"] { scroll-margin-top: 60px; }
  .skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 0 0 12px 0; z-index: 100; font-size: 13px; font-weight: 600; }
  .skip:focus { left: 0; }
  .catc:focus-visible, .quick button:focus-visible, .opens :is(button, a):focus-visible, .search label:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 12px; }
  .search label:focus-within { outline-offset: -2px; }
  .k { font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
  .section { padding: 84px 0; }
  .sec-head { margin-bottom: 34px; }
  .sec-head p { color: var(--mute); margin-top: 10px; max-width: 52ch; }
  .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 14.5px; font-weight: 600; border-radius: 999px; padding: 13px 24px; border: 1px solid transparent; cursor: pointer; transition: opacity .15s ease; }
  .btn:hover { opacity: .88; }
  .btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
  .btn-dark { background: var(--ink); color: #fff; }
  .btn-grad { background: var(--grad); color: #171511; box-shadow: 0 10px 22px -12px rgba(140, 116, 74, .5); }
  .btn-line { border-color: var(--line); background: #fff; }
  .btn-white { background: #fff; color: var(--ink); }
  .btn-sm { padding: 8px 16px; font-size: 13px; }

  /* ================= FLASH ================= */
  .flash { position: fixed; left: 50%; transform: translateX(-50%); bottom: 24px; z-index: 99; background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 500; border-radius: 999px; padding: 11px 22px; box-shadow: 0 18px 44px -18px rgba(0, 0, 0, .5); }

  /* ================= DEAL BAR ================= */
  .deal-bar { background: var(--ink); color: #fff; font-size: 13px; font-weight: 500; }
  .deal-bar .wrap { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 8px 28px; flex-wrap: wrap; text-align: center; }
  .deal-bar .code { background: rgba(255, 255, 255, .14); border: 1px dashed rgba(255, 255, 255, .4); border-radius: 7px; padding: 2px 9px; font-weight: 700; letter-spacing: .06em; cursor: pointer; color: #fff; font-size: 13px; }
  .deal-bar .code:hover { background: rgba(255, 255, 255, .22); }
  .deal-bar .count { font-variant-numeric: tabular-nums; color: var(--accent-soft); font-weight: 600; }

  /* ================= HEADER ================= */
  header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .85); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
  .nav { position: relative; display: flex; align-items: center; justify-content: space-between; height: 46px; }
  .logo { font-family: var(--display); font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
  .nav-r { display: flex; align-items: center; gap: 20px; font-size: 13.5px; font-weight: 500; }
  .nav-r a:not(.btn):hover { opacity: .6; }
  .nav .btn { padding: 6px 16px; font-size: 13px; }
  .back { font-size: 13.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 7px; }
  .back:hover { color: var(--accent); }
  @media (max-width: 760px) { .nav-r a:not(.btn) { display: none; } }

  /* docked nav search (appears after scrolling past the hero search) */
  .nav-search { position: absolute; left: 50%; transform: translateX(-50%) translateY(-8px); opacity: 0; pointer-events: none;
    display: flex; align-items: center; gap: 11px; border: 1px solid var(--line); background: #fff; border-radius: 999px;
    padding: 5px 6px 5px 17px; font-size: 13px; font-weight: 600; font-family: var(--body); cursor: pointer; white-space: nowrap;
    box-shadow: 0 10px 28px -14px rgba(23, 21, 19, .35);
    transition: opacity .3s ease, transform .35s cubic-bezier(.2, .9, .3, 1.15); }
  .nav-search.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
  .nav-search:hover { box-shadow: 0 14px 32px -14px rgba(23, 21, 19, .45); }
  .nav-search .sep { width: 1px; height: 16px; background: var(--line); }
  .nav-search .light { color: var(--mute); font-weight: 500; }
  .nav-search .mag { width: 28px; height: 28px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 13px; }
  @media (max-width: 900px) { .nav-search { display: none; } }

  /* ================= HERO ================= */
  .hero { padding: 14px 28px 0; max-width: calc(var(--max) + 56px); margin: 0 auto; }
  .hero-card { position: relative; border-radius: 26px; overflow: hidden; color: #fff;
    background:
      radial-gradient(120% 90% at 80% 0%, #8E7649 0%, transparent 50%),
      radial-gradient(110% 90% at 12% 100%, #2B2D33 0%, transparent 60%),
      linear-gradient(165deg, #4C4538 0%, #26241F 50%, #111210 100%); }
  .hero-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .hero-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 8, 6, .10) 25%, rgba(10, 8, 6, .6) 100%); }
  .hero-in { position: relative; z-index: 1; padding: 56px 52px 40px; animation: fade .9s ease both; display: flex; flex-direction: column; min-height: 70vh; justify-content: flex-end; }
  @keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
  .hero h1 { font-size: clamp(40px, 6.2vw, 76px); line-height: .98; letter-spacing: -.015em; max-width: 15ch; text-wrap: balance; }
  .hero-sub { margin-top: 14px; font-size: 16.5px; max-width: 48ch; color: rgba(255, 255, 255, .92); }

  /* hero giveaway — glass mini listing card */
  @keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(126, 217, 87, 0); } 100% { box-shadow: 0 0 0 0 rgba(126, 217, 87, 0); } }
  .hero-give { align-self: flex-start; display: flex; align-items: center; gap: 14px;
    background: rgba(18, 14, 10, .5); backdrop-filter: blur(20px) saturate(1.4);
    border: 1px solid rgba(255, 255, 255, .22); border-radius: 20px;
    padding: 10px 14px 10px 10px; margin-bottom: 26px; max-width: 560px;
    box-shadow: 0 18px 50px -18px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .12);
    transition: transform .35s cubic-bezier(.2, .9, .3, 1.15), box-shadow .35s ease, background .25s ease;
    animation: hgIn .9s cubic-bezier(.2, .9, .3, 1.1) .25s both;
    cursor: pointer; }
  @keyframes hgIn { from { opacity: 0; transform: translateY(-14px) scale(.96); } to { opacity: 1; transform: none; } }
  .hero-give:hover { transform: translateY(-2px) scale(1.012); background: rgba(18, 14, 10, .62); box-shadow: 0 26px 60px -18px rgba(0, 0, 0, .65), inset 0 1px 0 rgba(255, 255, 255, .16); }
  .hero-give:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; }
  .hg-thumb { position: relative; width: 74px; height: 74px; border-radius: 13px; overflow: hidden; flex-shrink: 0; background: linear-gradient(145deg, #3A3D4D, #15161D); }
  .hg-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
  .hero-give:hover .hg-thumb img { transform: scale(1.07); }
  .hg-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .hg-k { display: flex; align-items: center; gap: 7px; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-soft); }
  .hg-k .pulse { width: 6px; height: 6px; border-radius: 50%; background: #7ED957; box-shadow: 0 0 0 0 rgba(126, 217, 87, .6); animation: pulse 1.8s infinite; }
  .hg-title { font-family: var(--display); font-weight: 700; font-size: 17.5px; letter-spacing: -.01em; line-height: 1.1; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hg-sub { font-size: 12px; color: rgba(255, 255, 255, .75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hg-sub b { color: #fff; font-weight: 600; }
  .hg-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; margin-left: auto; flex-shrink: 0; padding-left: 8px; }
  .hg-count { font-size: 10.5px; font-weight: 600; color: rgba(255, 255, 255, .65); font-variant-numeric: tabular-nums; white-space: nowrap; }
  .hg-cta { display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--ink); font-weight: 600; border-radius: 999px; padding: 8px 16px; font-size: 12.5px; white-space: nowrap; transition: gap .2s ease; }
  .hero-give:hover .hg-cta { gap: 9px; }
  .hg-cta .ar { transition: transform .25s ease; }
  .hero-give:hover .hg-cta .ar { transform: translateY(2px); }
  @media (max-width: 640px) {
    .hero-give { max-width: 100%; padding: 9px 12px 9px 9px; gap: 11px; }
    .hg-thumb { width: 58px; height: 58px; }
    .hg-title { font-size: 16px; white-space: normal; }
    .hg-sub { white-space: normal; }
    .hg-count { display: none; }
  }

  /* search pill */
  .search-zone { margin-top: 26px; max-width: 780px; position: relative; }
  .search { background: #fff; border-radius: 999px; display: flex; align-items: center; box-shadow: 0 30px 70px -25px rgba(0, 0, 0, .55); color: var(--ink); }
  .search .fld { flex: 1; display: flex; flex-direction: column; padding: 10px 24px; border: 0; border-right: 1px solid var(--line); cursor: pointer; min-width: 0; background: none; text-align: left; font-family: var(--body); border-radius: 999px 0 0 999px; transition: background .15s ease; }
  .search .fld + .fld { border-radius: 0; }
  .search .fld:hover { background: var(--tint); }
  .search .fld span { font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
  .search .fld b { font-size: 14px; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .search .fld b.empty { color: var(--mute); font-weight: 400; }
  .search .btn { margin: 6px; padding: 12px 26px; flex-shrink: 0; }
  .quick { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
  .quick button { font-size: 12.5px; font-weight: 500; color: #fff; background: rgba(255, 255, 255, .14); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; padding: 7px 14px; cursor: pointer; transition: background .15s ease; }
  .quick button:hover, .quick button.on { background: rgba(255, 255, 255, .32); }

  /* search attention pulse (when chips fill the dates for you) */
  .results-note { display: none; margin-top: 14px; font-size: 13px; color: var(--mute); background: var(--tint); border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; }
  .results-note b { color: var(--ink); }

  @media (max-width: 720px) {
    .hero { padding: 8px 12px 0; }
    .hero-in { padding: 40px 22px 26px; min-height: auto; }
    .search { flex-direction: column; border-radius: 22px; align-items: stretch; }
    .search .fld { border-right: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
    .search .btn { margin: 10px; }
  }

  /* ================= TRUST LINE ================= */
  .trust { border-bottom: 1px solid var(--line); }
  .trust .wrap { display: flex; align-items: center; justify-content: center; gap: 34px; padding: 15px 28px; flex-wrap: wrap; font-size: 12.5px; color: var(--mute); }
  .trust .ti { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
  .trust .ti::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--grad); }
  .trust b { color: var(--ink); font-weight: 600; }
  @media (max-width: 640px) { .trust .wrap { gap: 14px 20px; justify-content: flex-start; } }

  /* ================= GIFT CARD INCLUSIONS ================= */
  .included { border-bottom: 1px solid var(--line); background: var(--tint); }
  .included .wrap { padding-top: 56px; padding-bottom: 56px; }
  .included h2 { margin-top: 8px; font-size: clamp(24px, 2.8vw, 34px); }
  .inc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
  .gift { position: relative; border-radius: 16px; padding: 22px; color: #fff; overflow: hidden; min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 18px 40px -22px rgba(23, 21, 19, .4); }
  .gift.g1 { background: linear-gradient(135deg, #1C1C19 0%, #101110 100%); box-shadow: 0 18px 40px -22px rgba(17, 18, 16, .55); }
  .gift.g2 { background: var(--grad); box-shadow: 0 18px 40px -22px rgba(140, 116, 74, .5); }
  .gift::after { content: ""; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255, 255, 255, .07); }
  .gift .gk { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .65); }
  .gift .gv { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1; margin-top: 6px; letter-spacing: -.02em; }
  .gift .gb { font-size: 13px; font-weight: 600; margin-top: 2px; }
  .gift .gn { font-size: 11.5px; color: rgba(255, 255, 255, .65); }
  .gift.g2 { color: #1C1A14; }
  .gift.g2 .gk { color: rgba(28, 26, 20, .6); }
  .gift.g2 .gn { color: rgba(28, 26, 20, .6); }
  .gift.g2::after { background: rgba(255, 255, 255, .18); }
  .plain { border-radius: 16px; padding: 22px; background: #fff; border: 1px solid var(--line); min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; }
  .plain .pi { font-size: 22px; }
  .plain b { font-size: 15px; font-weight: 600; display: block; margin-top: 8px; }
  .plain span { font-size: 12.5px; color: var(--mute); }
  .gift, .plain { cursor: pointer; transition: transform .2s cubic-bezier(.2, .9, .3, 1.3), box-shadow .2s ease; border: 0; font-family: var(--body); text-align: left; width: 100%; }
  .plain { border: 1px solid var(--line); }
  .gift:hover, .plain:hover { transform: translateY(-3px); }
  .plain:hover { box-shadow: 0 18px 36px -22px rgba(17, 18, 16, .25); }
  .inc-more { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .55; margin-top: 10px; }
  @media (max-width: 920px) { .inc-grid { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 540px) { .inc-grid { grid-template-columns: 1fr; } }

  /* ================= CATEGORY SELECTOR ================= */
  .cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 30px 0 10px; }
  .catc { position: relative; text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 18px; cursor: pointer; padding: 15px 18px 16px; transition: border-color .15s ease, background .15s ease, transform .2s cubic-bezier(.2, .9, .3, 1.3); }
  .catc:hover { border-color: var(--ink); transform: translateY(-2px); }
  .catc.on { background: var(--ink); border-color: var(--ink); }
  .catc.on h3, .catc.on p { color: #fff; }
  .catc.on p { opacity: .7; }
  .catc h3 { font-size: 16.5px; line-height: 1.15; font-weight: 700; letter-spacing: -.01em; }
  .catc p { font-size: 12px; color: var(--mute); margin-top: 4px; line-height: 1.45; }
  .catc .cn { position: absolute; top: 12px; right: 14px; font-size: 11px; font-weight: 700; color: var(--mute); }
  .catc.on .cn { color: rgba(255, 255, 255, .65); }
  @media (max-width: 980px) { .cats { grid-template-columns: repeat(3, 1fr); } }
  @media (max-width: 640px) {
    .cats { display: flex; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scroll-padding-left: 4px; }
    .catc { flex: 0 0 175px; scroll-snap-align: start; }
  }

  /* ================= STAYS ================= */
  .stays { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 22px; }
  .stay { background: #fff; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); transition: transform .25s ease, box-shadow .25s ease; }
  .stay.hide, .stay.date-hide { display: none; }
  /* Card whose calendar is still being fetched for the searched dates. */
  .stay.checking { pointer-events: none; animation: stay-checking 1.1s ease-in-out infinite alternate; }
  @keyframes stay-checking { from { opacity: .7; } to { opacity: .3; } }
  .stay:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -28px rgba(15, 16, 20, .22); }
  .stay-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(145deg, #EDEFF3 0%, #C7CCD6 100%); }
  .stay-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
  .stay:hover .stay-img img { transform: scale(1.04); }
  .stay-chips { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
  .chip { background: rgba(255, 255, 255, .94); font-size: 11px; font-weight: 600; padding: 5px 10px; border-radius: 999px; }

  /* status badge (real data: only "new" is derivable today) */
  .badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; margin-bottom: 7px; }
  .badge.pillb { border-radius: 999px; padding: 4px 11px; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; }
  .badge.new { background: #FBF3E6; color: #8A5A12; }

  .stay-body { padding: 18px 20px; }
  .stay-body h3 { font-size: 19px; line-height: 1.15; font-weight: 700; letter-spacing: -.015em; }
  .stay-meta { color: var(--mute); font-size: 13px; margin: 4px 0 10px; }
  .opens { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 11px; }
  .opens .ok { font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); width: 100%; }
  .opens :is(button, a) { display: inline-block; font-size: 12px; font-weight: 600; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; cursor: pointer; transition: all .15s ease; color: var(--ink); }
  .opens :is(button, a):hover { border-color: var(--ink); }
  .opens--lg { gap: 8px; margin-top: 0; }
  .opens--lg :is(button, a) { font-size: 13px; padding: 9px 16px; }
  .stay-foot { display: flex; align-items: center; justify-content: flex-end; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 14px; font-size: 14px; }
  .stay-foot a { font-weight: 600; }
  .stays-empty { display: none; text-align: center; color: var(--mute); padding: 50px 0; }
  @media (max-width: 920px) { .stays { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 600px) { .stays { grid-template-columns: 1fr; } }

  /* highlighted giveaway home in the grid */
  @keyframes cardPing { 0%, 100% { box-shadow: 0 0 0 1.5px var(--accent-soft); } 40% { box-shadow: 0 0 0 5px rgba(205, 182, 134, .55); } }
  .stay.ping { animation: cardPing 1s ease 2; }
  .stay.is-giveaway { border-color: var(--accent-soft); box-shadow: 0 0 0 1.5px var(--accent-soft); }
  .stay-givetag { position: absolute; top: 12px; left: 12px; background: #0F1014; color: var(--accent-soft); font-size: 11px; font-weight: 700; letter-spacing: .06em; padding: 6px 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; }
  .stay-givetag .pulse { width: 6px; height: 6px; border-radius: 50%; background: #7ED957; box-shadow: 0 0 0 0 rgba(126, 217, 87, .6); animation: pulse 1.8s infinite; display: inline-block; }

  /* ================= RESORT AMENITIES ================= */
  .amen-section { background: var(--tint); }
  .amen { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .am { position: relative; border-radius: var(--r); overflow: hidden; min-height: 300px; display: flex; align-items: flex-end; color: #fff; border: 0; padding: 0; text-align: left; cursor: pointer; font-family: var(--body); width: 100%; background: linear-gradient(160deg, #7C93A3 0%, #46586B 55%, #1F262E 100%); }
  .am:nth-child(2) { background: linear-gradient(160deg, #B59A6C 0%, #7D6440 55%, #332A1C 100%); }
  .am:nth-child(3) { background: linear-gradient(160deg, #8FA68C 0%, #56684F 55%, #232B20 100%); }
  .am:nth-child(4) { background: linear-gradient(160deg, #9D9890 0%, #5E5A52 55%, #26241F 100%); }
  .am img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
  .am:hover img { transform: scale(1.04); }
  .am::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(8, 7, 5, .7) 100%); }
  .am-body { position: relative; z-index: 1; padding: 20px; width: 100%; }
  .am h3 { font-size: 21px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
  .am p { font-size: 12.5px; color: rgba(255, 255, 255, .85); margin-top: 5px; }
  .am .lm { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; margin-top: 10px; border-bottom: 1px solid rgba(255, 255, 255, .5); padding-bottom: 1px; }
  @media (max-width: 920px) { .amen { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 540px) { .amen { grid-template-columns: 1fr; } .am { min-height: 220px; } }

  /* ================= GIVEAWAYS ================= */
  .give { position: relative; border-radius: 26px; overflow: hidden; color: #fff;
    background:
      radial-gradient(90% 110% at 88% 8%, rgba(170, 140, 90, .32) 0%, transparent 52%),
      linear-gradient(135deg, #1B1B18 0%, #141412 55%, #0F100E 100%); }
  .give-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; padding: 54px; align-items: center; }
  .give .k { color: var(--accent-soft); }
  .give .pulse { width: 8px; height: 8px; border-radius: 50%; background: #7ED957; box-shadow: 0 0 0 0 rgba(126, 217, 87, .6); animation: pulse 1.8s infinite; display: inline-block; margin-right: 8px; }
  .give h2 { margin-top: 10px; max-width: 18ch; color: #fff; }
  .give h2 em { color: var(--accent-soft); }
  .give p { color: rgba(255, 255, 255, .8); margin-top: 13px; max-width: 50ch; font-size: 14.5px; }
  .give-form { display: flex; gap: 10px; margin-top: 24px; max-width: 440px; }
  .give-form input { flex: 1; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .07); color: #fff; padding: 12px 20px; font-size: 14px; outline: 0; font-family: var(--body); }
  .give-form input::placeholder { color: rgba(255, 255, 255, .5); }
  .give-form input:focus-visible { outline: 2px solid var(--accent-soft); }
  .give-note { font-size: 11.5px; color: rgba(255, 255, 255, .5); margin-top: 10px; }
  .give-success { display: none; margin-top: 24px; font-size: 14.5px; font-weight: 600; color: #9FE08A; }
  .give-success.show { display: block; }
  .form-error { font-size: 12px; font-weight: 600; color: #E2A9A1; margin-top: 8px; }
  .up .form-error { color: #B4543F; }
  .give-prize { margin-top: 16px; display: grid; gap: 8px; font-size: 13.5px; }
  .give-prize div { display: flex; gap: 9px; align-items: baseline; }
  .give-prize .d { color: var(--accent-soft); }
  .timer { display: flex; gap: 10px; margin-top: 6px; }
  .timer div { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; padding: 14px 0; text-align: center; flex: 1; min-width: 64px; }
  .timer b { display: block; font-size: 27px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1; }
  .timer span { font-size: 10px; letter-spacing: .13em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
  .timer.compact { margin-top: 14px; }
  .timer.compact div { padding: 10px 0; min-width: 54px; border-radius: 12px; }
  .timer.compact b { font-size: 21px; }

  /* giveaway home spotlight */
  .give-home { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); border-radius: 18px; overflow: hidden; }
  .give-home .gh-img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(145deg, #8A6A45 0%, #4C3A24 100%); }
  .give-home .gh-img img { width: 100%; height: 100%; object-fit: cover; }
  .give-home .gh-tag { position: absolute; top: 12px; left: 12px; background: var(--grad); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; }
  .give-home .gh-body { padding: 16px 18px 18px; }
  .give-home h3 { font-size: 19px; line-height: 1.15; color: #fff; font-weight: 700; }
  .give-home .gh-meta { font-size: 12.5px; color: rgba(255, 255, 255, .7); margin-top: 3px; }
  .give-home .gh-dates { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
  .give-home .gh-dates span { font-size: 11.5px; font-weight: 600; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .07); border-radius: 999px; padding: 5px 12px; font-variant-numeric: tabular-nums; }
  .give-home .gh-dates span b { color: var(--accent-soft); font-weight: 700; }
  .gh-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 13px; font-size: 13px; font-weight: 600; color: var(--accent-soft); border-bottom: 1px solid rgba(205, 182, 134, .45); padding-bottom: 2px; cursor: pointer; }
  .gh-link:hover { border-bottom-color: var(--accent-soft); }
  @media (max-width: 880px) { .give-in { grid-template-columns: 1fr; padding: 36px 26px; gap: 32px; } }

  /* monthly notify rail */
  .gb-rail-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 44px; }
  .gb-rail-head span { font-size: 12px; color: var(--mute); }
  .gb-rail { display: flex; gap: 12px; overflow-x: auto; padding: 16px 0 6px; scroll-snap-type: x mandatory; }
  .gb-rail::-webkit-scrollbar { height: 6px; }
  .gb-rail::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px; }
  .up { flex: 0 0 200px; scroll-snap-align: start; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 5px; }
  .up .when { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
  .up h3 { font-size: 16px; line-height: 1.15; font-weight: 700; }
  .up p { font-size: 12px; color: var(--mute); flex: 1; line-height: 1.45; }
  .up .btn { margin-top: 9px; padding: 6px 12px; font-size: 11.5px; align-self: flex-start; }
  .up .done { font-size: 11.5px; font-weight: 600; color: #3E8E2F; margin-top: 9px; }
  .notify-form { display: flex; gap: 6px; margin-top: 9px; }
  .notify-form input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 12px; font-family: var(--body); outline: 0; }
  .notify-form input:focus-visible { outline: 2px solid var(--ink); }
  .notify-form button { border: 0; background: var(--ink); color: #fff; border-radius: 999px; width: 28px; height: 28px; cursor: pointer; font-size: 13px; flex-shrink: 0; }

  /* ================= CROSS-SITE BANNER ================= */
  .xsite { padding: 0 0 84px; }
  .xsite-card { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
    border: 1px solid var(--line); border-radius: var(--r); padding: 28px 32px; background: #fff; }
  .xsite-card .xk { font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--mute); }
  .xsite-card h3 { font-size: clamp(19px, 2.2vw, 24px); font-weight: 800; letter-spacing: -.02em; margin-top: 5px; }
  .xsite-card p { font-size: 13.5px; color: var(--mute); margin-top: 5px; max-width: 62ch; }
  .xsite-card .btn { flex-shrink: 0; }
  @media (max-width: 720px) { .xsite-card { padding: 22px; } }

  /* ================= FOOTER ================= */
  footer { border-top: 1px solid var(--line); }
  footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; padding: 34px 28px; font-size: 13px; color: var(--mute); }
  footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
  footer a:hover { color: var(--ink); }

  /* ================= PROPERTY PAGE ================= */
  .titleblock { padding: 26px 0 16px; }
  .titleblock h1 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -.025em; line-height: 1.05; }
  .title-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 10px; font-size: 14px; color: var(--mute); }
  .title-meta b { color: var(--ink); font-weight: 600; }

  .gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 10px; border-radius: var(--r); overflow: hidden; position: relative; }
  .gallery button { border: 0; padding: 0; cursor: pointer; overflow: hidden; background: linear-gradient(145deg, #EDEFF3, #C7CCD6); }
  .gallery button:first-child { grid-row: span 2; }
  .gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
  .gallery button:hover img { transform: scale(1.04); }
  .gallery .all { position: absolute; right: 14px; bottom: 14px; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: 12.5px; font-weight: 600; padding: 8px 16px; box-shadow: 0 8px 20px -10px rgba(17, 18, 16, .3); }
  @media (max-width: 760px) {
    .gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; grid-template-rows: none; height: 260px; border-radius: 16px; }
    .gallery button { flex: 0 0 88%; scroll-snap-align: start; }
    .gallery button:first-child { grid-row: auto; }
  }

  .cols { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; padding: 34px 0 70px; align-items: start; }
  @media (max-width: 920px) { .cols { grid-template-columns: 1fr; gap: 30px; } }
  .sec { padding: 26px 0; border-top: 1px solid var(--line); }
  .sec:first-child { border-top: 0; padding-top: 0; }
  .sec h2 { font-size: 20px; letter-spacing: -.018em; margin-bottom: 12px; }
  .desc p { color: #3E3D38; line-height: 1.7; margin: 10px 0; font-size: 15px; }

  /* included strip */
  .inc-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .inc-it { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 14px; padding: 13px 15px; }
  .inc-it .iv { font-weight: 700; font-size: 15px; white-space: nowrap; }
  .inc-it .iv.gold { color: var(--accent); }
  .inc-it div b { display: block; font-size: 13.5px; font-weight: 600; }
  .inc-it div span { font-size: 12px; color: var(--mute); }
  @media (max-width: 560px) { .inc-strip { grid-template-columns: 1fr; } }

  /* amenities grid */
  .amen-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 24px; }
  .amen-grid div { display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 7px 0; }
  .amen-grid .d { width: 5px; height: 5px; border-radius: 50%; background: var(--grad); flex-shrink: 0; }
  @media (max-width: 560px) { .amen-grid { grid-template-columns: 1fr; } }

  /* booking card */
  .book { position: sticky; top: 64px; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: 0 28px 60px -32px rgba(17, 18, 16, .28); background: #fff; }
  .book .bk-deal { background: var(--tint); border: 1px solid var(--line); border-radius: 12px; font-size: 12.5px; font-weight: 600; padding: 9px 13px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
  .book .bk-deal .d { color: var(--accent); }
  .bk-fields { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 12px; }
  .bk-fields button { display: flex; flex-direction: column; width: 100%; border: 0; background: #fff; text-align: left; padding: 11px 16px; cursor: pointer; font-family: var(--body); }
  .bk-fields button:first-child { border-bottom: 1px solid var(--line); }
  .bk-fields button:hover { background: var(--tint); }
  .bk-fields span { font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
  .bk-fields b { font-size: 14px; font-weight: 500; }
  .bk-fields b.empty { color: var(--mute); font-weight: 400; }
  .book .btn { width: 100%; }
  .book .btn:disabled { opacity: .55; cursor: default; }
  .bk-price { display: none; align-items: baseline; justify-content: center; gap: 7px; margin-bottom: 12px; font-variant-numeric: tabular-nums; }
  .bk-price.show { display: flex; }
  .bk-price .amount { font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: -.02em; }
  .bk-price .nights { font-size: 13px; color: var(--mute); }
  .bk-note { text-align: center; font-size: 12px; color: var(--mute); margin-top: 10px; }
  .bk-incl { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 7px; }
  .bk-incl div { display: flex; gap: 9px; font-size: 12.5px; color: #3E3D38; }
  .bk-incl .d { color: var(--accent); font-weight: 700; }
  @media (max-width: 920px) { .book { position: static; } }

  /* ================= MODALS (shared shell) ================= */
  .dp-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(15, 12, 8, .35); backdrop-filter: blur(3px); display: none; opacity: 0; transition: opacity .25s ease; }
  .dp-backdrop.open { display: block; opacity: 1; }

  /* date + guests picker */
  .dp { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 95; display: none; width: min(640px, calc(100vw - 32px));
    background: #fff; color: var(--ink); border-radius: 24px; padding: 16px 24px; box-shadow: 0 40px 90px -28px rgba(0, 0, 0, .55); }
  .dp.open { display: block; animation: dpIn .3s cubic-bezier(.2, .9, .3, 1.12); }
  @keyframes dpIn { from { opacity: 0; transform: translate(-50%, calc(-50% + 12px)) scale(.985); } to { opacity: 1; transform: translate(-50%, -50%); } }
  .dp-tabs { display: flex; gap: 4px; background: var(--tint); border-radius: 999px; padding: 4px; width: max-content; margin: 0 auto 16px; }
  .dp-tabs button { border: 0; background: none; padding: 8px 26px; border-radius: 999px; font-family: var(--body); font-weight: 600; font-size: 13px; cursor: pointer; color: var(--mute); transition: color .15s ease; }
  .dp-tabs button.on { background: #fff; color: var(--ink); box-shadow: 0 2px 10px rgba(15, 16, 20, .1); }
  .dp-pane-dates { position: relative; padding-top: 2px; }
  .dp-nav { position: absolute; top: 0; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 14px; display: grid; place-items: center; transition: background .15s ease; }
  .dp-nav:hover:not(:disabled) { background: var(--tint); }
  .dp-nav:disabled { opacity: .3; cursor: default; }
  .dp-nav.prev { left: 0; }
  .dp-nav.next { right: 0; }
  .dp-months { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
  .dp-mlabel { font-weight: 600; font-size: 14px; text-align: center; margin-bottom: 12px; }
  .dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 2px; }
  .dp-dow { font-size: 10px; font-weight: 700; letter-spacing: .08em; color: var(--mute); text-align: center; padding-bottom: 6px; }
  .dp-day { aspect-ratio: 1; display: grid; place-items: center; font-size: 13px; font-weight: 500; border-radius: 50%; cursor: pointer; border: 0; background: none; font-family: var(--body); color: var(--ink); transition: box-shadow .1s ease; min-height: 38px; }
  .dp-day:hover:not(:disabled):not(.start):not(.end) { box-shadow: inset 0 0 0 1.5px var(--ink); }
  .dp-day:disabled { color: #CEC9C0; cursor: default; text-decoration: line-through; }
  /* The first booked morning after an open night — a stay can end here but not start.
     Rendered apart from booked nights, with a tooltip saying why. */
  .dp-day.co { position: relative; }
  .dp-day.co:disabled:not(.end) { color: var(--mute); text-decoration: none; }
  .dp-day.co::after { content: "Checkout only"; position: absolute; bottom: calc(100% + 2px); left: 50%; transform: translateX(-50%);
    padding: 4px 9px; border-radius: 7px; background: var(--ink); color: #fff; font-size: 10.5px; font-weight: 600;
    white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .12s ease; z-index: 2; }
  .dp-day.co:hover::after, .dp-day.co:focus-visible::after { opacity: 1; }
  .dp-day.in { background: var(--tint); border-radius: 0; }
  /* A checkout on a booked morning re-renders disabled — keep it looking selected, not struck-through. */
  .dp-day.start, .dp-day.end { background: var(--ink); color: #fff; text-decoration: none; }
  .gp-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 26px 4px; }
  .gp-label b { display: block; font-size: 15px; font-weight: 700; }
  .gp-label span { font-size: 12.5px; color: var(--mute); }
  .gp-hint { font-size: 12px; color: var(--mute); background: var(--tint); border-radius: 12px; padding: 11px 14px; margin: 0 0 8px; }
  .step { display: flex; align-items: center; gap: 14px; }
  .step button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 16px; line-height: 1; display: grid; place-items: center; color: var(--ink); transition: border-color .15s ease; }
  .step button:hover:not(:disabled) { border-color: var(--ink); }
  .step button:disabled { opacity: .3; cursor: default; }
  .step b { font-size: 16px; font-weight: 600; min-width: 20px; text-align: center; }
  .dp-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; border-top: 1px solid var(--line); padding-top: 13px; gap: 10px; }
  .dp-nights { font-size: 12.5px; color: var(--mute); font-weight: 600; }
  .dp-clear { background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: var(--body); margin-right: 12px; }
  .dp-error { font-size: 12px; color: var(--mute); background: var(--tint); border-radius: 10px; padding: 8px 12px; margin-bottom: 8px; display: none; }
  .dp-error.show { display: block; }
  @media (max-width: 720px) {
    .dp { left: 0; right: 0; top: auto; bottom: 0; transform: none; width: 100%; max-height: 88vh; max-height: 88dvh; overflow-y: auto;
      border-radius: 24px 24px 0 0; padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); }
    .dp.open { animation: dpUp .35s cubic-bezier(.2, .9, .3, 1.05); }
    @keyframes dpUp { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
    .dp-months { grid-template-columns: 1fr; }
    .dp-months > div:nth-child(2) { display: none; }
    .dp-day { min-height: 44px; font-size: 14px; }
    .dp-foot { position: sticky; bottom: 0; background: #fff; padding-bottom: 4px; }
  }

  /* compact article pop-up (gift card inclusions) */
  .smodal { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 95;
    width: min(520px, calc(100vw - 32px)); max-height: 76vh; max-height: 76dvh;
    background: #fff; color: var(--ink); border-radius: 22px; box-shadow: 0 40px 90px -28px rgba(0, 0, 0, .55);
    display: none; flex-direction: column; overflow: hidden; }
  .smodal.open { display: flex; animation: amIn .3s cubic-bezier(.2, .9, .3, 1.12); }
  .sm-article { overflow-y: auto; overscroll-behavior: contain; padding: 30px 26px 22px; }
  .sm-article .sm-k { font-size: 10.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); text-align: center; margin-bottom: 8px; }
  .sm-article .sm-title { font-size: 22px; font-weight: 700; letter-spacing: -.02em; text-align: center; line-height: 1.12; margin: 0 0 14px; }
  .sm-article p { font-size: 14px; color: #3E3D38; line-height: 1.65; margin: 10px 0; }
  .sm-article ul { margin: 10px 0 12px 18px; font-size: 13.5px; color: #3E3D38; line-height: 1.65; }
  .sm-article a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
  .sm-article .sm-note { font-size: 12px; color: var(--mute); background: var(--tint); border-radius: 12px; padding: 11px 14px; margin-top: 14px; }

  /* large editorial modal (resort amenities) — also the lightbox shell */
  .amodal { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 95;
    width: min(880px, calc(100vw - 40px)); height: calc(100vh - 56px); height: calc(100dvh - 56px);
    background: #fff; color: var(--ink); border-radius: 24px; box-shadow: 0 40px 90px -28px rgba(0, 0, 0, .55);
    display: none; flex-direction: column; overflow: hidden; }
  .amodal.open { display: flex; animation: amIn .32s cubic-bezier(.2, .9, .3, 1.12); }
  @keyframes amIn { from { opacity: 0; transform: translate(-50%, calc(-50% + 14px)) scale(.985); } to { opacity: 1; transform: translate(-50%, -50%); } }
  .am-close { position: absolute; top: 16px; right: 16px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line);
    background: rgba(255, 255, 255, .85); backdrop-filter: blur(10px); color: var(--ink); font-size: 13px; cursor: pointer; display: grid; place-items: center;
    box-shadow: 0 6px 18px -8px rgba(17, 18, 16, .25); }
  .am-close:hover { background: #fff; }
  .am-kicker { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); text-align: center; margin: 34px 0 10px; }
  .am-title { font-size: clamp(26px, 3.2vw, 36px); font-weight: 700; letter-spacing: -.025em; text-align: center; line-height: 1.08; margin: 0 auto 6px; max-width: 18ch; }
  .am-rule { width: 36px; height: 2px; background: var(--accent); opacity: .55; margin: 16px auto 8px; border: 0; }
  .am-article { overflow-y: auto; overscroll-behavior: contain; flex: 1; padding: 8px max(28px, calc((100% - 660px) / 2)) 22px; }
  .am-article p { font-size: 14.5px; color: #3E3D38; line-height: 1.7; margin: 12px 0; }
  .am-article h4 { font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; margin: 20px 0 2px; }
  .am-article img { width: 100%; border-radius: 14px; margin: 14px 0 6px; display: block; background: linear-gradient(145deg, #EDEFF3, #C7CCD6); min-height: 120px; }
  .am-article figcaption, .am-article .cap { font-size: 11.5px; color: var(--mute); margin: -2px 0 12px; }
  .am-article ul { margin: 10px 0 12px 18px; font-size: 14px; color: #3E3D38; line-height: 1.7; }
  .am-article a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
  .am-panel[hidden] { display: none; }
  .am-foot { display: flex; align-items: center; justify-content: center; gap: 22px; border-top: 1px solid var(--line); padding: 13px 28px; background: #fff; }
  .am-foot .am-count { font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
  .am-switch button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 14px; display: grid; place-items: center; transition: all .15s ease; }
  .am-switch button:hover { border-color: var(--ink); background: var(--tint); }
  @media (max-width: 720px) {
    .amodal { left: 0; right: 0; top: auto; bottom: 0; transform: none; width: 100%; height: 96vh; height: 96dvh; border-radius: 24px 24px 0 0; }
    .amodal.open { animation: dpUp .35s cubic-bezier(.2, .9, .3, 1.05); }
    .am-foot { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  }

  /* all-photos lightbox */
  .lbox { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 95; width: min(880px, calc(100vw - 40px)); height: calc(100vh - 56px); height: calc(100dvh - 56px);
    background: #fff; border-radius: 24px; box-shadow: 0 40px 90px -28px rgba(0, 0, 0, .55); display: none; flex-direction: column; overflow: hidden; }
  .lbox.open { display: flex; animation: amIn .3s cubic-bezier(.2, .9, .3, 1.12); }
  .lb-grid { overflow-y: auto; overscroll-behavior: contain; padding: 54px 28px 24px; display: grid; gap: 12px; }
  .lb-grid img { width: 100%; border-radius: 14px; background: linear-gradient(145deg, #EDEFF3, #C7CCD6); min-height: 160px; }
  @media (max-width: 720px) {
    .lbox { left: 0; right: 0; top: auto; bottom: 0; transform: none; width: 100%; height: 94vh; height: 94dvh; border-radius: 24px 24px 0 0; }
  }

  /* ================= REVEAL + MOBILE POLISH ================= */
  .rv { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
  .rv.in { opacity: 1; transform: none; }

  @media (max-width: 720px) {
    .section { padding: 56px 0; }
    .deal-bar .wrap { gap: 8px; padding: 7px 14px; font-size: 12px; }
    /* Hero declutter on phones — the deal/giveaway countdowns, hero subtitle
       and quick-date chips stay desktop-only. */
    .deal-bar .count, .hg-count, .hero-sub, .quick { display: none; }
    /* iOS zooms any focused input under 16px — prevent it */
    .give-form input, .notify-form input { font-size: 16px; }
    .timer div { min-width: 0; padding: 11px 0; }
    .timer b { font-size: 20px; }
    .give-form { flex-direction: column; align-items: stretch; }
    .give-form .btn { width: 100%; }
    .opens :is(button, a) { padding: 9px 14px; font-size: 12.5px; }
    .xsite-card .btn { width: 100%; }
    .xsite { padding-bottom: 56px; }
  }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { animation: none !important; transition: none !important; }
    .rv { opacity: 1; transform: none; }
  }
}

/* ================= CHECKOUT (bookings/new +spinoff) ================= */
@layer components {
  .co-secure { font-size: 12.5px; font-weight: 600; color: var(--mute); }
  .co-layout { display: grid; grid-template-columns: 1.55fr 1fr; gap: 48px; padding: 26px 28px 70px; align-items: start; }
  .co-title { font-size: clamp(26px, 3vw, 34px); letter-spacing: -.025em; margin-bottom: 10px; }
  .co-step { padding: 24px 0; border-top: 1px solid var(--line); }
  .co-step:first-of-type { border-top: 0; }
  .co-step-head { display: flex; align-items: center; gap: 12px; }
  .co-step-head h2 { font-size: 18px; letter-spacing: -.015em; }
  .co-step-num { width: 26px; height: 26px; border-radius: 50%; background: var(--grad); color: #171511; font-size: 13px; font-weight: 700; display: grid; place-items: center; flex-shrink: 0; }
  .co-edit { margin-left: auto; font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; cursor: pointer; font-family: var(--body); color: var(--ink); }
  .co-step-sub { font-size: 13px; color: var(--mute); margin: 6px 0 16px 38px; }
  .co-trip-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 16px 0 0 38px; }
  .co-fact { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: #fff; text-align: left; font-family: var(--body); color: var(--ink); cursor: pointer; transition: border-color .15s ease, transform .2s cubic-bezier(.2, .9, .3, 1.3); }
  .co-fact:hover:not(.co-fact--static) { border-color: var(--ink); transform: translateY(-1px); }
  .co-fact--static { cursor: default; }
  .co-fact-k { display: block; font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
  .co-trip-facts b { display: block; font-size: 14px; font-weight: 600; margin-top: 3px; }
  .co-fact-sub { font-size: 12px; color: var(--mute); }
  .co-fields { display: grid; gap: 12px; margin-left: 38px; }
  .co-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .co-field span { display: block; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); margin-bottom: 5px; }
  .co-field span em { text-transform: none; letter-spacing: 0; font-style: normal; font-weight: 500; }
  .co-field input { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 15px; font-family: var(--body); color: var(--ink); outline: 0; transition: border-color .15s ease; background: #fff; }
  .co-field input:focus { border-color: var(--ink); }
  .co-continue { justify-self: start; margin-top: 4px; }
  .co-continue:disabled { opacity: .45; cursor: default; }
  .co-guest-summary { margin-left: 38px; font-size: 14.5px; font-weight: 500; }
  .co-pay-locked { margin-left: 38px; border: 1px dashed var(--line); border-radius: 12px; padding: 16px; font-size: 13px; color: var(--mute); }
  .co-pay { display: grid; gap: 14px; margin-left: 38px; }
  /* display:grid would defeat the hidden attribute these sections toggle on */
  .co-pay[hidden], .co-fields[hidden] { display: none; }
  .co-pay-btn { width: 100%; padding: 15px; font-size: 15.5px; }
  .co-pay-btn:disabled { opacity: .55; cursor: default; }
  .co-pay-errors { color: #B4543F; background: #FBF0EE; border-radius: 10px; padding: 10px 13px; font-size: 13px; font-weight: 500; }
  .co-pay-note { font-size: 12px; color: var(--mute); text-align: center; }

  .co-card { position: sticky; top: 76px; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: 0 28px 60px -32px rgba(17, 18, 16, .28); background: #fff; }
  .co-prop { display: flex; gap: 12px; align-items: center; }
  .co-prop-img { width: 84px; height: 64px; border-radius: 12px; overflow: hidden; flex-shrink: 0; background: linear-gradient(145deg, #EDEFF3, #C7CCD6); }
  .co-prop-img img { width: 100%; height: 100%; object-fit: cover; }
  .co-prop-info b { display: block; font-size: 15px; line-height: 1.2; }
  .co-prop-info span { display: block; font-size: 12.5px; color: var(--mute); margin-top: 2px; }
  .co-rows { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; display: grid; gap: 8px; }
  .co-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; }
  .co-row--total { font-weight: 700; font-size: 15px; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 2px; }
  .co-perks { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; display: grid; gap: 7px; }
  .co-perks-k { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
  .co-perk { display: flex; gap: 9px; font-size: 13px; align-items: baseline; }
  .co-perk-v { font-weight: 700; color: var(--accent); min-width: 38px; }
  .co-cancel { background: var(--tint); border-radius: 12px; padding: 12px 14px; font-size: 12.5px; color: #3E3D38; margin-top: 14px; }
  .co-cancel strong { display: block; font-size: 13px; margin-bottom: 2px; }

  @media (max-width: 920px) {
    .co-layout { grid-template-columns: 1fr; gap: 24px; }
    .co-rail { order: -1; }
    .co-card { position: static; }
  }
  @media (max-width: 560px) {
    .co-trip-facts { grid-template-columns: 1fr; margin-left: 0; }
    .co-fields, .co-pay, .co-pay-locked, .co-guest-summary, .co-step-sub { margin-left: 0; }
    .co-field-row { grid-template-columns: 1fr; }
    .co-field input { font-size: 16px; }
  }

  /* ================= CONFIRMATION / PROCESSING ================= */
  .cf { display: grid; place-items: center; padding: 44px 28px 90px; }
  .cf-card { max-width: 560px; width: 100%; border: 1px solid var(--line); border-radius: 24px; padding: 40px 36px; text-align: center; box-shadow: 0 30px 70px -35px rgba(17, 18, 16, .3); background: #fff; }
  .cf-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--grad); color: #171511; font-size: 28px; font-weight: 800; display: grid; place-items: center; margin: 0 auto 18px; animation: cfPop .5s cubic-bezier(.2, .9, .3, 1.4) both; }
  @keyframes cfPop { from { opacity: 0; transform: scale(.55); } to { opacity: 1; transform: scale(1); } }
  .cf-icon--pending { background: var(--tint); border: 1px solid var(--line); }
  .cf-pulse { width: 12px; height: 12px; border-radius: 50%; background: #7ED957; box-shadow: 0 0 0 0 rgba(126, 217, 87, .6); animation: pulse 1.8s infinite; }
  .cf-card h1 { font-size: 26px; letter-spacing: -.02em; }
  .cf-sub { font-size: 14.5px; color: var(--mute); max-width: 40ch; margin: 8px auto 0; }
  .cf-details { margin-top: 22px; border: 1px solid var(--line); border-radius: 14px; padding: 4px 16px; text-align: left; }
  .cf-row { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
  .cf-row:last-child { border-bottom: 0; }
  .cf-row span { color: var(--mute); }
  .cf-row b { font-weight: 600; text-align: right; }
  .cf-next { text-align: left; margin-top: 18px; display: grid; gap: 8px; }
  .cf-next-row { display: flex; gap: 9px; font-size: 13.5px; color: #3E3D38; align-items: baseline; }
  .cf-next-row .d { color: var(--accent); font-weight: 700; }
  .cf-note { font-size: 12.5px; color: var(--mute); margin: 10px 0; }
  .cf-btn { margin-top: 24px; }
}

/* ================= ACCOUNT + PASSWORDLESS AUTH ================= */
@layer components {
  /* nav account entry */
  .acct { position: relative; }
  .acct-btn { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; font-family: var(--body); font-size: 13px; font-weight: 700; cursor: pointer; display: grid; place-items: center; transition: opacity .15s ease; }
  .acct-btn:hover { opacity: .85; }
  .acct-menu { position: absolute; right: 0; top: calc(100% + 10px); z-index: 85; min-width: 240px; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 28px 60px -24px rgba(17, 18, 16, .4); padding: 6px; }
  .acct-menu[hidden] { display: none; }
  .acct-id { display: grid; gap: 1px; padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
  .acct-id b { font-size: 13.5px; }
  .acct-id span { font-size: 12px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .acct-menu button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 10px 12px; border-radius: 10px; font-family: var(--body); font-size: 13.5px; font-weight: 600; color: var(--ink); cursor: pointer; }
  .acct-menu button:hover { background: var(--tint); }
  .acct-menu form { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
  .acct-signout { color: #B4543F !important; }

  /* auth modal (email → code → name) */
  .authm { width: min(430px, calc(100vw - 32px)); }
  .authm .sm-article { padding: 34px 28px 26px; }
  .authm-title { font-size: 21px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 6px; }
  .authm-sub { font-size: 13.5px; color: var(--mute); line-height: 1.55; margin: 0 0 16px; }
  .authm-sub b { color: var(--ink); }
  .authm-cta { width: 100%; margin-top: 14px; }
  .authm-back { width: 100%; margin-top: 16px; background: #fff; border: 1px solid var(--line); color: var(--ink); }
  .authm-back:hover { border-color: var(--ink); }
  .authm-fine { font-size: 11.5px; color: var(--mute); text-align: center; line-height: 1.5; margin: 14px 0 0; }
  .authm-error { font-size: 12.5px; font-weight: 500; color: #B4543F; background: #FBF0EE; border-radius: 10px; padding: 9px 12px; margin: 12px 0 0; }
  .authm-code { display: flex; gap: 8px; margin-top: 4px; }
  .authm-code input { width: 100%; min-width: 0; aspect-ratio: 5 / 6; text-align: center; font-family: var(--body); font-size: 22px; font-weight: 700; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 12px; outline: 0; transition: border-color .15s ease; }
  .authm-code input:focus { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
  .authm-resend { font-size: 13px; color: var(--mute); margin: 14px 0 0; }
  .authm-link { background: none; border: 0; padding: 0; font-family: var(--body); font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
  .authm-link:disabled { color: var(--mute); text-decoration: none; cursor: default; }

  /* checkout sign-in gate */
  .co-auth { margin-left: 38px; background: var(--tint); border-radius: 14px; padding: 18px; display: grid; gap: 12px; justify-items: start; }
  .co-auth p { font-size: 13.5px; color: #3E3D38; line-height: 1.55; margin: 0; }
  .co-input-locked { background: var(--tint) !important; color: var(--mute); cursor: default; }

  /* account modals (trips / profile) */
  .acctm { width: min(480px, calc(100vw - 32px)); }
  .acct-loading, .acct-empty { font-size: 13.5px; color: var(--mute); text-align: center; padding: 14px 0; }
  .trips-h { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin: 18px 0 8px; }
  .trips { display: grid; gap: 10px; }
  .trip { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
  .trip-img { width: 76px; height: 58px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: linear-gradient(145deg, #EDEFF3, #C7CCD6); }
  .trip-img img { width: 100%; height: 100%; object-fit: cover; }
  .trip-info { display: grid; gap: 1px; min-width: 0; }
  .trip-info b { font-size: 14px; line-height: 1.25; }
  .trip-info span { font-size: 12.5px; color: var(--mute); }
  .trip-status { font-weight: 600; color: var(--accent); text-transform: capitalize; }
  .prof-form { display: grid; gap: 12px; }
  .prof-email { font-size: 14.5px; font-weight: 500; margin: 2px 0 0; }
  .prof-note { font-size: 12px; color: var(--mute); margin: 4px 0 0; }
  .prof-saved { font-size: 13px; font-weight: 600; color: var(--accent); margin: 0; }

  @media (max-width: 560px) {
    .co-auth { margin-left: 0; }
    /* iOS zooms any focused input under 16px */
    .authm .co-field input { font-size: 16px; }
  }
}
