/* ============================================
   Minehead Shop Local - Main Stylesheet
   Dark blue, light blue & green theme
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap');

:root {
    --primary-dark: #1a3552;
    --primary: #224668;
    --primary-light: #489dd6;
    --primary-pale: #e3f2fb;
    --accent: #41a855;
    --accent-dark: #348a45;
    --accent-light: #5bba6a;
    --accent-pale: #e8f7ea;
    --hover: #f2f050;
    --cream: #f5f9fc;
    --white: #ffffff;
    --gray-100: #f5f6f8;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-600: #6b7280;
    --gray-800: #1f2937;
    --text: #224668;
    --radius: 10px;
    --shadow: 0 2px 8px rgba(34,70,104,0.08);
    --shadow-lg: 0 4px 24px rgba(34,70,104,0.12);
    --transition: 0.2s ease;
    /* Legacy aliases for admin section */
    --green-dark: var(--primary-dark);
    --green-mid: var(--primary);
    --green-pale: var(--primary-pale);
    --earth-brown: var(--primary-dark);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    background: var(--cream);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--primary-light);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: var(--primary-dark);
    color: var(--white);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

.logo {
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 44px;
    width: auto;
}

.logo-combined {
    height: 52px;
    width: auto;
    border-radius: 6px;
    object-fit: contain;
}


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

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
}

.main-nav {
    display: flex;
    gap: 4px;
}

.main-nav a {
    color: rgba(255,255,255,0.85);
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
    background: rgba(255,255,255,0.12);
    color: var(--hover);
}

/* Hero */
.hero {
    background: linear-gradient(135deg, rgba(26,53,82,0.85) 0%, rgba(34,70,104,0.78) 60%, rgba(72,157,214,0.65) 100%),
                url('/uploads/7ba86455852bfd2d_banner-003.jpg') center/cover no-repeat;
    color: var(--white);
    padding: 70px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-logo {
    width: 220px;
    height: auto;
    margin: 0 auto 28px;
    display: block;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.25);
}

.hero h2 {
    font-size: 2.4rem;
    margin-bottom: 12px;
    font-weight: 800;
    position: relative;
}

.hero p {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 30px;
    position: relative;
}

/* Search */
.search-bar {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    box-shadow: var(--shadow-lg);
    outline: none;
}

.search-bar input:focus {
    box-shadow: 0 0 0 3px rgba(65,168,85,0.35), var(--shadow-lg);
}

/* Hero — List Your Business CTA */
.hero-list-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
}

.hero-list-cta-divider {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.7;
    color: var(--white);
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-list-cta-divider::before,
.hero-list-cta-divider::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: rgba(255,255,255,0.45);
}

@keyframes cta-bounce {
    0%, 100% { transform: translateY(0);        box-shadow: 0 4px 20px rgba(249,115,22,0.45); }
    50%       { transform: translateY(-7px);    box-shadow: 0 10px 28px rgba(249,115,22,0.35); }
}

.btn-cta {
    background: #f97316;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 15px 36px;
    border-radius: 50px;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 20px rgba(249,115,22,0.45);
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    animation: cta-bounce 2s ease-in-out infinite;
}

.btn-cta:hover {
    background: #ea6c0a;
    color: #fff;
    animation-play-state: paused;
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(249,115,22,0.55);
}

/* Category Grid */
.categories-section {
    background: var(--white);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    max-width: 960px;
    margin: 0 auto;
}

.category-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 28px 12px 22px;
    border-radius: 12px;
    background: var(--cream);
    text-align: center;
    color: var(--text);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    border: 1px solid var(--gray-200);
}

.category-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(34, 70, 104, 0.12);
    background: var(--white);
    border-color: var(--accent);
}

.category-tile:hover .cat-icon {
    background: var(--accent);
    box-shadow: 0 4px 14px rgba(65, 168, 85, 0.3);
}

.category-tile.active {
    border-color: var(--accent);
    background: var(--accent-pale);
}

.category-tile .cat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--primary);
    font-size: 1.6rem;
    line-height: 1;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
}

.category-tile .cat-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.3;
}

.category-tile .cat-count {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-600);
    line-height: 1;
}

@media (max-width: 900px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
}

@media (max-width: 520px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .category-tile {
        padding: 20px 8px 16px;
        gap: 8px;
    }

    .category-tile .cat-icon {
        width: 48px;
        height: 48px;
        font-size: 1.35rem;
        border-radius: 12px;
    }

    .category-tile .cat-name {
        font-size: 0.82rem;
    }
}

/* Listings Grid */
.section {
    padding: 50px 0;
}

