/* NairobiStays — premium redesign (December 2026).
   Warm ivory pages, deep acacia green, dusk brass. Photographs lead; motion is quiet and stops for reduced motion.
   Token names from the first version (--brand, --line, --muted, --font-display, --shadow-md) are kept because
   inline styles in the dashboards still use them. */

/* ---------- Tokens ---------- */
:root {
  --bg: #f6f1e8;
  --bg-2: #efe7d9;
  --card: #fffdf9;
  --ink: #15201b;
  --ink-soft: #3b4741;
  --muted: #6c756f;
  --line: #e2dacb;
  --line-soft: #eee7da;
  --brand: #0f5a44;
  --brand-dark: #0a4433;
  --brand-light: #e3eee6;
  --gold: #c2843a;
  --gold-hi: #e0a95e;
  --gold-light: #f6e8d3;
  --night: #0d1713;
  --night-2: #13201b;
  --night-ink: #f3ede2;
  --night-muted: #a9b2ab;
  --danger: #b3261e;
  --danger-light: #fbe9e7;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(21, 32, 27, .06), 0 1px 1px rgba(21, 32, 27, .04);
  --shadow-md: 0 10px 30px -12px rgba(21, 32, 27, .18), 0 2px 6px rgba(21, 32, 27, .05);
  --shadow-lg: 0 30px 60px -24px rgba(21, 32, 27, .32), 0 8px 18px -8px rgba(21, 32, 27, .12);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-fast: cubic-bezier(.4, 0, .2, 1);
  --wrap: 1200px;
  --gut: clamp(20px, 4vw, 40px);
  --header-h: 76px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--bg);
  line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, video { max-width: 100%; display: block; }
::selection { background: var(--brand); color: #fff; }
a { color: var(--brand-dark); text-decoration: none; }
a:hover { color: var(--brand); }
:focus-visible { outline: 2.5px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; letter-spacing: -.02em; line-height: 1.1; color: var(--ink); font-optical-sizing: auto; }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 400; color: var(--brand); }
p { margin: 0 0 1em; }
small { font-size: .82em; }

.wrap { max-width: calc(var(--wrap) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; color: #fff; }

/* Full-bleed helper: a block inside main.wrap that runs edge to edge */
.bleed { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }

/* ---------- Progress bar (route loading) ---------- */
.progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%; z-index: 9999; opacity: 0;
  background: linear-gradient(90deg, var(--brand), var(--gold-hi));
  transition: width .4s var(--ease), opacity .3s ease;
}
.progress-bar.is-active { opacity: 1; }
.progress-bar.is-done { width: 100% !important; opacity: 0; transition: width .2s var(--ease-fast), opacity .4s ease .15s; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(246, 241, 232, .82);
  backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: background-color .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 30px -18px rgba(21, 32, 27, .25); }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 0; font-family: var(--font-display); font-size: 1.42rem; font-weight: 500; letter-spacing: -.02em; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand span { color: var(--brand); font-style: italic; }
.brand-mark { width: 34px; height: 34px; flex: none; margin-right: 10px; border-radius: 10px; box-shadow: 0 6px 14px -6px rgba(10, 68, 51, .55); }

.site-header nav { display: flex; align-items: center; gap: 30px; }
.site-header nav a { color: var(--ink-soft); font-weight: 600; font-size: .92rem; position: relative; padding: 6px 0; transition: color .2s var(--ease-fast); }
.site-header nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--gold); border-radius: 2px; transition: right .3s var(--ease); }
.site-header nav a:hover { color: var(--ink); }
.site-header nav a:hover::after, .site-header nav a.is-current::after { right: 0; }
.site-header nav a.is-current { color: var(--ink); }

.btn-outline {
  border: 1.5px solid var(--ink); color: var(--ink) !important; padding: 9px 20px !important; border-radius: var(--radius-pill);
  font-weight: 700 !important; transition: background-color .2s var(--ease-fast), color .2s var(--ease-fast), transform .2s var(--ease-fast);
}
.btn-outline::after { display: none; }
.btn-outline:hover { background: var(--ink); color: var(--bg) !important; transform: translateY(-1px); }

