/* ════════════════════════════════════════════════════════════════════
   GoLocalWeb extensions on top of the m1 design system.
   Razor pages need a few extra hooks beyond what the prototype exercised.
   ════════════════════════════════════════════════════════════════════ */

/* Page-level kicker/title combo above content sections. */
.page-head { padding: 28px 0 14px; }
.page-head .h1 { margin-top: 6px; }
.page-head .lead { margin-top: 12px; max-width: 640px; }

/* Pass landing — large branded card on the right. */
.pass-card-mockup {
  background: var(--pass); color: var(--pass-ink);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.pass-card-mockup .deco {
  position: absolute; right: -80px; top: -80px;
  width: 240px; height: 240px;
  border-radius: 9999px;
  border: 1px solid currentColor; opacity: .18;
  pointer-events: none;
}
.pass-card-mockup .pass-mock-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 22px;
}
.pass-card-mockup .pass-mock-qr {
  width: 84px; height: 84px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  display: grid; place-items: center;
  color: var(--ink);
  font-size: 11px; font-weight: 700;
}

/* Two-col hero (Pass page, etc.). Stacks on mobile, splits on desktop. */
.two-col {
  display: grid; gap: 24px; grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) { .two-col { grid-template-columns: 1.1fr 1fr; gap: 56px; } }

/* Stat row used on Pass page + tenant landing. */
.stat-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px; margin-top: 24px;
}
.stat-row .stat .v { font-size: 26px; font-weight: 800; letter-spacing: -0.6px; }
.stat-row .stat .l { font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; font-weight: 700; color: var(--ink-muted); }
@media (min-width: 900px) {
  .stat-row .stat .v { font-size: 36px; letter-spacing: -1px; }
}

/* How-it-works steps. */
.steps { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 20px;
  display: flex; flex-direction: column; gap: 8px;
}
.step-card .num {
  width: 36px; height: 36px; border-radius: 9999px;
  background: var(--primary-soft); color: var(--primary-deep);
  display: grid; place-items: center;
  font-weight: 800; font-size: 15px;
}

/* FAQ / accordion. */
.faq { display: flex; flex-direction: column; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: start;
  padding: 18px 0; display: flex; gap: 14px; align-items: center;
  font-size: 16px; font-weight: 700; color: var(--ink);
  background: transparent; border: 0; cursor: pointer; font-family: inherit;
}
.faq-q .arr { margin-inline-start: auto; transition: transform .2s var(--t); color: var(--ink-muted); }
.faq-item.open .faq-q .arr { transform: rotate(180deg); }
.faq-a { padding: 0 0 18px; color: var(--ink-soft); line-height: 1.6; display: none; }
.faq-item.open .faq-a { display: block; }

