/* BlueDentists - Modern Dental Directory */

/* ===== Color System ===== */
:root {
    --primary: #0077b8;
    --primary-dark: #006399;
    --primary-darker: #004d7a;
    --primary-light: #a3cffa;
    --primary-subtle: #eef5fc;
    --accent: #F59E0B;
    --accent-dark: #D97706;
    --accent-light: #FEF3C7;
    --success: #10B981;
    --success-light: #D1FAE5;
    --danger: #EF4444;
    --danger-light: #FEE2E2;
    --info: #6366F1;
    --info-light: #E0E7FF;
    --text: #1E293B;
    --text-muted: #64748B;
    --border: #E2E8F0;
    --surface: #FFFFFF;
    --background: #F8FAFC;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 4px 6px rgba(0,0,0,0.04), 0 2px 4px rgba(0,0,0,0.03);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.07), 0 4px 10px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.08), 0 8px 16px rgba(0,0,0,0.04);
}

/* ===== Base ===== */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--background);
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

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

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

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* ===== Navbar ===== */
.navbar-main {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    padding: 0.6rem 0;
}

.navbar-main .navbar-brand {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary-dark) !important;
    letter-spacing: -0.02em;
}

.navbar-main .navbar-brand .brand-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.navbar-main .nav-link {
    color: var(--text) !important;
    font-weight: 500;
    font-size: 0.92rem;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-sm);
    transition: background 0.15s, color 0.15s;
}

.navbar-main .nav-link:hover {
    color: var(--primary) !important;
    background: var(--primary-subtle);
}

.navbar-main .nav-search .form-control {
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    border: 1px solid var(--border);
    font-size: 0.85rem;
    background: var(--background);
}

.navbar-main .nav-search .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
    background: var(--surface);
}

.navbar-main .nav-search .btn {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.navbar-main .nav-search .btn:hover {
    background: var(--primary-dark);
}

/* ===== Offcanvas nav (mobile only) ===== */
@media (max-width: 991.98px) {
    .offcanvas-lg {
        max-width: 280px;
    }

    .offcanvas-header {
        padding: 1rem 1.25rem;
    }

    .offcanvas-body .navbar-nav .nav-link {
        padding: 0.75rem 0.5rem;
        font-size: 1.05rem;
        border-bottom: 1px solid var(--border);
    }

    .offcanvas-body .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: none;
    }

    .offcanvas-body .nav-search {
        margin-top: 1rem;
    }

    .offcanvas-body .nav-search .form-control {
        min-height: 48px;
        font-size: 1rem;
    }

    .offcanvas-body .nav-search .btn {
        min-height: 48px;
        min-width: 48px;
    }
}

/* ===== Hero Section ===== */
.hero-section {
    background: linear-gradient(160deg, #042f2e 0%, var(--primary-darker) 40%, var(--primary) 100%);
    min-height: 400px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,0.02);
}

.hero-section h1 {
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.hero-section .lead {
    opacity: 0.85;
    font-weight: 400;
}

.hero-search-box {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(255,255,255,0.15);
}

.hero-search-box .form-control {
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    padding: 0.75rem 1rem;
    background: white;
}

.hero-search-box .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2);
}

.hero-search-box .btn-search {
    background: var(--accent);
    border: none;
    color: #1a1a1a;
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-sm);
    font-size: 1.05rem;
    transition: all 0.2s;
}

.hero-search-box .btn-search:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.hero-checker-link {
    display: inline-block;
    color: #fff;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(6px);
    padding: 0.6rem 1.5rem;
    border-radius: 999px;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.25s ease;
}

.hero-checker-link:hover {
    background: rgba(255,255,255,0.22);
    border-color: rgba(255,255,255,0.4);
    color: #fff;
    transform: translateY(-1px);
}

/* ===== Stat Cards ===== */
.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stats-overlap {
    margin-top: -4rem;
}

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

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.stat-icon.teal { background: var(--primary-subtle); color: var(--primary); }
.stat-icon.green { background: var(--success-light); color: var(--success); }
.stat-icon.blue { background: var(--info-light); color: var(--info); }
.stat-icon.amber { background: var(--accent-light); color: var(--accent-dark); }

