/* ==========================================================================
   Hero (home)
   ========================================================================== */

.hero {
  position: relative;
  padding-top: clamp(3rem, 8vw, 6rem);
  padding-bottom: var(--sp-8);
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 85% 0%, rgba(200,152,56,0.16), transparent 60%),
    var(--sand);
}

.hero__ridge {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  height: auto;
  color: var(--pine);
  opacity: 0.14;
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: var(--sp-7);
  align-items: center;
}

@media (max-width: 980px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); }
}

.hero__eyebrow-row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
  flex-wrap: wrap;
}

.hero h1 {
  font-size: var(--fs-hero);
  color: var(--ink);
  max-width: 13ch;
}
.hero h1 em {
  font-style: normal;
  color: var(--murram);
}

.hero__lead {
  font-size: var(--fs-lead);
  color: var(--ink-soft);
  max-width: 46ch;
  margin-top: var(--sp-4);
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
  flex-wrap: wrap;
}

.hero__frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.hero__frame .bracket::before,
.hero__frame .bracket::after { width: 34px; height: 34px; }

.hero__stamp {
  position: absolute;
  bottom: var(--sp-4);
  left: var(--sp-4);
  background: var(--paper);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  max-width: 240px;
}
.hero__stamp .dot {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--ink);
  flex-shrink: 0;
}
.hero__stamp span { font-size: var(--fs-micro); line-height: 1.4; color: var(--ink-soft); }
.hero__stamp b { display: block; font-family: var(--font-display); font-size: 0.95rem; color: var(--ink); }

/* ---- Search hero (home) — Airbnb-style: plain background, collapsed
   search pill that expands to reveal Type/Guests, then category pills ---- */
.search-hero {
  padding-block: var(--sp-5) var(--sp-3);
}
.search-hero + .section { padding-top: var(--sp-3); }
.search-pill {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  width: 100%;
  max-width: 520px;
  background: var(--paper);
  border: 1px solid rgba(21, 19, 15, 0.16);
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  box-shadow: 0 2px 8px rgba(21, 19, 15, 0.12), 0 1px 2px rgba(21, 19, 15, 0.08);
  text-align: left;
}
.search-pill:hover { box-shadow: 0 4px 12px rgba(21, 19, 15, 0.16); }
.search-pill__icon { flex-shrink: 0; color: var(--ink); }
.search-pill__text { display: flex; flex-direction: column; line-height: 1.3; }
.search-pill__text b { font-family: var(--font-display); font-size: 1rem; }
.search-pill__text span { font-size: var(--fs-micro); color: var(--ink-soft); }

.search-expand {
  margin-top: var(--sp-3);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: var(--sp-4);
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,0.7fr) auto;
  gap: var(--sp-3);
  align-items: end;
  max-width: 720px;
}
.search-expand[hidden] { display: none; }
@media (max-width: 640px) {
  .search-expand { grid-template-columns: minmax(0,1fr); }
}
.search-card__field { display: flex; flex-direction: column; gap: 0.35rem; text-align: left; }
.search-card__field label {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.search-card__field select, .search-card__field input {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.9rem;
  min-height: 48px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--sand);
  color: var(--ink);
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}
.search-card__field select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2315130F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 18px;
  padding-right: 2.5rem;
}
.search-card__field select:focus, .search-card__field input:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}
.search-expand .btn { justify-content: center; white-space: nowrap; min-height: 48px; }

@media (max-width: 640px) {
  .search-hero .wrap > h1,
  .search-hero .wrap > p,
  .listing-section .wrap > h1,
  .listing-section .wrap > p {
    display: none !important;
  }
}

/* ---- Category pills — icon + label, Airbnb-style filter row ---- */
.cat-pills {
  display: flex;
  gap: 0.9rem;
  overflow-x: auto;
  scrollbar-width: none;
  margin-top: var(--sp-3);
  padding: 0.15rem 0.1rem 0.35rem;
}
.cat-pills::-webkit-scrollbar { display: none; }
.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  padding: 0.55rem 0.95rem;
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--paper);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--ink);
  box-shadow: 0 2px 7px rgba(21, 19, 15, 0.12), 0 1px 2px rgba(21, 19, 15, 0.08);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.cat-pill svg { width: 17px; height: 17px; flex-shrink: 0; }
.cat-pill:hover { box-shadow: 0 3px 9px rgba(21, 19, 15, 0.16), 0 1px 2px rgba(21, 19, 15, 0.08); }
.cat-pill:active { transform: scale(0.98); }
.cat-pill.is-active { background: var(--paper); color: var(--ink); border-color: transparent; box-shadow: 0 2px 7px rgba(21, 19, 15, 0.14), 0 1px 2px rgba(21, 19, 15, 0.08); }

