/* =============================================================================
   SECTION — CABINS LISTING
   The commercial page. A visitor arrives with a group size and a set of dates
   and is looking for the one that fits, so every card leads with who it suits
   rather than with the name - a name tells them nothing on a first visit.
   ========================================================================== */
.cb-kicker{
  margin:0 0 clamp(12px,1.3vw,18px);
  font-family:var(--font-body);
  font-size:clamp(11px,.85vw,12px);font-weight:var(--fw-bold);
  letter-spacing:var(--track-kicker);text-transform:uppercase;
  color:var(--accent);
}

/* ---------------------------------------------------------------------------
   FILTER CHIPS
   --------------------------------------------------------------------------- */
/* The wrapper is what bounds the sticky bar. No styling of its own - it
   exists so the bar unsticks when the list it belongs to has gone. */
.cb-browse{position:relative}
.cb-filter{
  position:sticky;top:var(--hdr-h-sm,60px);z-index:40;
  background:var(--cream-warm);
  border-bottom:1px solid rgba(40,52,38,.14);
}
.cb-filter-in{
  display:flex;align-items:center;gap:var(--space-md);
  padding-block:clamp(10px,1.1vw,14px);
  flex-wrap:wrap;
}
.cb-filter-label{
  font-family:var(--font-body);
  font-size:10.5px;font-weight:var(--fw-bold);
  letter-spacing:var(--track-kicker);text-transform:uppercase;
  color:var(--ink-soft);
}
/* ---- the fields ----
   Five native <select>s. A custom dropdown here would have to re-implement
   keyboard handling, typeahead and the whole mobile picker, and would still
   be worse than the one the phone already has. These are styled, not
   replaced: appearance:none strips the platform's own arrow so one chevron
   can be drawn consistently, and nothing else about the control changes. */
.cb-fields{
  display:flex;align-items:flex-end;gap:var(--space-sm);
  flex-wrap:wrap;
  margin:0;
}
.cb-f{margin:0;display:flex;flex-direction:column;gap:5px}
.cb-f label{
  font-family:var(--font-body);
  font-size:10px;font-weight:var(--fw-bold);
  letter-spacing:var(--track-label);text-transform:uppercase;
  color:var(--ink-soft);
  cursor:pointer;
}
.cb-f select{
  appearance:none;
  min-width:140px;
  padding:9px 34px 9px 13px;
  border:1px solid rgba(40,52,38,.22);
  border-radius:var(--r-ctl);
  background-color:var(--white);
  /* The chevron, inline so it needs no request and cannot 404. */
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d6759' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 9l7 7 7-7'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 11px center;
  background-size:14px 14px;
  font-family:var(--font-body);
  font-size:13.5px;font-weight:var(--fw-medium);
  color:var(--ink);
  cursor:pointer;
  transition:border-color .2s ease;
}
.cb-f select:focus-visible{
  outline:2px solid var(--rust-deep);outline-offset:2px;
  border-color:var(--rust-deep);
}
/* A select holding something other than "Any" is the only way to see at a
   glance which of five fields is narrowing the list. :has() reads it off the
   option itself, so the state cannot disagree with the control. */
.cb-f:has(select:not(:has(option[value=""]:checked))) select{
  border-color:var(--forest);
  box-shadow:inset 0 0 0 1px var(--forest);
}

.cb-filter-foot{
  display:flex;align-items:center;gap:var(--space-md);
  margin-left:auto;
}
.cb-reset{
  padding:9px 15px;
  border:1px solid rgba(40,52,38,.20);
  border-radius:var(--r-ctl);
  background:none;cursor:pointer;
  font-family:var(--font-body);
  font-size:11px;font-weight:var(--fw-bold);
  letter-spacing:var(--track-label);text-transform:uppercase;
  color:#3c4738;
  transition:background .25s ease,border-color .25s ease,color .25s ease;
}
/* Nothing is filtered, so there is nothing to reset: the button stays in the
   layout and stops being an invitation. */
.cb-filter:not(.is-filtering) .cb-reset{
  opacity:.45;pointer-events:none;
}
.cb-reset:focus-visible{outline:2px solid var(--rust-deep);outline-offset:3px}

.cb-count{
  margin:0;
  white-space:nowrap;
  font-family:var(--font-body);
  font-size:11.5px;font-weight:var(--fw-semi);
  letter-spacing:.04em;
  color:var(--ink-soft);
}

