/* ══════════════════════════════════════════
   RV Dealers Denver – Premium Stylesheet
   ══════════════════════════════════════════ */

/* ── CSS Variables ── */
:root {
    --primary: #1a2b4a;
    --primary-light: #2d4a7a;
    --primary-dark: #0f1b30;
    --accent: #e8632b;
    --accent-hover: #d4551f;
    --accent-light: #fef3ee;
    --success: #10b981;
    --success-light: #ecfdf5;
    --warning: #f59e0b;
    --warning-light: #fffbeb;
    --danger: #ef4444;
    --danger-light: #fef2f2;
    --star: #f59e0b;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    --transition: 0.2s ease;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    --container: 1200px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }

/* ── Container ── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ── Top Bar ── */
.topbar {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.8);
    font-size: 0.8125rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.topbar__inner { display: flex; justify-content: space-between; align-items: center; }
.topbar__links { display: flex; gap: 16px; }
.topbar__links a { color: rgba(255,255,255,0.7); font-size: 0.8125rem; }
.topbar__links a:hover { color: var(--white); }

/* ── Header ── */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: transform 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 32px;
}

/* Logo */
.site-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.site-logo__icon { font-size: 1.75rem; }
.site-logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.site-logo__name { font-weight: 800; font-size: 1.125rem; color: var(--primary); }
.site-logo__city { font-weight: 600; font-size: 0.75rem; color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; }

/* Nav */
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav__link {
    padding: 8px 14px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray-700);
    border-radius: var(--radius);
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
}
.site-nav__link:hover { color: var(--primary); background: var(--gray-50); }
.site-nav__link--cta {
    color: var(--accent) !important;
    font-weight: 600;
}
.site-nav__link--cta:hover { background: var(--accent-light) !important; }

/* Dropdown */
.site-nav__dropdown { position: relative; }
.site-nav__dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s;
    z-index: 50;
}
.site-nav__dropdown:hover .site-nav__dropdown-menu,
.site-nav__dropdown.is-open .site-nav__dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.site-nav__dropdown-menu a {
    display: block;
    padding: 8px 14px;
    font-size: 0.875rem;
    color: var(--gray-700);
    border-radius: var(--radius);
}
.site-nav__dropdown-menu a:hover { background: var(--gray-50); color: var(--primary); }

/* Header actions */
.site-header__actions { display: flex; align-items: center; gap: 12px; }
.site-header__search {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    color: var(--gray-500);
    border-radius: var(--radius-full);
    transition: all var(--transition);
}
.site-header__search:hover { background: var(--gray-100); color: var(--primary); }

/* Hamburger */
.hamburger { display: none; width: 32px; height: 32px; position: relative; }
.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--gray-700);
    position: absolute;
    left: 5px;
    transition: all 0.3s;
}
.hamburger span:nth-child(1) { top: 8px; }
.hamburger span:nth-child(2) { top: 15px; }
.hamburger span:nth-child(3) { top: 22px; }
.hamburger.is-active span:nth-child(1) { top: 15px; transform: rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { top: 15px; transform: rotate(-45deg); }

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: 2px solid transparent;
    transition: all var(--transition);
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
}
.btn--primary {
    background: var(--primary);
    color: var(--white);
}
.btn--primary:hover { background: var(--primary-light); color: var(--white); }
.btn--accent {
    background: var(--accent);
    color: var(--white);
}
.btn--accent:hover { background: var(--accent-hover); color: var(--white); }
.btn--outline {
    background: transparent;
    border-color: var(--gray-300);
    color: var(--gray-700);
}
.btn--outline:hover { border-color: var(--primary); color: var(--primary); }
.btn--outline-light {
    background: transparent;
    border-color: rgba(255,255,255,0.4);
    color: var(--white);
}
.btn--outline-light:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); color: var(--white); }
.btn--ghost { padding: 8px 12px; color: var(--gray-600); }
.btn--ghost:hover { background: var(--gray-100); color: var(--primary); }
.btn--sm { padding: 6px 14px; font-size: 0.8125rem; }
.btn--lg { padding: 14px 28px; font-size: 1.0625rem; }
.btn--block { width: 100%; }

/* ── Hero ── */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    color: var(--white);
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="80" height="80"><circle cx="40" cy="40" r="1" fill="rgba(255,255,255,0.05)"/></svg>');
    opacity: 0.5;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--white);
    clip-path: ellipse(55% 100% at 50% 100%);
}
.hero__inner { position: relative; z-index: 1; text-align: center; max-width: 780px; margin: 0 auto; }
.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 24px;
    backdrop-filter: blur(4px);
}
.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
}
.hero__sub {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 36px;
    line-height: 1.6;
}

