/* St. Pete Biz — site styles. No framework. */
:root {
  --ink: #1c2530;
  --muted: #5b6774;
  --line: #e3e8ee;
  --bg: #f7f9fb;
  --card: #ffffff;
  --primary: #283090;      /* logo blue */
  --primary-dark: #1b2266;
  --green: #00a858;        /* logo green ("Biz") */
  --green-dark: #008a48;
  --teal: #107070;         /* logo wave */
  --accent: #f4a300;       /* sunshine, used for Featured */
  --accent-dark: #c98600;
  --premium-bg: #fff8e6;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .1);
  --wrap: 1140px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 var(--font); color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h2 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.lead { font-size: 1.1rem; color: var(--muted); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 40px 20px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.section-head h2 { margin: 0; }
.link { font-weight: 600; text-decoration: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* buttons */
.btn { display: inline-block; background: var(--primary); color: #fff; border: 2px solid var(--primary); padding: 10px 18px; border-radius: 8px; font-weight: 600; text-decoration: none; cursor: pointer; font-size: 1rem; line-height: 1.2; }
.btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-small { padding: 7px 12px; font-size: .9rem; }
.btn-block { display: block; text-align: center; margin-top: 10px; }

/* header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.25rem; }
.brand-mark { color: var(--accent); font-size: 1.5rem; }
.brand-logo { height: 48px; width: auto; display: block; }
.brand-logo-admin { height: 38px; background: #fff; border-radius: 6px; padding: 3px 6px; }
.btn-green { background: var(--green); border-color: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.site-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.site-nav a { color: var(--ink); text-decoration: none; padding: 8px 10px; border-radius: 6px; font-weight: 500; }
.site-nav a:hover { background: var(--bg); }
.site-nav .btn { color: #fff; margin-left: 6px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; font: inherit; }
@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-bottom: 12px; }
  .site-nav.open { display: flex; }
  .header-row { flex-wrap: wrap; }
}

/* hero + search */
.hero { background: linear-gradient(135deg, var(--primary-dark), var(--primary) 60%, var(--teal)); color: #fff; padding: 56px 0 48px; text-align: center; }
.hero-slides { position: relative; overflow: hidden; padding: 72px 0 64px; min-height: 380px; display: flex; align-items: center; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(20,28,64,calc(var(--ov, .55) * .8)), rgba(20,28,64,calc(var(--ov, .55) * 1.35))); }
.hero-slides h1, .hero-slides .lead { text-shadow: 0 1px 3px rgba(0,0,0,.45); }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-content { position: relative; z-index: 1; width: 100%; }
.hero-caption { margin: 0 0 14px; font-size: 1rem; }
.hero-caption a { color: #fff; text-decoration: none; }
.hero-caption-title { display: inline-block; background: var(--accent); color: #2b1d00; padding: 3px 12px; border-radius: 999px; font-size: .9rem; margin-right: 8px; }
.hero-caption-sub { color: rgba(255,255,255,.9); }
.hero-dots { position: absolute; z-index: 2; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.hero-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid rgba(255,255,255,.8); background: transparent; padding: 0; cursor: pointer; }
.hero-dot.is-active { background: #fff; }
@media (prefers-reduced-motion: reduce) { .hero-slide { transition: none; } }
.hero h1 { color: #fff; }
.hero .lead { color: rgba(255,255,255,.88); }
.search-form { display: grid; grid-template-columns: 1fr 240px auto; gap: 8px; max-width: 820px; margin: 20px auto 0; }
.search-form input, .search-form select { font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; min-width: 0; background: #fff; color: var(--ink); }
.search-form-inline { grid-template-columns: 1fr auto; margin: 12px 0 0; max-width: 520px; }
.page-head .search-form { margin: 16px 0 0; }
@media (max-width: 700px) { .search-form { grid-template-columns: 1fr; } }

/* cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .12s, box-shadow .12s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(16,24,40,.12); }
.card-premium { border-color: var(--accent); background: var(--premium-bg); }
.card-media { position: relative; display: block; aspect-ratio: 5 / 3; background: #e9eef3; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.card-title { margin: 0; font-size: 1.1rem; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--primary); }
.card-text { margin: 0; color: var(--muted); font-size: .95rem; }
.card-meta { list-style: none; margin: auto 0 0; padding: 0; font-size: .92rem; color: var(--muted); display: grid; gap: 4px; }
.card-meta a { color: inherit; text-decoration: none; }
.badge { display: inline-block; font-size: .78rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; vertical-align: middle; }
.badge-premium { background: #dfe3f5; color: var(--primary-dark); }
.badge-featured { background: var(--accent); color: #2b1d00; }
.card-featured { border-color: var(--accent); background: var(--premium-bg); box-shadow: 0 4px 14px rgba(244,163,0,.22); }
.card-premium { border-color: #a7b0e0; }
.biz-featured .biz-head { background: var(--premium-bg); border: 1px solid #f3dd9c; border-radius: var(--radius); padding: 20px; }
.biz-premium .biz-head { background: #eef0fa; border: 1px solid #d3d8f0; border-radius: var(--radius); padding: 20px; }
.plan-featured { border-color: var(--accent); box-shadow: 0 8px 24px rgba(244,163,0,.18); position: relative; }
.plan-premium { border-color: var(--primary); }
.plan-flag { position: absolute; top: -12px; left: 16px; background: var(--accent); color: #2b1d00; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.plan .period { font-size: 1rem; font-weight: 500; color: var(--muted); }
.card-media .badge { position: absolute; top: 10px; left: 10px; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; background: #eef0fa; color: var(--primary-dark); padding: 3px 10px; border-radius: 999px; text-decoration: none; }
.chip:hover { background: #dfe3f5; }
.chip-active { background: var(--primary); color: #fff; }
.chips-lg .chip { font-size: .9rem; padding: 6px 12px; }
.chip .count, .cat-list .count { font-size: .75em; opacity: .75; }

/* category tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 12px; text-decoration: none; color: var(--ink); display: grid; gap: 4px; text-align: center; box-shadow: var(--shadow); }
.tile:hover { border-color: var(--primary); color: var(--primary); }
.tile-icon { font-size: 1.8rem; }
.tile-name { font-weight: 600; font-size: .95rem; }
.tile-count { color: var(--muted); font-size: .8rem; }
.cat-index { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px 40px; }
.cat-group h2 { font-size: 1.15rem; }
.cat-group h2 a { color: var(--ink); text-decoration: none; }
.cat-list { list-style: none; margin: 0; padding: 0; columns: 1; }
.cat-list li { padding: 3px 0; display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px dashed var(--line); }
.cat-list a { text-decoration: none; }

/* page heads, breadcrumbs, misc */
.page-head { background: #fff; border-bottom: 1px solid var(--line); padding: 28px 0; }
.page-head h1 { margin-bottom: 4px; }
.breadcrumbs { font-size: .9rem; color: var(--muted); padding-top: 14px; }
.breadcrumbs a { text-decoration: none; }
.empty { background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); padding: 32px; text-align: center; }
.cta { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin: 20px auto; max-width: 900px; }
.flash { padding: 12px 16px; border-radius: 8px; margin: 16px 0 0; background: #e8f5e9; border: 1px solid #b7dfba; }
.flash-error { background: #fdecea; border-color: #f5c2c0; }
.pagination { display: flex; gap: 6px; justify-content: center; margin: 28px 0 0; flex-wrap: wrap; }
.pagination a, .pagination .current { padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; text-decoration: none; }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }
.error-page { text-align: center; padding: 80px 20px; }

/* business detail */
.biz { padding-top: 16px; }
.biz-head { display: flex; gap: 20px; align-items: flex-start; padding: 16px 0 20px; }
.biz-logo { width: 96px; height: 96px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 6px; flex: none; }
.biz-head h1 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.biz-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 28px; align-items: start; }
@media (max-width: 860px) { .biz-grid { grid-template-columns: 1fr; } .biz-head { flex-direction: column; } }
.biz-cover { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 20px; aspect-ratio: 3/2; max-height: 620px; object-fit: cover; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-bottom: 20px; }
.gallery img { aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; }
.prose { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 20px; }
.prose h2:first-child { margin-top: 0; }
.video iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: var(--radius); margin-bottom: 20px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px; }
.panel h2 { font-size: 1.05rem; margin-bottom: 10px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.contact-list a { text-decoration: none; }
.social { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.social a { font-size: .85rem; background: #eef0fa; padding: 4px 10px; border-radius: 999px; text-decoration: none; }
.hours { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hours th { text-align: left; font-weight: 600; padding: 4px 0; }
.hours td { text-align: right; padding: 4px 0; color: var(--muted); }
.map { width: 100%; aspect-ratio: 4/3; border: 0; border-radius: 8px; }
.map-link { font-weight: 600; text-decoration: none; }
.rating { font-size: 1.05rem; margin: 6px 0 0; }
.reviews .review { margin: 0 0 14px; padding: 14px 16px; background: #fff; border-left: 4px solid var(--accent); border-radius: 8px; }
.review-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-bottom: 4px; }
.stars { color: var(--accent-dark); letter-spacing: 1px; }
.upsell { background: var(--premium-bg); border: 1px solid #f3dd9c; border-radius: var(--radius); padding: 16px 18px; margin-bottom: 20px; display: grid; gap: 10px; }
.upsell .btn { justify-self: start; }
/* pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 24px; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.plan-premium { border-color: var(--accent); box-shadow: 0 8px 24px rgba(244,163,0,.18); }
.plan .price { font-size: 1.8rem; font-weight: 800; margin: 4px 0 12px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; }
.page-body .prose { max-width: 820px; }
.plans-choose { margin-top: 8px; }
.plan-option { cursor: pointer; position: relative; display: block; font-weight: 400; }
.plan-option input { position: absolute; top: 14px; right: 14px; width: 20px; height: 20px; margin: 0; }
.plan-option:has(input:checked) { outline: 3px solid var(--primary); outline-offset: 2px; }

/* footer */
.site-footer { background: #13202b; color: #c9d3dc; margin-top: 40px; padding: 40px 0 20px; }
.site-footer a { color: #e6edf3; text-decoration: none; display: block; padding: 3px 0; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer h4 { color: #fff; margin-bottom: 8px; }
.site-footer .brand-name { color: #fff; font-size: 1.2rem; font-weight: 800; }
.site-footer .muted { color: #9fb0bf; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 28px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-bottom { border-top: 1px solid #243545; margin-top: 24px; padding-top: 16px; font-size: .9rem; }

/* Google Places (New) autocomplete element on the address field */
gmp-place-autocomplete.gmp-autocomplete { display: block; width: 100%; margin: 4px 0 8px; --gmp-mat-color-surface: #fff; --gmp-mat-color-on-surface: #1c2530; border: 1px solid #c9d3dc; border-radius: 8px; }

/* Google profile picker (owner side) */
.google-cands { display: grid; gap: 10px; }
.google-cand { display: flex; justify-content: space-between; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; }
.google-cand form { margin: 0; }

/* ---------- calendar ---------- */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cal-dow { background: #f1f4f7; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 8px 6px; text-align: center; }
.cal-day { background: #fff; min-height: 96px; padding: 6px; display: grid; align-content: start; gap: 4px; }
.cal-empty { background: #f7f9fb; }
.cal-today { background: #fff8e6; }
.cal-num { font-size: .85rem; font-weight: 700; color: var(--muted); }
.cal-today .cal-num { color: var(--accent-dark); }
.cal-ev { display: block; font-size: .78rem; line-height: 1.25; background: #eef0fa; color: var(--primary-dark); border-left: 3px solid var(--primary); padding: 3px 6px; border-radius: 4px; text-decoration: none; overflow: hidden; }
.cal-ev:hover { background: #dfe3f5; }
.cal-time { color: var(--muted); font-size: .72rem; }
@media (max-width: 700px) { .cal { grid-template-columns: repeat(1, 1fr); } .cal-dow { display: none; } .cal-empty { display: none; } .cal-day { min-height: 0; } .cal-num::before { content: attr(data-d); } }

/* ---------- badge ---------- */
.badge-variant h2 { font-size: 1.05rem; }
.badge-preview { padding: 18px; border-radius: 8px; background: #f1f4f7; display: inline-block; margin-bottom: 10px; }
.badge-preview.on-dark { background: #13202b; }
.badge-preview img { display: block; }

/* ---------- stats ---------- */
.chart { width: 100%; height: auto; display: block; }
.delta { font-size: .8rem; font-weight: 700; color: var(--muted); margin-left: 4px; }
.delta.up { color: #1c6b31; }
.delta.down { color: #922b21; }
.stat { cursor: default; }

/* ---------- leads / request a quote ---------- */
.quote { margin-bottom: 20px; }
.quote h2 { font-size: 1.2rem; }
.leads { display: grid; gap: 14px; }
.lead-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.lead-new { border-left: 4px solid var(--accent); }
.lead-locked { background: #fafbfc; }
.lead-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.lead-who { margin-bottom: 8px; }
.lead-msg { margin: 0 0 12px; white-space: pre-wrap; }
.lead-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.masked { color: var(--muted); letter-spacing: .05em; filter: blur(2px); user-select: none; }

/* ---------- offers ---------- */
.badge-offer { background: #00a858; color: #fff; }
.card-media .badge + .badge-offer { top: 40px; }
.offer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.offer-card { display: grid; grid-template-columns: auto 1fr; background: #fff; border: 2px dashed var(--green); border-radius: var(--radius); overflow: hidden; }
.offer-card.offer-featured { border-color: var(--accent); }
.offer-tag { writing-mode: vertical-rl; transform: rotate(180deg); background: var(--green); color: #fff; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; padding: 12px 6px; text-align: center; }
.offer-featured .offer-tag { background: var(--accent); color: #2b1d00; }
.offer-body { padding: 14px 16px; display: grid; gap: 6px; }
.offer-biz { font-size: .85rem; font-weight: 600; }
.offer-biz a { text-decoration: none; }
.offer-title { margin: 0; font-size: 1.2rem; }
.offer-details { margin: 0; font-size: .92rem; color: var(--muted); }
.offer-how { font-size: .95rem; }
.offer-code { font-family: ui-monospace, Consolas, monospace; background: #eef0fa; padding: 2px 8px; border-radius: 6px; letter-spacing: .08em; }
.offers-block { display: grid; gap: 12px; margin-bottom: 20px; }

/* ---------- "view as" bar ---------- */
.impersonation-bar { background: #fff3cd; border-bottom: 2px solid var(--accent); color: #4a3600; font-size: .92rem; }
.impersonation-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 20px; flex-wrap: wrap; }
.admin-main .impersonation-bar { margin: -24px -28px 18px; }

/* ---------- forms ---------- */
label { display: block; font-weight: 600; font-size: .92rem; margin: 0 0 12px; }
label input[type="text"], label input[type="email"], label input[type="password"], label input[type="url"], label input[type="tel"],
label input[type="number"], label input[type="date"], label input[type="time"], label input[type="search"], label select, label textarea,
.filters input[type="search"], .inline input[type="search"] {
  display: block; width: 100%; margin-top: 4px; font: inherit; font-weight: 400; padding: 9px 11px; border: 1px solid #c9d3dc; border-radius: 8px; background: #fff; color: var(--ink); }
label textarea { min-height: 90px; resize: vertical; }
label small { font-weight: 400; }
label.check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
label.check input { width: auto; margin: 0; }
label.check.tall { padding-top: 26px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 16px; }
.row-inline { display: flex; gap: 8px; }
.row-inline input { width: auto; }
@media (max-width: 700px) { .row-2, .row-3 { grid-template-columns: 1fr; } }
fieldset.panel { border: 1px solid var(--line); }
fieldset legend { font-weight: 700; padding: 0 6px; }
.form-actions { display: flex; gap: 10px; margin: 8px 0 24px; }
.form-page .panel h2 { font-size: 1.15rem; }
.btn-danger { background: #c0392b; border-color: #c0392b; }
.btn-danger:hover { background: #962d22; border-color: #962d22; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--primary); cursor: pointer; text-decoration: underline; }
.linklike.danger { color: #c0392b; }
.inline { display: inline; }
.small { font-size: .85rem; }
.hp { position: absolute; left: -9999px; }
.auth { max-width: 460px; }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.auth-links { margin-top: 14px; text-align: center; }
.flash-info { background: #e8f1fb; border-color: #bcd3ee; }
.subnav { display: flex; gap: 4px; flex-wrap: wrap; padding: 10px 20px 0; }
.subnav a, .subnav .linklike { text-decoration: none; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); }
.subnav .subnav-admin { background: var(--accent); border-color: var(--accent); color: #2b1d00; font-weight: 600; }
.table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table th, .table td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table thead th { background: #f1f4f7; font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; }
.table.compact th, .table.compact td { padding: 7px 10px; }
.table .actions { white-space: nowrap; text-align: right; }
.table .actions form { display: inline; }
.table tr.inactive { opacity: .55; }
.status { display: inline-block; font-size: .78rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: #e9eef3; color: #3b4652; text-transform: capitalize; }
.status-published, .status-approved { background: #dff3e3; color: #1c6b31; }
.status-pending { background: #fff1cc; color: #7a5200; }
.status-suspended, .status-rejected { background: #fdecea; color: #922b21; }
.cat-picker { margin: 12px 0; }
.cat-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 20px; margin-top: 8px; }
.cat-groups details { border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; background: #fff; }
.cat-groups summary { cursor: pointer; font-weight: 600; }
.cat-options { padding: 6px 0 2px; }
.cat-options label { margin: 0 0 4px; font-size: .9rem; }
.hours-edit th { text-align: left; padding: 4px 10px 4px 0; }
.hours-edit td { padding: 4px 6px; }
.hours-edit input[type="time"] { width: auto; margin: 0; padding: 6px 8px; font: inherit; border: 1px solid #c9d3dc; border-radius: 6px; }
.hours-edit label.check { margin: 0; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.photo-block h3 { font-size: 1rem; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.thumbs figure { margin: 0; width: 120px; }
.thumbs img { width: 120px; height: 90px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.upload-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.upload-row input[type="file"] { font-size: .85rem; max-width: 220px; }
.danger-zone { border-color: #f5c2c0; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9rem; }

/* ---------- stories ---------- */
.story-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.story-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.story-media { position: relative; display: block; aspect-ratio: 16/10; background: #e9eef3; }
.story-media img { width: 100%; height: 100%; object-fit: cover; }
.story-body { padding: 14px 16px 16px; }
.story-body h3 { font-size: 1.15rem; margin: 4px 0 6px; }
.story-body h3 a { color: var(--ink); text-decoration: none; }
.story-body h3 a:hover { color: var(--primary); }
.story-body p { margin: 0; color: var(--muted); font-size: .95rem; }
.story-kind { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
.date-badge { display: inline-block; background: var(--accent); color: #2b1d00; font-weight: 700; font-size: .8rem; padding: 4px 10px; border-radius: 999px; }
.story-media .date-badge { position: absolute; top: 10px; left: 10px; }
.story-hero { position: relative; background: #13202b; color: #fff; }
.story-hero img { width: 100%; max-height: 520px; object-fit: cover; display: block; opacity: .92; }
.story-hero-text { position: relative; padding: 24px 20px 28px; }
.story-hero img + .story-hero-text { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(to top, rgba(10,20,30,.9), rgba(10,20,30,0)); padding-top: 80px; }
.story-hero h1 { color: #fff; margin: 8px 0 4px; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.story-hero .lead { color: rgba(255,255,255,.9); margin: 0; }
.story-hero-plain { background: var(--primary-dark); }
@media (max-width: 700px) { .story-hero img + .story-hero-text { position: static; background: #13202b; padding-top: 16px; } .story-hero img { max-height: 260px; } }
.story-grid-2 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 28px; align-items: start; padding-top: 24px; }
@media (max-width: 860px) { .story-grid-2 { grid-template-columns: 1fr; } }
.story-photos { display: grid; gap: 14px; margin: 24px 0; }
.story-photos.row3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 700px) { .story-photos.row3 { grid-template-columns: 1fr; } }
.story-photos figure { margin: 0; }
.story-photos img { width: 100%; border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; }
.story-photos figcaption { font-size: .88rem; color: var(--muted); margin-top: 6px; }
.story-text { font-size: 1.08rem; line-height: 1.65; }
.story-text h2 { margin-top: 1.2em; font-size: 1.4rem; }
.story-text blockquote { margin: 1em 0; padding: 10px 18px; border-left: 4px solid var(--accent); background: var(--premium-bg); font-size: 1.15rem; }
.story-meta { margin: 16px 0 28px; font-size: .9rem; }
.details dl { margin: 0 0 12px; display: grid; grid-template-columns: max-content 1fr; gap: 8px 14px; }
.details dt { font-weight: 700; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; padding-top: 3px; }
.details dd { margin: 0; }
.event-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.event-list li { display: flex; gap: 10px; align-items: baseline; }
.event-list a { text-decoration: none; font-weight: 600; }
.event-date { display: inline-block; min-width: 52px; font-size: .8rem; font-weight: 700; color: var(--primary-dark); background: #eef0fa; padding: 2px 8px; border-radius: 6px; text-align: center; }
.event-strip { margin-top: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, max-content)); }
.event-list.compact { gap: 6px; font-size: .95rem; }
.section-tight { margin-top: 32px; }
.map-wide { aspect-ratio: 16/7; }
.tiles-wide { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.featured-in { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 20px; }
.featured-in h2 { font-size: 1.05rem; }
.story-linked { margin-top: 28px; }
.thumb-sm { width: 64px; height: 42px; object-fit: cover; border-radius: 4px; }
.picker { display: block; position: relative; }
.picker-q { width: 100%; }
.picker-results { position: absolute; z-index: 20; left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 20px rgba(16,24,40,.12); max-height: 240px; overflow: auto; }
.picker-results button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 8px 12px; font: inherit; cursor: pointer; }
.picker-results button:hover { background: var(--bg); }
.picker-results .muted { display: block; font-size: .8rem; }
.picker-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pick { display: inline-flex; align-items: center; gap: 6px; background: #eef0fa; padding: 4px 10px; border-radius: 999px; font-size: .9rem; font-weight: 500; }
.pick .remove { text-decoration: none; font-size: 1.1rem; line-height: 1; }
.hidden { display: none !important; }
.pick .blurb { display: block; width: 100%; margin-top: 6px; font: inherit; font-weight: 400; padding: 8px 10px; border: 1px solid #c9d3dc; border-radius: 6px; }
.picker[data-blurbs="1"] .picker-list { display: grid; gap: 10px; }
.picker[data-blurbs="1"] .pick { display: block; border-radius: 8px; padding: 8px 12px; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
/* photo story */
.spotlight-body { padding-top: 24px; max-width: 900px; }
.spot-photo { margin: 24px 0; }
.spot-photo img { width: 100%; border-radius: var(--radius); }
.spot-photo figcaption { font-size: .9rem; color: var(--muted); margin-top: 8px; }
@media (min-width: 800px) {
  .spot-photo.photo-left { float: left; width: 55%; margin: 8px 28px 16px 0; }
  .spot-photo.photo-right { float: right; width: 55%; margin: 8px 0 16px 28px; }
  .spotlight-body .story-linked, .spotlight-body .story-meta { clear: both; }
}
/* roundup */
.roundup-body { padding-top: 24px; max-width: 900px; }
.roundup-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 28px; counter-reset: none; }
.roundup-item { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.roundup-item.is-featured { border-color: var(--accent); }
.roundup-item.is-premium { border-color: #a7b0e0; }
.roundup-photo img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; display: block; }
.roundup-text { padding: 18px 22px 18px 0; position: relative; }
.roundup-num { font-family: Georgia, "Times New Roman", serif; font-size: 2.2rem; font-weight: 700; color: var(--accent); line-height: 1; margin-bottom: 4px; }
.roundup-text h2 { font-size: 1.35rem; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.roundup-text h2 a { color: var(--ink); text-decoration: none; }
.roundup-text h2 a:hover { color: var(--primary); }
.roundup-text .prose { background: none; border: 0; padding: 0; margin: 0 0 10px; }
@media (max-width: 700px) { .roundup-item { grid-template-columns: 1fr; } .roundup-text { padding: 0 18px 18px; } }

/* ---------- admin ---------- */
.admin-body { background: #f3f5f8; }
.admin-shell { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.admin-side { background: #13202b; color: #c9d3dc; padding: 18px 14px; display: flex; flex-direction: column; gap: 18px; }
.admin-side .brand { color: #fff; font-size: 1.05rem; }
.admin-nav { display: grid; gap: 2px; }
.admin-nav a { color: #c9d3dc; text-decoration: none; padding: 9px 12px; border-radius: 8px; font-weight: 500; }
.admin-nav a:hover { background: #1e3140; color: #fff; }
.admin-nav a.active { background: var(--primary); color: #fff; }
.admin-side-foot { margin-top: auto; display: grid; gap: 6px; font-size: .9rem; }
.admin-side-foot a, .admin-side-foot .linklike { color: #c9d3dc; text-decoration: none; }
.admin-main { padding: 24px 28px; min-width: 0; }
.admin-main h1 { font-size: 1.5rem; }
.admin-main .panel { margin-bottom: 18px; }
.admin-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 1000px) { .admin-cols { grid-template-columns: 1fr; } .admin-shell { grid-template-columns: 1fr; } .admin-side { flex-direction: row; flex-wrap: wrap; align-items: center; } .admin-nav { display: flex; flex-wrap: wrap; } .admin-side-foot { margin: 0; } }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; color: var(--ink); display: grid; gap: 2px; }
.stat-n { font-size: 1.7rem; font-weight: 800; color: var(--primary); }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin: 0 0 14px; }
.tabs a { padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: .9rem; }
.tabs a.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.tabs .count { opacity: .7; font-size: .8em; }
.filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.filters .tabs { margin: 0; }
.filters input[type="search"] { width: 260px; margin: 0; }
.row-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.row-form label { margin: 0; flex: 1 1 140px; }
.row-form label.check { flex: 0 0 auto; padding-bottom: 8px; }
.row-form .btn { margin-bottom: 1px; }
.group-row { padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.cat-admin .table { border: 0; }
.cat-admin .table td { padding: 6px 0; }
.cat-admin .row-form.inline { margin-top: 4px; }
.plans-edit { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.plan-edit { border: 1px solid var(--line); border-radius: 8px; padding: 14px; }
.hero-slide-row { display: grid; grid-template-columns: 300px 1fr; gap: 18px; align-items: start; }
.hero-thumb-wrap { width: 300px; }
/* focal-point picker */
.focus-form { display: grid; gap: 6px; }
.focus-pick { position: relative; cursor: crosshair; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: #e9eef3; user-select: none; }
.focus-pick img { width: 100%; height: auto; display: block; pointer-events: none; }
.focus-dot { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 3px solid #fff; background: var(--accent); box-shadow: 0 0 0 2px rgba(0,0,0,.35); pointer-events: none; }
.focus-preview { width: 100%; overflow: hidden; border-radius: 6px; border: 1px solid var(--line); background: #e9eef3; }
.focus-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.focus-actions { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.focus-form.is-dirty .btn { background: var(--primary); color: #fff; }
.thumbs figure.with-focus { width: 100%; max-width: 360px; }
.thumbs figure.with-focus .focus-pick img { width: 100%; height: auto; border: 0; border-radius: 0; }
.thumbs figure.with-focus .focus-preview img { width: 100%; height: 100%; border: 0; border-radius: 0; }
.hero-slide-row .inline { grid-column: 2; }
@media (max-width: 760px) { .hero-slide-row { grid-template-columns: 1fr; } .hero-slide-row .inline { grid-column: 1; } }
ul.plain { list-style: none; margin: 0; padding: 0; }
ul.plain li { padding: 3px 0; }

/* admin-written intro copy on category / neighborhood pages */
.prose.intro { margin: 20px 0 0; }
.prose.intro p:last-child { margin-bottom: 0; }

/* on/off radio switch in admin settings */
fieldset.radio-row { border: 0; padding: 0; margin: 0 0 12px; }
fieldset.radio-row legend { font-weight: 500; padding: 0; margin-bottom: 4px; }
fieldset.radio-row label { display: inline-flex; margin-right: 18px; }

/* review-request page */
.copy-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.copy-row input.code { flex: 1 1 320px; min-width: 0; }
.qr-row { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; }
.qr-box { width: 200px; height: 200px; flex: 0 0 200px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px; }
.qr-box svg { width: 100%; height: 100%; display: block; }
.qr-row > div:last-child { flex: 1 1 260px; }
.review-link { font-weight: 600; }