/* ---------------------------------------------------------------------------
   THE FIVE — editorial rows, not a tile grid

   Five cabins in a 3-up grid leaves an orphan row with a hole in it, and at
   that column width the four spec chips wrapped onto a ragged second line.
   More to the point, a photo-on-top card grid is the generic shape every
   rental site uses, and these are five distinct houses rather than five
   search results.

   A full-width slab per cabin fixes all of it: no orphan row, the specs get
   horizontal room so they sit on one line, and each property gets the
   presence it is being sold on. Sides alternate so five rows do not read as
   one repeated block; the copy keeps its DOM order, so the tab order never
   zig-zags.
   --------------------------------------------------------------------------- */
.cb-list{
  background:var(--cream);color:var(--ink);
  padding-block:clamp(28px,3.4vw,54px) clamp(40px,4.6vw,72px);
}
.cb-row{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:clamp(18px,2.4vw,44px);
  align-items:center;
  padding-block:clamp(28px,3.2vw,52px);
}
.cb-row[hidden]{display:none}
.cb-row + .cb-row{border-top:1px solid rgba(40,52,38,.16)}

.cb-row-media{
  position:relative;display:block;
  aspect-ratio:4 / 3;
  border-radius:var(--r-card);
  overflow:hidden;
  background:#e8e2d6;
}
/* ---- the card's slideshow ----
   The home page's cabin stage, card-sized. Same two classes doing the work
   (.is-cur on the photograph showing, .is-prev on the one it is replacing),
   the same 0.8s crossfade, and the same slow 7s drift from scale(1.035) to
   scale(1) - the zoom has to outlast the 4.5s hold plus the fade, or it
   finishes early and the picture sits still before it changes.

   .is-prev holds its ground underneath with no opacity transition, so the
   outgoing photograph never shows the card's background through it. */
.cb-shots{position:absolute;inset:0;display:block}
.cb-row-media img{
  position:absolute;inset:0;
  display:block;width:100%;height:100%;
  object-fit:cover;
  opacity:0;transform:scale(1.035);
  transition:opacity .8s ease,transform 7s cubic-bezier(.22,.61,.36,1);
}
.cb-row-media img.is-prev{opacity:1;z-index:1;transition:transform 7s cubic-bezier(.22,.61,.36,1)}
.cb-row-media img.is-cur{opacity:1;z-index:2;transform:scale(1)}

/* Which photograph of this cabin is showing. Indicators, not controls - the
   home page's are <i> too. Making them buttons would add four tab stops per
   cabin, twenty on this page, for something the rotation does by itself. */
.cb-dots{
  position:absolute;z-index:3;left:50%;transform:translateX(-50%);
  bottom:clamp(10px,1.2vw,16px);
  display:flex;gap:7px;pointer-events:none;
}
.cb-dots i{
  display:block;width:16px;height:2px;border-radius:2px;
  background:rgba(255,255,255,.38);transition:background .35s ease;
}
.cb-dots i.is-cur{background:rgba(255,255,255,.95)}
/* The town narrows a choice faster than anything else here, so it sits on
   the photograph rather than three lines down in the spec list. */
/* z-index:3 because the photographs are positioned now and the one showing
   sits on z-index 2. Without it the badge was painted underneath the picture
   and vanished the moment the card became a slideshow. */
.cb-town{
  position:absolute;z-index:3;left:14px;bottom:14px;
  padding:7px 13px 6px;
  background:rgba(13,42,32,.84);
  border-radius:var(--r-ctl);
  font-family:var(--font-body);
  font-size:10px;font-weight:var(--fw-bold);
  letter-spacing:var(--track-kicker);text-transform:uppercase;
  color:#fff;
}

.cb-row-body{position:relative;min-width:0}
/* A quiet editorial numeral. It gives five long rows a rhythm to scroll
   against without adding another thing to read - hence aria-hidden. */
.cb-num{
  margin:0 0 var(--space-xs);
  font-family:var(--font-display);
  font-size:clamp(30px,3.2vw,46px);
  line-height:1;
  font-weight:var(--fw-regular);
  color:rgba(23,61,47,.15);
}
.cb-bestfor{
  margin:0 0 var(--space-sm);
  font-family:var(--font-body);
  font-size:10.5px;font-weight:var(--fw-bold);
  letter-spacing:var(--track-kicker);text-transform:uppercase;
  color:var(--rust-deep);
}
.cb-row h2{
  margin:0;
  font-family:var(--font-display);
  font-size:clamp(28px,3.1vw,45px);
  line-height:1.08;letter-spacing:-.016em;
  font-weight:var(--fw-medium);
  color:#153d31;
}
.cb-row h2 a{color:inherit}
.cb-short{
  margin:clamp(12px,1.4vw,18px) 0 0;
  max-width:52ch;
  font-family:var(--font-body);
  font-size:clamp(15px,1.15vw,17px);
  line-height:var(--lh-body);
  color:var(--ink-soft);
}