/* Ratings + reviews bits (Business profile). */
.rating-summary { display: flex; flex-direction: column; gap: 10px; }
.rating-score { font-size: 56px; font-weight: 800; line-height: 1; letter-spacing: -1.6px; }
.rating-bars { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.rating-bar { display: grid; grid-template-columns: 30px 1fr 30px; gap: 8px; align-items: center; font-size: 12px; color: var(--ink-soft); font-weight: 600; }
.rating-bar .track { height: 6px; background: var(--surface-alt); border-radius: 6px; overflow: hidden; }
.rating-bar .fill  { height: 100%; background: var(--accent); border-radius: 6px; }

/* Real estate property hero gallery (2fr | 1fr | 1fr × 2 rows). */
.re-gallery {
  display: grid; gap: 6px;
  grid-template-columns: 1fr;
  border-radius: var(--radius-lg); overflow: hidden;
}
.re-gallery > * { aspect-ratio: 4 / 3; background: var(--surface-alt); }
@media (min-width: 720px) {
  .re-gallery {
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    aspect-ratio: 16 / 9;
  }
  .re-gallery > *:first-child { grid-row: 1 / -1; aspect-ratio: auto; }
  .re-gallery > * { aspect-ratio: auto; }
}

/* Property kind ribbons. */
.re-kind {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: var(--radius-pill);
  font-size: 11px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase;
}
.re-kind-sale { background: var(--primary); color: #fff; }
.re-kind-rent { background: var(--accent); color: var(--accent-ink); }
.re-kind-holiday { background: #6c4eb6; color: #fff; }
.re-kind-land { background: #1f7a52; color: #fff; }
.re-kind-commercial { background: #b53b3b; color: #fff; }

/* KV table for property facts. */
.kv { width: 100%; border-collapse: collapse; font-size: 14px; }
.kv td { padding: 10px 0; border-top: 1px solid var(--line); vertical-align: top; }
.kv tr:first-child td { border-top: 0; }
.kv td:first-child { color: var(--ink-muted); font-weight: 600; padding-inline-end: 20px; width: 40%; }
.kv td:last-child  { color: var(--ink); font-weight: 600; }

/* Reusable sidebar card (business profile, real-estate). */
.side-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex; flex-direction: column; gap: 14px;
}
.side-card h3 { font-size: 18px; font-weight: 800; margin: 0; }
.side-card .price { font-size: 30px; font-weight: 800; letter-spacing: -0.8px; }
.side-card .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.side-card .ico-btn {
  display: inline-flex; gap: 8px; align-items: center; justify-content: center;
  height: 44px; border-radius: var(--radius-pill);
  border: 1px solid var(--line); background: var(--surface);
  font-size: 13px; font-weight: 700; color: var(--ink);
  cursor: pointer; font-family: inherit;
}
.side-card .ico-btn:hover { background: var(--surface-alt); }

/* Featured (hero-on-card) post for blog index. */
.feature-post {
  display: grid; gap: 16px; grid-template-columns: 1fr;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  margin-bottom: 28px;
}
.feature-post img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.feature-post .body { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 720px) {
  .feature-post { grid-template-columns: 1.2fr 1fr; }
  .feature-post img { aspect-ratio: auto; height: 100%; }
}

/* Blog post body (typography-rich column). */
.post-body {
  max-width: 880px; margin: 0 auto;
  padding: 0 var(--gutter);
  font-size: 17px; line-height: 1.7; color: var(--ink-soft);
}
.post-body p:first-of-type { font-size: 20px; line-height: 1.55; color: var(--ink); }
.post-body p { margin: 0 0 1.2em; }
.post-body h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.4px; color: var(--ink); margin: 1.6em 0 .5em; }
.post-body h3 { font-size: 21px; font-weight: 800; color: var(--ink); margin: 1.4em 0 .4em; }
.post-body img { border-radius: var(--radius); margin: 1em 0; }
.post-body ul, .post-body ol { padding-inline-start: 22px; margin: 0 0 1.2em; }
.post-body li { margin: 0 0 .5em; }

/* "Lite hero" — single photo with gradient + title overlay. */
.lite-hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--ink); color: #fff;
  min-height: 280px;
  display: flex; align-items: flex-end;
}
.lite-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.lite-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.05) 30%, rgba(0,0,0,0.65) 100%);
}
.lite-hero .wrap { padding-block: 32px; width: 100%; }
@media (min-width: 720px) { .lite-hero { min-height: 360px; } }

/* Bottom tab bar — mobile only, keeps key sections one-tap reachable. */
.tabbar {
  position: fixed; bottom: 0; inset-inline: 0; z-index: 35;
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 6px 4px env(safe-area-inset-bottom);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px;
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 4px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.3px;
  color: var(--ink-muted); text-transform: uppercase;
}
.tabbar a.active { color: var(--accent); }
.tabbar a svg { width: 22px; height: 22px; }
@media (min-width: 900px) { .tabbar { display: none; } }
@media (max-width: 899px) {
  body.has-tabbar main { padding-bottom: 80px; }
}

/* Skinny utility classes used across pages. */
.txt-center { text-align: center; }
.mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }

/* Inline icon convenience for places that use system bullets. */
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; }

/* m1.css hides the language dropdown until 1100px+. Bump it visible alongside
   the rest of the desktop tools (>=900px) so the language switcher is
   reachable on every desktop width, not only ultrawide. */
@media (min-width: 900px) {
    .hdr-lang-wrap { display: inline-block !important; }
}

/* Force the [hidden] attribute to win over `.search-scrim { display: flex }`
   from m1.css. The prototype used React conditional rendering so the popup
   was simply absent from the DOM when closed — but in Razor we leave it in
   the DOM and toggle the attribute, so we need this override. */
[hidden] { display: none !important; }

/* m1.css targets `.hdr-nav button` and `.drawer-item` etc., but Razor uses
   <a> tags for navigation (correct semantics for an MPA). Mirror the styles
   to <a> so links pick up the same padding, hover, and active-underline. */
@media (min-width: 900px) {
    .hdr-nav a {
        padding: 8px 10px;
        font-size: 13.5px; font-weight: 600;
        color: var(--ink); opacity: .78;
        border-radius: var(--radius);
        position: relative;
        white-space: nowrap;
        flex: 0 0 auto;
        text-decoration: none;
        display: inline-flex; align-items: center;
    }
    .hdr-nav a:hover { opacity: 1; background: var(--surface-alt); }
    .hdr-nav a.active { opacity: 1; }
    .hdr-nav a.active::after {
        content: ''; position: absolute;
        left: 10px; right: 10px; bottom: -2px;
        height: 2px; background: var(--accent); border-radius: 2px;
    }
}
@media (min-width: 1100px) {
    .hdr-nav a { padding: 8px 12px; }
}

/* Drawer items can be <a> too — same hover/active styling as <button>. */
.drawer-item[href]:hover, a.drawer-item:hover { background: var(--surface-alt); }
a.drawer-lang-item:hover, a.drawer-lang-item.active { background: var(--surface-alt); }
a.drawer-item, a.drawer-lang-item { text-decoration: none; }

