/* ════════════════════════════════════════════════
   Murray Bridge Business Directory — Main Styles
   Mobile-first, custom CSS, no frameworks
   ════════════════════════════════════════════════ */

/* ── CSS Custom Properties ── */
:root {
    /* Primary palette — earthy river tones for Murray Bridge */
    --color-primary: #1a6b4a;
    --color-primary-dark: #145539;
    --color-primary-light: #e8f5ee;
    --color-accent: #d4a843;
    --color-accent-light: #fdf4e0;

    /* Neutrals */
    --color-text: #1f2937;
    --color-text-light: #6b7280;
    --color-text-lighter: #9ca3af;
    --color-bg: #ffffff;
    --color-bg-alt: #f9fafb;
    --color-bg-light: #f8f9fa;
    --color-bg-dark: #111827;
    --color-border: #e5e7eb;
    --color-border-light: #f3f4f6;

    /* Status colors */
    --color-success: #059669;
    --color-warning: #d97706;
    --color-error: #dc2626;
    --color-info: #2563eb;

    /* Tier colors */
    --color-featured: #f59e0b;
    --color-premium: #8b5cf6;

    /* Typography */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);

    /* Transitions */
    --transition: 150ms ease;

    /* Container */
    --container-max: 1200px;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: url('../img/hero-bg.jpg') center top / cover no-repeat fixed;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

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

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

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

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-text);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

/* ── Container ── */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

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

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}
.btn-outline:hover {
    background: var(--color-primary);
    color: white;
}

.btn-accent {
    background: var(--color-accent);
    color: var(--color-text);
    border-color: var(--color-accent);
}
.btn-accent:hover {
    background: #c49a39;
    border-color: #c49a39;
}

.btn-sm {
    padding: 0.375rem 0.875rem;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

/* ── Focus Styles ── */
.btn:focus-visible,
a:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ── Header ── */
.site-header {
    background: white;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: var(--space-md);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--color-primary);
    color: white;
    font-weight: 800;
    font-size: 0.85rem;
    border-radius: var(--radius-md);
}

.logo-text {
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-text);
}