.section-title {
    font-size: 1.6rem;
    color: var(--primary-dark);
    margin-bottom: 30px;
    text-align: center;
    font-weight: 800;
}

.section-subtitle {
    text-align: center;
    color: var(--gray-600);
    margin-top: -20px;
    margin-bottom: 30px;
    font-size: 1rem;
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.listing-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}

.listing-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.listing-card-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: var(--gray-200);
}

.listing-card-image.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-300);
    font-size: 3rem;
}

.listing-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.listing-card-body h3 {
    font-size: 1.05rem;
    color: var(--primary-dark);
    margin-bottom: 6px;
    font-weight: 700;
}

.listing-card-body .category-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-dark);
    background: var(--accent-pale);
    padding: 2px 8px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.listing-card-body .description-snippet {
    font-size: 0.82rem;
    color: var(--gray-600);
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.listing-card-body .address {
    font-size: 0.82rem;
    color: var(--gray-600);
    margin-bottom: 6px;
}

.listing-card-body .phone {
    font-size: 0.88rem;
    color: var(--primary-dark);
    font-weight: 700;
    margin-top: auto;
}

.listing-card-body .phone a {
    color: var(--primary-dark);
}

/* Single Listing - Redesigned */
.listing-detail {
    padding: 24px 0 80px;
}

/* ── Intro Section ── */
.ld-intro {
    margin-bottom: 20px;
}
.ld-intro h1 {
    font-size: 2rem;
    color: var(--primary-dark);
    margin: 0 0 8px;
    font-weight: 800;
    line-height: 1.2;
}
.ld-intro-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.ld-rating {
    display: flex;
    align-items: center;
    gap: 6px;
}
.ld-rating-text {
    font-size: 0.85rem;
    color: var(--gray-600);
}
.ld-address {
    margin: 0;
    color: var(--gray-600);
    font-size: 0.95rem;
}

/* ── Contact Action Buttons ── */
.ld-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 28px;
}
.ld-action-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all var(--transition);
    box-shadow: var(--shadow);
}
.ld-action-btn svg {
    flex-shrink: 0;
}
.ld-action-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}
.ld-action-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.85;
}
.ld-action-detail {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ld-action-call {
    background: #41a855;
    color: #fff;
}
.ld-action-call:hover {
    background: #348a45;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.ld-action-email {
    background: var(--primary);
    color: #fff;
}
.ld-action-email:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.ld-action-web {
    background: var(--accent);
    color: #fff;
}
.ld-action-web:hover {
    background: var(--accent-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ── Two-Column Content ── */
.ld-content {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 28px;
    align-items: start;
}
.ld-main {
    min-width: 0;
}
.ld-sidebar {
    position: sticky;
    top: 24px;
}

/* ── Cards ── */
.ld-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 20px;
}
.ld-card-title {
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin: 0 0 16px;
    font-weight: 700;
}

/* ── Images ── */
.ld-images {
    padding: 0;
    overflow: hidden;
}
.ld-main-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    display: block;
}
.ld-gallery {
    display: flex;
    gap: 4px;
    padding: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.ld-gallery-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: border-color var(--transition), opacity var(--transition);
    flex-shrink: 0;
}
.ld-gallery-thumb:hover {
    opacity: 0.8;
}
.ld-gallery-thumb.active {
    border-color: var(--accent);
}

/* ── Description ── */
.ld-description {
    line-height: 1.8;
    color: var(--text);
}
.ld-description p {
    margin-bottom: 12px;
}

/* ── Contact Card (Sidebar) ── */
.ld-contact-card {
    border: 2px solid var(--primary-pale);
    border-top: 4px solid var(--primary);
}
.ld-contact-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ld-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    transition: background var(--transition);
}
.ld-contact-item:hover {
    background: var(--gray-100);
    color: var(--primary);
}
.ld-contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--primary-pale);
    border-radius: 50%;
    color: var(--primary);
    flex-shrink: 0;
}
.ld-contact-text {
    font-size: 0.9rem;
    font-weight: 600;
    word-break: break-word;
}

/* ── Social Links ── */
.ld-social {
    display: flex;
    gap: 10px;
    padding-top: 16px;
    margin-top: 16px;
    border-top: 1px solid var(--gray-200);
    justify-content: center;
}
.ld-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--gray-100);
    color: var(--gray-600);
    transition: all var(--transition);
}
.ld-social-link:hover {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1);
}

