/* =============================================================
   Stay With GK — Listings grid + Listing detail
   ============================================================= */

/* ---------- shared page intro ---------- */
.page-intro { padding: clamp(2.5rem,5vw,4.5rem) 0 0; }
.page-intro .eyebrow { justify-content:flex-start; }
.page-intro h1 { font-size: var(--step-3); margin-bottom:.3em; }
.page-intro p { max-width: 56ch; color: var(--slate); }

/* ---------- filter bar ---------- */
.filters {
  position: sticky; top: 76px; z-index: 40;
  background: color-mix(in srgb, var(--bone) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  padding: 1rem 0; margin-top: 1.6rem;
}
.filters__row { display:flex; gap:.8rem; align-items:center; flex-wrap:wrap; }
.filters select, .filters input {
  font-family: var(--body); font-size:.9rem; color:var(--ink);
  background:var(--white); border:1px solid var(--line); border-radius: var(--radius);
  padding:.6rem .9rem;
}
.filters select:focus, .filters input:focus { outline:none; border-color:var(--brass); }
.filters .count { margin-left:auto; font-size:var(--step--1); color:var(--slate); }
.filters .count b { color:var(--ink); font-weight:600; }

/* ---------- the grid (reuses .card from home.css if present) ---------- */
.lst-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1.8rem; padding: 2.4rem 0 1rem; }
@media (max-width:900px){ .lst-grid{ grid-template-columns:repeat(2,1fr);} }
@media (max-width:600px){ .lst-grid{ grid-template-columns:1fr;} }

.card { background:var(--white); border-radius:var(--radius); overflow:hidden;
  border:1px solid var(--line); transition:transform .35s ease, box-shadow .35s ease; display:block; }
.card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-card); }
.card__media{ position:relative; aspect-ratio:3/2; overflow:hidden; background:var(--bone-deep); }
.card__media img{ width:100%; height:100%; object-fit:cover; transition:transform .6s ease;
  color:transparent; font-size:0; }
.card:hover .card__media img{ transform:scale(1.05); }
.card__badges{ position:absolute; top:.8rem; left:.8rem; display:flex; gap:.4rem; flex-wrap:wrap; }
.badge{ font-size:.62rem; letter-spacing:.1em; text-transform:uppercase; font-weight:600;
  padding:.32rem .6rem; border-radius:2px; backdrop-filter:blur(4px); }