.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; border-radius: 12px; }
.nav-toggle span { height: 2px; width: 22px; background: currentColor; color: var(--ink); border-radius: 2px; margin: 0 auto; transition: transform .3s var(--ease), opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* The home page: the header floats over the hero photograph until you scroll */
body:has(.ns-hero) .site-header:not(.is-scrolled) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
body:has(.ns-hero) .site-header:not(.is-scrolled) .brand,
body:has(.ns-hero) .site-header:not(.is-scrolled) nav a { color: #fff; }
body:has(.ns-hero) .site-header:not(.is-scrolled) .brand span { color: var(--gold-hi); }
body:has(.ns-hero) .site-header:not(.is-scrolled) .btn-outline { border-color: rgba(255, 255, 255, .7); color: #fff !important; }
body:has(.ns-hero) .site-header:not(.is-scrolled) .btn-outline:hover { background: #fff; color: var(--ink) !important; }
body:has(.ns-hero) .site-header:not(.is-scrolled) .nav-toggle span { background: #fff; }
body:has(.ns-hero) .site-header { position: fixed; left: 0; right: 0; }
body:has(.ns-hero) main.wrap { padding-top: 0; }

/* ---------- Main ---------- */
main.wrap { padding-top: 44px; padding-bottom: 96px; min-height: 60vh; }
main.wrap.is-entering { animation: content-in .45s var(--ease) both; }
@keyframes content-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.flash { background: var(--brand-light); border: 1px solid rgba(15, 90, 68, .3); color: var(--brand-dark); padding: 14px 18px; border-radius: var(--radius-md); margin-bottom: 28px; font-weight: 600; }
body:has(.ns-hero) .flash { position: relative; z-index: 5; margin-top: calc(var(--header-h) + 16px); }

/* ---------- Shared type ---------- */
.eyebrow, .card-area {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--brand);
  background: none; padding: 0; border-radius: 0;
}
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: var(--gold); }
.section-title { font-size: clamp(2rem, 4vw, 3.1rem); margin: 14px 0 12px; max-width: 20ch; }
.section-sub { color: var(--muted); font-size: 1.06rem; max-width: 52ch; margin-bottom: 36px; }
.section-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: end; margin-bottom: 44px; }
.section-head .section-sub { margin-bottom: 6px; }
.section-block { padding: clamp(72px, 10vw, 128px) 0 0; }
.muted { color: var(--muted); }
.meta { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--brand); color: #fff !important; border: 0; padding: 14px 26px; min-height: 50px;
  border-radius: var(--radius-pill); font: 700 .97rem/1 var(--font-body); cursor: pointer; text-align: center;
  transition: background-color .22s var(--ease-fast), transform .18s var(--ease-fast), box-shadow .22s var(--ease-fast);
  box-shadow: 0 10px 24px -14px rgba(10, 68, 51, .9);
}
.btn:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(10, 68, 51, .9); }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-block { width: 100%; }
.btn.gold { background: var(--gold); color: #1b1206 !important; box-shadow: 0 12px 26px -14px rgba(160, 100, 30, .9); }
.btn.gold:hover { background: var(--gold-hi); }
.btn.light { background: #fff; color: var(--ink) !important; box-shadow: none; }
.btn.light:hover { background: var(--gold-light); }
.btn.ghost { background: transparent; border: 1.5px solid currentColor; color: inherit !important; box-shadow: none; }
.btn.danger { background: var(--danger); box-shadow: none; }
.btn.danger:hover { background: #922019; }
.btn.secondary { background: var(--card); color: var(--ink) !important; border: 1.5px solid var(--line); box-shadow: none; }
.btn.secondary:hover { background: var(--line-soft); transform: none; }
.link { font-weight: 700; font-size: .9rem; color: var(--brand); display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Home hero ---------- */
.ns-hero {
  position: relative; min-height: max(640px, 100svh); display: flex; align-items: flex-end;
  color: #fff; background: var(--night); overflow: hidden; isolation: isolate;
}
.ns-hero__media { position: absolute; inset: 0; z-index: -2; }
.ns-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; transform: scale(1.06); animation: hero-drift 18s var(--ease) both; }
@keyframes hero-drift { from { transform: scale(1.12); } to { transform: scale(1.02); } }
.ns-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(8, 14, 12, .55) 0%, rgba(8, 14, 12, 0) 26%),
    linear-gradient(0deg, rgba(8, 14, 12, .92) 0%, rgba(8, 14, 12, .55) 38%, rgba(8, 14, 12, 0) 70%);
}
.ns-hero .wrap { width: 100%; padding-top: calc(var(--header-h) + 40px); padding-bottom: clamp(40px, 6vw, 72px); }
.ns-hero__eyebrow { color: var(--gold-hi); }
.ns-hero__eyebrow::before { background: var(--gold-hi); }
.ns-hero h1 { color: #fff; font-size: clamp(2.7rem, 7vw, 5.6rem); line-height: .98; letter-spacing: -.035em; margin: 18px 0 20px; max-width: 13ch; }
.ns-hero h1 em { color: var(--gold-hi); }
.ns-hero__lead { font-size: clamp(1.04rem, 1.6vw, 1.2rem); color: rgba(255, 255, 255, .86); max-width: 46ch; margin-bottom: 32px; }
.ns-hero [data-enter] { animation: rise .8s var(--ease) both; }
.ns-hero [data-enter="2"] { animation-delay: .08s; } .ns-hero [data-enter="3"] { animation-delay: .16s; } .ns-hero [data-enter="4"] { animation-delay: .26s; } .ns-hero [data-enter="5"] { animation-delay: .36s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

.ns-search {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 6px; align-items: stretch;
  max-width: 760px; padding: 8px; border-radius: 22px; background: rgba(255, 253, 249, .96); color: var(--ink);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55);
}
.ns-search label { display: grid; gap: 2px; padding: 10px 16px; border-radius: 15px; cursor: pointer; transition: background-color .2s; }
.ns-search label:hover { background: var(--line-soft); }
.ns-search label + label { border-left: 1px solid var(--line); border-radius: 0 15px 15px 0; }
.ns-search label span { font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ns-search select, .ns-search input { border: 0; background: transparent; font: 700 1rem/1.3 var(--font-body); color: var(--ink); padding: 0; width: 100%; outline: none; appearance: none; cursor: pointer; }
.ns-search .btn { min-height: 58px; padding: 0 28px; border-radius: 15px; }

.ns-facts { display: flex; flex-wrap: wrap; gap: 12px 40px; margin: 34px 0 0; padding: 0; list-style: none; }
.ns-facts li { display: grid; }
.ns-facts b { font-family: var(--font-display); font-weight: 500; font-size: 1.55rem; letter-spacing: -.02em; }
.ns-facts span { font-size: .8rem; color: rgba(255, 255, 255, .7); }

/* ---------- Filters ---------- */
.filters { display: flex; gap: 6px; flex-wrap: wrap; padding: 6px; border-radius: var(--radius-pill); background: var(--card); border: 1px solid var(--line); width: fit-content; margin-bottom: 28px; }
.filters a { padding: 10px 20px; border-radius: var(--radius-pill); color: var(--ink-soft); font-weight: 700; font-size: .9rem; white-space: nowrap; transition: background-color .25s var(--ease-fast), color .25s var(--ease-fast); }
.filters a:hover { background: var(--line-soft); color: var(--ink); }
.filters a.active { background: var(--ink); color: var(--bg) !important; }
section.results-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; flex-wrap: wrap; gap: 12px; }
.results-count { color: var(--muted); font-size: .92rem; font-weight: 600; }

/* ---------- Listing cards ---------- */
.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px 26px; }
.card { display: flex; flex-direction: column; color: var(--ink); background: none; border: 0; border-radius: 0; }
.card:hover { color: var(--ink); }
.card-media { position: relative; aspect-ratio: 4 / 3.1; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card-media img { transform: scale(1.04); }
.card-media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(21, 32, 27, .06); pointer-events: none; }
.featured-badge {
  position: absolute; top: 14px; left: 14px; z-index: 1; display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255, 253, 249, .94); color: var(--ink); font-size: .74rem; font-weight: 800; letter-spacing: .02em;
  padding: 7px 12px; border-radius: var(--radius-pill); box-shadow: var(--shadow-sm);
}
.featured-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.card-price {
  position: absolute; right: 14px; bottom: 14px; z-index: 1; padding: 8px 14px; border-radius: var(--radius-pill);
  background: rgba(13, 23, 19, .78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; font-weight: 800; font-size: .9rem;
}
.card-price small { font-weight: 500; opacity: .75; }
.card .no-photo, .no-photo { width: 100%; height: 100%; display: grid; place-items: center; color: var(--muted); font-size: .86rem; background: var(--bg-2); }
.card-body { padding: 16px 4px 0; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { margin: 0; font-size: 1.28rem; line-height: 1.2; display: flex; align-items: center; gap: 8px; }
.card .meta { font-size: .9rem; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.card .price { font-weight: 800; font-size: 1rem; }
.card .price small { font-weight: 500; color: var(--muted); }
.verified-tick { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--brand); color: #fff; flex: none; }
.verified-tick svg { width: 12px; height: 12px; }

.empty-state { text-align: center; padding: 72px 24px; color: var(--muted); border: 1.5px dashed var(--line); border-radius: var(--radius-lg); background: var(--card); }
.empty-state p { font-size: 1.05rem; margin-bottom: 20px; }

/* ---------- Neighbourhoods ---------- */
.ns-areas { display: grid; grid-template-columns: 1.15fr .85fr 1fr; gap: 20px; height: clamp(440px, 52vw, 620px); }
.ns-area { position: relative; display: flex; align-items: flex-end; border-radius: var(--radius-lg); overflow: hidden; color: #fff; isolation: isolate; background: var(--night); }
.ns-area:hover { color: #fff; }
.ns-area img, .ns-area video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.1s var(--ease); }
.ns-area:hover img, .ns-area:hover video { transform: scale(1.04); }
.ns-area::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8, 14, 12, .88) 0%, rgba(8, 14, 12, .2) 50%, rgba(8, 14, 12, 0) 75%); }
.ns-area__text { padding: 28px; }
.ns-area h3 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.5rem); margin: 0 0 8px; }
.ns-area p { color: rgba(255, 255, 255, .82); font-size: .95rem; margin: 0 0 16px; max-width: 34ch; }
.ns-area .link { color: var(--gold-hi); }
.ns-area .link svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.ns-area:hover .link svg { transform: translateX(4px); }
.ns-area__count { position: absolute; top: 18px; left: 18px; padding: 7px 12px; border-radius: var(--radius-pill); background: rgba(255, 253, 249, .92); color: var(--ink); font-size: .76rem; font-weight: 800; }