/* ── Open/Closed Status ── */
.ld-open-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 14px;
}
.ld-open-status.open {
    background: #ecfdf5;
    color: #065f46;
}
.ld-open-status.closed {
    background: #fef2f2;
    color: #991b1b;
}
.ld-open-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.ld-open-status.open .ld-open-dot {
    background: #41a855;
    box-shadow: 0 0 0 3px rgba(65,168,85,0.2);
}
.ld-open-status.closed .ld-open-dot {
    background: #dc2626;
    box-shadow: 0 0 0 3px rgba(220,38,38,0.2);
}
.ld-open-hours {
    margin-left: auto;
    font-weight: 600;
    font-size: 0.85rem;
}

/* ── Claim Card ── */
.ld-claim-card {
    background: linear-gradient(135deg, #e3f2fb 0%, #cce5f5 100%);
    border: 1px solid #9dd0ef;
    text-align: center;
}

/* ── Mobile Sticky Contact Bar ── */
.ld-mobile-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    padding: 8px 12px;
    gap: 8px;
}
.ld-mobile-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 8px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    color: #fff;
}
.ld-mobile-call { background: #41a855; }
.ld-mobile-email { background: var(--primary); }
.ld-mobile-web { background: var(--accent); }

/* Back link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
    color: var(--primary);
    font-weight: 600;
}

/* Page content */
.page-content {
    padding: 50px 0;
}

.page-content h2 {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 24px;
    font-weight: 800;
}

.page-content .content-body {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    line-height: 1.8;
}

.page-content .content-body h3 {
    color: var(--primary-dark);
    margin: 24px 0 12px;
}

.page-content .content-body p {
    margin-bottom: 16px;
}

.page-content .content-body ul,
.page-content .content-body ol {
    margin: 0 0 16px 24px;
}

/* ── Contact Page Layout ─────────────────────────────────────────────────── */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
    align-items: start;
}

@media (min-width: 820px) {
    .contact-layout {
        grid-template-columns: 1fr 1.15fr;
        gap: 48px;
    }
}

/* Left panel */
.contact-info-panel h2 {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
    font-weight: 800;
}

.contact-info-panel .content-body {
    background: var(--white);
    padding: 28px 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    line-height: 1.8;
    margin-bottom: 24px;
}

/* Contact details card */
.contact-details-card {
    background: var(--primary-dark);
    color: var(--white);
    border-radius: var(--radius);
    padding: 28px 32px;
    box-shadow: var(--shadow);
}

.contact-details-heading {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 20px;
    color: var(--white);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.85;
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.contact-detail-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.contact-detail-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    background: rgba(65, 168, 85, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.contact-detail-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-detail-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    opacity: 0.6;
}

.contact-detail-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--white);
    text-decoration: none;
}

a.contact-detail-value:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* Right panel — form card */
.contact-form-panel .alert {
    margin-bottom: 20px;
}

.contact-form-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 36px 40px;
}

@media (max-width: 480px) {
    .contact-form-card {
        padding: 24px 20px;
    }
}

.contact-form-heading {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin: 0 0 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--primary-pale);
}

/* Form internals */
.cf-form {
    display: grid;
    gap: 18px;
}

.cf-honeypot {
    position: absolute;
    left: -9999px;
}

.cf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

@media (max-width: 540px) {
    .cf-row {
        grid-template-columns: 1fr;
    }
}

.cf-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cf-label {
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.875rem;
}

.cf-required {
    color: #dc2626;
}

.cf-optional {
    color: var(--gray-400);
    font-weight: 400;
}

.cf-input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--gray-300);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    color: var(--gray-800);
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.cf-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(34, 70, 104, 0.12);
}

.cf-textarea {
    resize: vertical;
    min-height: 130px;
}

.cf-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cf-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.cf-submit:hover {
    transform: translateY(-1px);
}

.cf-recaptcha-note {
    margin: 0;
    color: var(--gray-400);
    font-size: 0.75rem;
    line-height: 1.5;
}

.cf-recaptcha-note a {
    color: var(--primary);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
}

.pagination a {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow);
}

.pagination a:hover {
    background: var(--accent);
    color: var(--white);
}

.pagination .current {
    background: var(--primary);
    color: var(--white);
}

/* Footer */
.site-footer {
    background: var(--gray-800);
    color: rgba(255,255,255,0.7);
    padding: 30px 0;
    margin-top: auto;
}

.footer-inner {
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 16px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--white);
}

.site-footer p {
    font-size: 0.85rem;
}

/* 404 */
.not-found {
    text-align: center;
    padding: 80px 20px;
}