/* hdr-cta as <a> tag still needs proper styling. */
a.hdr-cta { text-decoration: none; }
a.hdr-logo { text-decoration: none; }
a.text-link { text-decoration: none; }

/* ============================================================
   Business detail page — rating, hours, reviews, contact, map
   ============================================================ */

/* Business headline: optional logo beside the title. */
.biz-headline { display: flex; gap: 14px; align-items: flex-start; }
.biz-logo {
  width: 56px; height: 56px; flex: 0 0 56px;
  border-radius: var(--radius); object-fit: cover;
  border: 1px solid var(--line); background: var(--surface);
}
@media (min-width: 900px) { .biz-logo { width: 64px; height: 64px; flex-basis: 64px; } }

/* Rating summary (under title + in reviews block). */
.rating-summary { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rating-stars { color: #e8a33d; letter-spacing: 1px; font-size: 16px; }
.rating-score { font-weight: 800; color: var(--ink); }
.rating-count { font-size: 14px; color: var(--ink-muted); text-decoration: underline; }
a.rating-count:hover { color: var(--ink); }

/* Opening hours table. */
.hours-table { width: 100%; border-collapse: collapse; max-width: 420px; }
.hours-table td { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; vertical-align: top; }
.hours-table tr:last-child td { border-bottom: none; }
.hours-day { color: var(--ink-soft); width: 120px; }
.hours-slots { color: var(--ink); font-variant-numeric: tabular-nums; }
.hours-table tr.is-today .hours-day,
.hours-table tr.is-today .hours-slots { font-weight: 800; color: var(--ink); }
.hours-table tr.is-today { background: var(--surface-alt); }

/* Reviews. */
.review-list { display: flex; flex-direction: column; gap: 14px; }
.review-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px;
}
.review-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.review-author { font-weight: 700; color: var(--ink); }
.review-stars { color: #e8a33d; letter-spacing: 1px; font-size: 14px; }
.review-date { font-size: 13px; margin-left: auto; }
.review-title { font-weight: 700; margin-top: 8px; color: var(--ink); }
.review-body { margin: 6px 0 0; color: var(--ink-soft); line-height: 1.6; white-space: pre-line; }
.review-response {
  margin-top: 12px; padding: 12px 14px;
  background: var(--surface-alt); border-radius: var(--radius-sm);
}
.review-response-label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; color: var(--ink-muted); }
.review-response p { margin: 4px 0 0; color: var(--ink-soft); line-height: 1.55; }

/* Contact list (sidebar + Find-us section). */
.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.contact-list li { display: flex; flex-direction: column; gap: 2px; }
.contact-kind { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--ink-muted); }
.contact-list a { color: var(--ink); font-weight: 600; word-break: break-word; }
.contact-list a:hover { color: var(--accent); }

.social-row { display: flex; flex-wrap: wrap; gap: 8px; }
.social-link {
  display: inline-flex; align-items: center;
  padding: 6px 12px; border-radius: var(--radius-pill);
  border: 1px solid var(--line); background: var(--surface);
  font-size: 13px; font-weight: 700; color: var(--ink); text-decoration: none;
}
.social-link:hover { background: var(--surface-alt); }

/* Find-us section: info column + map. */
.contact-layout { display: grid; grid-template-columns: 1fr; gap: 24px; }
.contact-map {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); background: var(--surface-alt);
  aspect-ratio: 16 / 10;
}
.contact-map iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (min-width: 900px) {
  .contact-layout { grid-template-columns: 320px 1fr; align-items: start; }
  .contact-map { aspect-ratio: auto; height: 100%; min-height: 320px; }
}

/* Offers. */
.offer-list { display: flex; flex-direction: column; gap: 14px; }
.offer-card {
  display: flex; gap: 0; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.offer-img { width: 140px; flex: 0 0 140px; object-fit: cover; align-self: stretch; }
.offer-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.offer-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.offer-badge {
  display: inline-flex; align-items: center;
  padding: 4px 10px; border-radius: var(--radius-pill);
  background: var(--accent); color: var(--accent-ink);
  font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .3px;
}
.offer-title { font-weight: 800; font-size: 17px; color: var(--ink); }
.offer-summary { margin: 0; color: var(--ink); font-weight: 600; }
.offer-desc { margin: 0; color: var(--ink-soft); line-height: 1.55; }
.offer-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 2px; }
.offer-valid { font-size: 13px; color: var(--ink-muted); font-weight: 700; }
.offer-terms { margin-top: 4px; }
.offer-terms summary { font-size: 13px; color: var(--ink-muted); cursor: pointer; font-weight: 700; }
.offer-terms p { margin: 6px 0 0; color: var(--ink-soft); font-size: 13px; line-height: 1.5; }
@media (max-width: 560px) {
  .offer-card { flex-direction: column; }
  .offer-img { width: 100%; flex-basis: auto; aspect-ratio: 16/9; }
}