/* Old area cards (kept for any page still using them) */
.area-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.area-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; display: block; transition: transform .3s var(--ease), box-shadow .3s ease; }
.area-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.area-card h3 { margin: 0 0 8px; font-size: 1.5rem; }
.area-card p { color: var(--muted); font-size: .94rem; margin: 0 0 14px; }

/* ---------- How booking works (dark band) ---------- */
.ns-dark { background: var(--night); color: var(--night-ink); padding: clamp(80px, 11vw, 140px) 0; margin-top: clamp(80px, 11vw, 140px); }
.ns-dark h2 { color: var(--night-ink); }
.ns-dark h2 em { color: var(--gold-hi); }
.ns-dark .eyebrow { color: var(--gold-hi); }
.ns-dark .section-sub { color: var(--night-muted); }
.ns-how { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: clamp(40px, 7vw, 100px); align-items: center; }
.ns-steps { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; counter-reset: step; }
.ns-steps li { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 22px 0; border-top: 1px solid rgba(243, 237, 226, .12); counter-increment: step; }
.ns-steps li::before { content: "0" counter(step); font: 500 1.6rem/1 var(--font-display); color: var(--gold-hi); }
.ns-steps h3 { color: var(--night-ink); font-size: 1.35rem; margin: 0 0 6px; }
.ns-steps p { color: var(--night-muted); margin: 0; font-size: .97rem; }