/* Hero Search */
.hero-search {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}
.hero-search__input {
    width: 100%;
    padding: 18px 60px 18px 24px;
    border: none;
    border-radius: var(--radius-full);
    font-size: 1.0625rem;
    box-shadow: var(--shadow-xl);
    outline: none;
    color: var(--gray-800);
}
.hero-search__input::placeholder { color: var(--gray-400); }
.hero-search__btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--accent);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
}
.hero-search__btn:hover { background: var(--accent-hover); }

/* Search Results Dropdown */
.search-results-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    max-height: 320px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: all 0.2s;
    z-index: 50;
}
.search-results-dropdown.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.search-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
}
.search-result:hover { background: var(--gray-50); }
.search-result__name { font-weight: 600; }
.search-result__city { font-size: 0.8125rem; color: var(--gray-400); }

/* ── Stats Bar ── */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: -40px;
    position: relative;
    z-index: 5;
    margin-bottom: 48px;
}
.stat-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-card__num { font-size: 2rem; font-weight: 800; color: var(--primary); line-height: 1; }
.stat-card__label { font-size: 0.8125rem; color: var(--gray-500); margin-top: 4px; font-weight: 500; }

/* ── Section Headers ── */
.section { padding: 64px 0; }
.section--alt { background: var(--gray-50); }
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 40px;
}
.section-header__label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 8px;
}
.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 12px;
}
.section-header p { color: var(--gray-500); font-size: 1.0625rem; }

.section-header--left { text-align: left; margin-left: 0; }
.section-header--left h2 { font-size: 1.5rem; }

/* ── Dealer Cards ── */
.dealer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; }

.dealer-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
}
.dealer-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
    border-color: var(--gray-300);
}
.dealer-card__img {
    height: 200px;
    background: var(--gray-100);
    overflow: hidden;
    position: relative;
}
.dealer-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.dealer-card:hover .dealer-card__img img { transform: scale(1.05); }
.dealer-card__badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 6px;
    z-index: 2;
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.badge--verified { background: var(--success); color: var(--white); }
.badge--unverified { background: rgba(0,0,0,0.5); color: var(--white); backdrop-filter: blur(4px); }
.badge--featured { background: var(--warning); color: var(--gray-900); }
.badge--new { background: var(--accent); color: var(--white); }
.badge--cat { background: var(--gray-100); color: var(--gray-600); text-transform: none; }

.dealer-card__body { padding: 20px; }
.dealer-card__name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.dealer-card__name a { color: inherit; }
.dealer-card__name a:hover { color: var(--accent); }
.dealer-card__location {
    font-size: 0.8125rem;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 10px;
}
.dealer-card__rating { margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.dealer-card__desc {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.5;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.dealer-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.dealer-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--gray-100);
}
.dealer-card__reviews {
    font-size: 0.8125rem;
    color: var(--gray-400);
}

/* ── Star Rating ── */
.star-rating { display: inline-flex; align-items: center; gap: 2px; }
.star { width: 16px; height: 16px; }
.star-full { color: var(--star); fill: var(--star); }
.star-half { color: var(--star); }
.star-empty { color: var(--gray-300); fill: var(--gray-300); }
.rating-num { font-size: 0.875rem; font-weight: 700; color: var(--gray-700); margin-left: 4px; }

/* ── Category Cards ── */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 28px 16px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.3s;
    text-decoration: none;
}
.cat-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.cat-card:hover .cat-card__icon { background: var(--accent-light); color: var(--accent); }
.cat-card__icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all var(--transition);
}
.cat-card__name { font-weight: 600; color: var(--gray-800); font-size: 0.875rem; }
.cat-card__count { font-size: 0.75rem; color: var(--gray-400); }

/* ── City Cards ── */
.city-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.city-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    height: 220px;
    text-decoration: none;
    display: block;
}
.city-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.city-card:hover .city-card__img { transform: scale(1.1); }
.city-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    color: var(--white);
}
.city-card__name { font-weight: 700; font-size: 1.25rem; }
.city-card__count { font-size: 0.8125rem; opacity: 0.8; }

/* ── Review Cards ── */
.review-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: box-shadow 0.3s;
}
.review-card:hover { box-shadow: var(--shadow-md); }
.review-card__header { display: flex; justify-content: space-between; align-items: start; margin-bottom: 12px; }
.review-card__author { font-weight: 600; color: var(--gray-800); }
.review-card__date { font-size: 0.8125rem; color: var(--gray-400); }
.review-card__dealer { font-size: 0.8125rem; color: var(--accent); margin-bottom: 8px; }
.review-card__body { font-size: 0.9375rem; color: var(--gray-600); line-height: 1.7; }
.review-card__source { font-size: 0.75rem; color: var(--gray-400); margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--gray-100); }