.stat-card h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.1rem;
}

.stat-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

/* ===== Dentist Cards ===== */
.dentist-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.2s ease;
    border-left: 4px solid var(--primary);
    overflow: hidden;
}

.dentist-card:hover {
    border-left-color: var(--accent);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.dentist-card .card-body {
    padding: 1.25rem;
}

.dentist-card .card-title a {
    color: var(--text);
    font-weight: 700;
}

.dentist-card .card-title a:hover {
    color: var(--primary);
}

/* ===== City Cards ===== */
.city-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.2s ease;
    overflow: hidden;
}

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

.city-card:hover h6 {
    color: var(--primary);
}

/* ===== Badges ===== */
.badge {
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.4em 0.7em;
    border-radius: 6px;
    letter-spacing: 0.01em;
}

.badge.bg-success {
    background-color: var(--success) !important;
}

.badge.bg-secondary {
    background-color: #94A3B8 !important;
}

.badge.bg-info {
    background-color: var(--info) !important;
}

.badge.bg-primary {
    background-color: var(--primary) !important;
}

.badge.bg-weekend {
    background-color: #7C3AED !important;
}

.badge.bg-evening {
    background-color: #4338CA !important;
}

/* ===== Buttons ===== */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    border-radius: var(--radius-sm);
    font-weight: 600;
}

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

.btn-outline-secondary {
    border-radius: var(--radius-sm);
}

/* ===== Links ===== */
a {
    color: var(--primary);
}

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

/* ===== Cards (general) ===== */
.card {
    border-radius: var(--radius);
    border-color: var(--border);
}

.card-header {
    border-radius: var(--radius) var(--radius) 0 0 !important;
}

.card.shadow-sm {
    box-shadow: var(--shadow) !important;
}

/* ===== Section headings ===== */
.section-heading {
    font-weight: 800;
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
}

.section-heading::after {
    content: '';
    display: block;
    width: 48px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
    margin-top: 0.5rem;
}

.text-center .section-heading::after {
    margin-left: auto;
    margin-right: auto;
}

/* ===== How it works steps ===== */
.step-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 8px 20px rgba(13, 148, 136, 0.25);
}

.step-title {
    font-size: 1rem;
}

@media (max-width: 576px) {
    .step-title {
        font-size: 0.85rem;
    }
}

/* ===== Band cards ===== */
.band-card {
    border: 2px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.2s;
}

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

.band-card .band-header {
    background: linear-gradient(135deg, var(--primary-darker), var(--primary));
    color: white;
    padding: 1.25rem;
    text-align: center;
}

.band-card .band-price {
    font-size: 1.75rem;
    font-weight: 800;
}

/* ===== Pagination ===== */
.page-link {
    color: var(--primary);
    border-radius: var(--radius-sm) !important;
    margin: 0 2px;
    border: 1px solid var(--border);
    font-weight: 500;
}

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

/* ===== Tables ===== */
.table-primary {
    --bs-table-bg: var(--primary);
    --bs-table-color: white;
}

/* ===== Footer ===== */
.footer-main {
    background: #0F172A;
    color: #CBD5E1;
}

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

.footer-main a {
    color: #94A3B8;
    text-decoration: none;
    transition: color 0.15s;
}

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

.footer-bottom {
    background: #020617;
    color: #475569;
    font-size: 0.82rem;
}

/* ===== Form controls ===== */
.form-control {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* ===== Confirmed badge ===== */
.confirmed-line {
    color: var(--success);
    font-size: 0.82rem;
}

.confirmed-line i {
    font-size: 0.9rem;
}

/* ===== Detail Facilities & Treatments ===== */
.detail-facility-group {
    margin-bottom: 1rem;
}

.detail-facility-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.detail-facility-label i {
    font-size: 0.85rem;
    margin-right: 0.15rem;
}

.detail-facility-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.detail-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    padding: 0.3rem 0.7rem;
    border-radius: 50px;
    background: #f0f4f8;
    color: #495057;
    border: 1px solid #e2e8f0;
    white-space: nowrap;
}