.not-found h2 {
    font-size: 3rem;
    color: var(--primary-dark);
    margin-bottom: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .logo-together { height: 38px; }
    .logo-shoplocal { height: 30px; }
    .logo-divider { height: 28px; }
    .logo-shoplocal-wrap { padding: 3px 6px; border-radius: 6px; }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-dark);
        flex-direction: column;
        padding: 10px 20px 20px;
        box-shadow: var(--shadow-lg);
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav a {
        padding: 12px 16px;
    }

    .hero h2 {
        font-size: 1.6rem;
    }

    .hero-logo {
        width: 160px;
    }

    .btn-cta {
        font-size: 1rem;
        padding: 13px 28px;
    }

    .listing-detail .listing-header {
        grid-template-columns: 1fr;
    }

    /* ── Listing Detail Responsive ── */
    .ld-intro h1 { font-size: 1.5rem; }
    .ld-actions { grid-template-columns: 1fr; }
    .ld-action-btn { padding: 14px 16px; }
    .ld-action-detail { font-size: 0.85rem; }
    .ld-content { grid-template-columns: 1fr; }
    .ld-sidebar { position: static; }
    .ld-mobile-bar { display: flex; }
    .listing-detail { padding-bottom: 100px; }
    .ld-main-image { max-height: 300px; }

    .listings-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .social-links {
        flex-wrap: wrap;
    }

    .page-content .content-body {
        padding: 24px;
    }
}

/* Tablet: listing sidebar below content, action buttons 2-col */
@media (min-width: 769px) and (max-width: 1024px) {
    .ld-content { grid-template-columns: 1fr; }
    .ld-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
    .ld-actions { grid-template-columns: repeat(3, 1fr); }
    .ld-intro h1 { font-size: 1.75rem; }
}

/* Large desktop */
@media (min-width: 1200px) {
    .ld-content { grid-template-columns: 1fr 400px; }
    .ld-intro h1 { font-size: 2.2rem; }
    .ld-main-image { max-height: 500px; }
}

/* Small phones */
@media (max-width: 480px) {
    .ld-intro h1 { font-size: 1.3rem; }
    .ld-actions { gap: 8px; }
    .ld-action-btn { padding: 12px 14px; gap: 10px; }
    .ld-action-label { font-size: 0.7rem; }
    .ld-action-detail { font-size: 0.8rem; }
    .ld-card { padding: 18px; }
    .ld-gallery-thumb { width: 64px; height: 64px; }
    .ld-mobile-btn { padding: 10px 6px; font-size: 0.8rem; gap: 4px; }
    .ld-mobile-btn svg { width: 16px; height: 16px; }
}

/* ============================================
   FAQ Page
   ============================================ */

.faq-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: #fff;
    text-align: center;
    padding: 64px 0 56px;
}
.faq-hero h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 12px;
}
.faq-hero p {
    font-size: 1.1rem;
    opacity: 0.85;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}

.faq-page {
    padding: 48px 0 64px;
    background: var(--gray-100);
}

/* ── Category Filter Tabs ── */
.faq-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 36px;
}
.faq-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 2px solid var(--gray-300);
    border-radius: 50px;
    background: #fff;
    color: var(--gray-700);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    white-space: nowrap;
}
.faq-filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-pale);
}
.faq-filter-btn.active {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}
.faq-filter-icon {
    font-size: 1rem;
    line-height: 1;
}
.faq-filter-label {
    line-height: 1;
}
.faq-filter-count {
    background: rgba(0,0,0,0.15);
    border-radius: 50px;
    padding: 1px 7px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.6;
}
.faq-filter-btn.active .faq-filter-count {
    background: rgba(255,255,255,0.25);
}

/* ── FAQ Groups & Accordions ── */
.faq-group {
    margin-bottom: 40px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.faq-group-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary-dark);
    padding: 20px 24px 16px;
    margin: 0;
    border-bottom: 2px solid var(--gray-100);
}
.faq-list {
    display: flex;
    flex-direction: column;
}
.faq-item {
    border-bottom: 1px solid var(--gray-100);
}
.faq-item:last-child {
    border-bottom: none;
}
.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 18px 24px;
    background: none;
    border: none;
    text-align: left;
    font-family: inherit;
    font-size: 0.975rem;
    font-weight: 700;
    color: var(--primary-dark);
    cursor: pointer;
    transition: background 0.15s;
    line-height: 1.4;
}
.faq-question:hover {
    background: var(--gray-100);
}
.faq-question[aria-expanded="true"] {
    color: var(--primary);
    background: var(--primary-pale);
}
.faq-question-text {
    flex: 1;
}
.faq-chevron {
    flex-shrink: 0;
    color: var(--gray-500);
    transition: transform 0.3s ease;
}
.faq-question[aria-expanded="true"] .faq-chevron {
    transform: rotate(180deg);
    color: var(--primary);
}
.faq-answer {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease;
}
.faq-answer-inner {
    padding: 4px 24px 24px;
    line-height: 1.8;
    color: var(--gray-700);
    font-size: 0.95rem;
}
.faq-answer-inner p { margin: 0 0 12px; }
.faq-answer-inner p:last-child { margin-bottom: 0; }
.faq-answer-inner ul,
.faq-answer-inner ol {
    margin: 8px 0 12px 20px;
    padding: 0;
}
.faq-answer-inner li { margin-bottom: 6px; }
.faq-answer-inner a {
    color: var(--primary);
    text-decoration: underline;
}
.faq-answer-inner a:hover { color: var(--primary-dark); }
.faq-answer-inner strong { color: var(--primary-dark); }