.ns-phone { position: relative; justify-self: center; width: min(300px, 100%); aspect-ratio: 9 / 18.5; border-radius: 44px; padding: 12px; background: linear-gradient(160deg, #2a332f, #121a16); box-shadow: 0 60px 100px -40px rgba(0, 0, 0, .9), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.ns-phone__screen { position: relative; height: 100%; border-radius: 34px; overflow: hidden; background: linear-gradient(180deg, #f6f1e8, #efe7d9); color: var(--ink); padding: 46px 18px 18px; display: flex; flex-direction: column; gap: 12px; }
.ns-phone__screen::before { content: ""; position: absolute; top: 12px; left: 50%; width: 90px; height: 24px; margin-left: -45px; border-radius: 20px; background: #0d1713; }
.ns-phone__stay { border-radius: 18px; overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.ns-phone__stay img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.ns-phone__stay div { padding: 10px 12px; font-size: .78rem; }
.ns-phone__stay b { display: block; font-size: .9rem; }
.ns-phone__total { display: flex; justify-content: space-between; font-size: .8rem; padding: 0 4px; }
.ns-phone__total b { font-size: .95rem; }
.ns-stk {
  position: absolute; left: 12px; right: 12px; bottom: 14px; padding: 16px; border-radius: 20px; background: #fff; box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .45);
  font-size: .8rem; transform: translateY(130%); animation: stk 7s var(--ease) infinite;
}
.ns-stk__brand { display: flex; align-items: center; gap: 8px; font-weight: 800; color: #1a8a3c; margin-bottom: 8px; }
.ns-stk__brand i { width: 22px; height: 22px; border-radius: 6px; background: #1a8a3c; display: inline-block; }
.ns-stk p { margin: 0 0 10px; color: var(--ink-soft); line-height: 1.45; }
.ns-stk__pin { display: flex; gap: 8px; }
.ns-stk__pin span { flex: 1; height: 30px; border-radius: 8px; background: var(--line-soft); position: relative; }
.ns-stk__pin span::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: var(--ink); transform: scale(0); animation: pin 7s infinite; }
.ns-stk__pin span:nth-child(2)::after { animation-delay: .25s; } .ns-stk__pin span:nth-child(3)::after { animation-delay: .5s; } .ns-stk__pin span:nth-child(4)::after { animation-delay: .75s; }
.ns-done {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; padding: 24px;
  background: var(--brand); color: #fff; opacity: 0; animation: done 7s infinite;
}
.ns-done i { width: 64px; height: 64px; border-radius: 50%; background: rgba(255, 255, 255, .16); display: grid; place-items: center; }
.ns-done svg { width: 30px; height: 30px; }
.ns-done b { font-family: var(--font-display); font-size: 1.4rem; font-weight: 500; }
.ns-done span { font-size: .82rem; opacity: .85; }
@keyframes stk { 0%, 14% { transform: translateY(130%); } 22%, 66% { transform: none; } 74%, 100% { transform: translateY(130%); } }
@keyframes pin { 0%, 34% { transform: scale(0); } 38%, 70% { transform: scale(1); } 74%, 100% { transform: scale(0); } }
@keyframes done { 0%, 66% { opacity: 0; } 72%, 94% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- Statement band (Nairobi National Park) ---------- */
.ns-band { position: relative; min-height: clamp(440px, 60vw, 640px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; isolation: isolate; margin-top: clamp(80px, 11vw, 140px); }
.ns-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.ns-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8, 14, 12, .8) 0%, rgba(8, 14, 12, .1) 60%); }
.ns-band .wrap { width: 100%; padding-bottom: clamp(40px, 6vw, 72px); }
.ns-band h2 { color: #fff; font-size: clamp(2.2rem, 5vw, 4.2rem); max-width: 17ch; margin: 14px 0 0; }
.ns-band h2 em { color: var(--gold-hi); }
.ns-band .eyebrow { color: var(--gold-hi); }
.ns-band .eyebrow::before { background: var(--gold-hi); }

/* ---------- Hosts ---------- */
.ns-hosts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 80px); align-items: center; }
.ns-hosts__pic { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 4.4; }
.ns-hosts__pic img { width: 100%; height: 100%; object-fit: cover; }
.ns-hosts__note { position: absolute; left: 18px; right: 18px; bottom: 18px; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: rgba(255, 253, 249, .95); box-shadow: var(--shadow-md); font-size: .88rem; animation: float 6s ease-in-out infinite; }
.ns-hosts__note i { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-light); color: var(--brand); display: grid; place-items: center; flex: none; }
.ns-hosts__note svg { width: 20px; height: 20px; }
.ns-hosts__note b { display: block; font-size: .95rem; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.ns-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 28px 0 30px; }
.ns-plan { padding: 18px; border-radius: var(--radius-md); background: var(--card); border: 1px solid var(--line); transition: transform .3s var(--ease), border-color .3s; }
.ns-plan:hover { transform: translateY(-2px); border-color: var(--gold); }
.ns-plan.is-pick { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.ns-plan small { font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ns-plan b { display: block; font: 500 1.5rem/1.2 var(--font-display); margin: 6px 0 4px; }
.ns-plan span { font-size: .84rem; color: var(--muted); }
.ns-ticks { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 10px; }
.ns-ticks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-soft); }
.ns-ticks svg { width: 20px; height: 20px; color: var(--brand); flex: none; margin-top: 2px; }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; }
.blog-card { display: flex; flex-direction: column; gap: 10px; color: var(--ink); background: none; border: 0; padding: 0; }
.blog-card:hover { color: var(--ink); }
.blog-card__pic { aspect-ratio: 16 / 10.5; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-2); margin-bottom: 8px; }
.blog-card__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.blog-card:hover .blog-card__pic img { transform: scale(1.04); }
.blog-card h3 { margin: 0; font-size: 1.35rem; line-height: 1.2; }
.blog-card p { color: var(--muted); font-size: .94rem; margin: 0; flex: 1; }
.blog-card .link span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .35s var(--ease); }
.blog-card:hover .link span { background-size: 100% 1.5px; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq-list { max-width: 820px; }
.faq-list details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; font: 500 1.18rem/1.35 var(--font-display); list-style: none; position: relative; padding: 18px 44px 18px 0; color: var(--ink); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--line-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f5a44' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .3s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { margin: 0 0 20px; color: var(--muted); font-size: .98rem; max-width: 62ch; }

/* ---------- Forms ---------- */
form.stack { display: flex; flex-direction: column; gap: 18px; max-width: 540px; }
form.stack.wide { max-width: 780px; }
.field label { display: block; font-weight: 700; margin-bottom: 8px; font-size: .88rem; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; min-height: 50px; border: 1.5px solid var(--line); border-radius: 12px;
  font: 500 1rem/1.4 var(--font-body); background: var(--card); color: var(--ink);
  transition: border-color .2s var(--ease-fast), box-shadow .2s var(--ease-fast);
}
.field input[type="file"] { padding: 11px; }
.field input[type="checkbox"], .field input[type="radio"] { width: auto; min-height: 0; accent-color: var(--brand); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #cdc3b1; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-light); }
.field textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.error-box { background: var(--danger-light); border: 1px solid rgba(179, 38, 30, .35); color: var(--danger); padding: 14px 18px; border-radius: var(--radius-md); margin-bottom: 22px; font-weight: 600; }

/* Sign in, sign up, booking: a card on a soft ground */
.auth-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 44px); max-width: 480px; margin: 12px auto 0; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.auth-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--brand), var(--gold)); }
.auth-card h1 { margin: 0 0 8px; font-size: clamp(1.8rem, 3vw, 2.2rem); }
.auth-card .lede { color: var(--muted); margin-bottom: 18px; }
.auth-card .auth-foot { margin-top: 22px; color: var(--muted); font-size: .92rem; }
.auth-card form.stack { max-width: none; }