/* Navigation */
.main-nav {
    display: none;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.nav-list > li > a {
    display: block;
    padding: var(--space-sm) var(--space-md);
    color: var(--color-text-light);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.nav-list > li > a:hover,
.nav-list > li > a.active {
    color: var(--color-primary);
    background: var(--color-primary-light);
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.caret {
    font-size: 0.7rem;
    margin-left: 2px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 240px;
    padding: var(--space-sm) 0;
    z-index: 100;
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) var(--space-md);
    color: var(--color-text);
    font-size: 0.875rem;
}

.dropdown-menu li a:hover {
    background: var(--color-bg-alt);
    color: var(--color-primary);
}

.badge {
    font-size: 0.75rem;
    color: var(--color-text-lighter);
    background: var(--color-bg-alt);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

/* Header actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.btn-search {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--color-text-light);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.btn-search:hover {
    background: var(--color-bg-alt);
    color: var(--color-primary);
}

.header-signin {
    font-size: 0.85rem;
    color: var(--color-text-light);
    font-weight: 500;
    transition: color var(--transition);
    display: none;
}

.header-signin:hover {
    color: var(--color-primary);
}

.header-actions .btn-outline {
    display: none;
}

/* Hamburger */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile-only nav items (Sign In / List Your Business) */
.mobile-only-nav {
    display: none;
}

.main-nav.mobile-open .mobile-only-nav {
    display: block;
    border-top: 1px solid var(--color-border-light);
    padding-top: var(--space-sm);
    margin-top: var(--space-sm);
}

.main-nav.mobile-open .mobile-only-nav + .mobile-only-nav {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

/* Mobile nav */
.main-nav.mobile-open {
    display: block;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    padding: var(--space-md);
}

.main-nav.mobile-open .nav-list {
    flex-direction: column;
    align-items: stretch;
}

.main-nav.mobile-open .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: var(--space-md);
    display: none;
}

.main-nav.mobile-open .nav-dropdown.open .dropdown-menu {
    display: block;
}

/* ── Flash Messages ── */
.flash {
    padding: var(--space-md) 0;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

.flash-success { background: #ecfdf5; color: #065f46; }
.flash-error { background: #fef2f2; color: #991b1b; }
.flash-info { background: #eff6ff; color: #1e40af; }
.flash-warning { background: #fffbeb; color: #92400e; }

/* ── Hero Section ── */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero::after {
    display: none;
}

.hero .container {
    position: relative;
    z-index: 2;
    padding: var(--space-3xl) 0;
}

.hero h1 {
    color: white;
    font-size: 2rem;
    margin-bottom: var(--space-md);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.hero p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1rem;
    margin-bottom: var(--space-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

/* Content scrolls over the hero */
.hero + section,
.hero ~ section {
    position: relative;
    z-index: 3;
}

/* Hero search */
.hero-search {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.hero-search input {
    width: 100%;
    padding: 1rem 1.25rem;
    padding-right: 3.5rem;
    font-size: 1rem;
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    outline: none;
}

.hero-search input::placeholder {
    color: var(--color-text-lighter);
}

.hero-search button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition);
}

.hero-search button:hover {
    background: var(--color-primary-dark);
}

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

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

.search-suggestion-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border-light);
    transition: background var(--transition);
}

.search-suggestion-item:hover {
    background: var(--color-bg-alt);
}

.search-suggestion-item .suggestion-cat {
    font-size: 0.8rem;
    color: var(--color-text-lighter);
}

/* ── Category Grid ── */
.section {
    padding: var(--space-3xl) 0;
    background: rgba(255, 255, 255, 0.90);
}

.section-alt {
    background: rgba(249, 250, 251, 0.92);
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-title h2 {
    display: inline-block;
    margin-bottom: var(--space-sm);
    color: var(--color-text);
    text-shadow: none;
}

.section-title p {
    color: var(--color-text-light);
    text-shadow: none;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.category-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
    text-decoration: none;
    color: var(--color-text);
    box-shadow: var(--shadow-sm);
}

.category-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    color: var(--color-text);
}

.category-card .cat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: var(--radius-md);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.category-card .cat-info h3 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.category-card .cat-count {
    font-size: 0.8rem;
    color: var(--color-text-lighter);
}

/* ── Listing Cards ── */
.listings-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

.listing-card {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}

.listing-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

/* Featured listing */
.listing-card--featured {
    border-left: 4px solid var(--color-featured);
    position: relative;
}

.listing-card--featured::before {
    content: 'Featured';
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    background: var(--color-featured);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Premium listing */
.listing-card--premium {
    border-left: 4px solid var(--color-premium);
    position: relative;
}

.listing-card--premium::before {
    content: 'Premium';
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    background: var(--color-premium);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.listing-photo {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-md);
    object-fit: cover;
    flex-shrink: 0;
    background: var(--color-bg-alt);
}

.listing-content {
    flex: 1;
    min-width: 0;
}

.listing-name {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.listing-name a {
    color: var(--color-text);
}

.listing-name a:hover {
    color: var(--color-primary);
}

.listing-category {
    font-size: 0.8rem;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.open-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15em 0.5em;
    border-radius: var(--radius-sm);
    vertical-align: middle;
    margin-left: 0.4em;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    line-height: 1.4;
}

.open-badge--open {
    background: #ecfdf5;
    color: var(--color-success);
    border: 1px solid #a7f3d0;
}

.open-badge--closed {
    background: #fef2f2;
    color: var(--color-error);
    border: 1px solid #fecaca;
}

.listing-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm) var(--space-lg);
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.listing-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.listing-meta-item svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.listing-description {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-top: var(--space-sm);
    line-height: 1.5;
}

/* ── Business Profile Page ── */

/* Premium Hero Banner */
.biz-hero {
    background-size: cover;
    background-position: center;
    position: relative;
    min-height: 300px;
}

.biz-hero-overlay {
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
    padding: var(--space-xl) 0 var(--space-3xl);
    color: white;
    min-height: 300px;
    display: flex;
    align-items: flex-end;
}

.biz-hero h1 {
    color: white;
    margin-bottom: var(--space-sm);
}

.biz-hero-tagline {
    color: rgba(255,255,255,0.85);
    font-size: 1.1rem;
    margin-top: var(--space-sm);
    margin-bottom: var(--space-lg);
    max-width: 600px;
}

.biz-hero-actions {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.btn-outline-light {
    display: inline-flex;
    align-items: center;
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    border: 2px solid rgba(255,255,255,0.7);
    color: white;
    background: transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.15);
    border-color: white;
    text-decoration: none;
}

.biz-breadcrumb--light a,
.biz-breadcrumb--light strong,
.biz-breadcrumb--light .separator {
    color: rgba(255,255,255,0.7);
}

.biz-breadcrumb--light a:hover {
    color: white;
}

@media (min-width: 768px) {
    .biz-hero { min-height: 360px; }
    .biz-hero-overlay { min-height: 360px; }
}

/* Standard Header */
.biz-header {
    padding: var(--space-xl) 0;
    background: rgba(0, 0, 0, 0.4);
    color: white;
}

.biz-header h1 {
    margin-bottom: var(--space-sm);
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.biz-header .listing-category {
    color: rgba(255, 255, 255, 0.85);
}

.biz-tier-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: var(--space-sm);
    vertical-align: middle;
}

.biz-tier-badge--featured {
    background: var(--color-accent-light);
    color: #92400e;
}

.biz-tier-badge--premium {
    background: #ede9fe;
    color: #5b21b6;
}

.biz-breadcrumb {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-md);
}

.biz-breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
}

.biz-breadcrumb a:hover {
    color: white;
}

.biz-breadcrumb strong {
    color: rgba(255, 255, 255, 0.9);
}

.biz-breadcrumb .separator {
    margin: 0 var(--space-sm);
    color: rgba(255, 255, 255, 0.5);
}

.biz-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    padding: var(--space-xl) 0;
    background: rgba(255, 255, 255, 0.90);
}

/* Business page section titles need to be dark (over white cards) */
.biz-layout .section-title h2 {
    color: var(--color-text);
    text-shadow: none;
}

.biz-layout .section-title p {
    color: var(--color-text-light);
    text-shadow: none;
}

.biz-main {
    min-width: 0;
}

.biz-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.biz-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}

.biz-card h3 {
    font-size: 1rem;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--color-border-light);
}

.biz-contact-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.biz-contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.biz-contact-item svg {
    width: 18px;
    height: 18px;
    color: var(--color-primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.biz-contact-item a {
    word-break: break-all;
}

.biz-phone-link {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary);
}

.biz-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text);
}

.biz-description p {
    margin-bottom: var(--space-md);
}

/* Hours table */
.hours-table {
    width: 100%;
    font-size: 0.9rem;
}

.hours-table tr {
    border-bottom: 1px solid var(--color-border-light);
}

.hours-table td {
    padding: var(--space-sm) 0;
}

.hours-table td:first-child {
    font-weight: 500;
    width: 40%;
}

/* Map */
.biz-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-top: var(--space-md);
}

.biz-map iframe {
    width: 100%;
    height: 300px;
    border: none;
}

/* Photo gallery */
.biz-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.biz-gallery img {
    border-radius: var(--radius-md);
    width: 100%;
    height: 200px;
    object-fit: cover;
    cursor: pointer;
    transition: transform var(--transition);
}

.biz-gallery img:hover {
    transform: scale(1.02);
}

/* Video embed */
.biz-video-embed {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    margin-top: var(--space-md);
}

.biz-video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Service area tags */
.biz-service-areas h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-sm);
}

