/* The directory's pages (discovery channels §4 amendment 5, Oct 24): the homepage, /spaces, every
   business page and every space page. Built on styles.css tokens: off-white ground, white cards with
   hairlines, Satoshi for display, Inter for body. Orange is the one ask on a surface (Search on the
   homepage, Request on a listing); everything else is near-black and quiet. */

.dir [id] { scroll-margin-top: 88px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.icon-sm {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ------------------------------- Header ---------------------------------- */

.dir-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(250, 249, 247, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}

.dir-header-inner {
  height: 72px;
  display: flex; align-items: center; gap: 40px;
}

.dir-nav { display: flex; gap: 28px; font-size: 15px; font-weight: 500; }
.dir-nav a { color: var(--warm-gray); }
.dir-nav a:hover, .dir-nav a[aria-current="page"] { color: var(--near-black); }

.dir-header-actions { margin-left: auto; display: flex; gap: 10px; }

.dir-btn-quiet, .dir-btn-dark, .dir-btn-light, .dir-btn-outline-light {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px;
  border-radius: var(--radius-control);
  font-family: var(--font-display); font-size: 15px; font-weight: 700;
  white-space: nowrap;
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}

.dir-btn-quiet { border: 1px solid var(--line-strong); background: #FFFFFF; color: var(--near-black); }
.dir-btn-quiet:hover { border-color: var(--near-black); color: var(--near-black); }
.dir-btn-dark { background: var(--near-black); color: var(--off-white); border: 1px solid var(--near-black); }
.dir-btn-dark:hover { background: #000; color: var(--off-white); }
.dir-btn-light { background: var(--off-white); color: var(--near-black); }
.dir-btn-light:hover { background: #FFFFFF; color: var(--near-black); }
.dir-btn-outline-light { border: 1px solid rgba(250, 249, 247, 0.6); color: var(--off-white); }
.dir-btn-outline-light:hover { border-color: var(--off-white); color: var(--off-white); }
.dir-btn-block { width: 100%; }

.dir-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: auto; height: 48px; padding: 0 22px; font-size: 16px; text-decoration: none;
}
.dir-cta:hover { color: var(--off-white); }

/* -------------------------------- Home hero ------------------------------ */

.home-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 56px;
  background: var(--off-white);
}

.home-hero-photo {
  position: absolute; top: 0; right: 0; bottom: 0; width: 52%;
}
/* The crop leans right and high so both people, heads included, stay in frame at every width (Oct 24). */
.home-hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 80% 18%; }
.home-hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--off-white) 0%, rgba(250, 249, 247, 0.85) 18%, rgba(250, 249, 247, 0) 48%);
}

.home-hero-inner { position: relative; z-index: 1; }

.home-heading {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.02;
}

.home-lead {
  margin-top: 22px; max-width: 46ch;
  font-size: 18px; line-height: 1.55; color: var(--warm-gray);
}

.home-search {
  margin-top: 32px; max-width: 600px;
  display: flex; gap: 8px; padding: 8px;
  background: #FFFFFF; border: 1px solid var(--line-strong);
  border-radius: 16px;
  box-shadow: 0 18px 40px -18px rgba(25, 25, 25, 0.18);
}

.home-search-field {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 10px; padding: 0 10px 0 12px;
}
.home-search-field .icon { stroke: var(--signal-orange); flex: none; }
.home-search-field input {
  flex: 1; min-width: 0; height: 48px; border: 0; outline: none; background: transparent;
  font: inherit; font-size: 16px; color: var(--near-black);
}
.home-search-field input::placeholder { color: var(--light-gray); }
.home-search-field:focus-within { outline: 2px solid var(--deep-orange); outline-offset: 2px; border-radius: 10px; }

.home-search-btn {
  width: auto; height: 52px; padding: 0 24px;
  display: inline-flex; align-items: center; gap: 8px;
}
.home-search-btn .icon { stroke: currentColor; width: 20px; height: 20px; }

.hero-chips { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 42px; padding: 0 16px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 15px; color: var(--near-black);
}
.hero-chip:hover { border-color: var(--near-black); color: var(--near-black); }