.detail-tag i {
    color: var(--success);
    font-size: 0.75rem;
}

.detail-tag-treatment {
    background: #e8f5e9;
    border-color: #c8e6c9;
    color: #2e7d32;
}

.detail-tag-treatment i {
    color: #2e7d32;
}

/* ===== Reviews ===== */
.review-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.review-summary-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.review-big-score {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1;
    color: #1a1a1a;
}

.review-summary-stars {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.rs-stars i {
    color: #ffc107;
    font-size: 1rem;
}

.rs-count {
    font-size: 0.82rem;
    color: #888;
}

.review-write-btn {
    border-radius: 50px;
    padding: 0.5rem 1.2rem;
    font-weight: 600;
    font-size: 0.85rem;
}

.review-list {
    display: flex;
    flex-direction: column;
}

.review-card {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f5f5f5;
}

.review-card:last-child {
    border-bottom: none;
}

.review-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.review-meta {
    flex: 1;
    min-width: 0;
}

.review-author {
    font-weight: 600;
    font-size: 0.92rem;
    color: #1a1a1a;
}

.review-date {
    font-size: 0.78rem;
    color: #999;
}

.review-rating-badge {
    background: #fff8e1;
    color: #f59e0b;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 0.3rem 0.6rem;
    border-radius: 50px;
    white-space: nowrap;
}

.review-rating-badge i {
    font-size: 0.75rem;
}

.review-stars-row {
    margin-bottom: 0.5rem;
}

.review-stars-row i {
    color: #ffc107;
    font-size: 0.8rem;
}

.review-body {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.review-empty {
    text-align: center;
    padding: 2.5rem 1.5rem;
}

.review-empty i {
    font-size: 2.5rem;
    color: #ddd;
    display: block;
    margin-bottom: 0.5rem;
}

.review-empty p {
    font-weight: 600;
    color: #666;
    margin-bottom: 0.25rem;
}

.review-empty span {
    font-size: 0.85rem;
    color: #999;
}

.review-form {
    background: #f8fafb;
    padding: 1.5rem;
    border-top: 1px solid #eee;
}

.review-form-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.review-form-grid {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 0.75rem;
}

.review-form-grid .review-form-field:first-child {
    flex: 1;
}

.review-form-field {
    margin-bottom: 0.75rem;
}

.review-form-grid .review-form-field {
    margin-bottom: 0;
}

.review-form .form-control {
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    font-size: 0.9rem;
}

.review-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 128, 128, 0.1);
}

.review-submit-btn {
    border-radius: 50px;
    padding: 0.55rem 1.5rem;
    font-weight: 600;
    font-size: 0.88rem;
}

.star-rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 0.1rem;
}

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

.star-rating-input label {
    cursor: pointer;
    font-size: 1.5rem;
    color: #ddd;
    transition: color 0.15s, transform 0.15s;
    padding: 0 0.05rem;
}

.star-rating-input label:hover {
    transform: scale(1.15);
}

.star-rating-input label:hover,
.star-rating-input label:hover ~ label,
.star-rating-input input:checked ~ label {
    color: #ffc107;
}

/* ===== CQC Card ===== */
.cqc-card {
    border-left: 3px solid #00437b;
}