/* ── Broker Banner ── */
.broker-banner--full {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1a365d 100%);
    padding: 64px 0;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}
.broker-banner--full::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232,99,43,0.15) 0%, transparent 70%);
}
.broker-banner__content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.broker-banner__badge {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}
.broker-banner__content h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    margin-bottom: 16px;
}
.broker-banner__content p { font-size: 1.0625rem; color: rgba(255,255,255,0.8); margin-bottom: 28px; }
.broker-banner__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.broker-banner--slim {
    background: var(--accent-light);
    border-top: 3px solid var(--accent);
    padding: 16px 0;
}
.broker-banner--slim .broker-banner__inner {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.broker-banner--slim .broker-banner__icon { font-size: 1.5rem; }
.broker-banner--slim p { font-size: 0.9375rem; color: var(--gray-700); margin: 0; }

/* ── Dealer Detail Page ── */
.dealer-hero {
    background: var(--gray-900);
    color: var(--white);
    padding: 0;
    position: relative;
    min-height: 360px;
    display: flex;
    align-items: flex-end;
}
.dealer-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
}
.dealer-hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 40px 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
}
.dealer-hero__inner { display: flex; align-items: flex-end; gap: 24px; }
.dealer-hero__logo {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-lg);
    background: var(--white);
    border: 3px solid var(--white);
    overflow: hidden;
    flex-shrink: 0;
}
.dealer-hero__logo img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.dealer-hero__info h1 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 4px;
}
.dealer-hero__meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 0.9375rem; }
.dealer-hero__meta span { display: flex; align-items: center; gap: 4px; opacity: 0.85; }

.dealer-tabs {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 72px;
    z-index: 50;
}
.dealer-tabs__inner { display: flex; gap: 0; overflow-x: auto; }
.dealer-tab {
    padding: 16px 20px;
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--gray-500);
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    cursor: pointer;
    transition: all var(--transition);
}
.dealer-tab:hover { color: var(--gray-700); }
.dealer-tab.is-active { color: var(--accent); border-bottom-color: var(--accent); }

.dealer-content { padding: 40px 0; }
.dealer-sidebar { position: sticky; top: 140px; }

.info-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
}
.info-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--gray-900);
}
.info-list { display: flex; flex-direction: column; gap: 12px; }
.info-list__item {
    display: flex;
    gap: 12px;
    font-size: 0.9375rem;
    color: var(--gray-600);
    align-items: flex-start;
}
.info-list__icon { color: var(--gray-400); flex-shrink: 0; margin-top: 2px; }
.info-list__item a { color: var(--accent); }

.unverified-notice {
    background: var(--warning-light);
    border: 1px solid var(--warning);
    border-radius: var(--radius);
    padding: 14px 16px;
    font-size: 0.8125rem;
    color: var(--gray-700);
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin-bottom: 20px;
}
.unverified-notice strong { color: var(--gray-900); }

/* ── Photo Gallery ── */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-bottom: 32px; }
.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery-item:hover img { transform: scale(1.05); }

/* ── Two Column Layout ── */
.two-col { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; }

/* ── Forms ── */
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.9375rem;
    color: var(--gray-800);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(232,99,43,0.1);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Rating Input */
.rating-input { display: flex; gap: 4px; margin-bottom: 8px; }
.rating-input__star {
    width: 32px;
    height: 32px;
    color: var(--gray-300);
    cursor: pointer;
    transition: color 0.15s;
}
.rating-input__star.is-active,
.rating-input__star.is-hover { color: var(--star); }

/* ── Flash Messages ── */
.flash-msg {
    padding: 14px 20px;
    border-radius: var(--radius);
    font-size: 0.9375rem;
    margin-bottom: 20px;
    transition: opacity 0.4s;
}
.flash-msg--success { background: var(--success-light); color: #065f46; border: 1px solid #6ee7b7; }
.flash-msg--error { background: var(--danger-light); color: #991b1b; border: 1px solid #fca5a5; }
.flash-msg--warning { background: var(--warning-light); color: #92400e; border: 1px solid #fcd34d; }

/* ── Page Headers ── */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
    padding: 48px 0;
    position: relative;
    overflow: hidden;
}
.page-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 40px;
    background: var(--white);
    clip-path: ellipse(55% 100% at 50% 100%);
}
.page-header h1 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 8px;
}
.page-header p { color: rgba(255,255,255,0.75); font-size: 1.0625rem; }

.breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 0.8125rem;
    margin-bottom: 12px;
}
.breadcrumb a { color: rgba(255,255,255,0.6); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: rgba(255,255,255,0.4); }