/* ------------------------------ Promise row ------------------------------ */

.promise { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #FFFFFF; }
.promise-row {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
  padding: 24px 0;
}
.promise-row li { display: flex; gap: 14px; align-items: flex-start; }
.promise-row .icon { stroke: var(--signal-orange); flex: none; margin-top: 2px; }
.promise-row span { font-size: 14px; line-height: 1.45; color: var(--light-gray); }
.promise-row strong {
  display: block; font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--near-black);
}

/* ------------------------------ Rows and tiles --------------------------- */

.kinds, .row { padding-top: 64px; }

.row-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  margin-bottom: 20px;
}
.row-title {
  font-family: var(--font-display); font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.15;
}
.row-sub { margin-top: 6px; font-size: 15px; color: var(--light-gray); }
.row-all {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  font-size: 15px; font-weight: 500; color: var(--deep-orange);
}
.row-all:hover { color: var(--near-black); }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tile {
  display: flex; flex-direction: column; height: 100%;
  background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden;
  transition: border-color 120ms ease, transform 160ms ease;
}
.tile:hover { border-color: var(--line-strong); transform: translateY(-2px); color: inherit; }
.tile-photo { margin: 0; position: relative; aspect-ratio: 16 / 10; background: var(--neutral-fill); }
.tile-body { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 18px; }
.tile-title {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--near-black);
}
.tile-line { font-size: 14px; color: var(--light-gray); }
.tile-count {
  margin-top: 8px; display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 500; color: var(--deep-orange);
}

/* Photos: every photo is the place's own, credited; a place without one shows its type, never a stand-in. */
[data-photo] { margin: 0; position: relative; overflow: hidden; }
[data-photo] img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
[data-photo] figcaption {
  position: absolute; right: 8px; bottom: 6px; z-index: 2;
  color: rgba(255, 255, 255, 0.88); font-size: 11px; line-height: 1.4;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}