/* ── No Results ── */
.faq-no-results {
    text-align: center;
    padding: 48px 24px;
    color: var(--gray-500);
    font-size: 1.1rem;
}

/* ── CTA Block ── */
.faq-cta {
    text-align: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: #fff;
    border-radius: var(--radius);
    padding: 56px 40px;
    margin-top: 48px;
    box-shadow: var(--shadow-lg);
}
.faq-cta-icon {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 16px;
}
.faq-cta h2 {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0 0 12px;
}
.faq-cta p {
    opacity: 0.88;
    max-width: 520px;
    margin: 0 auto 28px;
    line-height: 1.7;
}
.faq-cta-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.faq-cta .btn-outline {
    border-color: rgba(255,255,255,0.7);
    color: #fff;
}
.faq-cta .btn-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
}

/* ── FAQ Mobile ── */
@media (max-width: 640px) {
    .faq-hero { padding: 44px 0 36px; }
    .faq-hero h1 { font-size: 1.6rem; }
    .faq-hero p { font-size: 0.95rem; }
    .faq-filters { gap: 8px; }
    .faq-filter-btn { padding: 7px 12px; font-size: 0.8rem; }
    .faq-filter-label { display: none; }
    .faq-filter-icon { font-size: 1.1rem; }
    .faq-filter-count { display: none; }
    .faq-group-title { font-size: 1rem; padding: 16px 16px 12px; }
    .faq-question { padding: 14px 16px; font-size: 0.9rem; }
    .faq-answer-inner { padding: 4px 16px 20px; }
    .faq-cta { padding: 36px 20px; }
    .faq-cta h2 { font-size: 1.4rem; }
    .faq-cta-btns { flex-direction: column; align-items: center; }
}

/* ============================================
   Report Review Modal
   ============================================ */

.review-report-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-400);
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
    font-family: inherit;
}
.review-report-btn:hover {
    color: #dc2626;
    background: #fee2e2;
}

.report-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.report-modal {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 32px;
    width: 100%;
    max-width: 520px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.report-modal h3 {
    margin: 0 0 8px;
    font-size: 1.2rem;
    color: var(--primary-dark);
}

.report-modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--gray-500);
    line-height: 1;
    padding: 0;
    font-family: inherit;
}
.report-modal-close:hover { color: var(--gray-800); }

@media (max-width: 600px) {
    .report-modal { padding: 24px 18px; }
}

/* ============================================
   Admin Styles
   ============================================ */

.admin-body {
    background: var(--gray-100);
}

.admin-header {
    background: var(--earth-brown);
}

.admin-layout {
    display: flex;
    min-height: calc(100vh - 60px);
}

.admin-sidebar {
    width: 240px;
    background: var(--white);
    border-right: 1px solid var(--gray-200);
    padding: 12px 0 20px;
    flex-shrink: 0;
    overflow-y: auto;
}

/* Dashboard link — sits outside sections */
.admin-sidebar .sb-home {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    color: var(--gray-800);
    font-size: 0.9rem;
    font-weight: 600;
    border-left: 3px solid transparent;
    transition: all var(--transition);
    margin-bottom: 8px;
}
.admin-sidebar .sb-home:hover,
.admin-sidebar .sb-home.active {
    background: var(--green-pale);
    border-left-color: var(--green-mid);
    color: var(--green-dark);
}

/* Section heading (accordion trigger) */
.sb-section { border-top: 1px solid var(--gray-100); }
.sb-heading {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--gray-500);
    transition: color 0.15s;
}
.sb-heading:hover { color: var(--gray-700); }
.sb-icon { font-size: 0.95rem; }
.sb-chevron { font-size: 0.8rem; transition: transform 0.2s; display: inline-block; }

/* Collapsed state */
.sb-section.collapsed .sb-chevron { transform: rotate(-90deg); }
.sb-section.collapsed .sb-items  { display: none; }