.cqc-logo {
    width: 44px;
    height: 44px;
    background: #00437b;
    color: #fff;
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ===== Card Actions ===== */
.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.card-action-btn {
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-sm);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ===== Responsive — Tablets (max 768px) ===== */
@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    .hero-section .container {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }

    .hero-section h1 {
        font-size: 2.25rem;
    }

    .hero-section .lead {
        font-size: 0.92rem;
    }

    .hero-search-box {
        padding: 1rem;
    }

    .stats-overlap {
        margin-top: -2rem;
    }

    .stat-card h3 {
        font-size: 1.5rem;
    }

    .navbar-main .navbar-brand {
        font-size: 1.15rem;
    }

    .container.py-4 {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .step-circle {
        width: 56px;
        height: 56px;
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }

    .band-card .band-price {
        font-size: 1.5rem;
    }

    .band-card .band-header {
        padding: 1rem;
    }

    .review-summary {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
        padding: 1rem;
    }

    .review-write-btn {
        width: 100%;
    }

    .review-card {
        padding: 1rem;
    }

    .review-form {
        padding: 1rem;
    }

    .review-form-grid {
        flex-direction: column;
        gap: 0.5rem;
    }

    .review-form-grid .review-form-field:first-child {
        width: 100%;
    }
}

/* ===== Responsive — Phones (max 576px) ===== */
@media (max-width: 576px) {
    body {
        font-size: 0.92rem;
    }

    .container.py-4 {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .hero-section {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .hero-section h1 {
        font-size: 2.25rem;
    }

    .hero-section .lead {
        font-size: 0.85rem;
        margin-bottom: 1rem !important;
    }

    .hero-search-box {
        padding: 0.75rem;
        border-radius: 12px;
    }

    .stats-overlap {
        margin-top: 0;
    }

    .hero-search-box .form-control {
        font-size: 1rem;
        padding: 0.65rem 0.75rem;
    }

    .hero-search-box .btn-search {
        padding: 0.65rem 1rem;
        font-size: 0.9rem;
    }

    h1 {
        font-size: 1.35rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    .lead {
        font-size: 0.85rem;
    }

    /* Navbar mobile */
    .navbar-main {
        padding: 0.4rem 0;
    }

    .navbar-main .navbar-brand {
        font-size: 1.1rem;
    }

    .navbar-main .navbar-brand .brand-icon {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
        border-radius: 8px;
    }

    .navbar-main .nav-search {
        margin-top: 0.5rem;
    }

    .navbar-main .nav-search .form-control {
        font-size: 1rem;
        min-height: 44px;
    }

    .navbar-main .nav-search .btn {
        min-height: 44px;
        min-width: 44px;
    }

    .navbar-main .nav-link {
        padding: 0.6rem 0.5rem !important;
        font-size: 0.95rem;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    /* Stat cards */
    .stat-card {
        padding: 0.75rem 0.4rem;
        border-radius: var(--radius-sm);
    }

    .stat-card h3 {
        font-size: 1.2rem;
    }

    .stat-card p {
        font-size: 0.72rem;
    }

    .stat-icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
        border-radius: 8px;
        margin-bottom: 0.3rem;
    }

    /* City page stat cards */
    .card.shadow-sm.text-center h4 {
        font-size: 1.2rem;
    }

    /* Dentist cards */
    .dentist-card {
        border-radius: var(--radius-sm);
        border-left-width: 3px;
    }

    .dentist-card .card-body {
        padding: 0.85rem;
    }

    .dentist-card .card-title {
        font-size: 0.95rem;
    }

    .card-actions {
        gap: 0.4rem;
    }

    .card-action-btn {
        flex: 1 1 auto;
        min-width: 0;
        font-size: 0.78rem;
        padding: 0.45rem 0.6rem;
        min-height: 44px;
    }

    .card-action-btn:first-child {
        flex: 1 1 100%;
    }

    /* Badges */
    .badge {
        font-size: 0.68rem;
        padding: 0.3em 0.55em;
    }

    .badge.fs-6 {
        font-size: 0.72rem !important;
    }

    .facility-tag {
        font-size: 0.65rem;
    }

    .confirmed-line {
        font-size: 0.75rem;
    }

    /* Results gap */
    .d-flex.flex-column.gap-3 {
        gap: 0.65rem !important;
    }

    /* Pagination */
    .pagination {
        flex-wrap: wrap;
        gap: 0.2rem;
    }

    .page-link {
        font-size: 0.82rem;
        padding: 0.4rem 0.65rem;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Steps section */
    .step-circle {
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
        box-shadow: 0 4px 12px rgba(0, 94, 184, 0.2);
    }

    section.py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    /* Band cards */
    .band-card .band-header {
        padding: 0.75rem;
    }

    .band-card .band-price {
        font-size: 1.35rem;
    }

    .band-card .card-body {
        padding: 0.75rem !important;
    }

    /* Tables */
    .table td, .table th {
        padding: 0.5rem 0.4rem;
        font-size: 0.85rem;
    }

    .table td:first-child {
        width: auto !important;
        min-width: 80px;
    }

    /* Sidebar cards on mobile */
    .card.shadow-sm .card-header h5,
    .card.shadow-sm .card-header h6 {
        font-size: 0.9rem;
    }

    .card.shadow-sm .card-body {
        padding: 0.85rem;
    }

    /* Dentist detail acceptance badges on mobile */
    .dentist-detail-badges .badge {
        font-size: 0.7rem !important;
        padding: 0.35em 0.5em;
    }

    /* Detail tags */
    .detail-tag {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }

    .detail-facility-label {
        font-size: 0.7rem;
    }

    /* Map smaller on mobile */
    #dentist-map {
        height: 180px !important;
    }

    #homepage-map {
        height: 300px !important;
    }

    #city-map {
        height: 240px !important;
    }

    /* Reviews */
    .review-big-score {
        font-size: 2.2rem;
    }

    .review-avatar {
        width: 34px;
        height: 34px;
        font-size: 0.75rem;
    }

    .review-author {
        font-size: 0.85rem;
    }

    .review-body {
        font-size: 0.85rem;
    }

    .star-rating-input label {
        font-size: 1.8rem;
        padding: 0.15rem;
    }

    /* Register steps on mobile */
    .register-step-icon {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    .city-register-section h6 {
        font-size: 0.85rem;
    }

    .city-register-section p {
        font-size: 0.78rem !important;
    }

    /* FAQ on mobile */
    .city-faq-question {
        font-size: 0.88rem;
        padding: 0.85rem 0;
    }

    .city-faq-answer {
        font-size: 0.85rem;
    }

    /* City info section */
    .city-info-section .card-body {
        padding: 1.25rem !important;
    }

    .city-register-section .card-body {
        padding: 1.25rem !important;
    }

    .city-faq-section .card-body {
        padding: 1.25rem !important;
    }

    /* Footer on mobile */
    .footer-main {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .footer-main h5 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .footer-main p,
    .footer-main li,
    .footer-main a {
        font-size: 0.82rem;
    }

    .footer-bottom {
        font-size: 0.72rem;
        padding: 0.75rem 0 !important;
    }

    .footer-bottom .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Breadcrumb */
    .breadcrumb {
        font-size: 0.8rem;
        margin-bottom: 0.75rem !important;
    }

    /* Search bar on search page */
    .form-control-lg {
        font-size: 1rem;
        padding: 0.65rem 0.75rem;
        min-height: 48px;
    }

    .btn-lg {
        font-size: 0.95rem;
        padding: 0.65rem 1rem;
        min-height: 48px;
    }

    /* Cities page letter filter */
    .cities-letter-nav .btn {
        min-width: 36px;
        min-height: 36px;
        padding: 0.2rem 0.4rem;
        font-size: 0.82rem;
    }

    /* Section heading */
    .section-heading {
        font-size: 1.25rem;
    }

    .section-heading::after {
        width: 36px;
        height: 3px;
    }

    /* CQC card */
    .cqc-logo {
        width: 36px;
        height: 36px;
        font-size: 0.65rem;
        border-radius: 6px;
    }

    /* NHS attribution above footer */
    .text-center.py-4 img {
        height: 32px !important;
    }

    /* Mobile order for dentist detail */
    .mobile-actions-top {
        order: -1;
        margin-bottom: 1rem;
    }

    .mobile-actions-top .btn-lg {
        font-size: 1rem;
    }
}

/* ===== Responsive — Small phones (max 380px) ===== */
@media (max-width: 380px) {
    .hero-section h1 {
        font-size: 1.25rem;
    }

    .stat-card h3 {
        font-size: 1rem;
    }

    .stat-card p {
        font-size: 0.68rem;
    }

    .card-action-btn {
        font-size: 0.72rem;
        padding: 0.4rem 0.4rem;
    }

    .register-step-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
}

/* ===== Utility ===== */
.bg-surface {
    background: var(--surface);
}

.bg-muted {
    background: var(--background);
}

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

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

/* Override Bootstrap primary colors */
.card.border-primary {
    border-color: var(--primary) !important;
}

.card-header.bg-primary {
    background: linear-gradient(135deg, var(--primary-darker), var(--primary)) !important;
    border: none;
}

.border-success {
    border-color: var(--success) !important;
}

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

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

/* Alert styling */
.alert-warning {
    background: var(--accent-light);
    border-color: var(--accent);
    color: var(--accent-dark);
    border-radius: var(--radius);
}

/* Breadcrumb */
.breadcrumb {
    font-size: 0.88rem;
}

/* ===== Filter Bar ===== */
.filter-bar {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}

.filter-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 0.25rem;
}

.filter-divider {
    width: 1px;
    height: 24px;
    background: var(--border);
    margin: 0 0.35rem;
}

.filter-chip {
    margin: 0;
    cursor: pointer;
}

.filter-chip input {
    display: none;
}

.filter-chip span {
    display: inline-flex;
    align-items: center;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--background);
    color: var(--text-muted);
    transition: all 0.15s ease;
    user-select: none;
}

.filter-chip span:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-chip input:checked + span {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.25);
}

@media (max-width: 576px) {
    .filter-bar {
        padding: 0.5rem 0.5rem;
        gap: 0.3rem;
        border-radius: var(--radius-sm);
    }

    .filter-label {
        display: none;
    }

    .filter-divider {
        display: none;
    }

    .filter-chip span {
        font-size: 0.75rem;
        padding: 0.35rem 0.55rem;
        min-height: 38px;
        display: inline-flex;
        align-items: center;
    }

    .filter-chip span i {
        font-size: 0.7rem;
    }
}

/* Dropdown filters */
.dropdown-menu {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}

/* List group in sidebar */
.list-group-item {
    border-color: var(--border);
    font-size: 0.9rem;
}

/* ===== Facility Tags ===== */
.facility-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.facility-tag {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 0.15em 0.5em;
    letter-spacing: 0.01em;
}

.facility-tag i {
    font-size: 0.7rem;
    color: var(--primary);
}

/* ===== Contact Page ===== */
.contact-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-subtle);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

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