.badge--fav{ background:color-mix(in srgb,var(--brass) 90%,transparent); color:#fff; }
.badge--eh{ background:color-mix(in srgb,var(--ink) 86%,transparent); color:var(--bone); }
.card__body{ padding:1.1rem 1.2rem 1.3rem; }
.card__loc{ font-size:.7rem; letter-spacing:.14em; text-transform:uppercase; color:var(--brass-deep); font-weight:600; }
.card__title{ font-size:var(--step-1); margin:.3rem 0 .5rem; line-height:1.15;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.card__summary{ font-size:var(--step--1); color:var(--slate); margin:0 0 .5rem; }
.card__rating{ font-size:var(--step--1); color:var(--ink); }
.card__rating .star{ color:var(--brass); }
.card__meta{ display:flex; gap:.8rem; align-items:baseline; font-size:var(--step--1); color:var(--slate);
  border-top:1px solid var(--line); padding-top:.8rem; margin-top:.8rem; }
.card__price{ margin-left:auto; color:var(--ink); }
.card__price b{ font-family:var(--display); font-size:1.1rem; }
.card__price.tba{ color:var(--brass-deep); font-style:italic; font-family:var(--display); }

.empty{ text-align:center; padding:4rem 0; color:var(--slate); }

/* =============================================================
   LISTING DETAIL
   ============================================================= */
.detail-head{ padding:clamp(1.6rem,3vw,2.4rem) 0 1.2rem; }
.detail-head h1{ font-size:var(--step-3); margin-bottom:.35rem; }
.detail-sub{ display:flex; gap:1rem; flex-wrap:wrap; align-items:center; color:var(--slate); font-size:var(--step--1); }
.detail-sub .dot{ width:3px;height:3px;border-radius:50%;background:var(--brass); display:inline-block; }
.detail-sub .star{ color:var(--brass); }
.detail-sub a{ text-decoration:underline; text-underline-offset:2px; }

/* gallery mosaic */
.gallery{ display:grid; grid-template-columns:2fr 1fr 1fr; grid-template-rows:1fr 1fr;
  gap:6px; height:clamp(300px,46vw,520px); border-radius:var(--radius); overflow:hidden; }
.gallery img{ width:100%; height:100%; object-fit:cover; cursor:pointer; transition:opacity .25s; background:var(--bone-deep); color:transparent; font-size:0; }
.gallery img:hover{ opacity:.9; }
.gallery .g0{ grid-row:span 2; }
.gallery .more{ position:relative; }
.gallery .more button{
  position:absolute; right:14px; bottom:14px; border:0; cursor:pointer;
  background:var(--white); color:var(--ink); font-family:var(--body); font-weight:600;
  font-size:.85rem; padding:.6rem 1rem; border-radius:var(--radius); box-shadow:var(--shadow);
}
@media (max-width:760px){ .gallery{ grid-template-columns:1fr 1fr; grid-template-rows:1fr; height:300px; }
  .gallery img:nth-child(n+4){ display:none; } .gallery .g0{ grid-row:span 1; } }

/* body layout: content + sticky booking */
.detail-body{ display:grid; grid-template-columns:1fr 380px; gap:clamp(2rem,5vw,4rem); padding:2.4rem 0 4rem; align-items:start; }
@media (max-width:900px){ .detail-body{ grid-template-columns:1fr; } .detail-body > aside{ position:static; } }

.dsection{ padding:1.8rem 0; border-top:1px solid var(--line); }
.dsection:first-child{ border-top:0; padding-top:.5rem; }
.dsection h2{ font-size:var(--step-2); margin-bottom:.8rem; }
.dsection h3{ font-size:var(--step-1); margin:0 0 1rem; position:relative; padding-left:.9rem; }
/* brass accent rule before each section heading — consistent visual anchor */
.dsection h3::before{ content:""; position:absolute; left:0; top:.15em; bottom:.15em;
  width:3px; border-radius:2px; background:var(--brass); }
/* alternating "inset card" sections: subtle deeper-bone panel, no rainbow of colours */
.dsection--panel{ background:var(--bone-deep); border-radius:14px; border-top:0;
  padding:1.8rem 1.8rem; margin:1.4rem 0; }
.dsection--panel + .dsection{ border-top:0; }
@media (max-width:560px){ .dsection--panel{ padding:1.5rem 1.2rem; } }
.facts{ display:flex; gap:1.6rem; flex-wrap:wrap; color:var(--slate); }
.facts b{ color:var(--ink); font-weight:600; }
.desc{ white-space:pre-line; color:var(--slate); }

.amenities{ display:grid; grid-template-columns:1fr 1fr; gap:.85rem 1.5rem; margin:0; padding:0; }
@media (max-width:560px){ .amenities{ grid-template-columns:1fr; } }
.amenities li{ list-style:none; display:flex; align-items:flex-start; gap:.7rem; color:var(--slate); font-size:.95rem; line-height:1.45; }
.amenities li[hidden]{ display:none; }
.amenities .amen-ic{ flex:0 0 auto; color:var(--brass); display:inline-flex; align-items:center; justify-content:center; margin-top:.05em; }
.amenities .amen-ic svg{ display:block; }
.amen-more{ background:none;border:1px solid var(--ink); color:var(--ink); font-family:var(--body);
  font-weight:600; font-size:.85rem; padding:.6rem 1.1rem; border-radius:var(--radius); cursor:pointer; margin-top:1.2rem; }

.beds-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:1rem; }
.bed-card{ border:1px solid var(--line); border-radius:var(--radius); padding:1rem 1.1rem; }
.bed-card .lbl{ font-weight:600; color:var(--ink); font-size:.92rem; }
.bed-card .typ{ font-size:var(--step--1); color:var(--slate); }

.map-wrap{ height:320px; border-radius:var(--radius); overflow:hidden; border:1px solid var(--line); }
.map-wrap iframe{ width:100%; height:100%; border:0; }

.ratings-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1rem 2rem; max-width:560px; }
@media (max-width:560px){ .ratings-grid{ grid-template-columns:1fr 1fr; } }
.rrow{ display:flex; justify-content:space-between; align-items:center; gap:1rem; border-bottom:1px solid var(--line); padding:.5rem 0; }
.rrow .v{ font-family:var(--display); color:var(--ink); }