/* ---------- Dashboards and admin ---------- */
.page-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; flex-wrap: wrap; gap: 14px; }
.page-head h1 { margin: 0; font-size: clamp(2rem, 4vw, 2.8rem); }
.dash-table { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 8px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.dash-table th, .dash-table td { text-align: left; padding: 15px 16px; border-bottom: 1px solid var(--line-soft); font-size: .92rem; vertical-align: middle; }
.dash-table tr:last-child td { border-bottom: 0; }
.dash-table th { color: var(--muted); font-weight: 800; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; background: var(--bg); }
.dash-table tbody tr { transition: background-color .2s var(--ease-fast); }
.dash-table tbody tr:hover { background: #fbf8f2; }
.row-actions a, .row-actions button { margin-right: 14px; font-size: .86rem; font-weight: 700; }
.row-actions .danger-link { color: var(--danger); }
.status-badge { display: inline-block; padding: 4px 11px; border-radius: var(--radius-pill); font-size: .74rem; font-weight: 800; }
.status-active, .status-confirmed, .status-paid { background: var(--brand-light); color: var(--brand-dark); }
.status-inactive, .status-completed, .status-cancelled { background: var(--line-soft); color: var(--muted); }
.status-pending { background: var(--gold-light); color: #7a4c12; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.service-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; transition: transform .3s var(--ease), box-shadow .3s; }
.service-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.service-card h3 { margin: 0; font-size: 1.4rem; }

dialog { border: 0; border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-lg); max-width: 400px; background: var(--card); color: var(--ink); }
dialog::backdrop { background: rgba(13, 23, 19, .45); backdrop-filter: blur(3px); }
dialog form { display: flex; flex-direction: column; gap: 14px; }
dialog p { margin: 0; }

.image-manager { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; }
.image-manager figure { margin: 0; text-align: center; }
.image-manager img { width: 140px; height: 104px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.image-manager figcaption { font-size: .78rem; margin-top: 6px; color: var(--muted); }

/* ---------- Listing page ---------- */
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 700; font-size: .9rem; margin-bottom: 22px; }
.back-link:hover { color: var(--ink); }
.detail-gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 10px; height: clamp(300px, 42vw, 520px); margin-bottom: 40px; border-radius: var(--radius-lg); overflow: hidden; }
.detail-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .3s; cursor: zoom-in; border: 0; border-radius: 0; }
.detail-gallery img:hover { transform: scale(1.03); filter: brightness(1.04); }
.detail-gallery img:first-child { grid-row: span 2; }
.detail-gallery[data-count="1"] { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.detail-gallery[data-count="2"] { grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr; }
.detail-gallery[data-count="2"] img:first-child, .detail-gallery[data-count="1"] img:first-child { grid-row: auto; }
.detail-gallery[data-count="3"] { grid-template-columns: 2fr 1fr; }
.detail-gallery img:nth-child(n+6) { display: none; }
.gallery-more { position: relative; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.detail-layout h1 { margin: 14px 0 12px; font-size: clamp(2.1rem, 4vw, 3.1rem); }
.detail-layout .meta { margin-bottom: 26px; }
.detail-layout .description { font-size: 1.05rem; color: var(--ink-soft); line-height: 1.75; }
.detail-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 30px; padding: 0; list-style: none; }
.detail-facts li { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--card); }
.detail-facts b { display: block; font: 500 1.4rem/1.2 var(--font-display); }
.detail-facts span { font-size: .8rem; color: var(--muted); }
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-lg); position: sticky; top: calc(var(--header-h) + 20px); }
.contact-card .price { font: 500 2rem/1.1 var(--font-display); margin-bottom: 6px; }
.contact-card .price small { font: 500 .9rem var(--font-body); color: var(--muted); }
.contact-card .host { color: var(--muted); font-size: .92rem; margin-bottom: 20px; }
.contact-card form.stack { gap: 14px; }
.lightbox { position: fixed; inset: 0; z-index: 400; background: rgba(8, 14, 12, .92); display: grid; place-items: center; padding: 24px; opacity: 0; pointer-events: none; transition: opacity .3s; }
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: min(1200px, 100%); max-height: 86vh; border-radius: 14px; }
.lightbox button { position: absolute; top: 18px; right: 18px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font-size: 1.4rem; cursor: pointer; }
.review { border-bottom: 1px solid var(--line); padding-bottom: 18px; }