/* ── Pagination ── */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 40px; }
.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid var(--gray-200);
    color: var(--gray-600);
    transition: all var(--transition);
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

/* ── Filter Bar ── */
.filter-bar {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
    padding: 16px 20px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
}
.filter-bar select {
    padding: 8px 12px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.875rem;
    color: var(--gray-700);
    background: var(--white);
    min-width: 160px;
}
.filter-bar__count { margin-left: auto; font-size: 0.875rem; color: var(--gray-500); }

/* ── Legal / Content Pages ── */
.content-page { padding: 48px 0 80px; }
.content-page h2 { font-size: 1.5rem; font-weight: 700; margin: 32px 0 12px; color: var(--gray-900); }
.content-page h3 { font-size: 1.125rem; font-weight: 600; margin: 24px 0 8px; color: var(--gray-800); }
.content-page p { margin-bottom: 16px; color: var(--gray-600); line-height: 1.8; }
.content-page ul { margin: 0 0 16px 24px; }
.content-page ul li { margin-bottom: 8px; color: var(--gray-600); list-style: disc; }
.content-page a { color: var(--accent); }
.content-page__inner { max-width: 800px; }

/* ── Footer ── */
.site-footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 64px 0 0;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-col h4 {
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--gray-400); font-size: 0.9375rem; }
.footer-col a:hover { color: var(--white); }
.footer-col--brand p { font-size: 0.875rem; margin-top: 16px; line-height: 1.7; }
.footer-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a { color: var(--gray-400); transition: color var(--transition); }
.footer-social a:hover { color: var(--accent); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 24px 0;
    text-align: center;
    font-size: 0.8125rem;
}
.footer-bottom a { color: var(--accent); }
.footer-disclaimer {
    margin-top: 8px;
    font-size: 0.75rem;
    color: var(--gray-500);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ── 404 Page ── */
.page-404 { text-align: center; padding: 120px 0; }
.page-404 h1 { font-size: 6rem; font-weight: 900; color: var(--gray-200); }
.page-404 h2 { font-size: 1.5rem; margin-bottom: 16px; }

/* ── Tab Panels ── */
[data-tab-panel] { display: none; }
[data-tab-panel].is-active { display: block; }

/* ── Responsive ── */
.hide-mobile { display: inline-flex; }

@media (max-width: 1024px) {
    .two-col { grid-template-columns: 1fr; }
    .dealer-sidebar { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    .hamburger { display: block; }
    .site-nav {
        position: fixed;
        top: 0;
        right: -320px;
        width: 300px;
        height: 100vh;
        background: var(--white);
        box-shadow: var(--shadow-xl);
        flex-direction: column;
        padding: 80px 24px 32px;
        transition: right 0.3s;
        z-index: 200;
        align-items: stretch;
    }
    .site-nav.is-open { right: 0; }
    .site-nav__link { padding: 12px 0; border-bottom: 1px solid var(--gray-100); }
    .site-nav__dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding-left: 16px;
        display: none;
    }
    .site-nav__dropdown.is-open .site-nav__dropdown-menu { display: block; }
    .hide-mobile { display: none !important; }
    .topbar { display: none; }
    .stats-bar { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .hero { padding: 48px 0 72px; }
    .hero h1 { font-size: 1.75rem; }
    .stats-bar { grid-template-columns: 1fr 1fr; gap: 12px; }
    .dealer-grid { grid-template-columns: 1fr; }
    .cat-grid { grid-template-columns: 1fr 1fr; }
    .city-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .filter-bar { flex-direction: column; align-items: stretch; }
    .broker-banner__actions { flex-direction: column; }
    .dealer-hero__inner { flex-direction: column; align-items: flex-start; }
}

/* ── Admin Styles (shared) ── */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
    position: fixed;
    width: 240px;
    height: 100vh;
    background: var(--primary-dark);
    color: var(--white);
    padding: 24px 0;
    overflow-y: auto;
}
.admin-sidebar a {
    display: block;
    padding: 10px 24px;
    color: rgba(255,255,255,0.7);
    font-size: 0.875rem;
}
.admin-sidebar a:hover,
.admin-sidebar a.active { color: var(--white); background: rgba(255,255,255,0.1); }
.admin-main { margin-left: 240px; padding: 24px 32px; flex: 1; background: var(--gray-50); }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.admin-header h1 { font-size: 1.5rem; font-weight: 700; }

.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 24px;
}
.table-wrap { overflow-x: auto; }
.table-wrap table { width: 100%; border-collapse: collapse; }
.table-wrap th,
.table-wrap td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--gray-100); font-size: 0.875rem; }
.table-wrap th { font-weight: 600; color: var(--gray-500); text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.05em; }