/* booking widget */
.detail-body > aside{ position:sticky; top:96px; align-self:start; }
.booking{ background:var(--white); border:1px solid var(--line);
  border-radius:8px; box-shadow:var(--shadow); padding:1.4rem; }
.booking .price-line{ display:flex; align-items:baseline; gap:.5rem; margin-bottom:1rem; }
.booking .price-line b{ font-family:var(--display); font-size:1.7rem; color:var(--ink); }
.booking .price-line.tba b{ font-size:1.25rem; color:var(--brass-deep); font-style:italic; }
.booking .price-line span{ color:var(--slate); font-size:var(--step--1); }
.bk-dates{ display:grid; grid-template-columns:1fr 1fr; border:1px solid var(--line); border-radius:var(--radius); margin-bottom:.7rem; position:relative; }
.bk-dates label{ display:block; font-size:.62rem; letter-spacing:.12em; text-transform:uppercase; color:var(--brass-deep); font-weight:600; padding:.6rem .8rem 0; }
.bk-dates .bk-field{ width:100%; border:0; background:transparent; padding:.1rem .8rem .6rem; font-family:var(--body); font-size:.92rem; color:var(--ink); cursor:pointer; min-height:1.55rem; }
.bk-dates .bk-field:empty::before{ content:'Add date'; color:var(--slate); opacity:.55; }
.bk-dates > div:first-child{ border-right:1px solid var(--line); border-radius:var(--radius) 0 0 var(--radius); }
.bk-dates > div:nth-child(2){ border-radius:0 var(--radius) var(--radius) 0; }
.bk-dates > div{ transition:background .12s; }
.bk-dates > div.active{ background:rgba(176,141,87,.08); box-shadow:inset 0 0 0 1.5px var(--brass); }
.bk-dates .bk-field:focus-visible{ outline:none; }

/* custom availability calendar (replaces native date pickers so booked nights show) */
.bk-cal{ position:absolute; z-index:40; top:calc(100% + 6px); left:0; right:0;
  background:var(--white); border:1px solid var(--line); border-radius:8px;
  box-shadow:var(--shadow); padding:.9rem; display:none; }