/* ---------- Area and article pages ---------- */
.page-hero { position: relative; display: flex; align-items: flex-end; min-height: clamp(360px, 46vw, 520px); border-radius: var(--radius-lg); overflow: hidden; color: #fff; isolation: isolate; margin-bottom: clamp(40px, 6vw, 64px); background: var(--night); }
.page-hero img, .page-hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8, 14, 12, .86) 0%, rgba(8, 14, 12, .15) 65%); }
.page-hero__text { padding: clamp(24px, 4vw, 48px); max-width: 760px; }
.page-hero h1 { color: #fff; font-size: clamp(2.3rem, 5vw, 4rem); margin: 14px 0 12px; }
.page-hero h1 em { color: var(--gold-hi); }
.page-hero p { color: rgba(255, 255, 255, .85); font-size: 1.08rem; margin: 0; max-width: 52ch; }
.page-hero .eyebrow, .page-hero .card-area { color: var(--gold-hi); }
.page-hero .eyebrow::before { background: var(--gold-hi); }
.article-body { max-width: 720px; color: var(--ink-soft); font-size: 1.07rem; line-height: 1.85; }
.article-body h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); color: var(--ink); margin: 44px 0 14px; }
.article-body p { margin: 0 0 20px; }
.article-body ul { margin: 0 0 22px; padding: 0; list-style: none; display: grid; gap: 10px; }
.article-body li { position: relative; padding-left: 28px; }
.article-body li::before { content: ""; position: absolute; left: 4px; top: .72em; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--gold-light); }
.article-meta { color: rgba(255, 255, 255, .8); font-size: .9rem; margin: 0; }
.article-cta { margin-top: 48px; padding: 30px; border-radius: var(--radius-lg); background: var(--brand); color: #fff; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; max-width: 720px; }
.article-cta h3 { color: #fff; margin: 0 0 4px; font-size: 1.5rem; }
.article-cta p { margin: 0; color: rgba(255, 255, 255, .82); }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--night-muted); padding: clamp(64px, 9vw, 110px) 0 30px; font-size: .92rem; }
.site-footer a { color: var(--night-ink); }
.site-footer a:hover { color: var(--gold-hi); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 52px; border-bottom: 1px solid rgba(243, 237, 226, .1); }
.footer-top .brand { color: var(--night-ink); font-size: 1.6rem; }
.footer-top .brand span { color: var(--gold-hi); }
.footer-top p { margin: 16px 0 0; max-width: 34ch; }
.footer-col h4 { font: 800 .72rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--night-muted); margin: 6px 0 18px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-word { font: 400 clamp(3.4rem, 13vw, 11rem)/.9 var(--font-display); letter-spacing: -.05em; color: rgba(243, 237, 226, .07); margin: 40px 0 10px; white-space: nowrap; font-style: italic; user-select: none; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: .8rem; }
.footer-credits { font-size: .72rem; opacity: .7; max-width: 900px; margin-top: 12px; }
.footer-credits a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Floating contact button ---------- */
.fab { position: fixed; right: 24px; bottom: 24px; z-index: 300; display: flex; flex-direction: column-reverse; align-items: center; gap: 14px; }
.fab-main { position: relative; width: 60px; height: 60px; border-radius: 50%; background: var(--brand); border: 0; color: #fff; cursor: pointer; display: grid; place-items: center; box-shadow: 0 18px 36px -14px rgba(10, 68, 51, .9); transition: transform .25s var(--ease), background-color .2s; }
.fab-main:hover { transform: scale(1.06); background: var(--brand-dark); }
.fab-main svg { width: 24px; height: 24px; position: absolute; transition: opacity .2s ease, transform .3s var(--ease); }
.fab-icon-close { opacity: 0; transform: rotate(-45deg) scale(.6); }
.fab.is-open .fab-icon-open { opacity: 0; transform: rotate(45deg) scale(.6); }
.fab.is-open .fab-icon-close { opacity: 1; transform: none; }
.fab-ping { position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--gold); animation: fab-ping 2.6s ease-out infinite; }
.fab.is-open .fab-ping { display: none; }
@keyframes fab-ping { 0% { transform: scale(.85); opacity: .8; } 70%, 100% { transform: scale(1.35); opacity: 0; } }
.fab-options { display: flex; flex-direction: column-reverse; align-items: center; gap: 12px; }
.fab-option { position: relative; width: 50px; height: 50px; border-radius: 50%; background: var(--card); border: 1px solid var(--line); color: var(--fab-c, var(--brand)); display: grid; place-items: center; box-shadow: var(--shadow-md); opacity: 0; transform: translateY(10px) scale(.4); pointer-events: none; transition: transform .3s var(--ease), opacity .25s ease, border-color .2s ease; }
.fab.is-open .fab-option { opacity: 1; transform: none; pointer-events: auto; transition-delay: calc(var(--fab-i, 0) * 45ms); }
.fab-option:hover { border-color: var(--fab-c, var(--brand)); }
.fab-option svg { width: 20px; height: 20px; }
.fab-tip { position: absolute; right: 62px; top: 50%; transform: translateY(-50%); background: var(--card); border: 1px solid var(--line); padding: 6px 12px; border-radius: 8px; font-size: .8rem; font-weight: 700; color: var(--ink); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s; box-shadow: var(--shadow-sm); }
.fab-option:hover .fab-tip { opacity: 1; }