.biz-area-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.biz-area-tag {
    display: inline-block;
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

/* Claim CTA */
.biz-claim-cta {
    background: var(--color-primary-light);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
}

.biz-claim-cta p {
    margin-bottom: var(--space-md);
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* Owner Bar */
.owner-bar {
    background: #ecfdf5;
    border-bottom: 2px solid #a7f3d0;
    padding: 10px 0;
    font-size: 0.85rem;
    color: #065f46;
}

/* Listing Disclaimer */
.listing-disclaimer {
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid #e5e7eb;
    padding: 8px 0;
    text-align: center;
}

.listing-disclaimer small {
    color: #6b7280;
    font-size: 0.78rem;
}

.listing-disclaimer a {
    color: var(--color-primary);
    text-decoration: underline;
}

/* ── Search Page ── */
.search-page {
    padding: var(--space-xl) 0;
    background: rgba(255, 255, 255, 0.90);
}

.search-form {
    max-width: 600px;
    margin: 0 auto var(--space-xl);
    position: relative;
}

.search-form input {
    width: 100%;
    padding: 0.875rem 1.25rem;
    padding-right: 3.5rem;
    font-size: 1rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    outline: none;
    transition: border-color var(--transition);
}

.search-form input:focus {
    border-color: var(--color-primary);
}

.search-form button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.search-results-count {
    color: var(--color-text-light);
    margin-bottom: var(--space-lg);
    font-size: 0.9rem;
}

/* ── Pagination ── */
.pagination {
    margin-top: var(--space-xl);
    display: flex;
    justify-content: center;
}

.pagination ul {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pagination li a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 var(--space-sm);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    transition: all var(--transition);
}

.pagination li a:hover {
    background: var(--color-primary-light);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.pagination li.active a {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.pagination li.ellipsis {
    color: var(--color-text-lighter);
    padding: 0 var(--space-sm);
}

/* ── Featured Carousel ── */
.carousel {
    position: relative;
    overflow: hidden;
    padding: 0 24px;
}

.carousel-track {
    display: flex;
    gap: var(--space-lg);
    transition: transform 0.4s ease;
}

.carousel-slide {
    flex: 0 0 calc(100% - var(--space-lg));
    min-width: 0;
}

.carousel-slide .listing-card {
    height: 100%;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 1px solid var(--color-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-text);
    transition: background 0.2s, box-shadow 0.2s;
}

.carousel-btn:hover {
    background: var(--color-bg-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.carousel-btn--prev {
    left: -16px;
}

.carousel-btn--next {
    right: -16px;
}

@media (min-width: 768px) {
    .carousel-slide {
        flex: 0 0 calc(50% - var(--space-lg) / 2);
    }

    .carousel-btn--prev {
        left: -16px;
    }

    .carousel-btn--next {
        right: -16px;
    }
}

@media (min-width: 1024px) {
    .carousel-slide {
        flex: 0 0 calc(33.333% - var(--space-lg) * 2 / 3);
    }
}

/* ── Compact Listings Grid ── */
.listings-grid--compact {
    grid-template-columns: 1fr;
}

/* ── Stats Banner ── */
.stats-banner {
    background: var(--color-bg-dark);
    color: white;
    padding: var(--space-xl) 0;
}

.stats-banner-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    text-align: center;
}

.stats-banner-item strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-accent);
    margin-bottom: 2px;
}

.stats-banner-item span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ── CTA Section ── */
.cta-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    padding: var(--space-3xl) 0;
    text-align: center;
}

.cta-section h2,
.cta-section .section-title h2 {
    color: white;
    margin-bottom: var(--space-md);
}

.cta-section p,
.cta-section .section-title p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--space-xl);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Forms ── */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: var(--space-sm);
    color: var(--color-text);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.95rem;
    font-family: var(--font-body);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: white;
    color: var(--color-text);
    outline: none;
    transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(26, 107, 74, 0.1);
}

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