.bk-cal.open{ display:block; }
.bk-cal-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:.5rem; }
.bk-cal-title{ font-family:var(--display); font-size:1rem; color:var(--ink); font-weight:500; }
.bk-cal-nav{ background:none; border:1px solid var(--line); border-radius:var(--radius); width:28px; height:28px; cursor:pointer; color:var(--ink); display:flex; align-items:center; justify-content:center; font-size:1rem; line-height:1; }
.bk-cal-nav:hover:not(:disabled){ background:var(--bone); }
.bk-cal-nav:disabled{ opacity:.3; cursor:not-allowed; }
.bk-cal-grid{ display:grid; grid-template-columns:repeat(7,1fr); gap:1px; }
.bk-cal-dow{ font-size:.6rem; letter-spacing:.05em; text-transform:uppercase; color:var(--slate); opacity:.7; text-align:center; padding:.3rem 0; font-weight:600; min-width:0; }
.bk-cal-day{ aspect-ratio:1; min-width:0; width:100%; border:0; background:none; font-family:var(--body); font-size:.82rem; color:var(--ink); cursor:pointer; border-radius:var(--radius); display:flex; align-items:center; justify-content:center; padding:0; }
.bk-cal-day:hover:not(:disabled):not(.sel){ background:var(--bone-deep); }
.bk-cal-day.empty{ visibility:hidden; cursor:default; }
.bk-cal-day:disabled{ color:var(--slate); opacity:.32; cursor:not-allowed; text-decoration:line-through; }
.bk-cal-day.unavail{ color:var(--clay-deep, #9c5638); opacity:.55; background:rgba(192,113,78,.14); text-decoration:line-through; }
.bk-cal-day.in-range{ background:rgba(176,141,87,.13); border-radius:0; }
.bk-cal-day.sel{ background:var(--brass); color:var(--white); font-weight:600; }
.bk-cal-day.sel.start{ border-radius:var(--radius) 0 0 var(--radius); }
.bk-cal-day.sel.end{ border-radius:0 var(--radius) var(--radius) 0; }
.bk-cal-day.sel.start.end{ border-radius:var(--radius); }
.bk-cal-foot{ display:flex; justify-content:space-between; align-items:center; margin-top:.6rem; padding-top:.6rem; border-top:1px solid var(--line); }
.bk-cal-legend{ font-size:.66rem; color:var(--slate); display:flex; align-items:center; gap:.35rem; }
.bk-cal-legend i{ width:10px; height:10px; border-radius:2px; background:var(--clay, #C0714E); display:inline-block; opacity:.8; }
.bk-cal-clear{ background:none; border:0; color:var(--brass-deep); font-family:var(--body); font-size:.75rem; cursor:pointer; font-weight:600; }
.bk-cal-clear:hover{ text-decoration:underline; }
.bk-guests{ width:100%; border:1px solid var(--line); border-radius:var(--radius); padding:.6rem .8rem; margin-bottom:.9rem; font-family:var(--body); }
.bk-breakdown{ font-size:var(--step--1); color:var(--slate); margin:1rem 0 0; }
.bk-breakdown .row{ display:flex; justify-content:space-between; padding:.35rem 0; }
.bk-breakdown .row.total{ border-top:1px solid var(--line); margin-top:.4rem; padding-top:.7rem; color:var(--ink); font-weight:600; }
.bk-note{ font-size:.75rem; color:var(--slate); text-align:center; margin:.8rem 0 0; }
.bk-note.warn{ color:var(--brass-deep); }

/* =============================================================
   Listing detail — v3 (reworked to match reference polish)
   ============================================================= */

/* ---- Extraordinary banner ---- */
.eh-banner{ display:flex; align-items:baseline; flex-wrap:wrap; gap:.15rem;
  margin:1.6rem 0 .4rem; padding:1.15rem 1.5rem; border-radius:10px;
  background:linear-gradient(100deg, rgba(176,141,87,.14), rgba(176,141,87,.03));
  border:1px solid rgba(176,141,87,.35); }
.eh-banner .eh-big{ font-family:var(--display); font-weight:600; color:var(--brass-deep);
  font-size:clamp(1.5rem,1.15rem+1.7vw,2.4rem); line-height:1.05; letter-spacing:-.015em; }
.eh-banner .eh-rest{ font-family:var(--body); color:var(--slate);
  font-size:clamp(1rem,.92rem+.4vw,1.25rem); }

/* two badges side by side (Extraordinary + Guest favourite) */
.badge-row{ display:flex; gap:1rem; flex-wrap:wrap; margin:1.6rem 0 .4rem; }
.badge-row .eh-banner{ margin:0; flex:1 1 320px; }
/* rating in the facts row */
.facts-rating{ display:inline-flex; align-items:center; gap:.3rem; }
.facts-rating .star{ color:var(--brass); }
.facts-rating a{ color:var(--slate); text-decoration:underline; text-underline-offset:2px; margin-left:.2rem; }

/* ---- Fade gallery: one big main photo, images cross-fade ---- */
.gallery-hero{ margin-top:.5rem; }
.gh-stage{ position:relative; aspect-ratio:3/2; border-radius:12px; overflow:hidden;
  background:var(--bone-deep); box-shadow:var(--shadow-card); }
.gh-stage img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  opacity:0; transition:opacity .9s ease; color:transparent; font-size:0; }
.gh-stage img.show{ opacity:1; }
.gh-nav{ position:absolute; top:50%; transform:translateY(-50%); width:46px; height:46px; z-index:3;
  border-radius:50%; border:0; background:rgba(255,255,255,.9); color:var(--ink);
  font-size:1.6rem; line-height:1; cursor:pointer; display:flex; align-items:center; justify-content:center;
  box-shadow:0 4px 14px rgba(16,33,28,.18); transition:background .2s, transform .2s; }
.gh-nav:hover{ background:#fff; transform:translateY(-50%) scale(1.06); }
.gh-prev{ left:16px; } .gh-next{ right:16px; }
.gh-all{ position:absolute; right:16px; bottom:16px; z-index:3; border:0; cursor:pointer;
  background:rgba(255,255,255,.95); color:var(--ink); font-family:var(--body); font-weight:600;
  font-size:.82rem; padding:.6rem 1rem; border-radius:8px; box-shadow:0 4px 14px rgba(16,33,28,.18);
  display:inline-flex; align-items:center; gap:.45rem; }
.gh-counter{ position:absolute; left:16px; bottom:16px; z-index:3; background:rgba(16,33,28,.62);
  color:var(--bone); font-size:.78rem; padding:.4rem .8rem; border-radius:20px; backdrop-filter:blur(4px); }
.gh-counter b{ font-weight:600; }
.gh-thumbs{ display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-top:14px; }
.gh-thumb{ padding:0; border:0; cursor:pointer; border-radius:10px; overflow:hidden;
  aspect-ratio:3/2; background:var(--bone-deep); transition:transform .25s, box-shadow .25s; }
.gh-thumb img{ width:100%; height:100%; object-fit:cover; display:block; transition:opacity .4s ease;
  color:transparent; font-size:0; }
.gh-thumb:hover{ transform:translateY(-3px); box-shadow:0 12px 28px -16px rgba(16,33,28,.5); }
.gh-thumb:hover img{ opacity:.9; }
.gh-thumb.active{ outline:2px solid var(--brass); outline-offset:2px; }
@media (max-width:560px){ .gh-thumbs{ gap:8px; } }

/* ---- Formatted description ---- */
.desc{ color:var(--slate); font-size:1.02rem; }
.desc p{ margin:0 0 1.15rem; line-height:1.75; }
.desc p:last-child{ margin-bottom:0; }
.desc .desc-sub{ font-family:var(--display); font-size:1.2rem; color:var(--ink);
  margin:1.8rem 0 .65rem; font-weight:500; }
.desc .desc-sub:first-child{ margin-top:0; }
.desc-list{ list-style:none; margin:0 0 1.3rem; padding:0; display:grid; gap:.55rem; }
.desc-list li{ position:relative; padding-left:1.5rem; line-height:1.6; color:var(--slate); }
.desc-list li::before{ content:""; position:absolute; left:.2rem; top:.62em;
  width:6px; height:6px; border-radius:50%; background:var(--brass); }
/* if a line already starts with an emoji, drop our bullet dot and align on the emoji */
.desc-list li.has-emoji{ padding-left:0; }
.desc-list li.has-emoji::before{ display:none; }

/* ---- Need Help Booking card (matches reference layout) ---- */
.help-card{ background:var(--white); border:1px solid var(--line); border-radius:18px;
  box-shadow:0 18px 50px -30px rgba(16,33,28,.45); padding:2.2rem 2rem; margin-top:1.4rem; }
.help-title{ font-family:var(--display); font-weight:600; color:var(--slate);
  font-size:1.85rem; line-height:1.1; margin:0 0 1.3rem; letter-spacing:-.01em; }
.help-divider{ height:1px; background:var(--line); margin:0 0 1.5rem; }
.help-text{ color:var(--slate); font-size:1.05rem; line-height:1.7; margin:0 0 1.8rem; }
.help-phone{ display:inline-flex; align-items:center; gap:.85rem; color:var(--ink);
  font-weight:700; font-size:1.3rem; letter-spacing:.005em; }
.help-phone svg{ color:var(--brass); flex:0 0 auto; }
.help-phone:hover{ color:var(--brass-deep); }
.help-phone:hover svg{ color:var(--brass-deep); }
@media (max-width:560px){
  .help-card{ padding:1.8rem 1.5rem; }
  .help-title{ font-size:1.6rem; }
}