/* Smooth scroll anchors */
[id^="letter-"] {
    scroll-margin-top: 80px;
}

/* ===== City Page — Register Steps ===== */
.register-step-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #e8f0fe;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

/* ===== City Page — FAQ ===== */
.city-faq-list {
    display: flex;
    flex-direction: column;
}

.city-faq-item {
    border-bottom: 1px solid var(--border);
}

.city-faq-item:last-child {
    border-bottom: none;
}

.city-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 0;
    background: none;
    border: none;
    text-align: left;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    gap: 1rem;
}

.city-faq-question:hover {
    color: var(--primary);
}

.city-faq-chevron {
    flex-shrink: 0;
    transition: transform 0.25s ease;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.city-faq-question:not(.collapsed) .city-faq-chevron {
    transform: rotate(180deg);
}

.city-faq-answer {
    padding: 0 0 1rem;
    margin: 0;
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 0.9rem;
}

.city-faq-answer a {
    color: var(--primary);
    text-decoration: none;
}

.city-faq-answer a:hover {
    text-decoration: underline;
}

/* ===== Legal content (Privacy, Terms) ===== */
.legal-content h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.legal-content h2:first-of-type {
    margin-top: 0;
}

.legal-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.legal-content p,
.legal-content li {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 0.92rem;
}

.legal-content ul {
    padding-left: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.35rem;
}

/* ===== Free Treatment Checker ===== */
.checker-btn {
    border-radius: 0.75rem;
    padding: 0.75rem 1.25rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.checker-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateX(4px);
}

.checker-result-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

/* ===== Insights page ===== */
.progress {
    border-radius: 999px;
    background: #e9ecef;
}

.progress-bar {
    border-radius: 999px;
}