/* ---- foot: the rate and the two ways on ---- */
.cb-row-foot{
  display:flex;align-items:center;justify-content:space-between;
  gap:var(--space-lg);flex-wrap:wrap;
  margin-top:clamp(20px,2.4vw,32px);
  padding-top:clamp(16px,1.8vw,24px);
  border-top:1px solid rgba(40,52,38,.14);
}
.cb-row-acts{display:flex;align-items:center;gap:clamp(14px,1.6vw,24px);flex-wrap:wrap}
.cb-more{
  display:inline-flex;align-items:center;gap:10px;
  padding-bottom:4px;
  border-bottom:1px solid rgba(139,55,29,.34);
  font-family:var(--font-body);
  font-size:11.5px;font-weight:var(--fw-bold);
  letter-spacing:var(--track-label);text-transform:uppercase;
  color:var(--rust-deep);
  transition:border-color .25s ease;
}
.cb-more svg{
  width:22px;height:9px;flex:0 0 auto;
  fill:none;stroke:currentColor;stroke-width:1.6;
  stroke-linecap:round;stroke-linejoin:round;
  transition:transform .3s var(--ease-out);
}
/* The direct route to dates, for anyone who has already decided. */
.cb-book-sm{
  display:inline-flex;align-items:center;
  min-height:42px;padding:0 20px;
  border:1px solid rgba(40,52,38,.28);
  border-radius:var(--r-ctl);
  font-family:var(--font-body);
  font-size:11px;font-weight:var(--fw-bold);
  letter-spacing:var(--track-label);text-transform:uppercase;
  color:#2b3a2d;
  transition:background .25s ease,border-color .25s ease,color .25s ease;
}

.cb-empty{
  margin:clamp(24px,3vw,44px) 0 0;padding:clamp(28px,3vw,44px);
  border:1px dashed rgba(40,52,38,.26);
  border-radius:var(--r-card);
  text-align:center;
  font-family:var(--font-body);
  font-size:15px;color:var(--ink-soft);
}
.cb-empty button{
  background:none;border:0;padding:0;cursor:pointer;
  font:inherit;color:var(--rust-deep);
  border-bottom:1px solid rgba(139,55,29,.38);
}

/* ---------------------------------------------------------------------------
   COMPARISON TABLE
   --------------------------------------------------------------------------- */
.cb-compare{
  background:var(--cream-warm);color:var(--ink);
  padding-block:clamp(40px,4.6vw,72px);
  border-top:1px solid rgba(40,52,38,.10);
}
.cb-compare-head{max-width:620px}
.cb-compare .cb-kicker{color:var(--rust-deep)}
.cb-compare h2{
  margin:0;
  font-family:var(--font-display);
  font-size:clamp(25px,2.6vw,38px);
  line-height:1.12;font-weight:var(--fw-medium);
  color:#153d31;
}
/* Scrolls sideways on a phone. Reflowing a seven-column table into stacked
   blocks loses the only thing a comparison is for - reading down a column. */
.cb-table-scroll{
  margin-top:clamp(24px,2.8vw,38px);
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}
.cb-table-scroll:focus-visible{outline:2px solid var(--rust-deep);outline-offset:3px}
.cb-table{
  width:100%;min-width:720px;
  border-collapse:collapse;
  font-family:var(--font-body);
  font-size:14px;
}
.cb-table th,.cb-table td{
  padding:14px 16px;
  text-align:left;
  border-bottom:1px solid rgba(40,52,38,.14);
}
.cb-table thead th{
  font-size:10.5px;font-weight:var(--fw-bold);
  letter-spacing:var(--track-kicker);text-transform:uppercase;
  color:var(--rust-deep);
  border-bottom-color:rgba(40,52,38,.28);
  white-space:nowrap;
}
.cb-table tbody th{
  font-family:var(--font-display);
  font-size:clamp(16px,1.3vw,19px);
  font-weight:var(--fw-medium);
  color:#153d31;
  white-space:nowrap;
}
.cb-table tbody th a{color:inherit;border-bottom:1px solid rgba(21,61,49,.28)}
.cb-table td{color:var(--ink-soft);white-space:nowrap}
.cb-table tbody tr:last-child th,.cb-table tbody tr:last-child td{border-bottom:0}
.cb-table-note{
  margin:clamp(16px,1.8vw,24px) 0 0;max-width:68ch;
  font-family:var(--font-body);
  font-size:13.5px;line-height:1.55;color:var(--ink-soft);
}
.cb-table-note a{color:var(--rust-deep);border-bottom:1px solid rgba(139,55,29,.34)}