.form-error {
    font-size: 0.8rem;
    color: var(--color-error);
    margin-top: var(--space-xs);
}

/* ── Footer ── */
.site-footer {
    background: var(--color-bg-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-heading {
    color: white;
    font-size: 1rem;
    margin-bottom: var(--space-md);
}

.footer-text {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-links li {
    margin-bottom: var(--space-sm);
}

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

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

.footer-legal {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-lg);
    padding-bottom: var(--space-md);
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    transition: color var(--transition);
}

.footer-legal a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    font-size: 0.85rem;
}

.footer-credit a {
    color: var(--color-accent);
}

.footer-credit a:hover {
    color: white;
}

/* ── Subcategory nav ── */
.subcategory-nav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.subcategory-nav a {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--color-text);
    transition: all var(--transition);
}

.subcategory-nav a:hover,
.subcategory-nav a.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.subcategory-nav .sub-count {
    font-size: 0.75rem;
    color: var(--color-text-lighter);
}

.subcategory-nav a:hover .sub-count,
.subcategory-nav a.active .sub-count {
    color: rgba(255, 255, 255, 0.7);
}

/* ── About / Contact pages ── */
.page-content {
    padding: var(--space-3xl) 0;
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-lg);
    padding-left: var(--space-xl);
    padding-right: var(--space-xl);
    box-shadow: var(--shadow-sm);
}