/* Business dashboard sidebar — plain direct links (no accordion) */
.admin-sidebar > a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    color: var(--gray-700);
    font-size: 0.875rem;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: all var(--transition);
    text-decoration: none;
}
.admin-sidebar > a:hover,
.admin-sidebar > a.active {
    background: var(--green-pale);
    border-left-color: var(--green-mid);
    color: var(--green-dark);
}

/* Section links */
.sb-items { padding-bottom: 4px; }
.sb-items a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px 8px 28px;
    color: var(--gray-700);
    font-size: 0.875rem;
    border-left: 3px solid transparent;
    transition: all var(--transition);
}
.sb-items a:hover,
.sb-items a.active {
    background: var(--green-pale);
    border-left-color: var(--green-mid);
    color: var(--green-dark);
}

/* Badges */
.sb-badge {
    display: inline-block;
    border-radius: 10px;
    padding: 1px 7px;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.5;
    margin-left: auto;
}
.sb-badge-red    { background: #e53935; color: #fff; }
.sb-badge-orange { background: #41a855; color: #fff; }

.admin-main {
    flex: 1;
    min-width: 0;
    padding: 30px;
    overflow-x: hidden;
}

.admin-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 24px;
}

.admin-card h3 {
    color: var(--green-dark);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--green-pale);
}

/* Admin Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--gray-800);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(34,70,104,0.15);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--accent-dark);
    color: var(--white);
}

.btn-danger {
    background: #dc3545;
    color: var(--white);
}

.btn-danger:hover {
    background: #b02a37;
    color: var(--white);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--gray-300);
    color: var(--gray-800);
}

.btn-outline:hover {
    background: var(--gray-200);
    color: var(--gray-800);
}

/* Admin Table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.admin-table th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-600);
    font-weight: 600;
}

.admin-table tr:hover {
    background: var(--gray-100);
}

.admin-table .actions {
    display: flex;
    gap: 8px;
}

.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge.active {
    background: var(--green-pale);
    color: var(--green-dark);
}

.status-badge.inactive {
    background: #fce4ec;
    color: #c62828;
}

/* Admin Login */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.login-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
}

.login-card h2 {
    text-align: center;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.login-card .subtitle {
    text-align: center;
    color: var(--gray-600);
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.alert-error {
    background: #fce4ec;
    color: #c62828;
    border: 1px solid #f8bbd0;
}

.alert-success {
    background: var(--green-pale);
    color: var(--green-dark);
    border: 1px solid #c8e6c9;
}

/* Dashboard stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    text-align: center;
}

.stat-card .number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-card .label {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-top: 4px;
}

/* Image preview */
.image-preview {
    max-width: 200px;
    border-radius: var(--radius);
    margin-top: 8px;
}

/* Toolbar */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.toolbar h2 {
    font-size: 1.5rem;
    color: var(--green-dark);
    margin: 0;
}

/* Featured Badge */
.featured-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-dark);
    background: var(--accent-pale);
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 6px;
}

.listing-card .featured-ribbon {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--accent);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 2;
}

.listing-card {
    position: relative;
}

/* Plans Grid */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.plan-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px 24px;
    text-align: center;
    border: 2px solid transparent;
    transition: all var(--transition);
    position: relative;
}

.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.plan-card.popular {
    border-color: var(--accent);
}

.plan-card.current {
    border-color: var(--primary);
    background: var(--primary-pale);
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 20px;
    white-space: nowrap;
}

.plan-card h3 {
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.plan-price .amount {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.plan-price .period {
    font-size: 0.9rem;
    color: var(--gray-600);
}

.plan-features {
    list-style: none;
    margin: 20px 0;
    text-align: left;
}

.plan-features li {
    padding: 6px 0;
    font-size: 0.9rem;
    color: var(--gray-800);
    border-bottom: 1px solid var(--gray-100);
}

.plan-features li:last-child {
    border-bottom: none;
}

/* CTA Section */
.cta-section {
    background: var(--hover);
    color: var(--primary-dark);
    text-align: center;
    padding: 50px 20px;
    margin-top: 40px;
}

.cta-section h2 {
    font-size: 1.8rem;
    margin-bottom: 12px;
    font-weight: 800;
    color: var(--primary-dark);
}

.cta-section p {
    font-size: 1.05rem;
    opacity: 0.85;
    margin-bottom: 24px;
    color: var(--primary);
}

.btn-white {
    background: var(--white);
    color: var(--accent-dark);
    font-weight: 700;
}

.btn-white:hover {
    background: var(--cream);
    color: var(--accent-dark);
}

/* Nav Login/Dashboard Button */
.btn-nav {
    background: var(--accent);
    color: var(--white) !important;
    padding: 8px 18px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
}

.btn-nav:hover {
    background: var(--accent-dark) !important;
}

/* Listing Gallery */
.listing-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.gallery-thumb {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius);
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
}

.gallery-thumb:hover {
    border-color: var(--accent);
    opacity: 0.9;
}

/* Auth Pages */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 20px;
}