/* --------------------------------------------------------------------------- */
@media (min-width:1040px){
  .cb-row{grid-template-columns:minmax(0,1.08fr) minmax(0,1fr)}
  /* Alternate which side the photograph falls on. Only the grid placement
     changes - the markup order stays photo-then-copy, so the reading and
     tab order are identical in both directions. */
  .cb-row:nth-child(even) .cb-row-media{grid-column:2;grid-row:1}
  .cb-row:nth-child(even) .cb-row-body{grid-column:1;grid-row:1}
}
@media (hover:hover) and (pointer:fine){
  /* No hover zoom any more: the photographs own `transform` now, and a hover
     rule setting it too would snap the drift back to its start every time the
     pointer crossed the card. */
  .cb-row:hover .cb-more{border-bottom-color:currentColor}
  .cb-row:hover .cb-more svg{transform:translateX(5px)}
  .cb-book-sm:hover{background:var(--forest);border-color:var(--forest);color:#fff}
  .cb-f select:hover{border-color:rgba(40,52,38,.45)}
  .cb-faq-sub a:hover{border-bottom-color:currentColor}
  .cb-filter.is-filtering .cb-reset:hover{background:var(--forest);border-color:var(--forest);color:#fff}
  .cb-table tbody tr:hover td,.cb-table tbody tr:hover th{background:rgba(40,52,38,.035)}
  .cb-table-note a:hover{border-bottom-color:currentColor}
}
@media (prefers-reduced-motion:reduce){
  /* Reduced motion: no crossfade, no drift. cabins-rotate.js also declines
     to start its timer, so the first photograph simply stays. */
  .cb-row-media img,.cb-more svg{transition:none}
  .cb-row-media img{transform:none}
}

/* ---------------------------------------------------------------------------
   THE FIVE QUESTIONS

   The disclosures are .ct-q from contact-faq.css, loaded rather than copied -
   the same control the contact page, the FAQ page and the cabin pages use.
   This block is only the band around them.
   --------------------------------------------------------------------------- */
.cb-faq{
  background:var(--cream-warm);
  color:var(--ink);
  padding-block:clamp(44px,5vw,80px);
  border-top:1px solid rgba(40,52,38,.1);
}
.cb-faq-in{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:clamp(24px,3vw,54px);
  align-items:start;
}
.cb-faq-head h2{
  margin:clamp(10px,1.2vw,16px) 0 0;
  font-family:var(--font-display);
  font-size:clamp(26px,2.8vw,40px);
  line-height:var(--lh-snug);letter-spacing:-.015em;
  font-weight:var(--fw-medium);
  color:var(--forest);
  text-wrap:balance;
}
.cb-faq .cb-kicker{color:var(--rust-deep)}
.cb-faq-sub{
  margin:clamp(12px,1.4vw,18px) 0 0;
  max-width:40ch;
  font-family:var(--font-body);
  font-size:15px;line-height:var(--lh-body);
  color:var(--ink-soft);
}
.cb-faq-sub a{color:var(--rust-deep);border-bottom:1px solid rgba(139,55,29,.35)}

@media (min-width:900px){
  .cb-faq-in{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr)}
}

/* Sticky only where the bar is one row. Measured: 83px at 1180px wide, 130px
   at 1100, 180px on a tablet, 317px on a phone. Two rows pinned under the
   header is a lid rather than a convenience, so below 1180px the bar sits at
   the top of the list and scrolls away with it - and there are five cabins to
   scroll back past, not fifty. */
@media (max-width:1179px){
  .cb-filter{position:static}
}

@media (max-width:760px){
  /* Five controls will not sit on one line on a phone. Two up gets the bar
     to three rows instead of five. */
  .cb-filter-in{align-items:stretch}
  .cb-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-sm);width:100%}
  .cb-f select{min-width:0;width:100%}
  .cb-filter-foot{margin-left:0;width:100%;justify-content:space-between}
}
