/* =============================================
   GEORGIA BHPH DIRECTORY - STYLESHEET
   ============================================= */

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', sans-serif; color: #333; background: #fff; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }
.hidden { display: none !important; }

/* CONTAINER */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ============================================= */
/* HERO SECTION */
/* ============================================= */
.hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
}
.hero h1 { font-size: 2.5rem; margin-bottom: 16px; line-height: 1.2; }
.hero p { font-size: 1.1rem; opacity: 0.85; margin-bottom: 32px; }

/* SEARCH BAR */
.search-container {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}
.search-container input {
    flex: 1;
    padding: 16px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 8px 0 0 8px;
    outline: none;
}
.search-container button {
    padding: 16px 24px;
    background: #e94560;
    color: white;
    border: none;
    border-radius: 0 8px 8px 0;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}
.search-container button:hover { background: #c73652; }

/* SUGGESTIONS */
.suggestions-box {
    position: absolute;
    top: 100%;
    left: 0;
    right: 60px;
    background: white;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    z-index: 100;
    max-height: 300px;
    overflow-y: auto;
}
.suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}
.suggestion-item:hover { background: #f5f5f5; }
.suggestion-item strong { font-size: 0.95rem; }
.suggestion-item small { color: #888; font-size: 0.8rem; }

/* ============================================= */
/* SECTIONS */
/* ============================================= */
.section { padding: 60px 0; }
.section.bg-gray { background: #f8f9fa; }
.section h2 { font-size: 1.8rem; margin-bottom: 8px; }
.section p { color: #666; margin-bottom: 32px; }

/* ============================================= */
/* COUNTY GRID */
/* ============================================= */
.county-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 24px;
}
.county-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.county-card:hover {
    border-color: #e94560;
    box-shadow: 0 4px 12px rgba(233,69,96,0.15);
    transform: translateY(-2px);
}
.county-name { font-weight: 600; font-size: 0.9rem; }
.county-count { font-size: 0.75rem; color: #888; }

/* ============================================= */
/* DEALER GRID */
/* ============================================= */
.dealer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

/* ============================================= */
/* DEALER CARD */
/* ============================================= */
.dealer-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
}
.dealer-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}
.dealer-card-header {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
    align-items: flex-start;
}
.dealer-logo {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}
.dealer-name { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.dealer-tagline { font-size: 0.8rem; color: #666; line-height: 1.3; }
.dealer-card-body { padding: 16px; flex: 1; }
.dealer-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}
.stars { color: #f4b400; font-size: 1rem; }
.rating-number { font-weight: 700; }
.review-count { color: #888; font-size: 0.85rem; }
.dealer-info { display: flex; flex-direction: column; gap: 6px; }
.dealer-address, .dealer-phone { font-size: 0.85rem; color: #555; }
.dealer-phone a { color: #e94560; font-weight: 600; }
.dealer-breadcrumb {
    margin-top: 12px;
    font-size: 0.75rem;
    color: #999;
    padding: 4px 8px;
    background: #f8f9fa;
    border-radius: 4px;
    display: inline-block;
}
.dealer-card-footer {
    padding: 12px 16px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

/* ============================================= */
/* BUTTONS */
/* ============================================= */
.btn {
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    display: inline-block;
    text-align: center;
}
.btn-primary { background: #e94560; color: white; }
.btn-primary:hover { background: #c73652; }
.btn-outline { background: transparent; border: 2px solid #e94560; color: #e94560; }
.btn-outline:hover { background: #e94560; color: white; }
.btn-yelp { background: #d32323; color: white; }
.btn-yelp:hover { background: #b01c1c; }
.btn-large { padding: 14px 24px; font-size: 1rem; width: 100%; margin-bottom: 10px; }

/* ============================================= */
/* COUNTY PAGE LAYOUT */
/* ============================================= */
.county-hero {
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
    color: white;
    padding: 48px 20px;
}
.county-hero h1 { font-size: 2rem; }
.county-layout { display: grid; grid-template-columns: 280px 1fr; gap: 32px; }
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.filter-box {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
}
.filter-box h3 { margin-bottom: 16px; font-size: 1rem; }
.filter-group { margin-bottom: 16px; }
.filter-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: #555; }
.filter-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
}
.stats-box p { font-size: 0.9rem; color: #555; margin-bottom: 8px; }
.results-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.results-bar span { font-weight: 600; color: #555; }
.results-bar select { padding: 8px; border-radius: 6px; border: 1px solid #ddd; }

/* ============================================= */
/* DEALER DETAIL PAGE */
/* ============================================= */
.dealer-hero {
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
    color: white;
    padding: 48px 20px;
}
.dealer-hero-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}
.dealer-hero-logo {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.3);
    flex-shrink: 0;
}
.dealer-hero-info h1 { font-size: 1.8rem; margin-bottom: 8px; }
.dealer-hero-info p { opacity: 0.85; margin-bottom: 12px; }
.dealer-hero-stars { font-size: 1.2rem; color: #f4b400; margin-bottom: 12px; }
.dealer-hero-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.badge {
    background: rgba(255,255,255,0.15);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
}
.dealer-detail-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
}
.detail-box {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}
.detail-box h2 { font-size: 1.2rem; margin-bottom: 16px; }
.contact-grid { display: flex; flex-direction: column; gap: 12px; }
.contact-item { display: flex; flex-direction: column; gap: 4px; }
.contact-label { font-size: 0.8rem; font-weight: 600; color: #888; }
.map-placeholder { border-radius: 8px; overflow: hidden; background: #f0f0f0; min-height: 300px; }
.cta-box, .rating-box, .location-box {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}
.cta-box h3, .rating-box h3, .location-box h3 { margin-bottom: 12px; font-size: 1rem; }
.cta-box p { color: #666; font-size: 0.85rem; margin-bottom: 16px; }
.sidebar-stars { font-size: 1.5rem; color: #f4b400; margin-bottom: 8px; }

/* ============================================= */
/* BREADCRUMB */
/* ============================================= */
.breadcrumb {
    background: #f8f9fa;
    padding: 12px 20px;
    font-size: 0.85rem;
    color: #666;
}
.breadcrumb a { color: #e94560; }
.breadcrumb a:hover { text-decoration: underline; }

/* ============================================= */
/* NO RESULTS */
/* ============================================= */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px;
    color: #666;
}

/* ============================================= */
/* MOBILE RESPONSIVE */
/* ============================================= */
@media (max-width: 768px) {
    .hero h1 { font-size: 1.6rem; }
    .search-container { flex-direction: column; }
    .search-container input { border-radius: 8px; }
    .search-container button { border-radius: 8px; }
    .county-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
    .dealer-grid { grid-template-columns: 1fr; }
    .county-layout { grid-template-columns: 1fr; }
    .dealer-detail-layout { grid-template-columns: 1fr; }
    .dealer-hero-layout { flex-direction: column; }
    .dealer-hero-logo { width: 80px; height: 80px; }
}

@media (max-width: 480px) {
    .hero { padding: 48px 16px; }
    .section { padding: 40px 0; }
    .dealer-card-footer { flex-direction: column; }
    .btn { width: 100%; }
}