.is-photoless figcaption { display: none; }
[data-photo]:not(.is-photoless) .type-tile { display: none; }
.type-tile {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 8px;
  padding: 16px;
  background: var(--sky-mist);
}
.type-tile-icon {
  width: 30px; height: 30px; fill: none; stroke: var(--near-black); stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.type-tile-label {
  font-family: var(--font-display); font-size: 17px; font-weight: 700; line-height: 1.2; color: var(--near-black);
}

/* Cards in a row */
.dcard-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.dcard {
  display: flex; flex-direction: column;
  background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden;
}
.dcard-link { display: flex; flex-direction: column; color: inherit; }
.dcard-link:hover { color: inherit; }
.dcard-link:hover .dcard-name { color: var(--deep-orange); }
.dcard-photo { aspect-ratio: 4 / 3; background: var(--neutral-fill); }
.dcard-photo .type-tile-label { font-size: 15px; }
.dcard-body { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px 0; }
.dcard-name { font-family: var(--font-display); font-size: 16px; font-weight: 700; line-height: 1.25; }
.dcard-meta { font-size: 13px; color: var(--light-gray); line-height: 1.4; }
.dcard-foot { display: flex; flex-direction: column; gap: 10px; padding: 10px 14px 14px; margin-top: auto; }
.dcard-rate { font-size: 13px; font-weight: 500; color: var(--near-black); }
.dcard-rate span { display: block; font-weight: 400; color: var(--light-gray); }
.dcard .dir-btn-quiet { height: 38px; font-size: 14px; }
/* The whole card opens the place (the founder, Oct 25): the name's link stretches over the card, and the
   button in the foot stays its own link above it. */
.dcard { position: relative; transition: border-color 120ms ease; }
.dcard-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.dcard-foot a { position: relative; z-index: 2; }
.dcard:hover { border-color: var(--line-strong); }
.dcard:hover .dcard-name { color: var(--deep-orange); }

.fact-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fact-chips li {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 12.5px; color: var(--warm-gray); background: #FFFFFF;
}
.fact-chips .icon { width: 14px; height: 14px; stroke: var(--warm-gray); stroke-width: 1.8; }

/* ---------------------------------- Map ---------------------------------- */

.nearby { padding-top: 64px; }
.nearby-card {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px; align-items: center;
  padding: 32px; border-radius: 20px;
  background: linear-gradient(135deg, #FFF3EC 0%, #FAF9F7 55%);
  border: 1px solid var(--line);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--deep-orange);
}
.nearby-copy .dir-btn-dark { margin-top: 20px; }
.nearby-map-wrap { position: relative; }
.nearby-map { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); background: #F4F1EA; }
.map-ground { fill: #F4F1EA; }
.map-city { font-family: var(--font-body); font-size: 15px; fill: var(--light-gray); text-anchor: middle; pointer-events: none; }
.map-pin circle { fill: var(--signal-orange); stroke: #FFFFFF; stroke-width: 3; cursor: pointer; transition: r 120ms ease; }
.map-pin:hover circle, .map-pin:focus circle, .map-pin.is-on circle { fill: var(--deep-orange); r: 13; }
.map-pin:focus { outline: none; }
.map-peek {
  position: absolute; left: 14px; bottom: 14px; width: 260px;
  display: flex; gap: 12px; padding: 10px;
  background: #FFFFFF; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 16px 32px -16px rgba(25, 25, 25, 0.25);
  color: inherit;
}
.map-peek:hover { color: inherit; border-color: var(--line-strong); }
.map-peek-photo { flex: none; width: 76px; height: 76px; border-radius: 10px; background: var(--sky-mist) center / cover no-repeat; }
.map-peek-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.map-peek-name { font-family: var(--font-display); font-weight: 700; font-size: 15px; line-height: 1.25; }
.map-peek-meta { font-size: 12.5px; color: var(--light-gray); line-height: 1.35; }
.map-peek-more { margin-top: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 500; color: var(--deep-orange); }

/* ------------------------------- Owner band ------------------------------ */

.owner-band {
  margin-top: 80px;
  background-color: var(--near-black);
  background-image: linear-gradient(90deg, rgba(25, 25, 25, 0.92) 0%, rgba(25, 25, 25, 0.7) 55%, rgba(25, 25, 25, 0.45) 100%), url("../assets/footer-studio@2x.jpg");
  background-size: cover; background-position: center;
  color: var(--off-white);
}
.owner-band-inner {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 48px;
  padding-top: 72px; padding-bottom: 72px;
}
.eyebrow-light { color: rgba(250, 249, 247, 0.75); }
.owner-band-heading {
  font-family: var(--font-display); font-size: clamp(36px, 4vw, 54px);
  font-weight: 700; letter-spacing: -0.025em; line-height: 1.04;
}
.owner-band-lead { margin-top: 18px; max-width: 46ch; font-size: 17px; color: rgba(250, 249, 247, 0.85); }
.owner-band-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.owner-band-list { display: flex; flex-direction: column; gap: 14px; font-size: 16px; }
.owner-band-list li { display: flex; align-items: center; gap: 12px; }
.owner-band-list .icon {
  width: 28px; height: 28px; padding: 5px; border-radius: 999px;
  background: var(--signal-orange); stroke: #FFFFFF; stroke-width: 2.4;
}

.dir .signup { padding-bottom: 96px; }

/* ------------------------------ /spaces in the new chrome ---------------- */

.dir .sp-hero { padding-top: 48px; }
.sp-name a { color: inherit; }
.sp-name a:hover { color: var(--deep-orange); }
.sp-query { margin-top: 20px; font-size: 15px; color: var(--warm-gray); }
.sp-query a { color: var(--deep-orange); text-decoration: underline; text-underline-offset: 2px; }
.sp-empty { margin-top: 32px; font-size: 16px; color: var(--warm-gray); }

/* --------------------------- Business and space pages --------------------- */

.biz, .sp-page { padding: 24px 0 72px; }

.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--light-gray); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.crumbs a { color: var(--warm-gray); }
.crumbs a:hover { color: var(--deep-orange); }

.biz-hero, .space-hero {
  margin-top: 16px;
  aspect-ratio: 2 / 1;
  border-radius: 18px; background: var(--neutral-fill);
}
.space-hero.is-photoless { aspect-ratio: 21 / 6; }
.space-hero .type-tile, .biz-hero .type-tile { padding: 28px; }
/* The whole photo, contained, over a blurred fill of itself: no head or subject is cut, whatever its shape (amendment 8). */
.is-fit .hero-fill { object-fit: cover; filter: blur(28px) saturate(1.15); transform: scale(1.2); opacity: 0.6; z-index: 0; }
.is-fit .hero-img { object-fit: contain; z-index: 1; }
.is-fit.is-photoless .hero-fill { display: none; }

.biz-title-row {
  margin-top: 28px;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 24px;
}
.biz-name {
  font-family: var(--font-display); font-size: clamp(32px, 3.6vw, 46px);
  font-weight: 700; letter-spacing: -0.025em; line-height: 1.08;
}
.biz-meta {
  margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px;
  font-size: 16px; color: var(--warm-gray);
}
.biz-meta a { color: var(--near-black); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.biz-meta .icon-sm { color: var(--signal-orange); }
/* "More in <city>" sits at the pin (the founder, Oct 25), and the pin wraps with it. */
.meta-more { display: inline-flex; align-items: center; gap: 6px; }
.badge-status {
  display: inline-block;
  padding: 3px 10px; border-radius: 999px; background: var(--neutral-fill);
  font-size: 12.5px; color: var(--warm-gray);
}
.badge-status .wm-hidden { color: inherit; }
.biz-actions { display: flex; gap: 10px; flex: none; }
.biz-actions .dir-btn-quiet { height: 48px; }

.biz-tabs {
  margin-top: 28px; display: flex; gap: 28px;
  border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 500;
}
.biz-tabs a { padding: 12px 0; color: var(--warm-gray); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.biz-tabs a:first-child { color: var(--deep-orange); border-bottom-color: var(--signal-orange); }
.biz-tabs a:hover { color: var(--near-black); }
.biz-tabs span { color: var(--light-gray); font-weight: 400; }

.biz-grid, .spc-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start;
}
.spc-grid { margin-top: 28px; }
.biz-section { margin-top: 36px; }
.biz-h2 { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.biz-about { margin-top: 12px; font-size: 17px; line-height: 1.6; color: var(--warm-gray); }
.biz-section .fact-chips { margin-top: 14px; }
.sp-lede { margin-top: 14px; font-size: 18px; color: var(--warm-gray); }
.sp-chips { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sp-mobile-ask { display: none; margin-top: 20px; width: 100%; height: 52px; }

.amenities {
  margin-top: 14px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px;
  font-size: 15px; color: var(--near-black);
}
.amenities li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; }
.amenities .icon-sm { color: var(--signal-orange); margin-top: 2px; }
.fine-note { margin-top: 12px; font-size: 13px; color: var(--light-gray); }

.space-cards { margin-top: 16px; display: grid; gap: 16px; }
.space-card {
  display: grid; grid-template-columns: 240px minmax(0, 1fr);
  background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden;
}
.space-card-photo { min-height: 180px; background: var(--neutral-fill); }
.space-card-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; }
.space-card-name { font-family: var(--font-display); font-size: 19px; font-weight: 700; }
.space-card-name a:hover { color: var(--deep-orange); }
.space-card-line { font-size: 15px; color: var(--warm-gray); }
.space-card-foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.space-card-actions { display: flex; gap: 8px; }
.space-card-actions .dir-btn-quiet { height: 48px; }

.biz-side, .sp-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 96px; }
/* The right column starts where the left one's first card does, below the tabs' rule (the founder, Oct 25). */
@media (min-width: 960px) { .biz-side { margin-top: 28px; } }
.side-card, .claim-box, .request-card {
  background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--radius-card); padding: 20px;
}
.side-h { font-family: var(--font-display); font-size: 17px; font-weight: 700; }
.loc { margin-top: 10px; }
.loc-addr { display: flex; gap: 8px; font-size: 15px; line-height: 1.45; color: var(--near-black); }
.loc-addr .icon-sm { color: var(--signal-orange); margin-top: 2px; }
.loc-link, .side-site a { display: inline-block; margin-top: 8px; font-size: 14px; font-weight: 500; color: var(--deep-orange); }
.side-site { margin-top: 4px; }

.claim-box-title { font-family: var(--font-display); font-size: 17px; font-weight: 700; }
.claim-box-line { margin: 6px 0 14px; font-size: 14px; line-height: 1.5; color: var(--warm-gray); }
.claim-box-remove { display: block; margin-top: 10px; font-size: 13px; text-align: center; color: var(--light-gray); text-decoration: underline; text-underline-offset: 2px; }

.request-card { padding: 24px; box-shadow: 0 18px 40px -22px rgba(25, 25, 25, 0.22); }
.request-title { font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.request-line { margin: 4px 0 18px; font-size: 14px; color: var(--light-gray); }
.request-card .dir-cta { height: 54px; font-size: 17px; }
.request-notes { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--warm-gray); }
.request-notes li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; }
.request-notes .icon-sm { color: var(--signal-orange); margin-top: 1px; }
.request-notes .wm-hidden { color: inherit; }