.auth-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 440px;
}

.auth-card h2 {
    text-align: center;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.auth-card .subtitle {
    text-align: center;
    color: var(--gray-600);
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.auth-card .auth-links {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--gray-600);
}

.auth-card .auth-links a {
    color: var(--primary);
    font-weight: 600;
}

/* Status badges - pending expansion */
.status-badge.pending {
    background: #fff3cd;
    color: #856404;
}

.status-badge.rejected {
    background: #fce4ec;
    color: #c62828;
}

/* Sidebar toggle button — hidden on desktop */
.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
}

/* Overlay behind sidebar on mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 99;
}

.sidebar-overlay.active {
    display: block;
}

@media (max-width: 768px) {
    .sidebar-toggle {
        display: block;
    }

    .admin-sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        width: 270px;
        height: 100%;
        z-index: 100;
        background: var(--white);
        box-shadow: 4px 0 24px rgba(0,0,0,0.15);
        padding-top: 20px;
        transition: left 0.25s ease;
        overflow-y: auto;
    }

    .admin-sidebar.open {
        left: 0;
    }

    .admin-main {
        padding: 16px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .plans-grid {
        grid-template-columns: 1fr;
    }

    .auth-card {
        padding: 24px;
    }
}

/* ============================================
   Site-wide announcement banner
   ============================================ */
.site-banner {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    text-align: center;
    padding: 10px 16px;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    position: relative;
}
.site-banner .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.site-banner__close {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    opacity: 0.8;
    padding: 2px 6px;
    border-radius: 3px;
    flex-shrink: 0;
}
.site-banner__close:hover { opacity: 1; background: rgba(255,255,255,.15); }

/* ============================================
   Impersonation bar
   ============================================ */
.impersonation-bar {
    background: #7c3aed;
    color: #fff;
    text-align: center;
    padding: 8px 16px;
    font-size: 0.88rem;
    font-weight: 600;
}
.impersonation-bar__stop {
    color: #fde68a;
    text-decoration: underline;
    font-weight: 700;
}
.impersonation-bar__stop:hover { color: #fff; }

/* ============================================
   Phase 4+5 — New Feature Styles
   ============================================ */

/* Business Hours Editor */
.hours-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.hours-day {
    width: 100px;
    font-weight: 600;
    font-size: 0.9rem;
}

.hours-time {
    width: 110px !important;
    padding: 6px 10px !important;
}

.hours-closed-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    color: var(--gray-600);
    cursor: pointer;
}

/* Business Hours Table (listing page) */
.hours-table {
    width: 100%;
    border-collapse: collapse;
}

.hours-table td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.9rem;
}

.hours-table tr.today td {
    background: var(--accent-pale);
    font-weight: 700;
}

.hours-day-cell {
    width: 120px;
    font-weight: 600;
    color: var(--primary-dark);
}

/* Gallery Management */
.gallery-manage {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.gallery-manage-item {
    position: relative;
}

.gallery-manage-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius);
}

.gallery-manage-item .btn {
    position: absolute;
    top: 4px;
    right: 4px;
    padding: 2px 8px;
    font-size: 0.9rem;
    border-radius: 50%;
    min-width: auto;
}