/* ---------- Reveal on scroll (only once the script has started) ---------- */
html.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
html.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .ns-areas { grid-template-columns: 1fr 1fr; height: auto; }
  .ns-area { min-height: 380px; }
  .ns-area:first-child { grid-column: span 2; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > :first-child { grid-column: span 2; }
}
@media (max-width: 860px) {
  :root { --header-h: 66px; }
  .site-header nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px var(--gut) 24px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    transform: translateY(-10px); opacity: 0; pointer-events: none; transition: transform .3s var(--ease), opacity .2s ease;
  }
  .site-header nav a { padding: 14px 0; font-size: 1.05rem; border-bottom: 1px solid var(--line-soft); color: var(--ink) !important; }
  .site-header nav a::after { display: none; }
  .site-header nav .btn-outline { margin-top: 14px; text-align: center; border-color: var(--ink) !important; }
  .site-header nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-toggle { display: flex; }
  body:has(.ns-hero) .site-header:has(nav.is-open) { background: var(--bg); }
  body:has(.ns-hero) .site-header:has(nav.is-open) .brand { color: var(--ink); }
  body:has(.ns-hero) .site-header:has(nav.is-open) .nav-toggle span { background: var(--ink); }
  .section-head, .ns-how, .ns-hosts, .faq-wrap, .detail-layout { grid-template-columns: 1fr; }
  .ns-phone { width: min(280px, 80%); }
  .detail-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: auto; height: auto; }
  .detail-gallery img { aspect-ratio: 4 / 3; height: auto; }
  .detail-gallery img:first-child { grid-column: span 2; grid-row: auto; }
  .contact-card { position: static; }
  .field-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ns-search { grid-template-columns: 1fr 1fr; }
  .ns-search .btn { grid-column: span 2; }
  .ns-search label + label { border-left: 0; }
  .ns-areas { grid-template-columns: 1fr; }
  .ns-area:first-child { grid-column: auto; }
  .ns-plans { grid-template-columns: 1fr; }
  .detail-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .detail-facts li { padding: 12px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-top > :first-child { grid-column: auto; }
  .fab { right: 16px; bottom: 16px; }
  .fab-main { width: 56px; height: 56px; }
  .fab-tip { display: none; }
  .dash-table { display: block; overflow-x: auto; white-space: nowrap; }
  .filters { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
}

/* ---------- Review fixes ---------- */
.link svg { width: 16px; height: 16px; flex: none; transition: transform .3s var(--ease); }
.blog-card:hover .link svg, .area-card:hover .link svg { transform: translateX(4px); }
.fab { flex-direction: column; }
.fab-options { flex-direction: column; }
.ns-phone__stay img { height: auto; }
.card h3 { display: block; }
.card h3 .verified-tick { vertical-align: 2px; margin-left: 6px; }
.ns-band::after { background: linear-gradient(0deg, rgba(8, 14, 12, .85) 0%, rgba(8, 14, 12, .25) 55%, rgba(8, 14, 12, .05) 100%), linear-gradient(90deg, rgba(8, 14, 12, .45), transparent 60%); }
.page-hero::after { background: linear-gradient(0deg, rgba(8, 14, 12, .88) 0%, rgba(8, 14, 12, .35) 55%, rgba(8, 14, 12, .1) 100%), linear-gradient(90deg, rgba(8, 14, 12, .55), transparent 65%); }

/* ---------- Managed stays + Find me a stay (December 2026) ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.managed-badge {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: var(--radius-pill);
  background: var(--brand-light); color: var(--brand-dark); font-size: .78rem; font-weight: 800; letter-spacing: .01em;
}
.managed-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.managed-badge.on-photo { position: absolute; top: 14px; right: 14px; z-index: 1; background: rgba(255, 253, 249, .94); color: var(--ink); box-shadow: var(--shadow-sm); font-size: .72rem; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.request-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.request-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3.5vw, 36px); box-shadow: var(--shadow-md); max-width: none; }
.request-form textarea { resize: vertical; }
.request-aside { position: sticky; top: calc(var(--header-h) + 20px); }
.request-aside h2 { font-size: clamp(1.6rem, 2.6vw, 2rem); margin: 0 0 18px; }
.request-steps { list-style: none; margin: 0 0 26px; padding: 0; counter-reset: rs; display: grid; gap: 18px; }
.request-steps li { counter-increment: rs; display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; }
.request-steps li::before {
  content: counter(rs); grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--night); color: var(--gold-hi); font: 500 1.05rem var(--font-display);
}
.request-steps b { font-size: 1rem; }
.request-steps span { color: var(--muted); font-size: .93rem; }
.request-wa {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius-md); background: var(--night); color: var(--night-muted);
  font-size: .88rem; transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.request-wa:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--night-muted); }
.request-wa svg { width: 26px; height: 26px; flex: none; color: #25d366; }
.request-wa b { display: block; color: var(--night-ink); font-size: 1.02rem; }
.request-done { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow-md); }
.request-done h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 18px 0 10px; }
.request-done p { color: var(--ink-soft); margin-bottom: 24px; }
.request-done__tick { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; }
.request-done__tick svg { width: 28px; height: 28px; }
.request-cta {
  margin-top: clamp(32px, 5vw, 48px); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 22px 26px; border-radius: var(--radius-lg); background: var(--gold-light); border: 1px solid rgba(194, 132, 58, .35); color: var(--ink-soft);
  transition: transform .3s var(--ease);
}
.request-cta:hover { transform: translateY(-2px); color: var(--ink-soft); }
.request-cta b { color: var(--ink); }
.request-cta > span:first-child { max-width: 60ch; }

/* Admin tabs */
.admin-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.admin-tabs a { padding: 10px 16px; font-weight: 700; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.admin-tabs a.is-current { color: var(--ink); border-color: var(--brand); }
.admin-tabs .count { display: inline-block; min-width: 20px; padding: 1px 7px; margin-left: 6px; border-radius: var(--radius-pill); background: var(--gold); color: #1b1206; font-size: .72rem; text-align: center; }
.admin-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; align-items: end; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 20px; margin-bottom: 26px; }
.admin-form .field { margin: 0; }
.admin-form .wide { grid-column: 1 / -1; }
.dash-table .small { font-size: .82rem; color: var(--muted); }
.dash-table select, .dash-table input[type=text], .dash-table textarea { font: inherit; font-size: .85rem; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; max-width: 100%; }
.dash-table textarea { width: 100%; min-width: 180px; }
.btn.sm { padding: 6px 14px; font-size: .82rem; }
.table-scroll { overflow-x: auto; }

@media (max-width: 860px) {
  .request-layout { grid-template-columns: 1fr; }
  .request-aside { position: static; }
}

/* ---------- Sign-in security (December 2026) ---------- */
.auth-forgot { margin: -6px 0 0; font-size: .88rem; text-align: right; }
.auth-forgot a, .auth-foot a { font-weight: 700; }
.field-hint, .pw-meter { display: block; margin-top: 6px; font-size: .82rem; color: var(--muted); }
.pw-meter[data-level="weak"] { color: var(--danger); }
.pw-meter[data-level="ok"] { color: #7a4c12; }
.pw-meter[data-level="good"] { color: var(--brand); }
.code-input { font: 600 1.5rem/1 var(--font-body); letter-spacing: .35em; text-align: center; font-variant-numeric: tabular-nums; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: .86rem; font-weight: 700; color: var(--brand); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--brand-dark); }
.sec-alert { background: var(--gold-light); border: 1px solid rgba(194, 132, 58, .45); color: #5c3a0e; padding: 14px 18px; border-radius: var(--radius-md); margin-bottom: 24px; font-weight: 600; }
.sec-alert a { color: inherit; text-decoration: underline; }
.sec-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.sec-grid > .sec-card:first-child { grid-row: span 2; }
.sec-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow-sm); }
.sec-card h2 { font-size: 1.5rem; margin: 0 0 12px; }
.sec-card__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 4px; }
.sec-card__head h2 { margin: 0; }
.sec-card form.stack { max-width: none; }
.sec-card > p { color: var(--ink-soft); }
.sec-steps { padding-left: 20px; margin: 8px 0 16px; color: var(--ink-soft); display: grid; gap: 8px; }
.sec-qr { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; padding: 18px; background: var(--bg); border-radius: var(--radius-md); margin-bottom: 18px; }
.sec-qr svg { width: 200px; height: 200px; border-radius: 8px; flex: none; }
.sec-qr > div { flex: 1; min-width: 200px; }
.sec-key { display: inline-block; font: 600 1.05rem/1.5 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .06em; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; word-break: break-all; }
.sec-codes { border: 2px solid var(--brand); background: var(--brand-light); border-radius: var(--radius-md); padding: 18px 20px; margin: 10px 0 18px; }
.sec-codes h3 { margin: 0 0 6px; font-size: 1.15rem; }
.sec-codes p { font-size: .92rem; margin: 0 0 12px; }
.sec-codes ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 20px; margin: 0 0 14px; padding-left: 22px; }
.sec-codes code { font: 600 1rem ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .04em; }
.sec-more { border-top: 1px solid var(--line-soft); padding: 14px 0 4px; }
.sec-more summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.sec-more form { margin-top: 14px; }
@media (max-width: 860px) {
  .sec-grid { grid-template-columns: 1fr; }
  .sec-grid > .sec-card:first-child { grid-row: auto; }
}
@media print {
  .site-header, .site-footer, .fab, .page-head .btn-row, .sec-grid > .sec-card:not(:first-child), .sec-more, .sec-codes .btn-row { display: none !important; }
}