.page-content h1 {
    margin-bottom: var(--space-xl);
    color: var(--color-text);
}

.page-content h2 {
    color: var(--color-text);
}

.page-content p {
    margin-bottom: var(--space-md);
    line-height: 1.7;
    color: var(--color-text-light);
}

.contact-form {
    max-width: 600px;
}

/* ── Breadcrumb (on light backgrounds) ── */
.breadcrumb {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: var(--space-md);
}

.breadcrumb a {
    color: var(--color-text-light);
}

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

.breadcrumb strong {
    color: var(--color-text);
}

.breadcrumb .separator {
    margin: 0 var(--space-sm);
    color: var(--color-text-lighter);
}

/* ── Utilities ── */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-light { color: var(--color-text-light); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.hidden { display: none; }

/* ── Legal Content Pages ── */
.legal-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.legal-content h2 {
    color: var(--color-text);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
    font-size: 1.3rem;
}

.legal-content h3 {
    color: var(--color-text);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
    font-size: 1.1rem;
}

.legal-content p {
    color: var(--color-text-light);
    margin-bottom: var(--space-md);
}

.legal-content ul {
    color: var(--color-text-light);
    margin-bottom: var(--space-md);
    padding-left: var(--space-lg);
}

.legal-content ul li {
    margin-bottom: var(--space-xs);
}

.legal-content a {
    color: var(--color-primary);
}

/* ════════════════════════════════════════════
   RESPONSIVE — Mobile fixes (small screens)
   ════════════════════════════════════════════ */

/* On mobile, move background from body to hero — iOS can't do fixed backgrounds */
@media (max-width: 767px) {
    body {
        background: var(--color-bg);
    }

    .hero {
        background: url('../img/hero-bg.jpg') center center / cover no-repeat;
    }

    .page-content {
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }
}

@media (max-width: 767px) {
    .logo-text {
        font-size: 0.85rem;
        max-width: 140px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

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

    .hero p {
        font-size: 0.95rem;
    }

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

    .category-card {
        padding: var(--space-md);
    }

    .listing-card {
        flex-direction: column;
    }

    .listing-photo {
        width: 100%;
        height: 160px;
    }

    .biz-hero-actions {
        flex-direction: column;
    }

    .biz-hero-actions .btn,
    .biz-hero-actions .btn-outline-light {
        width: 100%;
        justify-content: center;
    }

    .owner-bar .container {
        flex-direction: column;
        text-align: center;
    }

    .owner-bar .container > div {
        flex-wrap: wrap;
        justify-content: center;
    }

    .legal-content {
        padding: var(--space-lg);
    }

    .search-input-wrap {
        flex-direction: column;
    }

    .search-filters select {
        min-width: 100%;
    }

    .biz-header h1 {
        font-size: 1.5rem;
    }

    .biz-tier-badge {
        display: block;
        margin-left: 0;
        margin-top: var(--space-xs);
        width: fit-content;
    }

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

    .stats-banner-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-form-wrap {
        max-width: 100%;
    }

    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.3rem; }
}

/* ════════════════════════════════════════════
   RESPONSIVE — Tablet (768px+)
   ════════════════════════════════════════════ */
@media (min-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.75rem; }

    .hero {
        min-height: 90vh;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .listings-grid--compact {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-banner-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .stats-banner-item strong {
        font-size: 1.75rem;
    }

    .biz-layout {
        grid-template-columns: 2fr 1fr;
    }

    .biz-gallery {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* ════════════════════════════════════════════
   RESPONSIVE — Desktop (1024px+)
   ════════════════════════════════════════════ */
@media (min-width: 1024px) {
    .main-nav {
        display: block;
    }

    .hamburger {
        display: none;
    }

    .header-signin {
        display: inline;
    }

    .header-actions .btn-outline {
        display: inline-flex;
    }

    .hero {
        min-height: 92vh;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .hero p {
        font-size: 1.25rem;
    }

    .category-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .listings-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .listings-grid--compact {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }

    .biz-gallery {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ════════════════════════════════════════════
   Additional Component Styles
   ════════════════════════════════════════════ */

/* ── Search Input Wrap (search page) ── */
.search-input-wrap {
    display: flex;
    gap: var(--space-sm);
    position: relative;
}

.search-input-wrap input {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    outline: none;
    transition: border-color var(--transition);
}

.search-input-wrap input:focus {
    border-color: var(--color-primary);
}

.search-input-wrap .btn {
    flex-shrink: 0;
}

.search-input-wrap .search-suggestions {
    top: 100%;
    left: 0;
    right: 80px;
}

/* Search filters */
.search-filters {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    flex-wrap: wrap;
}

.search-filters select {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    background: white;
    color: var(--color-text);
    outline: none;
    cursor: pointer;
    min-width: 160px;
    transition: border-color var(--transition);
}

.search-filters select:focus {
    border-color: var(--color-primary);
}

/* ── 404 Error Page ── */
.error-page {
    text-align: center;
    padding: var(--space-3xl) var(--space-xl);
    max-width: 500px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.error-code {
    font-size: 6rem;
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: var(--space-md);
    opacity: 0.3;
}

.error-page h1 {
    margin-bottom: var(--space-md);
}

.error-page > p {
    color: var(--color-text-light);
    margin-bottom: var(--space-xl);
}

.error-search {
    margin-bottom: var(--space-xl);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.error-links {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Empty State ── */
.empty-state {
    text-align: center;
    padding: var(--space-3xl) var(--space-lg);
    color: var(--color-text-light);
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-lg);
}

.empty-state p {
    margin-bottom: var(--space-md);
}

/* ── Alerts ── */
.alert {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-xl);
    font-size: 0.95rem;
    line-height: 1.5;
}

.alert ul {
    margin: 0;
    padding-left: var(--space-lg);
}

.alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

.alert-info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* ── Contact Page Layout ── */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

.contact-form-wrap {
    max-width: 600px;
}

.contact-info-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.required {
    color: var(--color-error);
}

/* ── About Page Plans ── */
.content-block {
    margin-bottom: var(--space-2xl);
}

.content-block h2 {
    margin-bottom: var(--space-md);
    color: var(--color-text);
}

.about-plans {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    margin: var(--space-xl) 0;
}

.about-plan {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}

.about-plan h3 {
    margin-bottom: var(--space-md);
    font-size: 1rem;
    color: var(--color-primary);
}

.about-plan ul {
    list-style: none;
    padding: 0;
}

.about-plan ul li {
    padding: var(--space-xs) 0;
    font-size: 0.9rem;
    color: var(--color-text-light);
    position: relative;
    padding-left: var(--space-lg);
}

.about-plan ul li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--color-success);
    font-weight: 700;
}

/* ── Responsive additions ── */
@media (min-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr 300px;
    }

    .about-plans {
        grid-template-columns: repeat(3, 1fr);
    }
}