/* Listing Sections */
.listing-section {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.listing-section h3 {
    color: var(--primary-dark);
    margin-bottom: 16px;
    font-size: 1.15rem;
}

/* Map Embed */
.map-embed {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* Reviews */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.review-card {
    background: var(--gray-100);
    padding: 16px 20px;
    border-radius: var(--radius);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.review-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.review-date {
    font-size: 0.8rem;
    color: var(--gray-600);
}

.review-reply {
    background: var(--primary-pale);
    padding: 12px;
    border-radius: var(--radius);
    margin-top: 10px;
    font-size: 0.9rem;
}

/* Star Rating Display */
.stars {
    color: var(--accent);
    font-size: 1rem;
    letter-spacing: 1px;
}

.rating-summary .stars {
    font-size: 1.2rem;
}

/* Hero stars — larger display on listing page */
.hero-stars {
    font-size: 1.5rem;
    letter-spacing: 3px;
    display: inline-block;
    animation: hero-star-pop 0.5s ease-out both;
}

@keyframes hero-star-pop {
    0%   { transform: scale(0.7); opacity: 0; }
    60%  { transform: scale(1.12); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

/* Individual star chars in hero rating */
.hero-star-char {
    display: inline;
    transition: transform 0.15s ease;
}
.hero-star-char.filled {
    color: var(--accent);
}
.hero-star-char.empty {
    color: var(--gray-300);
    opacity: 0.6;
}

/* Card star ratings (directory + home) */
.card-stars {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 4px 0 6px;
}
.card-stars-icons {
    color: var(--accent);
    font-size: 0.9rem;
    letter-spacing: 1px;
    line-height: 1;
}
.card-stars-text {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1;
}
.card-stars-count {
    font-weight: 400;
    color: var(--gray-500);
}

/* ── Star Rating Input (review form) — enhanced ── */
.star-rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
    padding: 4px 0;
}

.star-rating-input input {
    display: none;
}

.star-rating-input label {
    font-size: 2rem;
    color: var(--gray-300);
    cursor: pointer;
    transition: color 0.15s ease, transform 0.15s cubic-bezier(0.34,1.56,0.64,1), text-shadow 0.15s ease;
    display: inline-block;
    line-height: 1;
    user-select: none;
}

/* Hover — light up this star and all after (which are "before" in reversed flex) */
.star-rating-input label:hover,
.star-rating-input label:hover ~ label {
    color: var(--accent);
    transform: scale(1.35) rotate(-5deg);
    text-shadow: 0 0 12px rgba(65,168,85,0.7), 0 0 24px rgba(65,168,85,0.35);
}

/* Selected state */
.star-rating-input input:checked ~ label {
    color: var(--accent);
    text-shadow: 0 0 8px rgba(65,168,85,0.5);
}

/* Pop animation when a star is chosen */
.star-rating-input input:checked + label {
    animation: star-pop 0.35s cubic-bezier(0.34,1.56,0.64,1) both;
}

@keyframes star-pop {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.6) rotate(8deg); }
    70%  { transform: scale(1.1) rotate(-4deg); }
    100% { transform: scale(1.35) rotate(0deg); }
}

/* Promotions */
.promos-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.promo-card {
    background: var(--accent-pale);
    border-left: 4px solid var(--accent);
    padding: 16px 20px;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.promo-card strong {
    color: var(--primary-dark);
}

.promo-card p {
    margin-top: 4px;
    font-size: 0.9rem;
    color: var(--gray-800);
}

/* Events */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.event-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
}

.event-date-badge {
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius);
    text-align: center;
    padding: 8px 12px;
    min-width: 60px;
    flex-shrink: 0;
}

.event-date-badge .event-month {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    opacity: 0.85;
}

.event-date-badge .event-day {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.1;
}

/* Public Events Grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.event-card-public {
    display: flex;
    gap: 16px;
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform var(--transition);
}

.event-card-public:hover {
    transform: translateY(-3px);
}

.event-body h3 {
    font-size: 1rem;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.event-host {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
}

.event-time,
.event-location {
    font-size: 0.82rem;
    color: var(--gray-600);
    margin-top: 2px;
}

.event-excerpt {
    font-size: 0.85rem;
    color: var(--gray-800);
    margin-top: 6px;
}

/* Search Autocomplete */
.search-autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-lg);
    max-height: 300px;
    overflow-y: auto;
    z-index: 50;
    display: none;
}

.search-autocomplete.active {
    display: block;
}

.search-autocomplete a {
    display: block;
    padding: 10px 20px;
    color: var(--text);
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.9rem;
}

.search-autocomplete a:hover {
    background: var(--primary-pale);
}

.search-autocomplete a small {
    color: var(--gray-600);
    display: block;
    font-size: 0.78rem;
}

/* Chart Container */
.chart-container {
    max-height: 250px;
    position: relative;
}

/* Review Form */
.review-form-wrap {
    background: var(--gray-100);
    padding: 24px;
    border-radius: var(--radius);
}

.review-form-wrap h4 {
    color: var(--primary-dark);
    margin-bottom: 16px;
}

/* Status badges for promotions/events */
.status-badge.draft {
    background: var(--gray-200);
    color: var(--gray-800);
}

.status-badge.cancelled {
    background: #fce4ec;
    color: #c62828;
}

@media (max-width: 768px) {
    .hours-row {
        flex-wrap: wrap;
    }
    .hours-day {
        width: 100%;
    }
    .events-grid {
        grid-template-columns: 1fr;
    }
    .event-card-public {
        flex-direction: column;
        gap: 10px;
    }
    .gallery-manage {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
}
