/* ===========================
   Global Styles
   =========================== */
:root {
    --primary: #00796b;
    --primary-dark: #004d40;
    --primary-light: #e0f2f1;
    --accent: #ff6f00;
    --accent-light: #fff3e0;
    --text-dark: #212121;
    --text-muted: #757575;
    --bg-light: #f5f7f0;
    --bg-white: #ffffff;
    --border: #e0e0e0;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.12);
    --radius: 10px;
    --transition: all 0.25s ease;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    background: var(--bg-white);
    line-height: 1.7;
    word-break: keep-all;
}

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

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

/* ===========================
   Bootstrap Overrides
   =========================== */
.bg-primary {
    background-color: var(--primary) !important;
}

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

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

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

.text-primary {
    color: var(--primary) !important;
}

.page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
}

.page-link {
    color: var(--primary);
}

/* ===========================
   Navbar
   =========================== */
.site-header .navbar {
    padding: 0.6rem 0;
    box-shadow: var(--shadow);
}

.site-header .navbar-brand {
    font-size: 1.15rem;
    letter-spacing: -0.5px;
}

.site-header .nav-link {
    font-size: 0.93rem;
    padding: 0.6rem 0.85rem;
    font-weight: 500;
}

.header-search .form-control {
    border-radius: 20px 0 0 20px;
    border: none;
    font-size: 0.85rem;
}

.header-search .btn {
    border-radius: 0 20px 20px 0;
    font-size: 0.85rem;
}

.dropdown-menu-scroll {
    max-height: 400px;
    overflow-y: auto;
}

/* ===========================
   Hero Section
   =========================== */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, #004d40 50%, #00332d 100%);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.hero-desc {
    font-size: 1.05rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 520px;
}

.hero-search .form-control {
    border-radius: 12px 0 0 12px;
    border: none;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
}

.hero-search .btn {
    border-radius: 0 12px 12px 0;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
}

.hero-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat-card {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ===========================
   Section Titles
   =========================== */
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    letter-spacing: -0.5px;
}

.section-desc {
    margin-bottom: 1.5rem;
}

.page-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

/* ===========================
   Category Cards
   =========================== */
.category-card {
    display: block;
    background: var(--bg-white);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition);
    color: var(--text-dark);
}

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

.category-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.category-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.category-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

/* ===========================
   Region Cards
   =========================== */
.region-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.85rem 1.1rem;
    color: var(--text-dark);
    transition: var(--transition);
}

.region-card:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary-dark);
}

.region-name {
    font-weight: 600;
    font-size: 0.93rem;
}

.region-count {
    font-size: 0.82rem;
    color: var(--text-muted);
    background: #f5f5f5;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
}

.region-card:hover .region-count {
    background: var(--primary);
    color: white;
}

/* ===========================
   Business Cards
   =========================== */
.business-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

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

.business-name a {
    color: var(--text-dark);
    font-weight: 600;
}

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

/* ===========================
   Info Cards (Homepage)
   =========================== */
.info-card {
    padding: 2rem 1.5rem;
}

.info-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: block;
}

.info-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.info-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

/* ===========================
   Filter Sidebar
   =========================== */
.filter-sidebar {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
}

.filter-title {
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
}

.filter-group {
    margin-bottom: 1.25rem;
}

.filter-group h6 {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.filter-scroll {
    max-height: 300px;
    overflow-y: auto;
}

.list-group-item.active {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* ===========================
   Detail Page
   =========================== */
.detail-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.detail-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.detail-info-item {
    display: flex;
    gap: 0.75rem;
}

.detail-info-icon {
    width: 36px;
    height: 36px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.detail-table th {
    width: 140px;
    background: #fafafa;
    font-weight: 600;
    font-size: 0.9rem;
}

.detail-table td {
    font-size: 0.9rem;
}

/* Facility Stats */
.facility-stat {
    text-align: center;
    padding: 1rem;
    background: #fafafa;
    border-radius: 8px;
}

.facility-stat-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
}

.facility-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* ===========================
   Footer
   =========================== */
.footer-top {
    background: #1a1a2e;
    color: #b0b0c0;
}

.footer-title {
    color: white;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-subtitle {
    color: white;
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.4rem;
}

.footer-links a {
    color: #b0b0c0;
    font-size: 0.88rem;
    transition: var(--transition);
}

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

.footer-links-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.footer-links-inline li {
    margin: 0;
}

.footer-links-inline a {
    background: rgba(255,255,255,0.08);
    padding: 0.2rem 0.65rem;
    border-radius: 4px;
    display: inline-block;
    font-size: 0.82rem;
}

.footer-links-inline a:hover {
    background: rgba(255,255,255,0.15);
}

.footer-bottom {
    background: #12121f;
    color: #888;
}

.footer-bottom a {
    color: #aaa;
}

/* ===========================
   Content Pages
   =========================== */
.privacy-content h4,
.terms-content h4 {
    margin-top: 1.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 121, 107, 0.25);
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 1.8rem;
    }
    .hero-section {
        padding: 2.5rem 0;
    }
    .detail-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 1.5rem;
    }
    .hero-desc {
        font-size: 0.92rem;
    }
    .section-title {
        font-size: 1.25rem;
    }
    .page-title {
        font-size: 1.3rem;
    }
    .detail-title {
        font-size: 1.4rem;
    }
    .filter-sidebar {
        margin-bottom: 1.5rem;
    }
}

/* ===========================
   Trust & Legal Elements
   =========================== */
.trust-banner {
    background: #e8f5e9;
    color: var(--primary-dark);
    padding: 0.6rem 0;
    font-size: 0.82rem;
    font-weight: 500;
    border-bottom: 1px solid #c8e6c9;
}

.trust-banner i {
    color: var(--primary);
}

.trust-divider {
    opacity: 0.3;
    margin: 0 0.25rem;
}

.hero-legal-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 6px;
    padding: 0.35rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.legal-notice-box {
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
    border: 1px solid #c8e6c9;
    border-left: 4px solid var(--primary);
    border-radius: var(--radius);
    padding: 1.75rem 2rem;
}

.legal-notice-box h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.legal-notice-box p {
    color: #37474f;
    font-size: 0.93rem;
    line-height: 1.7;
}

.legal-notice-icon {
    font-size: 2.5rem;
    color: var(--primary);
}

.detail-trust-bar {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
}

.footer-legal {
    background: #16162a;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* ===========================
   Utilities
   =========================== */
.breadcrumb {
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.badge {
    font-weight: 500;
    font-size: 0.78rem;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: var(--primary-light);
    color: var(--primary-dark);
}
