/*
 * site.css — the public community site's shared stylesheet.
 * Loaded by templates/layout.php after the per-site :root variables.
 * Sections: layout base (was layout.php's <style>), page components (were
 * <style> blocks in individual templates), building blocks (were inline styles).
 */

/* ================= LAYOUT BASE ================= */

    /* ========== RESET ========== */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    body {
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
      background: #fff; color: var(--text); line-height: 1.6;
      -webkit-font-smoothing: antialiased;
    }
    a { color: var(--accent); text-decoration: none; }
    a:hover { text-decoration: underline; }
    img { max-width: 100%; height: auto; }

    /* ========== NAV ========== */
    .site-nav {
      display: flex; align-items: center; height: 64px;
      padding: 0 40px;
      max-width: 1100px; margin: 0 auto;
      position: relative; z-index: 50;
      background: none;
    }
    .nav-brand {
      display: flex; align-items: center; gap: 0;
      text-decoration: none; color: #fff;
    }
    .nav-brand img { height: 36px; width: auto; }
    .nav-brand-text {
      font-weight: 700; font-size: 1.3rem; font-style: italic;
      color: #fff; letter-spacing: -.02em;
      text-shadow: 0 1px 3px rgba(0,0,0,0.4);
    }
    .nav-links { display: flex; gap: 2px; margin-left: auto; }
    .nav-links a {
      color: rgba(255,255,255,0.85); padding: 8px 16px; border-radius: 6px;
      font-size: .88rem; font-weight: 500; text-decoration: none;
      transition: color .15s;
      text-shadow: 0 1px 3px rgba(0,0,0,0.4);
    }
    .nav-links a:hover { color: #fff; text-decoration: none; }
    .nav-links a.active {
      color: #fff; font-weight: 600;
      border-bottom: 2px solid var(--accent); padding-bottom: 3px;
    }
    .nav-toggle {
      display: none; background: none; border: none; color: #fff;
      font-size: 1.5rem; cursor: pointer; padding: 4px; margin-left: auto; line-height: 1;
      text-shadow: 0 1px 3px rgba(0,0,0,0.4);
    }

    /* ========== SECTIONS ========== */
    .section { padding: 48px 24px; }
    .section-inner { max-width: 1100px; margin: 0 auto; }
    .section-white { background: #fff; }
    .section-cream { background: var(--cream); width: 100%; max-width: 100%; overflow: hidden; }
    .section-gray { background: var(--gray); }
    .section-dark { background: var(--primary); color: #fff; }
    .section-label, .sec-label {
      font-size: 10px; font-weight: 700; text-transform: uppercase;
      letter-spacing: 0.12em; color: var(--accent); margin-bottom: 16px;
      display: flex; align-items: center; gap: 10px;
    }
    .section-label::after, .sec-label::after { content: ''; flex: 1; height: 1px; background: #f0e8d8; }
    .section-heading { font-size: 1.8rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
    .section-subheading { color: var(--text-muted); margin-top: 4px; font-size: .95rem; }
    .section-link { font-size: .85rem; font-weight: 600; color: var(--accent); }
    .section-link:hover { text-decoration: underline; }

    /* ========== HERO ========== */
    .hero {
      background-color: var(--primary);
      background-image: var(--hero-bg);
      background-size: cover; background-position: center; background-repeat: no-repeat;
      position: relative;
      padding-bottom: 120px;
    }
    .hero-has-image::before {
      content: '';
      position: absolute; inset: 0;
      background: linear-gradient(to bottom, rgba(10,20,45,0.35) 0%, rgba(10,20,45,0.65) 50%, rgba(10,20,45,0.88) 100%);
      pointer-events: none;
    }
    .hero-body {
      position: relative; z-index: 1;
      max-width: 1100px; margin: 0 auto;
      padding: 24px 40px 0;
    }
    .hero-logo {
      width: 90px; height: 90px;
      margin-bottom: 16px; overflow: hidden;
      display: flex; align-items: center; justify-content: center;
    }
    .hero-logo-img {
      height: 90px; width: auto;
      object-fit: contain; margin-bottom: 16px;
    }
    .hero-logo-initial {
      width: 100%; height: 100%;
      display: flex; align-items: center; justify-content: center;
      background: rgba(255,255,255,0.15); border-radius: 50%;
      color: #fff; font-size: 2.2rem; font-weight: 800;
    }
    .hero-eyebrow {
      font-size: 11px; font-weight: 700; text-transform: uppercase;
      letter-spacing: 0.12em; color: var(--accent); margin-bottom: 10px;
    }
    .hero h1 {
      color: #fff; font-size: 44px; font-weight: 800; letter-spacing: -0.03em;
      line-height: 1.1; margin-bottom: 10px; max-width: 560px;
    }
    .hero-tagline {
      color: rgba(255,255,255,0.85); font-size: 16px;
      margin-bottom: 24px; max-width: 480px;
    }
    .hero-search {
      max-width: 500px; display: flex;
      border-radius: 8px; overflow: hidden;
      box-shadow: 0 8px 32px rgba(0,0,0,.2);
    }
    .hero-search input {
      flex: 1; padding: 13px 18px; border: none; font-size: .95rem;
      outline: none; font-family: inherit; background: #fff; color: var(--text);
      border-radius: 8px 0 0 8px;
    }
    .hero-search button {
      padding: 13px 24px; background: var(--accent); color: #fff; border: none;
      font-weight: 700; font-size: .9rem; cursor: pointer; font-family: inherit;
      border-radius: 0 8px 8px 0;
    }
    .hero-search button:hover { filter: brightness(1.1); }

    /* SPOTLIGHT CARDS — overlapping into content */
    .spotlight-section {
      padding: 0 40px;
      margin-top: -90px;
      position: relative;
      z-index: 10;
    }
    .spotlight-section-inner {
      max-width: 1100px; margin: 0 auto;
    }
    .spotlight-grid {
      display: grid; grid-template-columns: repeat(4, 1fr);
      gap: 16px; padding-bottom: 32px;
    }
    .spot-card {
      background: #fff; border-radius: 14px; overflow: hidden;
      box-shadow: 0 8px 28px rgba(0,0,0,0.15), 0 2px 6px rgba(0,0,0,0.06);
      text-decoration: none; color: var(--text);
      transition: transform 0.2s, box-shadow 0.2s;
    }
    .spot-card:hover {
      transform: translateY(-3px);
      box-shadow: 0 12px 36px rgba(0,0,0,0.18), 0 3px 8px rgba(0,0,0,0.08);
      text-decoration: none;
    }
    .spot-card-photo { width: 100%; height: 140px; object-fit: cover; display: block; }
    .spot-card-initial {
      width: 100%; height: 140px; display: flex; align-items: center; justify-content: center;
      background: linear-gradient(135deg, var(--accent), var(--primary));
      font-size: 2.5rem; font-weight: 800; color: rgba(255,255,255,.5);
      text-transform: uppercase;
    }
    .spot-card-body { padding: 12px 14px; }
    .spot-card-name { font-weight: 700; font-size: .88rem; margin-bottom: 4px; line-height: 1.25; }
    .spot-cat {
      display: inline-block; background: #fff0e8; color: #c44a1a;
      font-size: 10px; font-weight: 600; padding: 2px 8px;
      border-radius: 20px; margin-bottom: 5px;
    }
    .spot-card-rating { display: flex; align-items: center; gap: 3px; }
    .stars-sm { color: var(--accent); font-size: .75rem; }
    .rating-num { font-size: .72rem; color: var(--text-muted); }

    /* ========== TWO-COLUMN CONTENT ========== */
    .two-col { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; }

    /* NEWS — featured card */
    .news-featured-card {
      display: block; border-radius: var(--radius); overflow: hidden;
      box-shadow: var(--shadow); text-decoration: none; color: inherit;
      background: var(--surface); border: 1px solid var(--border);
      transition: box-shadow .2s;
      margin-bottom: 24px;
    }
    .news-featured-card:hover { box-shadow: var(--shadow-md); text-decoration: none; }
    .news-featured-img { width: 100%; height: 155px; object-fit: cover; display: block; }
    .news-featured-placeholder {
      width: 100%; height: 155px; display: flex; align-items: center; justify-content: center;
      background: linear-gradient(135deg, var(--primary), var(--accent));
      color: rgba(255,255,255,.4); font-size: .9rem; font-weight: 600;
    }
    .news-featured-body { padding: 20px; }
    .news-featured-body h3 {
      font-size: 15px; font-weight: 700; line-height: 1.3; margin-bottom: 6px;
    }
    .news-meta { font-size: .8rem; color: var(--text-muted); margin-bottom: 8px; }
    .news-read { font-size: .84rem; font-weight: 600; color: var(--accent); }
    .news-featured-img-wrap {
      position: relative; overflow: hidden;
    }
    .news-cat-badge {
      position: absolute; bottom: 10px; left: 12px;
      display: inline-block; background: var(--accent); color: #fff;
      font-size: 10px; font-weight: 600; padding: 3px 10px;
      border-radius: 20px; text-transform: uppercase; letter-spacing: 0.04em;
    }

    /* NEWS — numbered list */
    .news-list-item {
      display: flex; gap: 14px; align-items: flex-start; padding: 16px 0;
      border-top: 1px solid var(--border); text-decoration: none; color: inherit;
    }
    .news-list-item:hover { text-decoration: none; }
    .news-list-item:hover .news-list-title { color: var(--accent); }
    .news-list-thumb {
      width: 70px; height: 70px; border-radius: 8px; flex-shrink: 0;
      object-fit: cover; display: block;
    }
    .news-list-thumb-placeholder {
      width: 70px; height: 70px; border-radius: 8px; flex-shrink: 0;
      background: linear-gradient(135deg, var(--accent), var(--primary));
      display: flex; align-items: center; justify-content: center;
      color: rgba(255,255,255,.7); font-size: .7rem; font-weight: 700;
      text-transform: uppercase; letter-spacing: .03em;
    }
    .news-list-body { flex: 1; }
    .news-list-title { font-size: .95rem; font-weight: 600; line-height: 1.35; margin-bottom: 4px; transition: color .15s; }

    /* EVENT — date box list */
    .event-list-item {
      display: flex; gap: 12px; align-items: flex-start;
      padding: 12px 0; border-bottom: 1px solid var(--border);
      text-decoration: none; color: inherit;
    }
    .event-list-item:first-child { padding-top: 0; }
    .event-list-item:hover { text-decoration: none; }
    .event-list-item:hover .event-list-title { color: var(--accent); }
    .event-date-box {
      width: 48px; height: 48px; border-radius: 8px; flex-shrink: 0;
      background: var(--primary); color: #fff;
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      line-height: 1;
    }
    .event-date-month { font-size: .6rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
    .event-date-day { font-size: 1.15rem; font-weight: 800; }
    .event-list-body { flex: 1; }
    .event-list-title { font-size: .9rem; font-weight: 600; line-height: 1.3; margin-bottom: 2px; transition: color .15s; }
    .event-list-loc { font-size: .78rem; color: var(--text-muted); }

    /* FEATURED BUSINESS */
    .featured-biz { margin-top: 24px; }
    .featured-biz-photo {
      width: 100%; height: 180px; object-fit: cover;
      border-radius: 10px; margin-bottom: 12px; display: block;
    }
    .featured-biz h4 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
    .featured-biz .fb-cat { font-size: .8rem; color: var(--text-muted); margin-bottom: 6px; }
    .featured-biz .fb-rating { color: var(--accent); font-size: .82rem; margin-bottom: 8px; }
    .featured-biz .fb-detail { font-size: .82rem; color: var(--text-muted); line-height: 1.6; }
    .featured-biz .fb-detail a { color: var(--accent); }

    /* ========== CTA ========== */
    .cta-row {
      display: flex; align-items: center; justify-content: space-between;
      flex-wrap: wrap; gap: 24px;
    }
    .cta-row h2 { font-size: 1.5rem; font-weight: 800; }
    .cta-row p { opacity: .7; margin-top: 4px; font-size: .95rem; }
    .cta-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

    /* ========== SIGNUP ========== */
    .signup-row {
      display: flex; gap: 10px; max-width: 480px; margin: 16px auto 0;
      flex-wrap: wrap; width: 100%; box-sizing: border-box;
    }
    .signup-row .form-control { flex: 1; min-width: 0; width: 100%; box-sizing: border-box; }
    .signup-row .btn { white-space: nowrap; }

    /* ========== BUTTONS ========== */
    .btn {
      display: inline-block; padding: 11px 24px; border-radius: 6px; font-weight: 700;
      font-size: .88rem; text-decoration: none; border: none; cursor: pointer;
      font-family: inherit; transition: filter .15s, transform .1s;
    }
    .btn:hover { filter: brightness(1.08); text-decoration: none; transform: translateY(-1px); }
    .btn-accent { background: var(--accent); color: #fff; }
    .btn-primary { background: var(--primary); color: #fff; }
    .btn-secondary { background: var(--accent); color: #fff; }
    .btn-outline-white { background: transparent; border: 2px solid rgba(255,255,255,.5); color: #fff; }
    .btn-outline { background: transparent; border: 2px solid var(--border); color: var(--text); }
    .btn-sm { padding: 8px 16px; font-size: .82rem; }

    /* ========== EXISTING PAGE STYLES ========== */
    .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
    .card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
    .card {
      display: block;
      background: var(--surface); border-radius: var(--radius);
      box-shadow: var(--shadow); overflow: hidden; transition: box-shadow .2s, transform .2s;
      border: 1px solid var(--border);
    }
    .card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
    .card-img { width: 100%; height: 180px; object-fit: cover; display: block; background: #e5e7eb; }
    .card-body { padding: 18px; }
    .card-body h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; line-height: 1.3; }
    .card-body .meta { font-size: .85rem; color: var(--text-muted); margin-bottom: 8px; }
    .card-body p { font-size: .9rem; color: var(--text-muted); line-height: 1.5; }
    .biz-card-photo { width: 100%; height: 160px; object-fit: cover; display: block; }
    .biz-card-initial {
      width: 100%; height: 160px; display: flex; align-items: center; justify-content: center;
      background: linear-gradient(135deg, var(--accent), var(--primary));
      font-size: 2.5rem; font-weight: 800; color: rgba(255,255,255,.5);
      text-transform: uppercase;
    }
    .category-label, .sec-label, .biz-category, .spot-cat { text-transform: capitalize; }
    .biz-card .biz-category {
      display: inline-block; font-size: .78rem; background: var(--cream); color: var(--primary);
      padding: 2px 8px; border-radius: 4px; font-weight: 500; margin-bottom: 6px;
    }
    .biz-card .biz-info { font-size: .85rem; color: var(--text-muted); }
    .biz-card .biz-info span { display: block; margin-bottom: 2px; }
    .biz-card .stars { color: var(--accent); font-size: .85rem; }
    .biz-card .stars .count { color: var(--text-muted); font-weight: 400; }
    .biz-card-website { color: var(--accent); cursor: pointer; }
    .biz-card-website:hover { text-decoration: underline; }
    .badge-featured {
      display: inline-block; font-size: .7rem; background: #fef3c7; color: #92400e;
      padding: 2px 8px; border-radius: 4px; font-weight: 600; text-transform: uppercase;
    }

    .cards-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

    /* FILTER BAR */
    .filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
    .filter-btn {
      padding: 6px 14px; border-radius: 20px; font-size: .82rem; font-weight: 500;
      border: 1.5px solid var(--border); background: var(--surface); color: var(--text-muted);
      cursor: pointer; font-family: inherit; transition: all .15s;
    }
    .filter-btn:hover, .filter-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
    .pagination { display: flex; gap: 6px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
    .pagination a, .pagination span {
      padding: 8px 14px; border-radius: 6px; font-size: .85rem; font-weight: 500;
      border: 1px solid var(--border); color: var(--text-muted);
    }
    .pagination a:hover { background: var(--accent); color: #fff; border-color: var(--accent); text-decoration: none; }
    .pagination .current { background: var(--accent); color: #fff; border-color: var(--accent); }

    /* SEARCH BAR */
    .search-bar {
      display: flex; margin-bottom: 24px; border-radius: 8px; overflow: hidden;
      box-shadow: var(--shadow); max-width: 600px;
    }
    .search-bar input {
      flex: 1; padding: 12px 16px; border: 1px solid var(--border); border-right: none;
      font-size: .95rem; outline: none; font-family: inherit; border-radius: 8px 0 0 8px;
    }
    .search-bar button {
      padding: 12px 20px; background: var(--accent); color: #fff; border: none;
      font-weight: 600; cursor: pointer; font-family: inherit;
    }

    /* FORM */
    .form-group { margin-bottom: 16px; }
    .form-group label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 4px; }
    .form-group small { color: var(--text-muted); font-size: .8rem; }
    .form-control {
      width: 100%; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: 6px;
      font-size: .95rem; font-family: inherit; outline: none; transition: border-color .15s;
    }
    .form-control:focus { border-color: var(--accent); }
    textarea.form-control { resize: vertical; min-height: 80px; }
    .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    .alert { padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; font-size: .9rem; }
    .alert-success { background: #dcfce7; color: #166534; }
    .alert-error { background: #fef2f2; color: #991b1b; }

    /* PROFILE */
    .profile-header { margin-bottom: 32px; }
    .profile-header h1 { font-size: 1.8rem; font-weight: 800; margin-bottom: 8px; }
    .profile-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: .9rem; color: var(--text-muted); margin-bottom: 16px; }
    .profile-meta span { display: flex; align-items: center; gap: 4px; }
    .profile-photos { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 24px; }
    .profile-photos img { height: 200px; width: auto; border-radius: 8px; flex-shrink: 0; }
    .profile-hours { font-size: .9rem; }
    .profile-hours dt { font-weight: 600; }
    .profile-hours dd { color: var(--text-muted); margin-bottom: 4px; margin-left: 0; }
    .profile-map { width: 100%; height: 300px; border: none; border-radius: 8px; margin-top: 24px; }
    .article-header { margin-bottom: 24px; }
    .article-header h1 { font-size: 1.8rem; font-weight: 800; line-height: 1.3; margin-bottom: 8px; }
    .article-meta { font-size: .88rem; color: var(--text-muted); margin-bottom: 16px; }
    .article-image { width: 100%; max-height: 400px; object-fit: cover; border-radius: var(--radius); margin-bottom: 16px; }
    .article-body { line-height: 1.8; font-size: 1.02rem; }
    .article-body p { margin-bottom: 16px; }
    .empty-state { color: var(--text-muted); font-size: .95rem; }

    /* ========== FOOTER ========== */
    .site-footer {
      background: var(--primary); color: rgba(255,255,255,.75);
      padding: 48px 24px 28px; font-size: .88rem;
      overflow: hidden; width: 100%; box-sizing: border-box;
    }
    .footer-grid {
      max-width: 1100px; margin: 0 auto;
      display: grid; grid-template-columns: 2fr 1fr 1.5fr; gap: 40px;
      margin-bottom: 32px;
      overflow: hidden; width: 100%; box-sizing: border-box;
    }
    .footer-heading { font-weight: 700; color: #fff; font-size: .95rem; margin-bottom: 10px; }
    .footer-about-logo { height: 36px; margin-bottom: 10px; border-radius: 4px; }
    .footer-about p { line-height: 1.6; opacity: .75; }
    .footer-links-list { list-style: none; }
    .footer-links-list li { margin-bottom: 6px; }
    .footer-links-list a { color: rgba(255,255,255,.65); transition: color .15s; }
    .footer-links-list a:hover { color: #fff; text-decoration: none; }
    .footer-nl-fields { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; width: 100%; box-sizing: border-box; }
    .footer-nl-fields input {
      flex: 1; padding: 8px 10px; border: 1px solid rgba(255,255,255,.15); border-radius: 5px;
      background: rgba(255,255,255,.08); color: #fff; font-size: .85rem; font-family: inherit;
      outline: none; min-width: 0;
    }
    .footer-nl-fields input::placeholder { color: rgba(255,255,255,.35); }
    .footer-nl-fields button {
      padding: 8px 14px; background: var(--accent); color: #fff; border: none;
      border-radius: 5px; font-weight: 600; font-size: .82rem; cursor: pointer;
      font-family: inherit; white-space: nowrap;
    }
    .footer-bottom {
      max-width: 1100px; margin: 0 auto; padding-top: 20px;
      border-top: 1px solid rgba(255,255,255,.1);
      text-align: center; font-size: .75rem; opacity: .45;
    }
    .google-photo-attr {
      font-size: 0.8rem;
      color: #94a3b8;
      text-align: center;
      margin-top: 24px;
      padding-bottom: 16px;
    }

    /* ========== RESPONSIVE ========== */
    @media (max-width: 768px) {
      .site-nav { padding: 0 16px; }
      .nav-links {
        display: none; position: absolute; top: 66px; left: 0; right: 0;
        background: rgba(10,20,45,0.95); flex-direction: column; padding: 8px 16px 16px;
        gap: 0; box-shadow: 0 8px 20px rgba(0,0,0,.2); z-index: 99;
      }
      .nav-links.open { display: flex; }
      .nav-links a { padding: 12px 14px; }
      .nav-toggle { display: block; }
      .hero { padding-bottom: 80px; }
      .hero-body { padding: 16px 16px 0; }
      .hero h1 { font-size: 2rem; }
      .hero-tagline { font-size: .95rem; }
      .spotlight-section { padding: 0 16px; margin-top: -60px; }
      .spotlight-grid { grid-template-columns: repeat(2, 1fr); }
      .two-col { grid-template-columns: 1fr; }
      .cards-row { grid-template-columns: 1fr; }
      .card-grid { grid-template-columns: 1fr; }
      .form-row { grid-template-columns: 1fr; }
      .footer-grid { grid-template-columns: 1fr; gap: 28px; width: 100%; overflow: hidden; }
      .footer-nl-fields { flex-wrap: wrap; }
      .footer-nl-fields input { width: 100%; min-width: 0; box-sizing: border-box; }
      .footer-nl-fields button { width: 100%; }
      * { max-width: 100%; }
      .section { padding: 36px 16px; }
      .cta-row { text-align: center; justify-content: center; }
      .cta-buttons { justify-content: center; }
      .signup-row { flex-direction: column; width: 100%; }
      .signup-row .form-control { width: 100%; min-width: 0; }
      .signup-row .btn { width: 100%; }
    }
    @media (max-width: 480px) {
      .spotlight-grid { grid-template-columns: 1fr 1fr; }
    }

/* ================= BUSINESS-PROFILE ================= */
      .pp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-bottom: 28px; }
      .pp-card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 16px; }
      .pp-badge { display: inline-block; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; text-transform: uppercase; margin-bottom: 8px; }
      .pp-title { font-weight: 700; line-height: 1.3; margin-bottom: 4px; }
      .pp-meta { font-size: .82rem; color: var(--text-muted); }
      .pp-code { font-family: monospace; font-size: .85rem; background: var(--gray); border: 1.5px dashed var(--border); border-radius: 5px; padding: 2px 8px; }

/* ================= DEALS ================= */
  .deals-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .deal-card {
    background: var(--surface); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); border: 1px solid var(--border);
    transition: box-shadow .2s, transform .2s; position: relative; padding: 20px;
  }
  .deal-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
  .deal-badge {
    display: inline-block; background: var(--accent); color: #fff;
    font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 20px;
    margin-bottom: 10px; text-transform: uppercase; letter-spacing: .03em;
  }
  .deal-biz { font-size: .82rem; color: var(--accent); font-weight: 600; margin-bottom: 4px; }
  .deal-biz a { color: var(--accent); }
  .deal-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; line-height: 1.3; }
  .deal-desc { font-size: .88rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 12px; }
  .deal-code {
    display: inline-block; background: var(--gray); border: 1.5px dashed var(--border);
    padding: 6px 14px; border-radius: 6px; font-family: monospace; font-size: .88rem;
    font-weight: 600; color: var(--text); cursor: pointer; margin-bottom: 8px;
    transition: background .15s;
  }
  .deal-code:hover { background: #e8e5df; }
  .deal-code-copied { background: #dcfce7 !important; border-color: #86efac; }
  .deal-expiry { font-size: .8rem; color: var(--text-muted); margin-top: 4px; }
  .deal-cta {
    display: inline-block; margin-top: 10px; padding: 8px 18px; background: var(--accent); color: #fff;
    border-radius: 6px; font-weight: 700; font-size: .85rem; text-decoration: none;
    transition: filter .15s;
  }
  .deal-cta:hover { filter: brightness(1.1); text-decoration: none; }

  /* Submit form */
  .deal-submit-section {
    background: var(--cream); border-radius: var(--radius); padding: 32px;
    margin-top: 40px; text-align: center;
  }
  .deal-submit-form { max-width: 560px; margin: 20px auto 0; text-align: left; }
  .deal-submit-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

  @media (max-width: 768px) {
    .deals-grid { grid-template-columns: 1fr; }
    .deal-submit-form .form-row { grid-template-columns: 1fr; }
  }

/* ================= GUIDES ================= */
  .guides-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
  .guide-link {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 0; border-bottom: 1px solid var(--border);
    text-decoration: none; color: var(--text); transition: color .15s;
  }
  .guide-link:hover { color: var(--accent); text-decoration: none; }
  .guide-link-name { font-weight: 600; font-size: .95rem; }
  .guide-link-count {
    background: var(--cream); color: var(--accent); font-size: .78rem;
    font-weight: 600; padding: 2px 10px; border-radius: 20px;
  }
  @media (max-width: 768px) { .guides-two-col { grid-template-columns: 1fr; } }

/* ================= NEIGHBORHOOD-GUIDE ================= */
/* Stats bar */
.nh-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 28px; }
.nh-stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 12px; text-align: center;
}
.nh-stat-num { font-size: 1.6rem; font-weight: 800; color: var(--primary); line-height: 1; }
.nh-stat-label { font-size: .78rem; color: var(--text-muted); margin-top: 4px; }

/* Filter tabs */
.nh-filter-bar {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px;
  border-bottom: 2px solid var(--border); padding-bottom: 10px;
}
.nh-filter-btn {
  padding: 6px 16px; border-radius: 20px; border: 1.5px solid var(--border);
  background: var(--surface); color: var(--text); font-size: .85rem; font-weight: 500;
  cursor: pointer; transition: all .15s; white-space: nowrap;
}
.nh-filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.nh-filter-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* View toggle */
.nh-view-toggle { display: flex; gap: 0; border: 1.5px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.nh-view-btn {
  padding: 6px 14px; font-size: .82rem; font-weight: 600; cursor: pointer;
  background: var(--surface); color: var(--text-muted); border: none; transition: all .15s;
}
.nh-view-btn.active { background: var(--primary); color: #fff; }

/* Featured badge */
.nh-badge-featured {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  background: var(--accent); color: #fff; font-size: .68rem; font-weight: 700;
  padding: 3px 10px; border-radius: 20px; text-transform: uppercase; letter-spacing: .03em;
}

/* Card photo wrapper for badge positioning */
.nh-photo-wrap { position: relative; }

/* Map container */
#nh-map { width: 100%; height: 420px; border-radius: var(--radius); border: 1px solid var(--border); }

/* Review cards */
.nh-review {
  padding: 14px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 10px;
}
.nh-review-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.nh-review-biz { font-weight: 700; font-size: .88rem; color: var(--primary); }
.nh-review-by { font-size: .82rem; color: var(--text-muted); }
.nh-review-stars { color: var(--accent); font-size: .82rem; }
.nh-review-text { font-size: .85rem; color: var(--text-muted); line-height: 1.5; margin: 0; }
.nh-review-date { font-size: .75rem; color: var(--text-muted); margin-top: 4px; }

/* Related pills */
.nh-pill {
  display: inline-block; padding: 8px 18px; border-radius: 20px;
  background: var(--surface); border: 1.5px solid var(--border); color: var(--text);
  font-size: .88rem; font-weight: 500; text-decoration: none; transition: all .15s;
}
.nh-pill:hover { background: var(--accent); color: #fff; border-color: var(--accent); text-decoration: none; }

/* Newsletter strip */
.nh-newsletter {
  background: var(--primary); color: #fff; padding: 36px 20px; text-align: center;
  border-radius: var(--radius); margin-top: 36px;
}
.nh-newsletter h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 6px; }
.nh-newsletter p { font-size: .9rem; opacity: .85; margin-bottom: 16px; }
.nh-nl-row { display: flex; gap: 8px; max-width: 440px; margin: 0 auto; }
.nh-nl-row input {
  flex: 1; padding: 10px 14px; border: none; border-radius: var(--radius);
  font-size: .9rem; outline: none;
}
.nh-nl-row button {
  padding: 10px 20px; border: none; border-radius: var(--radius);
  background: var(--accent); color: #fff; font-weight: 700; font-size: .88rem;
  cursor: pointer; transition: filter .15s; white-space: nowrap;
}
.nh-nl-row button:hover { filter: brightness(1.1); }
.nh-nl-msg { margin-top: 12px; font-size: .88rem; }

/* Flat grid for filtered view */
.nh-biz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }

@media (max-width: 640px) {
  .nh-stats { grid-template-columns: repeat(2, 1fr); }
  .nh-nl-row { flex-direction: column; }
}

/* ================= SPOTLIGHT ================= */
  .spotlight-hero {
    width: 100%; height: 400px; object-fit: cover; display: block;
    position: relative;
  }
  .spotlight-hero-wrap {
    position: relative; margin-bottom: 32px;
  }
  .spotlight-hero-wrap::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 50%;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.4));
    pointer-events: none;
  }
  .spotlight-credit {
    position: absolute; bottom: 8px; right: 12px; z-index: 1;
    font-size: .72rem; color: rgba(255,255,255,0.6);
  }
  .spotlight-article { max-width: 720px; margin: 0 auto; }
  .spotlight-badge {
    display: inline-block; background: var(--accent); color: #fff;
    font-size: .7rem; font-weight: 700; padding: 3px 10px; border-radius: 20px;
    text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px;
  }
  .spotlight-biz-label {
    font-size: .88rem; color: var(--accent); font-weight: 600; margin-bottom: 6px;
  }
  .spotlight-title {
    font-size: 2.2rem; font-weight: 800; letter-spacing: -.02em;
    line-height: 1.2; margin-bottom: 12px;
  }
  .spotlight-date {
    font-size: .85rem; color: var(--text-muted); margin-bottom: 20px;
  }
  .spotlight-intro {
    font-size: 1.1rem; font-style: italic; color: var(--text-muted);
    line-height: 1.7; margin-bottom: 28px; border-left: 3px solid var(--accent);
    padding-left: 16px;
  }
  .spotlight-body { line-height: 1.8; font-size: 1rem; }
  .spotlight-body p { margin-bottom: 16px; }
  .spotlight-biz-card {
    margin-top: 40px; padding: 20px; background: var(--cream);
    border: 1.5px solid var(--border-warm); border-radius: var(--radius);
  }
  .spotlight-biz-card h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
  .spotlight-biz-card .meta { font-size: .85rem; color: var(--text-muted); line-height: 1.6; }
  .spotlight-biz-card .meta a { color: var(--accent); }
  @media (max-width: 768px) {
    .spotlight-hero { height: 240px; }
    .spotlight-title { font-size: 1.6rem; }
  }

/* ================= THEME PREVIEW BAR =================
 * Shown only to a visitor previewing a theme from Site Settings. Plain on
 * purpose, and not styled by themes, so it reads the same over any of them. */
.theme-preview-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: #111827; color: #f9fafb; font: 500 .9rem/1.4 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  text-align: center; box-shadow: 0 -4px 16px rgba(0, 0, 0, .25);
}
.theme-preview-bar strong { font-weight: 700; }
.theme-preview-bar a { color: #fcd34d; margin-left: 10px; text-decoration: underline; }
body:has(.theme-preview-bar) { padding-bottom: 48px; }

/* ================= BUILDING BLOCKS =================
 * Declared last, so like the inline styles they replace they win over the
 * rules above at equal specificity. */
.page-narrow { max-width:680px;margin:0 auto; }
.page-title-sm { font-size:1.6rem;margin-bottom:8px; }
.page-intro { color:var(--text-muted);margin-bottom:24px; }
.form-panel { background:var(--surface);padding:24px;border-radius:var(--radius);box-shadow:var(--shadow); }
.form-trap { position:absolute;left:-9999px; }
.form-divider { border-top:1px solid var(--border);margin:20px 0;padding-top:16px; }
.btn-block { width:100%; }
.mb-16 { margin-bottom:16px; }
.back-link { font-size:.9rem; }
.profile-category { font-size:.85rem; }
.pp-heading { font-size:1.2rem;font-weight:800;margin:8px 0 12px; }
.mb-8 { margin-bottom:8px; }
.mb-6 { margin-bottom:6px; }
.card-link { text-decoration:none;color:inherit; }
.mb-24 { margin-bottom:24px; }
.profile-subhead { font-size:1.1rem;margin-bottom:8px; }
.mt-40 { margin-top:40px; }
.profile-section-title { font-size:1.3rem;font-weight:800;margin-bottom:20px; }
.review-item { border-bottom:1px solid var(--border);padding:16px 0; }
.review-item-head { display:flex;align-items:center;gap:10px;margin-bottom:6px; }
.review-item-stars { color:var(--accent);font-size:.95rem; }
.review-item-author { font-size:.92rem; }
.review-item-date { font-size:.8rem;color:var(--text-muted); }
.review-item-text { font-size:.9rem;color:var(--text-muted);line-height:1.6;margin:0; }
.text-muted-lg { color:var(--text-muted);font-size:.95rem; }
.review-form { margin-top:32px;padding:24px;background:var(--cream);border-radius:var(--radius); }
.review-form-title { font-size:1.1rem;font-weight:700;margin-bottom:16px; }
.form-alert { display:none;margin-bottom:16px; }
.is-hidden { display:none; }
.form-grid-2 { display:grid;grid-template-columns:1fr 1fr;gap:12px; }
.text-light, .form-group small.text-light { color:var(--text-light); }
.star-picker { display:flex;gap:4px;cursor:pointer;font-size:1.6rem;color:var(--border);user-select:none; }
.page-title-list { font-size:1.6rem;margin-bottom:20px; }
.results-count { font-size:.88rem;color:var(--text-muted);margin-bottom:16px; }
.empty-state-card { text-align:center;color:var(--text-muted);padding:40px; }
.guide-link-more { font-size:.85rem;color:var(--accent);font-weight:500; }
.page-title { font-size:1.6rem;margin-bottom:4px; }
.page-intro-lg { color:var(--text-muted);margin-bottom:32px; }
.mb-36 { margin-bottom:36px; }
.deal-cta-block { display:block;text-align:center; }
.deal-note { margin-top:8px;font-size:.82rem;color:var(--text-muted); }
.deal-submit-title { font-size:1.3rem;font-weight:800;margin-bottom:4px; }
.mt-12 { margin-top:12px; }
.mt-8 { margin-top:8px; }
.article-column { max-width:780px;margin:0 auto; }
.article-credit { font-size:.78rem;color:var(--text-muted);margin-top:-8px;margin-bottom:16px; }
.event-facts { background:var(--surface);border-radius:var(--radius);padding:20px;margin-bottom:24px;box-shadow:var(--shadow); }
.mt-4 { margin-top:4px; }
.article-summary { color:var(--text-muted);font-style:italic;font-size:1.05rem;margin-bottom:24px; }
.article-source { margin-top:24px;padding-top:16px;border-top:1px solid var(--border);font-size:.88rem;color:var(--text-muted); }
.section-flush-bottom { padding-bottom:0; }
.offer-photo { flex:1 1 260px;min-height:200px;background:var(--gray) var(--offer-photo) center/cover no-repeat; }
.offer-card { display:flex;flex-wrap:wrap;border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;background:var(--surface);box-shadow:var(--shadow); }
.offer-body { flex:2 1 320px;padding:24px 28px; }
.offer-badge { display:inline-block;background:var(--accent);color:#fff;font-size:.78rem;font-weight:700;padding:4px 12px;border-radius:20px;text-transform:uppercase;letter-spacing:.03em;margin-bottom:10px; }
.offer-biz { font-size:.85rem;font-weight:600;margin-bottom:4px; }
.text-accent { color:var(--accent); }
.offer-title { font-size:1.35rem;font-weight:800;line-height:1.25;margin-bottom:8px; }
.offer-desc { color:var(--text-muted);font-size:.95rem;line-height:1.5;margin:0 0 12px; }
.offer-actions { display:flex;flex-wrap:wrap;gap:12px;align-items:center; }
.offer-code { font-size:.9rem;background:var(--gray);padding:6px 14px;border-radius:6px;border:1.5px dashed var(--border);font-weight:600; }
.offer-cta { display:inline-block;padding:9px 20px;background:var(--accent);color:#fff;border-radius:6px;font-weight:700;font-size:.88rem;text-decoration:none; }
.offer-expiry { font-size:.8rem;color:var(--text-light); }
.mt-16 { margin-top:16px; }
.sec-label-tight { margin-bottom:10px; }
.section-flush-top { padding-top:0; }
.cards-row-tight { gap:16px; }
.deal-row { display:flex;gap:14px;align-items:flex-start;padding:16px;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface); }
.deal-row-badge { flex-shrink:0;background:var(--accent);color:#fff;font-size:.72rem;font-weight:700;padding:6px 10px;border-radius:8px;text-transform:uppercase;text-align:center;min-width:56px;line-height:1.2; }
.deal-row-icon { flex-shrink:0;background:var(--cream);color:var(--accent);font-size:1.1rem;width:44px;height:44px;display:flex;align-items:center;justify-content:center;border-radius:8px; }
.deal-row-body { flex:1;min-width:0; }
.deal-row-title { font-weight:700;font-size:.92rem;margin-bottom:2px;line-height:1.3; }
.deal-row-desc { font-size:.82rem;color:var(--text-muted);margin-bottom:4px;line-height:1.4; }
.deal-row-code { font-size:.78rem;background:var(--gray);padding:2px 8px;border-radius:4px;border:1px dashed var(--border); }
.deal-row-expiry { font-size:.75rem;color:var(--text-light);margin-top:4px; }
.story-card { display:flex;gap:24px;align-items:stretch;text-decoration:none;color:inherit;border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;background:var(--surface);transition:box-shadow .2s; }
.story-media { position:relative;flex-shrink:0;width:280px;min-height:180px; }
.story-img { width:100%;height:100%;object-fit:cover;display:block; }
.story-badge { position:absolute;top:12px;left:12px;background:var(--accent);color:#fff;font-size:.68rem;font-weight:700;padding:3px 10px;border-radius:20px;text-transform:uppercase;letter-spacing:.05em; }
.story-body { padding:20px;flex:1;display:flex;flex-direction:column;justify-content:center; }
.story-biz { font-size:.82rem;color:var(--accent);font-weight:600;margin-bottom:4px; }
.story-title { font-size:1.15rem;font-weight:700;line-height:1.3;margin-bottom:8px; }
.story-intro { font-size:.88rem;color:var(--text-muted);line-height:1.5;margin-bottom:12px; }
.story-more { font-size:.85rem;font-weight:600;color:var(--accent); }
.chip-row { display:flex;flex-wrap:wrap;gap:10px;margin-bottom:16px; }
.chip-link { display:inline-block;padding:8px 18px;border-radius:20px;background:var(--surface);border:1.5px solid var(--border);color:var(--text);font-size:.88rem;font-weight:500;text-decoration:none;transition:all .15s; }
.chip-count { opacity:.5;font-size:.8rem; }
.section-center { text-align:center; }
.section-inner-narrow { max-width:560px; }
.nav-band { background:var(--primary); }
.dim-70 { opacity:.7; }
.notice-ok { color:#86efac;font-size:.85rem;margin-bottom:8px; }
.notice-err { color:#fca5a5;font-size:.85rem;margin-bottom:8px; }
.page-intro-sm { color:var(--text-muted);margin-bottom:20px; }
.nh-stat-num-sm { font-size:1rem; }
.nh-header-row { display:flex;justify-content:space-between;align-items:flex-start;flex-wrap:wrap;gap:12px;margin-bottom:20px; }
.nh-filter-bar-flush { margin-bottom:0;border-bottom:none;padding-bottom:0; }
.nh-heading { font-size:1.2rem;font-weight:800;margin-bottom:16px; }
.mt-36 { margin-top:36px; }
.nh-heading-sm { font-size:1.2rem;font-weight:800;margin-bottom:14px; }
.nh-pill-row { display:flex;flex-wrap:wrap;gap:10px; }
.nh-star-accent { color:#e85d26; }
.notfound-section { text-align:center;padding:80px 20px; }
.notfound-title { font-size:2rem;margin-bottom:12px; }
.mb-20 { margin-bottom:20px; }
.spotlight-placeholder { background:linear-gradient(135deg,var(--accent),var(--primary));display:flex;align-items:center;justify-content:center;color:rgba(255,255,255,.4);font-size:.85rem;font-weight:600; }
.spotlight-card-biz { font-size:.78rem;color:var(--accent);font-weight:600;margin-bottom:4px; }
.spotlight-card-more { font-size:.84rem;font-weight:600;color:var(--accent); }

/* ================= HOME: rotating hero + modules (home-community.php) =================
 * Building blocks of the new home page. The selectors are classes only that
 * page uses, except .spot-card's position, which moves nothing elsewhere. */
.home-hero { padding-bottom: 48px; }
.home-hero-inner {
  position: relative; z-index: 1;
  max-width: 1100px; margin: 0 auto; padding: 24px 40px 0;
}
.home-hero-inner > .hero-body { margin: 0; padding-left: 0; padding-right: 0; max-width: none; }
.home-hero-inner.has-feature {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center;
}
/* The feature panel: what this variant is showing off */
.hero-feature {
  background: var(--surface); color: var(--text);
  border-radius: 14px; padding: 20px 22px;
  box-shadow: 0 8px 28px rgba(0,0,0,.18);
}
.hero-feature-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
  color: var(--primary); margin-bottom: 12px;
}
.hero-feature .event-list-item:last-of-type { border-bottom: 0; }
.hero-feature .deal-row + .deal-row, .hero-feature .news-list-item + .news-list-item { margin-top: 10px; }
.hero-feature .section-link { display: inline-block; margin-top: 12px; }
.hero-feature-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hero-feature-tiles .spot-card-photo, .hero-feature-tiles .spot-card-initial { height: 96px; }
/* Welcome variant: category shortcuts under the search box */
.hero-shortcuts { margin: 18px 0 0; gap: 8px; }
.hero-shortcuts .chip-link {
  background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.4); color: #fff;
  padding: 6px 14px; font-size: .82rem;
}
.hero-shortcuts .chip-link:hover { background: rgba(255,255,255,.22); text-decoration: none; }

/* Modules: consecutive white sections share one gap instead of two */
.section-white.home-module + .section-white.home-module { padding-top: 0; }
.home-module .section-link { display: inline-block; margin-top: 14px; }
.home-module a.nh-review { display: block; margin-bottom: 0; }
.home-module a.nh-review:hover, a.deal-row:hover { border-color: var(--accent); text-decoration: none; }
a.deal-row { color: inherit; }

/* Business strip: tiles with a "Featured" mark on upgraded listings */
.spot-card { position: relative; }
.spot-card .badge-featured { position: absolute; top: 10px; left: 10px; z-index: 2; }
.biz-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.biz-strip .spot-card { box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.biz-strip .spot-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.14); }

/* Happening soon: two columns of event rows */
.event-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.event-grid > .event-list-item:where(:nth-child(2)) { padding-top: 0; }

@media (max-width: 768px) {
  .home-hero { padding-bottom: 32px; }
  .home-hero-inner { padding: 16px 16px 0; }
  .home-hero-inner.has-feature { grid-template-columns: 1fr; gap: 24px; }
  .hero-feature { padding: 16px; }
  .hero-feature-tiles .spot-card-photo, .hero-feature-tiles .spot-card-initial { height: 72px; }
  /* The strip scrolls sideways on phones, a tile and a bit at a time */
  .biz-strip {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 68%;
    overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }
  .biz-strip > .spot-card { scroll-snap-align: start; }
  .event-grid { grid-template-columns: 1fr; }
  .event-grid > .event-list-item:where(:nth-child(2)) { padding-top: 12px; }
}