.host-card {
  margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--radius-card);
}
.host-main { display: flex; flex-direction: column; gap: 2px; color: inherit; }
.host-main:hover { color: inherit; }
.host-name { font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.host-meta { font-size: 14px; color: var(--light-gray); }
.host-more { margin-top: 6px; display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 500; color: var(--deep-orange); }

.similar { margin-top: 56px; }
.minis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mini a {
  display: grid; grid-template-columns: 120px minmax(0, 1fr); min-height: 108px;
  background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; color: inherit;
}
.mini a:hover { border-color: var(--line-strong); color: inherit; }
.mini-photo { background: var(--neutral-fill); }
.mini-photo .type-tile { padding: 10px; }
.mini-photo .type-tile-label { display: none; }
.mini-body { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; min-width: 0; }
.mini-name { font-family: var(--font-display); font-size: 15px; font-weight: 700; line-height: 1.25; }
.mini-meta { font-size: 13px; color: var(--light-gray); }
.mini-tag { margin-top: auto; font-size: 12.5px; color: var(--warm-gray); }

.dir-fine { margin-top: 48px; max-width: 72ch; }
.dir-fine .wm-hidden { color: inherit; }

/* ------------------------------- Responsive ------------------------------ */

@media (max-width: 1100px) {
  .dcard-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 959px) {
  .dir-nav { display: none; }
  .home-hero { padding: 40px 0 0; }
  .home-hero-photo { position: relative; width: auto; height: auto; aspect-ratio: 16 / 9; max-height: 480px; margin-top: 32px; order: 2; }
  .home-hero-photo::after { background: linear-gradient(180deg, var(--off-white) 0%, rgba(250, 249, 247, 0) 10%); }
  .home-hero { display: flex; flex-direction: column; }
  .home-hero-inner { order: 1; }
  .promise-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nearby-card { grid-template-columns: minmax(0, 1fr); padding: 24px; }
  .owner-band-inner { grid-template-columns: minmax(0, 1fr); }
  .biz-grid, .spc-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .biz-side, .sp-side { position: static; }
  .sp-side { margin-top: 28px; }
  .sp-mobile-ask { display: flex; }
  .minis { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 767px) {
  .dir-header-inner { height: 64px; gap: 12px; }
  .dir-header-actions .dir-btn-quiet { display: none; }
  .dir-header .dir-btn-dark { height: 38px; padding: 0 14px; font-size: 14px; }
  .dir-header .wordmark { font-size: 22px; }
  .home-search { flex-direction: column; padding: 8px; }
  .home-search-btn { width: 100%; justify-content: center; }
  .promise-row { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 20px 0; }
  .row-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .dcard-row {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px;
    margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 6px;
  }
  .dcard { flex: 0 0 72%; scroll-snap-align: start; }
  .tiles { gap: 10px; }
  .tile-body { padding: 12px 12px 14px; }
  .tile-title { font-size: 15px; }
  .tile-line { display: none; }
  .tile-count { margin-top: 2px; font-size: 13px; }
  .map-peek { position: static; width: auto; margin-top: 12px; }
  .biz-hero, .space-hero { aspect-ratio: 4 / 3; border-radius: 14px; }
  .space-hero.is-photoless { aspect-ratio: 16 / 7; }
  .biz-title-row { flex-direction: column; }
  .biz-actions { width: 100%; }
  .biz-actions > * { flex: 1; }
  .biz-tabs { gap: 20px; overflow-x: auto; }
  .biz-tabs a { white-space: nowrap; }
  .amenities { grid-template-columns: minmax(0, 1fr); }
  .space-card { grid-template-columns: minmax(0, 1fr); }
  .space-card-photo { aspect-ratio: 16 / 9; min-height: 0; }
  .space-card-actions { width: 100%; }
  .space-card-actions > * { flex: 1; }
  .host-card { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 380px) {
  .dir-header .dir-btn-dark { padding: 0 10px; font-size: 13px; }
}

/* ------------------------------ Real maps (amendment 6) ------------------ */

.nearby-map-box {
  position: relative; overflow: hidden; aspect-ratio: 1000 / 620;
  border: 1px solid var(--line); border-radius: 14px; background: #F4F1EA;
}
.nearby-map-box .nearby-map { width: 100%; height: 100%; border: 0; border-radius: 0; }
/* Two classes, so MapLibre's own .maplibregl-map { position: relative }, loaded after this file, can't collapse the box. */
.nearby-map-box .geo-map { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity 300ms ease; }
.nearby-map-box .geo-map.is-ready { opacity: 1; pointer-events: auto; }

.geo-pin {
  display: block; width: 18px; height: 18px; padding: 0; border-radius: 999px; cursor: pointer;
  background: var(--signal-orange); border: 3px solid #FFFFFF; box-shadow: 0 1px 5px rgba(25, 25, 25, 0.35);
  transition: width 120ms ease, height 120ms ease, background-color 120ms ease;
}
.geo-pin:hover, .geo-pin:focus-visible, .geo-pin.is-on, .geo-pin.is-hover { width: 24px; height: 24px; background: var(--deep-orange); z-index: 2; }
.geo-pin:focus-visible { outline: 2px solid var(--near-black); outline-offset: 2px; }

.sp-mapview {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; margin-left: auto;
  font-size: 15px; font-weight: 500; color: var(--deep-orange);
}
.sp-mapview:hover { color: var(--near-black); }

/* The map page */
.mapview { padding-top: 20px; }
.mv-bar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; padding-bottom: 16px; }
.mv-heading { font-family: var(--font-display); font-size: clamp(26px, 3vw, 36px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.mv-sub { margin-top: 4px; font-size: 15px; color: var(--light-gray); }
.mv-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.mv-tools .sp-filter { margin: 0; }
.mv-listview { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 500; color: var(--deep-orange); }
.mv-listview:hover { color: var(--near-black); }
.mv-body {
  display: grid; grid-template-columns: minmax(0, 1fr) 400px;
  height: calc(100vh - 72px - 112px); min-height: 520px; border-top: 1px solid var(--line);
}
.mv-map { position: relative; min-height: 100%; background: #F4F1EA; }
.mv-loading {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3; max-width: 80%; text-align: center;
  padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: #FFFFFF; font-size: 15px; color: var(--warm-gray);
}
.mv-list { overflow-y: auto; padding: 12px; border-left: 1px solid var(--line); background: var(--off-white); }
.mv-items { display: flex; flex-direction: column; gap: 8px; }
.mv-item[hidden] { display: none; }
.mv-link {
  display: grid; grid-template-columns: 92px minmax(0, 1fr); min-height: 80px; overflow: hidden; color: inherit;
  background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px;
}
.mv-link:hover, .mv-item.is-on .mv-link { color: inherit; border-color: var(--signal-orange); }
.mv-photo { background: var(--neutral-fill); }
.mv-photo .type-tile { padding: 10px; }
.mv-photo .type-tile-label { display: none; }
.mv-photo .type-tile-icon { width: 22px; height: 22px; }
.mv-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 10px 12px; }
.mv-name { font-family: var(--font-display); font-size: 15px; font-weight: 700; line-height: 1.25; }
.mv-meta { font-size: 13px; color: var(--light-gray); line-height: 1.35; }
.mv-rents { margin-top: auto; font-size: 12.5px; color: var(--warm-gray); }
.mv-h2 { margin: 22px 4px 2px; font-family: var(--font-display); font-size: 17px; font-weight: 700; }
.mv-note { margin: 0 4px 10px; font-size: 13px; color: var(--light-gray); }
.mv-fine { margin: 16px 4px 8px; }
.mv-fine .wm-hidden { color: inherit; }

.mapview .maplibregl-popup-content { padding: 0; overflow: hidden; border-radius: 12px; box-shadow: 0 16px 32px -14px rgba(25, 25, 25, 0.35); }
.mapview .maplibregl-popup-close-button { z-index: 2; width: 26px; height: 26px; font-size: 18px; color: var(--near-black); background: rgba(255, 255, 255, 0.9); border-radius: 0 12px 0 8px; }
.mv-pop { display: flex; flex-direction: column; gap: 2px; width: 240px; padding-bottom: 12px; color: inherit; font-family: var(--font-body); }
.mv-pop:hover { color: inherit; }
.mv-pop img { width: 100%; height: 120px; object-fit: cover; display: block; margin-bottom: 8px; }
.mv-pop span { padding: 0 14px; }
.mv-pop .mv-pop-name { padding-top: 10px; font-family: var(--font-display); font-size: 16px; font-weight: 700; line-height: 1.25; }
.mv-pop img + .mv-pop-name { padding-top: 0; }
.mv-pop-meta { font-size: 13px; color: var(--light-gray); }
.mv-pop-rents { font-size: 13px; color: var(--warm-gray); }
.mv-pop-more { margin-top: 6px; font-size: 14px; font-weight: 500; color: var(--deep-orange); }

@media (max-width: 959px) {
  .mv-body { grid-template-columns: minmax(0, 1fr); height: auto; min-height: 0; }
  .mv-map { height: 62vh; min-height: 340px; }
  .mv-list { overflow: visible; padding: 14px var(--gutter) 8px; border-left: 0; }
}
@media (max-width: 767px) {
  .sp-mapview { margin-left: 0; }
}

/* --------------- The answer pages (spaces-static-pages Part B) ---------- */
/* The homepage's context line, the city and city-kind pages, the guides, and the quick facts and answer on
   every place page (search law rules 4-9). */

.home-context { margin-top: 12px; max-width: 60ch; font-size: 15px; line-height: 1.55; color: var(--light-gray); }

.city-page, .guide-page { padding: 24px 0 72px; }
.city-h1 {
  margin-top: 16px; max-width: 24ch;
  font-family: var(--font-display); font-size: clamp(30px, 3.6vw, 44px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1;
}
.answer { margin-top: 20px; max-width: 72ch; }
.answer-q { font-family: var(--font-display); font-size: 19px; font-weight: 700; line-height: 1.3; }
.answer-a { margin-top: 8px; font-size: 17px; line-height: 1.6; color: var(--warm-gray); }
.answer-a .wm-hidden, .qa .wm-hidden, .guide-body .wm-hidden { color: inherit; }
.updated { margin-top: 10px; font-size: 13px; color: var(--light-gray); }

.dcard-grid { margin-top: 32px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.city-map .nearby-card { margin-top: 8px; }

.link-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.link-chips a {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: #FFFFFF;
  font-size: 14.5px; font-weight: 500; color: var(--near-black);
}
.link-chips a:hover { border-color: var(--signal-orange); color: var(--deep-orange); }

.quick-facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin: 0;
  padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-card); background: #FFFFFF;
}
.quick-facts div { min-width: 0; }
.quick-facts dt { font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--light-gray); }
.quick-facts dd { margin: 2px 0 0; font-size: 15px; line-height: 1.45; color: var(--near-black); overflow-wrap: anywhere; }
.biz-main .qa { margin-top: 28px; }
.sp-main .qa { margin-top: 28px; }
.qa .biz-h2 { margin-top: 24px; }
.qa-more { margin-top: 10px; font-size: 15px; color: var(--warm-gray); }
.qa-more a, .sp-cities a { color: var(--deep-orange); text-decoration: underline; text-underline-offset: 2px; }

.guide-body { max-width: 68ch; }
.guide-body h2 { margin-top: 32px; font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.guide-body p { margin-top: 10px; font-size: 17px; line-height: 1.65; color: var(--warm-gray); }
.guide-body .city-h1 + p { margin-top: 18px; font-size: 19px; color: var(--near-black); }
.guide-body a { color: var(--deep-orange); text-decoration: underline; text-underline-offset: 2px; }
.guide-body .updated { margin-top: 28px; font-size: 13px; color: var(--light-gray); }

.sp-cities { margin-top: 14px; font-size: 15px; color: var(--warm-gray); }
.sp-guides { padding: 40px 0 8px; }

.footer-guides { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; }
.footer-guides a { color: rgba(250, 249, 247, 0.85); text-decoration: underline; text-decoration-color: rgba(250, 249, 247, 0.35); text-underline-offset: 3px; }
.footer-guides a:hover { color: var(--signal-orange); }
.ledger-more { margin-top: 28px; font-size: 16px; color: var(--warm-gray); }
.ledger-more a { color: var(--deep-orange); text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 1100px) {
  .dcard-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .dcard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .dcard-grid .dcard-body { padding: 10px 10px 0; }
  .dcard-grid .dcard-foot { padding: 8px 10px 12px; }
  .quick-facts { grid-template-columns: minmax(0, 1fr); }
  .answer-a, .guide-body p { font-size: 16px; }
}

/* ---- Classes & services, Professionals: every business page (§4 amendment 12) ---- */
.offer-cards { margin-top: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.offer-card {
  display: flex; flex-direction: column; gap: 6px; min-width: 0;
  padding: 18px 20px; background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--radius-card);
}
.offer-name { font-family: var(--font-display); font-size: 17px; font-weight: 700; overflow-wrap: anywhere; }
.offer-meta { font-size: 13px; color: var(--light-gray); }
.offer-line { font-size: 15px; line-height: 1.5; color: var(--warm-gray); }
.offer-ask { margin-top: auto; align-self: flex-start; height: 40px; font-size: 14px; }
.offer-empty {
  margin-top: 14px; padding: 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius-card); background: #FFFFFF;
}
.offer-empty p { font-size: 15px; line-height: 1.55; color: var(--warm-gray); }
.offer-empty .wm-hidden { color: inherit; }
.offer-empty-actions { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; }
.offer-empty-actions .dir-cta, .offer-empty-actions .dir-btn-quiet { height: 44px; font-size: 15px; }
.pro-cards { margin-top: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pro-card a {
  display: flex; gap: 14px; align-items: center; height: 100%;
  padding: 14px 16px; background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--radius-card); color: inherit;
}
.pro-card a:hover { border-color: var(--line-strong); }
.pro-photo { flex: none; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--neutral-fill); }
.pro-initials { display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: var(--warm-gray); }
.pro-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pro-name { font-family: var(--font-display); font-size: 16px; font-weight: 700; }
.pro-title { font-size: 13px; color: var(--light-gray); }
.pro-more { margin-top: 4px; font-size: 14px; font-weight: 500; color: var(--deep-orange); }
@media (max-width: 767px) {
  .offer-cards, .pro-cards { grid-template-columns: minmax(0, 1fr); }
  .offer-empty-actions .dir-cta, .offer-empty-actions .dir-btn-quiet { flex: 1 1 auto; }
}
