/* Accommodations page.
   Colors and fonts all live in the variables below, so the look can be
   re-pointed at the rest of the site later without touching the layout. */
:root {
  --paper: #FBF7EC;          /* save-the-date cream */
  --card: #FFFFFF;
  --ink: #2B332C;
  --muted: #6E7A6B;
  --line: #E4DECD;
  --pine: #33463A;           /* deep green from the save-the-date trees */
  --slate: #465F5C;
  --sage: #9FB8AD;
  --sage-soft: #E6EDE7;
  --clay: #B2805A;
  --gold: #BD9354;
  --gold-soft: #F2E7D4;
  --lupine: #6E6598;         /* the save-the-date's purple, used sparingly */
  --radius: 4px;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Karla", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.lodging-page { background: var(--paper); color: var(--ink); font-family: var(--body); }
.lodging { max-width: 1100px; margin-inline: auto; padding-inline: 20px; padding-block: 20px 72px; }
.lodging *, .lodging *::before, .lodging *::after { box-sizing: border-box; }
.lodging a { color: var(--pine); }
.lodging :focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; }
.lodging img, .lodging svg { max-width: 100%; }

.lodging-back { font-size: 14px; }
.lodging-back a { color: var(--muted); text-decoration: none; }
.lodging-back a:hover { color: var(--pine); text-decoration: underline; }

/* ---------- hero ---------- */
.lodging-header { position: relative; text-align: center; padding-block: 10px 6px; display: grid; justify-items: center; gap: 14px; }
/* Watercolor firs lifted from the save-the-date. */
.hero-pines { display: block; width: min(520px, 76%); height: auto; margin-bottom: -4px; }
/* The save-the-date's meadow, extended with single stems from the wildflower sheet. */
.meadow-band {
  width: calc(100% + 40px); margin: 10px -20px 26px; height: clamp(165px, 25vw, 280px);
  background: url("photos/art-meadow.png") 18% bottom / auto 100% no-repeat;
}
.footer-meadow { margin: 70px -20px 0; transform: scaleX(-1); opacity: .92; }
.lodging-eyebrow { margin: 0; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--clay); }
.lodging-header h1 { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(36px, 7vw, 62px); line-height: 1.05; color: var(--pine); text-wrap: balance; }
.lodging-lede { margin: 0; max-width: 58ch; font-size: 17px; line-height: 1.6; color: var(--ink); }
.lodging-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; margin: 4px 0 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--muted); }
.lodging-facts b { color: var(--slate); font-weight: 700; }

/* ---------- two notes ---------- */
.lodging-advice { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-block: 10px 52px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.lodging-advice h2 { margin: 0 0 6px; font-family: var(--display); font-weight: 500; font-size: 22px; color: var(--slate); }
.lodging-advice p { margin: 0; color: var(--muted); max-width: 48ch; font-size: 15px; line-height: 1.6; }

/* ---------- section headings ---------- */
.section-head { display: grid; justify-items: center; text-align: center; gap: 6px; margin-bottom: 22px; }
.lodging-section-title { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(26px, 4vw, 34px); color: var(--pine); }
.lodging-sub { margin: 0; color: var(--muted); max-width: 60ch; font-size: 15px; line-height: 1.6; }

/* ---------- cards ---------- */
.card-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.place-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  display: grid; grid-template-rows: auto 1fr auto;
  box-shadow: 0 1px 2px rgba(43, 51, 44, .06), 0 10px 24px -18px rgba(43, 51, 44, .5);
}
.card-photo { position: relative; aspect-ratio: 4 / 3; background: var(--sage-soft); overflow: hidden; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-fallback { position: absolute; inset: 0; background: var(--sage-soft); }
.card-flag {
  position: absolute; left: 0; top: 14px; padding: 5px 12px 5px 10px;
  background: var(--pine); color: var(--paper);
  font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
}
.card-flag.groups { background: var(--sage); color: var(--pine); }
.card-body { padding: 16px 18px 6px; display: grid; gap: 7px; align-content: start; }
.card-meta { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--clay); }
.card h3 { margin: 0; font-family: var(--display); font-weight: 500; font-size: 21px; line-height: 1.2; color: var(--pine); }
.card-line { margin: 0; font-size: 14px; color: var(--slate); font-variant-numeric: tabular-nums; }
.card-note { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { margin: 8px 18px 18px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.price { font-size: 14px; color: var(--clay); font-variant-numeric: tabular-nums; }
.price b { color: var(--slate); font-weight: 700; }
.book { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; text-decoration: none; color: var(--pine); white-space: nowrap; }
.book:hover { color: var(--clay); }

.held-section { margin-bottom: 56px; }
.held-section .card { box-shadow: 0 1px 2px rgba(43, 51, 44, .08), 0 16px 30px -20px rgba(43, 51, 44, .65); }
.ferry-section { margin-top: 56px; }
.ferry-section .card-row { grid-template-columns: repeat(auto-fit, minmax(260px, 320px)); justify-content: center; }

/* ---------- filters ---------- */
.lodging-controls { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: end; justify-content: center; padding-block: 16px; margin-bottom: 26px; border-block: 1px solid var(--line); }
.lodging-controls fieldset { border: 0; margin: 0; padding: 0; }
.lodging-controls legend, .ctl-label { display: block; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 0; margin-bottom: 7px; text-align: center; }
.seg { display: flex; flex-wrap: wrap; gap: 4px; }
.seg input, .multi input { position: absolute; opacity: 0; pointer-events: none; }
.seg label, .multi label {
  padding: 6px 14px; font-size: 13.5px; cursor: pointer; border: 1px solid var(--line);
  border-radius: 999px; background: transparent; color: var(--slate); white-space: nowrap;
}
.seg input:checked + label, .multi input:checked + label { background: var(--pine); border-color: var(--pine); color: var(--paper); }
.seg input:focus-visible + label, .multi input:focus-visible + label { outline: 2px solid var(--clay); outline-offset: 1px; }
.multi { display: flex; flex-wrap: wrap; gap: 4px; }
.sort select { font: inherit; font-size: 13.5px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--slate); }
.count { width: 100%; text-align: center; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.empty { padding: 34px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }

/* ---------- phone: rows swipe sideways ---------- */
@media (max-width: 680px) {
  .lodging-advice { grid-template-columns: 1fr; gap: 22px; }
  .card-row, .place-grid {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
    padding-bottom: 10px; margin-inline: -20px; padding-inline: 20px;
    scrollbar-width: thin;
  }
  .card-row > .card, .place-grid > .card { flex: 0 0 78vw; max-width: 320px; scroll-snap-align: start; }
  .swipe-hint { display: block; }
}
.swipe-hint { display: none; text-align: center; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 10px 0 0; }

@media (prefers-reduced-motion: no-preference) {
  .card { transition: transform .18s ease, box-shadow .18s ease; }
  .card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(43, 51, 44, .08), 0 18px 32px -20px rgba(43, 51, 44, .7); }
}