/* ---- Section header with circular arrow-link (home stays grid) ---- */
.sec-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-4);
}
.sec-head-row h2 { font-size: var(--fs-h2); font-family: var(--font-display); }
.sec-head-arrow {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  transition: background var(--dur-fast), transform var(--dur-fast), color var(--dur-fast);
}
.sec-head-arrow:hover { background: var(--ink); color: var(--paper); transform: translateX(2px); }

/* ---- Quick-facts ledger strip ---- */
.facts {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.facts__row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.facts__item {
  padding: var(--sp-4) var(--sp-3);
  text-align: center;
  border-left: 1px solid var(--line);
}
.facts__item:first-child { border-left: none; }
.facts__num {
  font-family: var(--font-mono);
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  color: var(--murram);
  letter-spacing: -0.02em;
}
.facts__label {
  font-size: var(--fs-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.3rem;
}
@media (max-width: 720px) {
  .facts__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts__item:nth-child(3) { border-left: none; }
}

/* ---- Section header ---- */
.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}
.sec-head h2 { font-size: var(--fs-h2); max-width: 16ch; margin-top: var(--sp-2); }
.sec-head p { font-size: var(--fs-body); color: var(--ink-soft); max-width: 42ch; margin-top: var(--sp-2); }
.sec-head__side { flex-shrink: 0; }
@media (max-width: 640px) {
  .sec-head { flex-direction: column; align-items: flex-start; }
}

/* ---- Page banner (sub-pages) ---- */
.page-banner {
  padding-top: clamp(3rem, 7vw, 5.5rem);
  padding-bottom: var(--sp-6);
  background:
    radial-gradient(ellipse 50% 60% at 90% 0%, rgba(200,152,56,0.14), transparent 60%),
    var(--sand);
  border-bottom: 1px solid var(--line);
}
.page-banner h1 { font-size: var(--fs-h1); max-width: 18ch; margin-top: var(--sp-3); }
.page-banner__lead { font-size: var(--fs-lead); color: var(--ink-soft); max-width: 56ch; margin-top: var(--sp-3); }
.about-banner {
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  padding-block: var(--sp-3);
  color: var(--paper);
  background:
    linear-gradient(90deg, rgba(21,19,15,0.78), rgba(21,19,15,0.18)),
    url('../assets/img/stays/Lucky House NBNB_S-001/1.golden-bed-tv.webp') center / cover;
}
.about-banner .page-banner__lead { color: rgba(255,253,248,0.86); }
.about-banner h1 { max-width: 12ch; text-wrap: balance; }
.about-banner h1 { font-size: clamp(1.8rem, 4.5vw, 3rem); }
.about-banner .page-banner__lead { max-width: 38ch; font-size: 1rem; margin-top: var(--sp-2); line-height: 1.45; }
.about-banner .crumb { color: var(--paper); }
.about-banner .crumb a:hover { color: var(--gold-bright); }
.wishlist-banner {
  padding-block: 1.25rem;
  color: var(--paper);
  background:
    linear-gradient(90deg, rgba(21,19,15,0.78), rgba(21,19,15,0.28)),
    url('../assets/img/stays/Lucky House NBNB_S-002/1.file_00000000048c81f49a66ac5922d943d2.webp') center 52% / cover;
}
.wishlist-banner .crumb { color: var(--paper); }
.wishlist-banner .crumb a:hover { color: var(--gold-bright); }
.wishlist-banner .page-banner__lead { color: rgba(255,253,248,0.86); }
.wishlist-banner h1 {
  margin-top: 0.55rem;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
}
.wishlist-banner .page-banner__lead {
  margin-top: 0.4rem;
  font-size: 0.9rem;
}
.page-banner--photo {
  min-height: 28px;
  display: flex;
  align-items: center;
  padding-block: 0;
  color: var(--paper);
  background:
    linear-gradient(90deg, rgba(21,19,15,0.72), rgba(21,19,15,0.18)),
    url('../assets/img/stays/kericho-kitchen-wide.jpg') center 52% / cover;
}
.page-banner--photo .crumb { color: var(--paper); }
.page-banner--photo .crumb { font-size: 0.62rem; }
.page-banner--photo + .listing-section { padding-top: var(--sp-3); }
.page-banner--photo .crumb a:hover { color: var(--gold-bright); }
.crumb {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  text-transform: uppercase;
}
.crumb a:hover { color: var(--murram); }
.crumb .sep { margin: 0 0.5em; opacity: 0.5; }
