/* ============================================
   Thai Clinics - Main Stylesheet
   Professional, authoritative, medical
   ============================================ */

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

:root {
    /* Color palette - Sky blue theme (#3faeeb) */
    --navy-900: #1a3a4a;
    --navy-800: #1e5a7a;
    --navy-700: #3faeeb;
    --navy-600: #57b8ee;
    --navy-500: #6ec4f1;
    --navy-100: #d6eef9;
    --navy-50: #edf7fd;

    /* Semantic aliases */
    --primary: #3faeeb;
    --secondary: #57b8ee;
    --sky-50: #edf7fd;

    --gold-600: #b8860b;
    --gold-500: #d4a017;
    --gold-400: #e2a93b;
    --gold-300: #f0c75e;
    --gold-100: #fef3c7;
    --gold-50: #fffbeb;

    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;

    --white: #ffffff;
    --success: #059669;
    --error: #dc2626;
    --warning: #d97706;

    /* Silver tier */
    --silver-bg: #f8fafc;
    --silver-border: #94a3b8;
    --silver-accent: #64748b;

    /* Typography */
    --font-display: 'Kanit', Georgia, 'Times New Roman', serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-thai: 'Kanit', 'Sarabun', sans-serif;

    /* Sizing */
    --container-max: 1280px;
    --header-height: 72px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
    --shadow-gold: 0 4px 14px rgba(212,160,23,0.2);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--slate-800);
    background: var(--slate-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--navy-900);
    line-height: 1.25;
    font-weight: 700;
}

a { color: var(--navy-600); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--navy-800); }

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

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--navy-900);
    color: var(--white);
    padding: 16px 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}
.cookie-banner__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.cookie-banner p { font-size: 14px; color: var(--slate-300); }
.cookie-banner a { color: var(--gold-400); text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 10px; flex-shrink: 0; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.btn--primary {
    background: var(--navy-700);
    color: var(--white);
    border-color: var(--navy-700);
}
.btn--primary:hover { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); }
.btn--gold {
    background: var(--gold-500);
    color: var(--navy-900);
    border-color: var(--gold-500);
}
.btn--gold:hover { background: var(--gold-600); border-color: var(--gold-600); color: var(--white); }
.btn--outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.3);
}
.btn--outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5); color: var(--white); }
.btn--sm { padding: 8px 16px; font-size: 13px; }
.btn--lg { padding: 16px 32px; font-size: 17px; }
.btn--white { background: var(--white); color: var(--navy-800); border-color: var(--white); }
.btn--white:hover { background: var(--navy-50); color: var(--navy-800); }

/* ===== HEADER ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid var(--slate-200);
    height: var(--header-height);
    box-shadow: var(--shadow-sm);
}
.site-header .container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}
.site-header__logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.site-header__logo-img {
    height: 40px;
    width: auto;
}

.site-header__nav {
    display: flex;
    align-items: center;
    gap: 8px;
}
.site-header__nav > a,
.site-header__nav .mega-trigger__link {
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--slate-600);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}
.site-header__nav > a:hover,
.site-header__nav .mega-trigger__link:hover,
.mega-trigger.active .mega-trigger__link { color: var(--navy-800); background: var(--navy-50); }

/* Megamenu */
.mega-trigger {
    position: static;
}
.mega-trigger__link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
}
.mega-trigger__icon {
    transition: transform 0.2s;
}
.mega-trigger.active .mega-trigger__icon {
    transform: rotate(180deg);
}
/* Invisible bridge between link and dropdown to prevent hover gap */
.mega-trigger__link::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 16px;
    display: none;
}
.mega-trigger.active .mega-trigger__link::after {
    display: block;
}
.megamenu {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    transform: translateY(-4px);
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    z-index: 1000;
    padding: 0;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    pointer-events: none;
}
.mega-trigger.active .megamenu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.megamenu__inner {
    column-count: 4;
    column-gap: 32px;
    padding: 24px 28px 16px;
    max-height: 480px;
    overflow-y: auto;
}
.megamenu__country {
    padding-bottom: 18px;
    break-inside: avoid;
}
.megamenu__hidden {
    display: none;
}
.megamenu__country--expanded .megamenu__hidden {
    display: list-item;
}
.megamenu__more {
    background: none;
    border: none;
    padding: 4px 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--navy-600);
    cursor: pointer;
}
.megamenu__more:hover {
    color: var(--navy-800);
}
.megamenu__country-title {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--navy-800);
    margin-bottom: 8px;
    text-decoration: none;
    letter-spacing: 0.01em;
}
.megamenu__country-title:hover {
    color: var(--navy-600);
}
.megamenu__cities {
    list-style: none;
    margin: 0;
    padding: 0;
}
.megamenu__cities li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3px 0;
    font-size: 13px;
    color: var(--slate-600);
    text-decoration: none;
    transition: color 0.15s;
    line-height: 1.5;
}
.megamenu__cities li a:hover {
    color: var(--navy-700);
    background: none;
}
.megamenu__count {
    font-size: 11px;
    color: var(--slate-400);
    background: var(--slate-50);
    padding: 1px 7px;
    border-radius: 10px;
    font-weight: 600;
    margin-left: 8px;
    flex-shrink: 0;
}
.megamenu__footer {
    border-top: 1px solid var(--slate-100);
    padding: 12px 28px;
    text-align: center;
}
.megamenu__footer a {
    font-size: 13px;
    font-weight: 600;
    color: var(--navy-600);
    text-decoration: none;
}
.megamenu__footer a:hover {
    color: var(--navy-800);
    background: none;
}
.megamenu__location-filter {
    padding: 12px 20px 0;
    border-bottom: 1px solid var(--slate-100);
    padding-bottom: 12px;
}
.megamenu__province-select {
    width: 100%;
    padding: 7px 12px;
    border: 1px solid var(--slate-200);
    border-radius: 8px;
    font-size: 13px;
    color: var(--navy-700);
    background: var(--white);
    cursor: pointer;
}
.megamenu__types-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    padding: 12px 16px;
}
.megamenu__type-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--navy-700);
    font-size: 13px;
    transition: background 0.15s;
}
.megamenu__type-item:hover {
    background: var(--sky-50);
    color: var(--navy-800);
}
.megamenu__type-icon {
    flex-shrink: 0;
    border-radius: 4px;
}
.megamenu__type-name {
    flex: 1;
    font-weight: 500;
}
.megamenu__type-count {
    font-size: 11px;
    font-weight: 600;
    color: var(--slate-500);
    background: var(--slate-100);
    padding: 2px 7px;
    border-radius: 10px;
}
.megamenu__section-label {
    padding: 10px 20px 0;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--slate-400);
}
.megamenu__procedures {
    column-count: 4;
    column-gap: 24px;
    padding: 8px 20px 12px;
    max-height: 440px;
    overflow-y: auto;
}
.megamenu__proc-category {
    break-inside: avoid;
    padding-bottom: 16px;
}
.megamenu__proc-category-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
    color: var(--navy-800);
    margin-bottom: 6px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--slate-100);
}
.megamenu__proc-category-title img {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
.megamenu__proc-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
    padding: 3px 10px;
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    background: var(--white);
    font-size: 12px;
    font-weight: 600;
    color: var(--primary, #3faeeb);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.megamenu__proc-more:hover {
    background: var(--sky-50, #f0f9ff);
    border-color: var(--primary, #3faeeb);
}
.megamenu__proc-more svg { transition: transform 0.15s; }
.megamenu__proc-more.open svg { transform: rotate(180deg); }
.megamenu__proc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.megamenu__proc-list li a {
    display: block;
    padding: 2px 0;
    font-size: 13px;
    color: var(--slate-600);
    text-decoration: none;
    transition: color 0.15s;
    line-height: 1.5;
}
.megamenu__proc-list li a:hover {
    color: var(--navy-700);
}
.megamenu__proc-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 18px;
    padding: 0 5px;
    margin-left: 4px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    color: var(--slate-500);
    background: var(--slate-100);
    border-radius: 9px;
}
.megamenu__proc-list li a:hover .megamenu__proc-count {
    color: var(--navy-600);
    background: var(--sky-100, #e0f2fe);
}
.megamenu__footer-sep {
    margin: 0 8px;
    color: var(--slate-300);
}
.nav-dropdown {
    position: relative;
}
.nav-dropdown__link {
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-dropdown__menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 180px;
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 6px 0;
    z-index: 1000;
}
.nav-dropdown.active .nav-dropdown__menu {
    display: block;
}
.nav-dropdown__menu a {
    display: block;
    padding: 8px 16px;
    font-size: 13px;
    color: var(--navy-700);
    text-decoration: none;
    white-space: nowrap;
}
.nav-dropdown__menu a:hover {
    background: var(--sky-50);
    color: var(--navy-800);
}

.site-header__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--slate-700);
    padding: 8px;
    text-decoration: none;
    line-height: 0;
}
/* Hide mobile-menu source nav (mmenu clones it) */
#mobile-menu:not(.mm-menu) { display: none; }

/* mmenu theme overrides */
.mm-menu {
    --mm-color-background: var(--white);
    --mm-color-text: var(--navy-900);
    --mm-color-text-dimmed: var(--slate-500);
    --mm-color-border: var(--slate-100);
    --mm-color-button: var(--navy-700);
    --mm-color-background-highlight: var(--navy-50);
}
.mm-navbar__title { font-family: 'Kanit', sans-serif; font-weight: 700; font-size: 16px; }
.mm-listitem__text { font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 500; }
.mm-listitem_selected > .mm-listitem__text { color: var(--navy-700); }

/* ===== HERO (HOME) ===== */
.hero {
    /* Consultation photo behind a heavy scrim. The source is high-key and almost
       white, so these alphas are what keep the centred headline and sub-heading
       above WCAG AA — they were measured against the actual pixels in the text
       band, not eyeballed. Lightening them drops the 19px sub-heading below
       4.5:1. If you swap the photo, re-check the contrast before re-tuning. */
    background:
        linear-gradient(135deg,
            rgba(26, 58, 74, 0.96) 0%,
            rgba(26, 58, 74, 0.90) 45%,
            rgba(30, 90, 122, 0.83) 75%,
            rgba(63, 174, 235, 0.68) 100%),
        url('/assets/images/hero-home.webp') center 30% / cover no-repeat;
    background-color: var(--navy-900);  /* holds the shape while the photo loads */
    color: var(--white);
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(226,169,59,0.12) 0%, transparent 70%);
    border-radius: 50%;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59,114,196,0.15) 0%, transparent 70%);
    border-radius: 50%;
}
.hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}
.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(226,169,59,0.15);
    border: 1px solid rgba(226,169,59,0.3);
    color: var(--gold-300);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.hero h1 {
    font-size: 48px;
    color: var(--white);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}
.hero h1 em {
    font-style: normal;
    color: var(--gold-400);
}
.hero p {
    font-size: 19px;
    color: var(--slate-200);   /* one step lighter than slate-300: 4.90:1 over the photo */
    margin-bottom: 40px;
    line-height: 1.6;
}

/* ===== SEARCH FORM ===== */
.search-form {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-xl);
    max-width: 1060px;
    margin: 0 auto;
    position: relative;
}
.search-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr auto;
    gap: 12px;
    align-items: end;
}
.search-form__group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.search-form__group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.search-form__group select,
.search-form__group input {
    padding: 12px 14px;
    border: 2px solid var(--slate-200);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-family: var(--font-body);
    color: var(--slate-800);
    background: var(--white);
    transition: border-color 0.2s;
    width: 100%;
    appearance: none;
}
.search-form__group select {
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}
.search-form__group select:focus,
.search-form__group input:focus {
    outline: none;
    border-color: var(--navy-500);
    box-shadow: 0 0 0 3px rgba(59,114,196,0.1);
}
.search-form .btn { height: 48px; }
.search-form__bar {
    display: flex;
    align-items: center;
    gap: 0;
    position: relative;
}
.search-form__bar-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--slate-400);
    pointer-events: none;
}
.search-form__input {
    flex: 1;
    padding: 14px 14px 14px 44px;
    border: 2px solid var(--slate-200);
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    font-size: 16px;
    font-family: var(--font-body);
    color: var(--slate-800);
    background: var(--white);
    transition: border-color 0.2s;
    outline: none;
}
.search-form__input:focus {
    border-color: var(--navy-500);
    box-shadow: 0 0 0 3px rgba(59,114,196,0.1);
}
.search-form__bar .btn {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    height: auto;
    padding: 14px 24px;
    white-space: nowrap;
}
.search-autocomplete {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-lg);
    max-height: 340px;
    overflow-y: auto;
}
.ac-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.1s;
}
.ac-item:hover, .ac-item--active {
    background: var(--slate-50);
}
.ac-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 2px 7px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}
.ac-badge--clinic { background: #dbeafe; color: #1e40af; }
.ac-badge--procedure { background: #fce7f3; color: #9d174d; }
.ac-badge--location { background: #d1fae5; color: #065f46; }
.ac-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--slate-800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ac-sublabel {
    font-size: 12px;
    color: var(--slate-500);
    margin-left: auto;
    white-space: nowrap;
    flex-shrink: 0;
}
.page-header .search-form__group label { color: var(--gold-400); }

.search-form__advanced-toggle {
    margin-top: 12px;
    display: flex;
}
.search-form__advanced-toggle button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    font-size: 13px;
    font-weight: 600;
    color: var(--slate-500);
    cursor: pointer;
    padding: 6px 0;
    font-family: var(--font-body);
    transition: color 0.2s;
}
.search-form__advanced-toggle button:hover,
.search-form__advanced-toggle button.active { color: var(--navy-700); }
.search-form__advanced-chevron { transition: transform 0.2s; }
.search-form__advanced-toggle button.active .search-form__advanced-chevron { transform: rotate(180deg); }
.page-header .search-form__advanced-toggle button { color: var(--slate-400); }
.page-header .search-form__advanced-toggle button:hover,
.page-header .search-form__advanced-toggle button.active { color: var(--gold-400); }

.search-form__advanced {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--slate-200);
}
.page-header .search-form__advanced { border-top-color: rgba(255,255,255,0.15); }

.filter-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    background: var(--navy-50);
    color: var(--navy-700);
    padding: 2px 8px;
    border-radius: 100px;
    margin-left: 4px;
    vertical-align: middle;
}

/* ===== STATS BAR ===== */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 40px;
    position: relative;
    z-index: 1;
}
.stats-bar__item {
    text-align: center;
}
.stats-bar__number {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--gold-400);
}
.stats-bar__label {
    font-size: 13px;
    color: var(--slate-400);
    margin-top: 2px;
}

/* ===== SEARCH RESULTS LAYOUT ===== */
.results-layout {
    display: grid;
    grid-template-columns: 1fr 35%;
    gap: 0;
    min-height: calc(100vh - var(--header-height));
}
.results-layout__list {
    padding: 24px;
    overflow-y: auto;
    max-height: calc(100vh - var(--header-height));
}
.results-layout__map {
    position: sticky;
    top: var(--header-height);
    height: calc(100vh - var(--header-height));
}
.results-layout__map #map {
    width: 100%;
    height: 100%;
}

/* ===== CLINIC CARDS (Horizontal layout: image left, content right) ===== */
.clinic-card {
    display: flex;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--slate-200);
    overflow: hidden;
    transition: all 0.25s ease;
    margin-bottom: 16px;
    box-shadow: 0px 3px 5px 1px rgba(230,230,230,1);
}
.clinic-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--slate-300);
}
.clinic-card--gold {
    border-color: var(--gold-400);
    box-shadow: var(--shadow-gold);
    background: linear-gradient(to left, var(--gold-50), var(--white));
}
.clinic-card--gold:hover {
    box-shadow: 0 6px 20px rgba(212,160,23,0.3);
}
.clinic-card--silver {
    border-color: var(--silver-border);
    background: linear-gradient(to left, var(--silver-bg), var(--white));
}
.clinic-card__image {
    display: block;
    position: relative;
    width: 260px;
    min-width: 260px;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: var(--slate-100);
    flex-shrink: 0;
    order: 2;
}
.clinic-card__image > img,
.clinic-card__image > picture {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}
.clinic-card__image > img,
.clinic-card__image > picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.clinic-card__image img,
.clinic-card__image picture img {
    transition: transform 0.3s ease;
}
.clinic-card:hover .clinic-card__image img,
.clinic-card:hover .clinic-card__image picture img {
    transform: scale(1.05);
}
.clinic-card__content {
    order: 1;
    padding: 16px 20px;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.clinic-card__header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}
.clinic-card__header-text { flex: 1; min-width: 0; }
.clinic-card__badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.clinic-card__logo {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    border-radius: var(--radius-sm);
    object-fit: contain;
    border: 1px solid var(--slate-200);
    flex-shrink: 0;
    background: var(--white);
}
picture:has(.clinic-card__logo) {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}
.clinic-card__name {
    font-size: 17px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}
.clinic-card__name a { color: var(--primary); }
.clinic-card__name a:hover { color: var(--navy-900); }
.clinic-card__desc {
    font-size: 14px;
    color: var(--slate-600);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.clinic-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--slate-500);
}
.clinic-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.clinic-card__meta svg { color: var(--slate-400); flex-shrink: 0; }
.clinic-card__fee {
    font-weight: 600;
    color: var(--navy-700) !important;
}
.clinic-card__actions {
    display: flex;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--slate-100);
}
.clinic-card__website {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    background: var(--navy-50);
    color: var(--navy-700);
    transition: all 0.2s;
}
.clinic-card__website:hover { background: var(--navy-100); color: var(--navy-800); }
.clinic-card__details {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    background: var(--navy-50);
    color: var(--navy-700);
    transition: all 0.2s;
    text-decoration: none;
}
.clinic-card__details:hover { background: var(--navy-100); color: var(--navy-800); }

/* Mobile: stack clinic cards vertically */
@media (max-width: 600px) {
    .clinic-card { flex-direction: column; }
    .clinic-card__image { width: 100%; min-width: 100%; aspect-ratio: 3 / 2; position: relative; }
}

/* Tier badges */
.tier-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 10px;
    border-radius: 100px;
    margin-bottom: 4px;
}
.tier-gold {
    background: linear-gradient(135deg, var(--gold-100), var(--gold-50));
    color: var(--gold-600);
    border: 1px solid var(--gold-300);
}
.tier-silver {
    background: var(--slate-100);
    color: var(--silver-accent);
    border: 1px solid var(--slate-300);
}
.tier-verified {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.clinic-card--verified {
    border-color: var(--slate-200);
}
.clinic-card--verified:hover {
    border-color: var(--slate-300);
}

/* ===== COUNTRY/CITY PAGE ===== */
.page-header {
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
    color: var(--white);
    padding: 48px 0;
    position: relative;
}
.page-header h1 {
    font-size: 36px;
    color: var(--white);
    margin-bottom: 8px;
}
.page-header p { color: var(--slate-300); font-size: 17px; }

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 8px;
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.5;
}
.breadcrumb a { color: var(--gold-400); white-space: nowrap; }
.breadcrumb > span { color: var(--slate-400); }
.breadcrumb__sep { color: var(--slate-500); font-size: 12px; }
.breadcrumb__current { color: var(--white); font-weight: 500; }
.breadcrumb > span:last-child { color: var(--white); font-weight: 500; }

.page-header--breadcrumb-only {
    padding: 16px 0;
    display: flex;
    align-items: center;
    min-height: 52px;
}

.content-section {
    padding: 48px 0;
}
.content-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}
.content-section__header h2 {
    font-size: 24px;
}

/* ===== CLINIC DETAIL PAGE ===== */
.clinic-detail {
    padding: 40px 0;
}
.clinic-detail__grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
}
.clinic-detail__main {}
.clinic-detail__sidebar {
    position: sticky;
    top: calc(var(--header-height) + 24px);
    align-self: start;
}
.clinic-detail__hero {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
    height: 360px;
    background: var(--slate-100);
}
.clinic-detail__hero img { width: 100%; height: 100%; object-fit: cover; }

/* Clinic hero with overlaid title */
.clinic-hero {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
    height: 400px;
    background: var(--slate-100);
}
.clinic-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(12,27,51,0.85) 0%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}
.clinic-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.clinic-hero__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 24px;
    display: flex;
    align-items: flex-end;
    gap: 16px;
}
.clinic-hero__overlay img {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-md);
    object-fit: contain;
    border: 2px solid rgba(255,255,255,0.3);
    background: var(--white);
    flex-shrink: 0;
}
.clinic-hero__overlay h1 {
    color: var(--white);
    font-size: 32px;
}
.clinic-hero .cover-slider {
    border-radius: 0;
    margin-bottom: 0;
    aspect-ratio: auto;
    max-height: none;
    height: 100%;
}
.clinic-hero .cover-slider__dots {
    z-index: 3;
    opacity: 0;
    transition: opacity 0.3s;
}
.clinic-hero:hover .cover-slider__dots {
    opacity: 1;
}

.clinic-detail__title {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}
.clinic-detail__title img {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    object-fit: contain;
    border: 1px solid var(--slate-200);
    background: var(--white);
}
.clinic-detail__title h1 { font-size: 32px; }
.clinic-detail__description {
    font-size: 16px;
    line-height: 1.8;
    color: var(--slate-700);
    margin-bottom: 32px;
}

.info-card {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}
.info-card h3 {
    font-size: 16px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--slate-100);
}
.info-card__row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--slate-100);
    font-size: 14px;
}
.info-card__row:last-child { border-bottom: none; }
.info-card__label { color: var(--slate-500); font-weight: 500; }
.info-card__value { color: var(--slate-800); font-weight: 600; text-align: right; }

.info-card__contact a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    color: var(--navy-600);
    font-size: 14px;
    border-bottom: 1px solid var(--slate-100);
}
.info-card__contact a:last-child { border-bottom: none; }
.info-card__contact a:hover { color: var(--navy-800); }
.info-card__contact svg { flex-shrink: 0; color: var(--slate-400); }

/* Operating Hours Table */
.hours-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.hours-row { border-bottom: 1px solid var(--slate-100); }
.hours-row:last-child { border-bottom: none; }
.hours-row td { padding: 8px 0; }
.hours-row__day { font-weight: 500; color: var(--slate-600); width: 45%; }
.hours-row__time { text-align: right; color: var(--slate-800); }
.hours-row__closed { color: var(--slate-400); font-style: italic; }
.hours-row__comment { display: block; font-size: 12px; color: var(--slate-400); }
.hours-row--today { background: var(--sky-50, #f0f9ff); border-radius: 6px; }
.hours-row--today td { padding: 8px 8px; }
.hours-row--today .hours-row__day { color: var(--navy-700); font-weight: 600; }
.hours-row--today .hours-row__time { color: var(--navy-700); font-weight: 600; }

/* Social links */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.social-links__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--slate-700);
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    transition: all 0.2s;
}
.social-links__item i {
    font-size: 15px;
    color: var(--social-color, var(--slate-500));
    width: 18px;
    text-align: center;
}
.social-links__item:hover {
    color: var(--white);
    background: var(--social-color, var(--slate-600));
    border-color: var(--social-color, var(--slate-600));
}
.social-links__item:hover i {
    color: var(--white);
}

/* Clinic Branches */
.branches-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.branches-list__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--slate-700);
    transition: background 0.2s;
}
.branches-list__item:hover {
    background: var(--slate-50);
}
.branches-list__logo {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}
.branches-list__logo--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--slate-100);
    color: var(--slate-400);
    font-size: 14px;
}
.branches-list__info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.branches-list__name {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.branches-list__city {
    font-size: 12px;
    color: var(--slate-500);
}
.branch-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border: 1px solid var(--slate-200);
    border-radius: 6px;
    margin-bottom: 6px;
}

/* ===== COLORBOX (self-contained styles) ===== */
#cboxOverlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100%;
    background: rgba(10, 20, 40, 0.9);
    backdrop-filter: blur(4px);
    z-index: 9999;
}
#colorbox {
    position: fixed;
    z-index: 10000;
    outline: none;
}
#cboxWrapper { /* colorbox inner wrapper */ }
#cboxMiddleLeft, #cboxMiddleRight,
#cboxTopLeft, #cboxTopCenter, #cboxTopRight,
#cboxBottomLeft, #cboxBottomRight {
    /* hide the default border/corner images */
    display: none;
}
#cboxContent {
    position: relative;
    background: transparent;
    overflow: visible;
}
#cboxLoadedContent {
    overflow: hidden;
    border-radius: var(--radius-md);
    background: #000;
}
#cboxLoadedContent img {
    display: block;
    animation: cboxFadeIn 0.3s ease;
}
@keyframes cboxFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
#cboxLoadingOverlay, #cboxLoadingGraphic {
    background: transparent;
}
/* Close button */
#cboxClose {
    position: absolute;
    top: -44px;
    right: 0;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0;
    text-indent: -9999px;
    z-index: 5;
}
#cboxClose::after {
    content: '\00d7';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
    color: #fff;
    text-indent: 0;
}
#cboxClose:hover {
    background: rgba(255,255,255,0.3);
}
/* Prev / Next — positioned inside #cboxLoadedContent area */
#cboxPrevious, #cboxNext {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 44px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0;
    text-indent: -9999px;
    z-index: 5;
    margin: 0;
    padding: 0;
}
#cboxPrevious { left: 0; }
#cboxNext { right: 0; }
#cboxPrevious::after, #cboxNext::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-indent: 0;
    font-size: 26px;
    line-height: 40px;
    text-align: center;
    background: rgba(0,0,0,0.4);
    border-radius: 50%;
    transition: background 0.2s;
}
#cboxPrevious::after { content: '\2039'; left: 12px; }
#cboxNext::after { content: '\203A'; right: 12px; }
#cboxPrevious:hover::after, #cboxNext:hover::after {
    background: rgba(0,0,0,0.7);
}
/* Caption + Counter — caption left, counter pinned right */
#cboxBottomCenter {
    position: relative;
}
#cboxTitle {
    font-family: var(--font-body);
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    line-height: 1.4;
    padding: 12px 80px 4px 8px;
    text-align: left;
}
#cboxCurrent {
    font-family: var(--font-body);
    color: rgba(255,255,255,0.4);
    font-size: 12px;
    position: absolute;
    bottom: 4px;
    right: 8px;
    white-space: nowrap;
    text-align: right;
}
/* Slideshow (unused but hide) */
#cboxSlideshow { display: none; }
@media (max-width: 768px) {
    #cboxPrevious::after, #cboxNext::after {
        width: 34px;
        height: 34px;
        margin-top: -17px;
        line-height: 34px;
        font-size: 22px;
    }
    #cboxPrevious::after { left: 8px; }
    #cboxNext::after { right: 8px; }
    #cboxClose { top: -38px; width: 32px; height: 32px; }
    #cboxClose::after { font-size: 20px; }
}

/* Map in detail page */
.virtual-tour-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-md, 8px);
}
.virtual-tour-actions {
    margin-top: 10px;
    display: flex;
    gap: 6px;
    align-items: center;
}
.virtual-tour-actions .btn {
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
#cboxLoadedContent iframe {
    width: 100% !important;
    height: 100% !important;
}
@media (max-width: 768px) {
    .virtual-tour-actions { display: none; }
}
.clinic-map {
    height: 250px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 16px;
    border: 1px solid var(--slate-200);
}

/* ===== CLINIC AT A GLANCE ===== */
.glance-card {
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 24px;
}
.glance-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    user-select: none;
    background: var(--navy-50);
    border-bottom: 1px solid var(--slate-200);
    transition: background 0.2s;
}
.glance-card__header:hover { background: var(--navy-100); }
.glance-card__header h3 {
    margin: 0;
    font-size: 18px;
    font-family: var(--font-display);
    color: var(--navy-800);
    display: flex;
    align-items: center;
    gap: 8px;
}
.glance-card__header h3 svg { color: var(--navy-600); flex-shrink: 0; }
.glance-card__toggle {
    transition: transform 0.3s ease;
    color: var(--slate-400);
}
.glance-card.open .glance-card__toggle { transform: rotate(180deg); }
.glance-card__body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.glance-card.open .glance-card__body {
    max-height: 3000px;
}

.glance-group {
    border-top: 1px solid var(--slate-200);
}
.glance-group:first-child { border-top: none; }
.glance-group__title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    cursor: pointer;
    user-select: none;
    font-size: 15px;
    font-weight: 600;
    color: var(--navy-700);
    transition: background 0.15s;
}
.glance-group__title:hover { background: var(--slate-50); }
.glance-group__title svg { flex-shrink: 0; color: var(--slate-400); }
.glance-toggle-icon {
    margin-left: auto;
    transition: transform 0.3s ease;
    color: var(--slate-400);
}
.glance-group.open .glance-toggle-icon { transform: rotate(180deg); }
.glance-group__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    padding: 0 20px;
}
.glance-group.open .glance-group__content {
    max-height: 1000px;
    padding: 0 20px 16px;
}

.glance-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--slate-100);
    font-size: 14px;
    gap: 12px;
}
.glance-row:last-child { border-bottom: none; }
.glance-row__label {
    color: var(--slate-500);
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}
.glance-row__value {
    color: var(--slate-800);
    font-weight: 600;
    text-align: right;
}

/* Pill badges */
.glance-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}
.glance-pill {
    display: inline-block;
    background: var(--navy-50);
    color: var(--navy-700);
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

/* Student mix progress bar */
.glance-progress-bar {
    width: 100%;
    height: 24px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    background: var(--slate-100);
    margin-top: 4px;
    font-size: 11px;
    font-weight: 600;
}
.glance-progress-bar__segment {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    min-width: 32px;
    transition: width 0.3s ease;
}
.glance-progress-bar__segment--local {
    background: var(--navy-600);
}
.glance-progress-bar__segment--intl {
    background: var(--gold-500);
}

/* Exam results table */
.glance-exam-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.glance-exam-table tr { border-bottom: 1px solid var(--slate-100); }
.glance-exam-table tr:last-child { border-bottom: none; }
.glance-exam-table td {
    padding: 6px 0;
}
.glance-exam-table td:first-child {
    color: var(--slate-600);
    font-weight: 500;
}
.glance-exam-table td:last-child {
    text-align: right;
    font-weight: 700;
    color: var(--navy-800);
}

/* Boolean yes/no */
.glance-yes {
    color: var(--success);
    font-weight: 700;
}
.glance-no {
    color: var(--slate-400);
    font-weight: 500;
}

@media (max-width: 768px) {
    .glance-card__header { padding: 14px 16px; }
    .glance-group__title { padding: 12px 16px; font-size: 14px; }
    .glance-group__content { padding: 0 16px; }
    .glance-group.open .glance-group__content { padding: 0 16px 14px; }
    .glance-row { flex-direction: column; gap: 2px; }
    .glance-row__value { text-align: left; }
    .glance-pills { justify-content: flex-start; }
    .glance-progress-bar { height: 20px; font-size: 10px; }
}

/* ===== ARTICLES ===== */
.article-card {
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--slate-200);
    overflow: hidden;
    transition: all 0.25s;
}
.article-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}
.article-card__image {
    height: 200px;
    overflow: hidden;
    background: var(--slate-100);
}
.article-card__image img { width: 100%; height: 100%; object-fit: cover; }
.article-card__content { padding: 20px; }
.article-card__date { font-size: 13px; color: var(--slate-500); margin-bottom: 8px; }
.article-card__title { font-size: 18px; margin-bottom: 8px; line-height: 1.3; }
.article-card__title a { color: var(--navy-900); }
.article-card__excerpt { font-size: 14px; color: var(--slate-600); line-height: 1.6; }

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ===== CITIES GRID ===== */
.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}
.city-card {
    background: var(--white);
    padding: 20px;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    transition: all 0.2s;
    text-align: center;
}
.city-card:hover { box-shadow: var(--shadow-md); border-color: var(--navy-200); transform: translateY(-2px); }
.city-card h3 { font-size: 17px; margin-bottom: 4px; }
.city-card p { font-size: 13px; color: var(--slate-500); }

/* ===== COUNTRIES GRID (HOME) ===== */
.provinces-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}
.country-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    transition: all 0.2s;
    font-weight: 500;
    color: var(--slate-700);
}
.country-item:hover { background: var(--navy-50); border-color: var(--navy-200); color: var(--navy-800); }
.country-item .count {
    margin-left: auto;
    font-size: 12px;
    background: var(--slate-100);
    padding: 2px 8px;
    border-radius: 100px;
    color: var(--slate-600);
}

/* ===== CITY FILTERS ===== */
.city-filters {
    background: var(--white);
    border-bottom: 1px solid var(--slate-200);
    padding: 16px 0;
}
.city-filters--header {
    background: none;
    border-bottom: none;
    border-top: 1px solid rgba(255,255,255,0.12);
    padding: 20px 0 0;
    margin-top: 20px;
}
.city-filters__row {
    display: flex;
    align-items: end;
    gap: 16px;
    flex-wrap: wrap;
}
.city-filters__group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 150px;
}
.city-filters__group label {
    font-size: 11px;
    font-weight: 600;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.city-filters--header .city-filters__group label {
    color: var(--gold-400);
}
.city-filters__group select {
    padding: 8px 32px 8px 12px;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-family: var(--font-body);
    color: var(--slate-700);
    background: var(--white);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: border-color 0.2s;
}
.city-filters--header .city-filters__group select {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    color: var(--white);
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23cbd5e1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}
.city-filters--header .city-filters__group select:focus {
    border-color: var(--gold-400);
    box-shadow: 0 0 0 3px rgba(226,169,59,0.2);
}
.city-filters--header .city-filters__group select option {
    background: var(--white);
    color: var(--slate-700);
}
.city-filters__group select:focus {
    outline: none;
    border-color: var(--navy-500);
    box-shadow: 0 0 0 3px rgba(59,114,196,0.1);
}
.city-filters__count {
    margin-left: auto;
    font-size: 14px;
    color: var(--slate-500);
    white-space: nowrap;
    padding-bottom: 8px;
}
.city-filters--header .city-filters__count {
    color: var(--slate-300);
}
.city-filters__count span {
    font-weight: 600;
    color: var(--navy-800);
}
.city-filters--header .city-filters__count span {
    color: var(--white);
}

/* ===== CITY RESULTS (LIST + MAP) ===== */
.city-results {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 24px;
    align-items: start;
}
.city-results__list {
    min-width: 0;
}
.city-results__map {
    position: sticky;
    top: calc(var(--header-height) + 16px);
    height: calc(100vh - var(--header-height) - 32px);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--slate-200);
}
.city-results__map #map {
    width: 100%;
    height: 100%;
}
@media (min-width: 1200px) {
    .city-results { grid-template-columns: 1fr 450px; }
}
@media (max-width: 1024px) {
    .city-results {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .city-results__map {
        position: relative;
        top: 0;
        height: 350px;
        order: -1;
    }
}
@media (max-width: 768px) {
    .city-results__map { height: 280px; }
}

/* ===== CLAIM / OTP ===== */
.auth-page {
    max-width: 480px;
    margin: 60px auto;
    padding: 0 20px;
}
.auth-card {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}
.auth-card h1 { font-size: 24px; margin-bottom: 8px; }
.auth-card p { color: var(--slate-500); margin-bottom: 24px; font-size: 15px; }
.auth-card .form-group { text-align: left; margin-bottom: 16px; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--slate-700);
    margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 2px solid var(--slate-200);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-family: var(--font-body);
    color: var(--slate-800);
    background: var(--white);
    transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--navy-500);
    box-shadow: 0 0 0 3px rgba(59,114,196,0.1);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group .hint { font-size: 12px; color: var(--slate-400); margin-top: 4px; }

.alert {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: 14px;
    margin-bottom: 20px;
}
.alert--success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert--error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert--info { background: var(--navy-50); color: var(--navy-800); border: 1px solid var(--navy-100); }

/* ===== LEAFLET CUSTOMIZATION ===== */
.leaflet-popup-content-wrapper {
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-lg) !important;
}
.leaflet-popup-content {
    font-family: var(--font-body) !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    margin: 12px 16px !important;
}
.map-popup__header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.map-popup__logo { width: 40px; height: 40px; object-fit: contain; border-radius: 6px; border: 1px solid var(--slate-200); background: var(--white); flex-shrink: 0; }
.map-popup__title { font-weight: 700; font-size: 15px; color: var(--navy-900); margin-bottom: 2px; display: block; text-decoration: none; }
a.map-popup__title:hover { color: var(--navy-600); text-decoration: underline; }
.map-popup__address { font-size: 13px; color: var(--slate-500); }
.map-popup__pills { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.map-popup__pill { display: inline-block; padding: 2px 7px; background: var(--navy-50); color: var(--navy-700); font-size: 11px; font-weight: 600; border-radius: 20px; white-space: nowrap; }
.map-popup__meta { font-size: 12px; color: var(--slate-600); margin-bottom: 6px; }
.map-popup__link { font-size: 13px; font-weight: 600; color: var(--navy-600); display: inline-block; margin-top: 4px; }

/* Clinic pin marker */
.clinic-pin {
    background: none !important;
    border: none !important;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}
.clinic-pin--hover {
    filter: drop-shadow(0 0 6px rgba(59,114,196,0.5)) drop-shadow(0 2px 6px rgba(59,114,196,0.4));
}
.clinic-pin-typed {
    background: none !important;
    border: none !important;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    position: relative;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--navy-900);
    color: var(--slate-300);
    padding: 60px 0 0;
}
.site-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.site-footer__brand p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--slate-300);
    margin-top: 16px;
}
.site-footer__disclaimer {
    font-size: 12px;
    line-height: 1.6;
    color: var(--slate-400);
    margin-top: 12px;
}
.site-footer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Kanit', sans-serif;
    font-size: 18px;
    color: var(--white);
    font-weight: 600;
    letter-spacing: -0.5px;
}
.site-footer__logo:hover { color: var(--white); }
.site-footer__links h3 {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--white);
    margin-bottom: 16px;
}
.site-footer__links a {
    display: block;
    font-size: 14px;
    color: var(--slate-300);
    padding: 5px 0;
    transition: color 0.2s;
}
.site-footer__links a:hover { color: var(--gold-400); }
.site-footer__bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 13px;
    color: var(--slate-400);
}

@media (max-width: 768px) {
    .site-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}
@media (max-width: 480px) {
    .site-footer__grid {
        grid-template-columns: 1fr;
    }
}

/* ===== ADMIN STYLES ===== */
.admin-layout {
    display: flex;
    min-height: 100vh;
}
.admin-sidebar {
    width: 260px;
    background: var(--navy-900);
    color: var(--white);
    padding: 24px 0;
    flex-shrink: 0;
}
.admin-sidebar__brand {
    padding: 0 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 16px;
    font-family: var(--font-display);
    font-size: 18px;
}
.admin-sidebar a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: var(--slate-400);
    font-size: 14px;
    transition: all 0.2s;
}
.admin-sidebar a:hover, .admin-sidebar a.active {
    color: var(--white);
    background: rgba(255,255,255,0.07);
}
.admin-sidebar__group {
    padding: 20px 20px 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--slate-500);
}
.admin-sidebar__badge {
    margin-left: auto;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    border-radius: 100px;
    padding: 0 6px;
}
.admin-sidebar__site-link {
    margin-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 16px !important;
}
.admin-main {
    flex: 1;
    padding: 32px;
    background: var(--slate-50);
    overflow-y: auto;
}
.admin-main h1 { font-size: 26px; margin-bottom: 24px; }

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--slate-200);
}
.admin-table th {
    background: var(--slate-50);
    text-align: left;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--slate-500);
    border-bottom: 2px solid var(--slate-200);
}
.admin-table td {
    padding: 12px 16px;
    font-size: 14px;
    border-bottom: 1px solid var(--slate-100);
    vertical-align: middle;
}
.admin-table tr:hover td { background: var(--slate-50); }

.admin-card {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}
.admin-card h2 { font-size: 18px; margin-bottom: 16px; }

/* Admin form grid */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full-width { grid-column: 1 / -1; }

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 32px;
}
.pagination a, .pagination span {
    padding: 8px 14px;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--slate-600);
    transition: all 0.2s;
}
.pagination a:hover { background: var(--navy-50); border-color: var(--navy-200); color: var(--navy-800); }
.pagination .active { background: var(--navy-700); color: var(--white); border-color: var(--navy-700); }

/* ===== NO RESULTS ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--slate-500);
}
.empty-state svg { margin-bottom: 16px; color: var(--slate-300); }
.empty-state h3 { color: var(--slate-700); margin-bottom: 8px; }

/* ===== MAP WRAPPER ===== */
.map-section {
    height: 400px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--slate-200);
    margin-bottom: 32px;
}
.map-section #map { width: 100%; height: 100%; }

/* ===== ARTICLE SINGLE ===== */
.article-single { padding: 48px 0; }
.article-single__header { text-align: center; margin-bottom: 40px; }
.article-single__header h1 { font-size: 36px; margin-bottom: 12px; max-width: 800px; margin-left: auto; margin-right: auto; }
.article-single__date { color: var(--slate-500); font-size: 14px; }
.article-single__hero { max-width: 900px; margin: 0 auto 32px; border-radius: var(--radius-lg); overflow: hidden; }
.article-single__hero img { width: 100%; }
.article-single__caption { padding: 8px 4px 0; font-size: 0.82rem; color: var(--slate-500); text-align: center; line-height: 1.4; }
.article-single__content {
    max-width: 720px;
    min-width: 0;
    font-size: 17px;
    line-height: 1.9;
    color: var(--slate-700);
}
.article-single__content h2 { margin-top: 32px; margin-bottom: 16px; font-size: 24px; }
.article-single__content h3 { margin-top: 24px; margin-bottom: 12px; font-size: 20px; }
.article-single__content p { margin-bottom: 16px; }
.article-single__content ul, .article-single__content ol { margin-bottom: 16px; padding-left: 24px; }
.article-single__content li { margin-bottom: 8px; }
.article-single__content img { border-radius: var(--radius-md); margin: 24px 0; }
.article-single__content .clinic-card img { border-radius: 0; margin: 0; }
.article-single__content a { color: var(--navy-600); text-decoration: underline; }

.article-single__grid { display: grid; grid-template-columns: 1fr 280px; gap: 48px; align-items: start; }
.article-sidebar { position: sticky; top: 24px; }
.article-sidebar__title { font-size: 15px; font-weight: 700; color: var(--navy-900); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--slate-200); }
.article-sidebar__item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--slate-100); text-decoration: none; color: inherit; transition: background 0.15s; }
.article-sidebar__item:first-of-type { padding-top: 0; }
.article-sidebar__item:last-child { border-bottom: none; }
.article-sidebar__item:hover .article-sidebar__item-title { color: var(--navy-600); }
.article-sidebar__img { width: 72px; height: 48px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.article-sidebar__text { flex: 1; min-width: 0; }
.article-sidebar__item-title { display: block; font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--navy-900); transition: color 0.15s; }
.article-sidebar__date { display: block; font-size: 12px; color: var(--slate-400); margin-top: 4px; }
@media (max-width: 960px) {
    .article-single__grid { grid-template-columns: 1fr; gap: 32px; }
    .article-single__content { max-width: 720px; }
    .article-sidebar { position: static; border-top: 2px solid var(--slate-200); padding-top: 24px; max-width: 720px; }
    .article-sidebar__item { gap: 14px; }
    .article-sidebar__img { width: 88px; height: 56px; }
}

/* ===== CHOSEN.JS OVERRIDES ===== */
.chosen-container { font-family: var(--font-body); }
.chosen-container-single .chosen-single {
    height: 46px;
    line-height: 44px;
    padding: 0 14px;
    border: 2px solid var(--slate-200);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-family: var(--font-body);
    color: var(--slate-800);
    background: var(--white);
    box-shadow: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    position: relative;
}
.chosen-container-single .chosen-single span {
    margin-right: 32px;
}
.chosen-container-single .chosen-single:hover {
    border-color: var(--slate-400);
}
.chosen-container-active.chosen-with-drop .chosen-single,
.chosen-container-active .chosen-single {
    border-color: var(--navy-500);
    box-shadow: 0 0 0 3px rgba(59,114,196,0.1);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.chosen-container-single .chosen-single div {
    position: absolute;
    top: 0;
    right: 0;
    width: 36px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.chosen-container-single .chosen-single div b {
    width: 12px;
    height: 8px;
    display: block;
    background: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center !important;
    background-size: 12px 8px !important;
    transition: transform 0.2s;
}
.chosen-container-active.chosen-with-drop .chosen-single div b {
    transform: rotate(180deg);
}
.chosen-container .chosen-drop {
    border: 2px solid var(--navy-500);
    border-top: 0;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: 0 8px 16px -4px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.06);
    margin-top: 0;
}
.chosen-container-single .chosen-search {
    padding: 8px 10px;
}
.chosen-container-single .chosen-search input[type="text"] {
    width: 100% !important;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--slate-300);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: var(--font-body);
    color: var(--slate-800);
    background: var(--slate-50) !important;
    outline: none;
    transition: border-color 0.2s;
}
.chosen-container-single .chosen-search input[type="text"]:focus {
    border-color: var(--navy-500);
    background: var(--white) !important;
}
.chosen-container .chosen-results {
    max-height: 260px;
    padding: 4px 0;
}
.chosen-container .chosen-results li {
    font-size: 14px;
    font-family: var(--font-body);
    padding: 8px 14px;
    transition: background 0.15s;
}
.chosen-container .chosen-results li.highlighted {
    background: var(--navy-600);
    color: var(--white);
}
.chosen-container .chosen-results li.no-results {
    color: var(--slate-500);
    font-style: italic;
}
.chosen-container .chosen-results li.group-result {
    font-weight: 700;
    color: var(--slate-500);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 10px 14px 4px;
}

/* Compact Chosen inside the mega menu province filter.
   Constrain width — a full-menu-width dropdown looks broken. */
.megamenu__location-filter .chosen-container,
.megamenu__location-filter .megamenu__province-select {
    width: 340px !important;
    max-width: 100%;
}
.megamenu__location-filter .chosen-container-single .chosen-single {
    height: 36px;
    line-height: 34px;
    padding: 0 12px;
    border: 1px solid var(--slate-200);
    border-radius: 8px;
    font-size: 13px;
    color: var(--navy-700);
    background: var(--white);
}
.megamenu__location-filter .chosen-container-single .chosen-single span { margin-right: 26px; }
.megamenu__location-filter .chosen-container-single .chosen-single:hover { border-color: var(--slate-400); }
.megamenu__location-filter .chosen-container-active .chosen-single,
.megamenu__location-filter .chosen-container-active.chosen-with-drop .chosen-single {
    border-color: var(--primary, #3faeeb);
    box-shadow: 0 0 0 3px rgba(63,174,235,0.12);
    border-radius: 8px 8px 0 0;
}
.megamenu__location-filter .chosen-container-single .chosen-single div { width: 28px; }
.megamenu__location-filter .chosen-container .chosen-drop {
    border: 1px solid var(--primary, #3faeeb);
    border-top: 0;
    border-radius: 0 0 8px 8px;
    z-index: 1200;
}
.megamenu__location-filter .chosen-container-single .chosen-search { padding: 6px 8px; }
.megamenu__location-filter .chosen-container-single .chosen-search input[type="text"] {
    height: 30px;
    font-size: 13px;
}
.megamenu__location-filter .chosen-container .chosen-results { max-height: 220px; }
.megamenu__location-filter .chosen-container .chosen-results li {
    font-size: 13px;
    padding: 7px 12px;
}
.megamenu__location-filter .chosen-container .chosen-results li.highlighted {
    background: var(--primary, #3faeeb);
}
.search-form .chosen-container-single .chosen-single {
    height: 50px;
    line-height: 48px;
}
.chosen-container-multi .chosen-choices {
    border: 2px solid var(--slate-200);
    border-radius: var(--radius-md);
    padding: 6px 8px;
    min-height: 46px;
    background: var(--white);
    font-family: var(--font-body);
    box-shadow: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.chosen-container-multi .chosen-choices li.search-choice {
    background: var(--navy-50);
    border: 1px solid var(--navy-200);
    border-radius: var(--radius-sm);
    color: var(--navy-800);
    font-size: 13px;
    padding: 5px 22px 5px 8px;
    margin: 2px 4px 2px 0;
}
.chosen-container-multi .chosen-choices li.search-choice .search-choice-close {
    top: 6px;
}
.chosen-container-multi.chosen-container-active .chosen-choices {
    border-color: var(--navy-500);
    box-shadow: 0 0 0 3px rgba(59,114,196,0.1);
}

/* Chosen.js inside megamenu — compact sizing */
.megamenu .chosen-container {
    font-size: 13px;
}
.megamenu .chosen-container-single .chosen-single {
    height: 34px;
    line-height: 32px;
    padding: 0 10px;
    font-size: 13px;
    border-width: 1px;
    border-radius: 8px;
}
.megamenu .chosen-container-active.chosen-with-drop .chosen-single,
.megamenu .chosen-container-active .chosen-single {
    border-radius: 8px 8px 0 0;
    box-shadow: 0 0 0 2px rgba(59,114,196,0.1);
}
.megamenu .chosen-container-single .chosen-single div {
    width: 28px;
}
.megamenu .chosen-container .chosen-drop {
    border-width: 1px;
    border-radius: 0 0 8px 8px;
    z-index: 1010;
}
.megamenu .chosen-container-single .chosen-search {
    padding: 6px 8px;
}
.megamenu .chosen-container-single .chosen-search input[type="text"] {
    height: 30px;
    font-size: 13px;
    padding: 0 8px;
}
.megamenu .chosen-container .chosen-results {
    max-height: 220px;
}
.megamenu .chosen-container .chosen-results li {
    font-size: 13px;
    padding: 5px 10px;
}

/* Chosen is now applied to any select with more than five options, so these
   rules cover the contexts it did not previously reach. */

/* Sit in the layout exactly where the native <select> did. Chosen's own
   inline-block + fixed pixel width overflows a grid cell or a table cell. */
.chosen-container {
    display: block;
    max-width: 100%;
    vertical-align: middle;
}
.form-group .chosen-container,
td .chosen-container {
    width: 100% !important;
}
/* Chosen forces an inline width:100%, which would blow out the inline
   procedure/fee rows the admin editor lays out with flexbox. */
.procedure-edit-row .chosen-container {
    width: auto !important;
    flex: 2;
    min-width: 180px;
}
/* The drop is absolutely positioned inside the field, so it needs to clear
   cards, sticky filter bars and the fee tables it opens over. */
.chosen-container-active { z-index: 60; }
.chosen-container .chosen-drop { z-index: 61; }

/* Disabled selects (the district picker before a province is chosen) */
.chosen-container.chosen-disabled { opacity: 1; cursor: not-allowed; }
.chosen-container.chosen-disabled .chosen-single,
.chosen-container.chosen-disabled .chosen-choices {
    background: var(--slate-50);
    border-color: var(--slate-200);
    color: var(--slate-400);
}

/* Multi-select drop, to match the single-select drop above */
.chosen-container-multi .chosen-drop {
    border: 2px solid var(--navy-500);
    border-top: 0;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}
.chosen-container-multi.chosen-with-drop .chosen-choices {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.chosen-container-multi .chosen-choices li.search-field input[type="text"] {
    height: 32px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--slate-800);
}
/* Chosen sizes this input from a hidden span using the browser default font,
   so a Thai placeholder is clipped to a few characters without a floor. */
.chosen-container-multi .chosen-choices li.search-field {
    min-width: 140px;
}

/* Placeholder colour parity with native inputs */
.chosen-container-single .chosen-default,
.chosen-container-multi .default { color: var(--slate-400); }

/* Compact skin for the listing filter bars (/before-after, /promotions and the
   province/city browse filters) — full-size Chosen towers over a 13px bar. */
.listing-filters .chosen-container,
.listing-filters .listing-filter-select {
    width: 200px !important;
    min-width: 160px;
    font-size: 13px;
}
.listing-filters .chosen-container-single .chosen-single {
    height: 36px;
    line-height: 34px;
    padding: 0 12px;
    font-size: 13px;
    border-width: 1px;
    border-radius: 8px;
    color: var(--navy-700);
}
.listing-filters .chosen-container-single .chosen-single span { margin-right: 26px; }
.listing-filters .chosen-container-active .chosen-single,
.listing-filters .chosen-container-active.chosen-with-drop .chosen-single {
    border-radius: 8px 8px 0 0;
    box-shadow: 0 0 0 2px rgba(59,114,196,0.1);
}
.listing-filters .chosen-container-single .chosen-single div { width: 26px; }
.listing-filters .chosen-container .chosen-drop {
    border-width: 1px;
    border-radius: 0 0 8px 8px;
    z-index: 61;
}
.listing-filters .chosen-container-single .chosen-search { padding: 6px 8px; }
.listing-filters .chosen-container-single .chosen-search input[type="text"] {
    height: 30px;
    font-size: 13px;
    padding: 0 8px;
}
.listing-filters .chosen-container .chosen-results { max-height: 260px; }
.listing-filters .chosen-container .chosen-results li { font-size: 13px; padding: 6px 12px; }

/* The clinic dashboard and /add-clinic stack Chosen next to native inputs in
   the same grid row; keep both at the same height so rows do not stagger. */
.claim-content .chosen-container-single .chosen-single,
.add-clinic-form .chosen-container-single .chosen-single { height: 46px; line-height: 44px; }
.claim-content .chosen-container-multi .chosen-choices,
.add-clinic-form .chosen-container-multi .chosen-choices { min-height: 46px; }

@media (max-width: 640px) {
    .listing-filters .chosen-container,
    .listing-filters .listing-filter-select { width: 100% !important; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .results-layout {
        grid-template-columns: 1fr;
    }
    .results-layout__map {
        position: relative;
        top: 0;
        height: 300px;
    }
    .results-layout__list {
        max-height: none;
    }
    .clinic-detail__grid {
        grid-template-columns: 1fr;
    }
    .clinic-detail__sidebar {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .site-header__nav { display: none; }
    .site-header__toggle { display: block; }

    .hero {
        padding: 48px 0 64px;
        /* Its own crop and its own scrim. The desktop 2.4:1 frame centres on
           empty background at this width and loses both faces; and because the
           mobile headline is 30px (large text, needs only 3:1) and the
           sub-heading 16px, the overlay can come down far enough to let the
           consultation actually read. Measured at 6.20:1 and 5.03:1. */
        background-image:
            linear-gradient(135deg,
                rgba(26, 58, 74, 0.86) 0%,
                rgba(26, 58, 74, 0.80) 50%,
                rgba(30, 90, 122, 0.70) 100%),
            url('/assets/images/hero-home-mobile.webp');
        background-position: 46% 20%;
    }
    .hero h1 { font-size: 30px; }
    .hero p { font-size: 16px; }

    .search-form__row {
        grid-template-columns: 1fr;
    }
    .search-form { padding: 16px; }
    .search-form__advanced { grid-template-columns: 1fr; }

    .stats-bar { gap: 24px; }
    .stats-bar__number { font-size: 22px; }

    .articles-grid { grid-template-columns: 1fr; }
    .cities-grid { grid-template-columns: 1fr 1fr; }
    .provinces-grid { grid-template-columns: 1fr; }

    .city-filters__row { gap: 10px; }
    .city-filters__group { min-width: 0; flex: 1 1 calc(50% - 5px); }
    .city-filters__count { margin-left: 0; flex-basis: 100%; padding-bottom: 0; }
    .form-grid { grid-template-columns: 1fr; }

    .page-header h1 { font-size: 26px; }
    .page-header--breadcrumb-only { padding: 12px 0; min-height: 44px; }

    .breadcrumb {
        font-size: 13px;
        gap: 4px 6px;
    }
    .breadcrumb__current {
        flex-basis: 100%;
        padding-top: 2px;
    }
    .breadcrumb__sep:last-of-type { display: none; }

    .admin-layout { flex-direction: column; }
    .admin-sidebar { width: 100%; }
    .admin-main { padding: 16px; }

    .clinic-detail__title h1 { font-size: 24px; }
    .article-single__header h1 { font-size: 26px; }

    .clinic-hero { height: 240px; }
    .clinic-hero__overlay { padding: 16px; gap: 12px; }
    .clinic-hero__overlay img { width: 56px; height: 56px; }
    .clinic-hero__overlay h1 { font-size: 22px; }

    .clinic-card__content { position: relative; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 26px; }
    .cookie-banner__inner { flex-direction: column; text-align: center; }
    .stats-bar { flex-direction: column; gap: 12px; }
}

/* ===== CLAIM-EDIT: Logo, Cover, Gallery, Feature Gating ===== */
.form-section {
    margin-bottom: 24px;
    padding: 20px;
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md, 8px);
}

/* Logo upload */
.logo-upload-area {
    display: flex;
    align-items: center;
    gap: 20px;
}
.logo-preview {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-md, 8px);
    border: 2px dashed var(--slate-300);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--white);
}
.logo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.logo-placeholder {
    text-align: center;
    color: var(--slate-400);
    font-size: 11px;
}
.logo-placeholder svg { margin-bottom: 4px; }
.logo-preview { position: relative; }
.logo-remove-x {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #dc2626;
    color: #fff;
    border: 2px solid #fff;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.logo-remove-x:hover { background: #b91c1c; }

/* Cover images grid */
.cover-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}
.cover-item {
    position: relative;
    border-radius: var(--radius-md, 8px);
    overflow: hidden;
    border: 1px solid var(--slate-200);
    aspect-ratio: 16 / 9;
}
.cover-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.cover-item__drag {
    position: absolute;
    top: 6px;
    left: 6px;
    cursor: grab;
    color: #fff;
    background: rgba(0,0,0,0.5);
    border-radius: 4px;
    width: 24px;
    height: 24px;
    font-size: 14px;
    line-height: 24px;
    text-align: center;
    user-select: none;
    z-index: 2;
    transition: background 0.2s;
}
.cover-item__drag:hover { background: rgba(0,0,0,0.8); }
.cover-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 16px;
    line-height: 22px;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s;
}
.cover-remove:hover { background: rgba(220,38,38,0.8); }
.cover-move {
    position: absolute;
    bottom: 6px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 14px;
    line-height: 22px;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s;
}
.cover-move:hover { background: rgba(0,0,0,0.85); }
.cover-move--left { right: 36px; }
.cover-move--right { right: 6px; }
.cover-featured-badge {
    position: absolute;
    bottom: 6px;
    left: 6px;
    background: var(--gold-400);
    color: var(--navy-900);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Feature gating */
.feature-gated {
    position: relative;
    opacity: 0.45;
    pointer-events: none;
    filter: grayscale(0.5);
}
.feature-gate-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.85);
    z-index: 10;
    pointer-events: auto;
    border-radius: var(--radius-md, 8px);
    text-align: center;
    padding: 24px;
}

/* Gallery items */
.dropzone-area {
    border: 2px dashed var(--slate-300);
    border-radius: var(--radius-md, 8px);
    background: var(--white);
    padding: 30px;
    text-align: center;
    min-height: 120px;
    transition: border-color 0.2s;
    cursor: pointer;
}
.dropzone-area:hover { border-color: var(--navy-500); }
.dropzone-area .dz-preview { display: none; }
.gallery-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}
.gallery-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md, 8px);
    padding: 8px 12px;
    transition: box-shadow 0.15s;
}
.gallery-item:hover { box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.gallery-item__drag {
    cursor: grab;
    color: var(--slate-400);
    font-size: 16px;
    user-select: none;
    flex-shrink: 0;
}
.gallery-item img {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}
.gallery-item__caption {
    flex: 1;
    border: 1px solid var(--slate-200);
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 13px;
}
.gallery-item__remove {
    background: none;
    border: 1px solid var(--slate-200);
    border-radius: 4px;
    width: 28px;
    height: 28px;
    font-size: 16px;
    color: var(--slate-400);
    cursor: pointer;
    transition: all 0.15s;
    flex-shrink: 0;
}
.gallery-item__remove:hover {
    color: var(--error);
    border-color: var(--error);
}

/* ===== COVER IMAGE SLIDER (clinic detail page) ===== */
.cover-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 7;
    max-height: 450px;
    overflow: hidden;
    border-radius: var(--radius-md, 8px);
    margin-bottom: 24px;
    background: var(--slate-100);
}
.cover-slider__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}
.cover-slider__slide.active { opacity: 1; }
.cover-slider__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cover-slider__dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}
.cover-slider__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}
.cover-slider__dot.active { background: rgba(255,255,255,0.95); }

/* ===== GALLERY GRID (clinic detail page) ===== */
.clinic-gallery {
    margin-top: 32px;
    margin-bottom: 32px;
}
.clinic-gallery h2 {
    margin-bottom: 16px;
    font-size: 20px;
}
.clinic-gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.clinic-gallery__grid a {
    display: block;
    border-radius: var(--radius-md, 8px);
    overflow: hidden;
    aspect-ratio: 4 / 3;
}
.clinic-gallery__grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.clinic-gallery__grid a:hover img { transform: scale(1.05); }

/* Gallery mobile carousel - hidden on desktop */
.clinic-gallery__carousel {
    display: none;
    position: relative;
}
.clinic-gallery__carousel-track {
    position: relative;
    border-radius: var(--radius-md, 8px);
    overflow: hidden;
    background: var(--slate-100);
    aspect-ratio: 4 / 3;
}
.clinic-gallery__carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.clinic-gallery__carousel-slide.active {
    opacity: 1;
    z-index: 1;
}
.clinic-gallery__carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.clinic-gallery__carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 12px;
    font-size: 13px;
    color: #fff;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    margin: 0;
    z-index: 2;
}
.clinic-gallery__carousel-prev,
.clinic-gallery__carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--slate-700);
    box-shadow: var(--shadow-md);
    z-index: 3;
    transition: background 0.2s;
}
.clinic-gallery__carousel-prev:hover,
.clinic-gallery__carousel-next:hover {
    background: var(--white);
}
.clinic-gallery__carousel-prev { left: 8px; }
.clinic-gallery__carousel-next { right: 8px; }
.clinic-gallery__carousel-counter {
    text-align: center;
    padding: 8px 0;
    font-size: 13px;
    color: var(--slate-500);
    font-weight: 500;
}

@media (max-width: 768px) {
    .clinic-gallery__grid { display: none; }
    .clinic-gallery__carousel { display: block; }
    .cover-slider { aspect-ratio: 16 / 9; }
    .logo-upload-area { flex-direction: column; align-items: flex-start; }
    .cover-images-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== CERTIFICATION BADGES ===== */
.info-card__row--certifications .info-card__value {
    flex: 1;
}
.certification-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}
.certification-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: 8px;
    text-decoration: none;
    color: var(--slate-700);
    font-size: 11px;
    font-weight: 600;
    transition: transform 0.15s, box-shadow 0.15s;
}
.certification-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.certification-badge img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}
.certification-badge--text {
    flex-direction: row;
    padding: 6px 14px;
    font-size: 13px;
}

/* ============================================
   Fee Table & Currency Converter
   ============================================ */
.fee-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.fee-table th,
.fee-table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--slate-200);
}
.fee-table th {
    font-weight: 600;
    color: var(--navy-800);
    background: var(--slate-50);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.fee-table tbody tr:hover {
    background: var(--slate-50);
}
.fee-amount {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    white-space: nowrap;
}

.fee-converter {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.fee-converter label {
    font-size: 14px;
    font-weight: 600;
    color: var(--slate-700);
    white-space: nowrap;
}
.fee-converter select {
    padding: 6px 12px;
    border: 1px solid var(--slate-300);
    border-radius: var(--radius-md, 8px);
    font-size: 14px;
    background: var(--white);
    color: var(--navy-800);
    cursor: pointer;
}
.fee-converter__note {
    font-size: 12px;
    color: var(--slate-500);
    font-style: italic;
}

/* Fee table in admin (editable) */
.fee-table--admin input[type="text"],
.fee-table--admin input[type="number"] {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid var(--slate-300);
    border-radius: 4px;
    font-size: 13px;
    box-sizing: border-box;
}
.fee-input-wrap {
    display: flex;
    align-items: center;
    border: 1px solid var(--slate-300);
    border-radius: 4px;
    overflow: hidden;
}
.fee-input-wrap .fee-input-currency {
    padding: 6px 8px;
    background: var(--slate-100);
    color: var(--slate-600);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    border-right: 1px solid var(--slate-300);
}
.fee-input-wrap input[type="number"] {
    border: none !important;
    border-radius: 0 !important;
}

/* ============================================
   Admin Accordion Sections
   ============================================ */
.admin-accordion__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    margin: -20px !important;
    padding: 20px;
    border-radius: var(--radius-md, 8px);
    transition: background 0.15s ease;
}
.admin-accordion.open .admin-accordion__header {
    margin: -20px -20px 0 -20px !important;
    padding: 20px 20px 0 20px;
    border-radius: 0;
}
.admin-accordion__header:hover {
    color: var(--navy-600);
    background: var(--slate-100, #f1f5f9);
}
.admin-accordion.open .admin-accordion__header:hover {
    background: transparent;
}
.admin-accordion__icon {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}
.admin-accordion.open .admin-accordion__icon {
    transform: rotate(180deg);
}
.admin-accordion__body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}
.admin-accordion.open .admin-accordion__body {
    max-height: 2000px;
    overflow: visible;
}
.admin-accordion__body > .form-grid:first-child,
.admin-accordion__body > div:first-child {
    margin-top: 16px;
}

/* ============================================
   Claim Sidebar Layout
   ============================================ */
.claim-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 32px;
    align-items: start;
}
.claim-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 24px);
}
.claim-sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md, 8px);
    overflow: hidden;
}
.claim-sidebar__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--slate-600);
    font-size: 14px;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: all 0.15s ease;
}
.claim-sidebar__link:hover {
    background: var(--slate-50);
    color: var(--navy-700);
}
.claim-sidebar__link.active {
    background: var(--navy-50);
    color: var(--navy-800);
    font-weight: 600;
    border-left-color: var(--navy-600);
}
.claim-sidebar__link.locked {
    color: var(--slate-400);
    cursor: default;
}
.claim-sidebar__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    background: var(--slate-100);
    color: var(--slate-500);
}
.claim-sidebar__link.active .claim-sidebar__badge {
    background: var(--navy-100);
    color: var(--navy-700);
}
@media (max-width: 768px) {
    .claim-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .claim-sidebar {
        position: static;
    }
    .claim-sidebar__nav {
        flex-direction: row;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .claim-sidebar__link {
        border-left: none;
        border-bottom: 3px solid transparent;
        white-space: nowrap;
        padding: 10px 14px;
        font-size: 13px;
    }
    .claim-sidebar__link.active {
        border-bottom-color: var(--navy-600);
        border-left-color: transparent;
    }
}

/* ============================================
   Post Type Badges
   ============================================ */
.post-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.post-type-badge--news {
    background: var(--navy-50);
    color: var(--navy-600);
}
.post-type-badge--event {
    background: var(--gold-100);
    color: var(--warning);
}

/* ============================================
   Clinic Post Previews (clinic detail page)
   ============================================ */
.clinic-post-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--slate-100);
}
.clinic-post-preview:last-child {
    border-bottom: none;
}
.clinic-post-preview__thumb {
    width: 80px;
    height: 52px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--slate-100);
}
.clinic-post-preview__info {
    flex: 1;
    min-width: 0;
}
.clinic-post-preview__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--navy-800);
    margin: 0 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.clinic-post-preview__title a {
    color: inherit;
    text-decoration: none;
}
.clinic-post-preview__title a:hover {
    color: var(--navy-600);
}
.clinic-post-preview__meta {
    font-size: 12px;
    color: var(--slate-500);
}

/* ============================================
   Clinic Post Single Page
   ============================================ */
.clinic-post {
    padding: 40px 0;
}
.clinic-post .container {
    max-width: 800px;
}
.clinic-post__header {
    text-align: center;
    margin-bottom: 32px;
}
.clinic-post__header h1 {
    font-size: 2rem;
    line-height: 1.3;
    margin: 12px 0 8px;
}
.clinic-post__date {
    font-size: 14px;
    color: var(--slate-500);
    margin-bottom: 8px;
}
.clinic-post__hero {
    border-radius: var(--radius-md, 8px);
    overflow: hidden;
    margin-bottom: 32px;
}
.clinic-post__hero img {
    width: 100%;
    display: block;
}
.clinic-post__body {
    font-size: 16px;
    line-height: 1.8;
    color: var(--slate-700);
    margin-bottom: 32px;
}
.clinic-post__event-details {
    margin-bottom: 32px;
}
.clinic-post__links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}
.clinic-post__clinic-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md, 8px);
    text-decoration: none;
    color: var(--navy-700);
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
}
.clinic-post__clinic-link:hover {
    background: var(--slate-100);
}
.clinic-post__clinic-link img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
}

/* ============================================
   Articles Filters
   ============================================ */
.articles-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}
.articles-filters select {
    padding: 8px 12px;
    border: 1px solid var(--slate-300);
    border-radius: var(--radius-md, 8px);
    background: var(--white);
    color: var(--slate-700);
    font-size: 14px;
    min-width: 180px;
    cursor: pointer;
}

/* ============================================
   Post Management List (claim-posts.php)
   ============================================ */
.post-list-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md, 8px);
    margin-bottom: 12px;
    transition: box-shadow 0.15s ease;
}
.post-list-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.post-list-item__thumb {
    width: 100px;
    height: 64px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--slate-100);
}
.post-list-item__info {
    flex: 1;
    min-width: 0;
}
.post-list-item__title {
    font-size: 15px;
    font-weight: 600;
    color: var(--navy-800);
    margin: 0 0 4px;
}
.post-list-item__meta {
    font-size: 13px;
    color: var(--slate-500);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.post-list-item__actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
@media (max-width: 640px) {
    .post-list-item {
        flex-wrap: wrap;
    }
    .post-list-item__thumb {
        width: 80px;
        height: 52px;
    }
    .post-list-item__actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* ============================================
   Articles Page - Section Headers
   ============================================ */
.articles-section {
    margin-top: 48px;
}
.articles-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--slate-200);
}
.articles-section__header h2 {
    font-size: 1.5rem;
    margin: 0;
}

/* ============================================
   Tooltips
   ============================================ */
.field-tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
    margin-left: 4px;
    color: var(--slate-400);
    vertical-align: middle;
}
.field-tooltip__text {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--navy-800);
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    padding: 8px 12px;
    border-radius: 6px;
    white-space: nowrap;
    max-width: 260px;
    white-space: normal;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.field-tooltip__text::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--navy-800);
}
.field-tooltip:hover .field-tooltip__text {
    display: block;
}

/* ============================================
   Certification Expand Panels
   ============================================ */
.certification-detail-panel {
    display: none;
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: 8px;
    padding: 14px 18px;
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--slate-700);
    animation: fadeSlideDown 0.2s ease;
}
.certification-detail-panel.open {
    display: block;
}

/* ============================================
   Clinic Types Badges & Expand
   ============================================ */
.clinic_types-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}
.clinic_types-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: var(--navy-50);
    border: 1px solid var(--navy-100);
    border-radius: 100px;
    color: var(--navy-700);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
    user-select: none;
}
.clinic_types-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    background: var(--navy-100);
}
.clinic_types-badge--group {
    padding: 4px 14px;
    background: var(--navy-100);
    border-color: var(--navy-200);
    letter-spacing: 0.01em;
}
.clinic_types-detail-panel {
    display: none;
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: 8px;
    padding: 14px 18px;
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--slate-700);
    animation: fadeSlideDown 0.2s ease;
}
.clinic_types-detail-panel.open {
    display: block;
}
.clinic_types-sub-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    border-left: 2px solid var(--navy-200);
    padding-left: 14px;
}
.clinic_types-sub-item {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 5px 0;
    font-size: 13px;
    color: var(--slate-700);
    line-height: 1.5;
}
.clinic_types-sub-item + .clinic_types-sub-item {
    border-top: 1px solid var(--slate-150, var(--slate-100));
}
.clinic_types-sub-item__name {
    font-weight: 600;
}
.clinic_types-sub-item__age {
    font-size: 12px;
    color: var(--slate-500);
    white-space: nowrap;
}

/* Clinic card clinic_types pills */
.clinic-card__type-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}
.clinic-card__type-pill {
    display: inline-block;
    padding: 2px 8px;
    background: var(--navy-50);
    border: 1px solid var(--navy-100);
    border-radius: 100px;
    color: var(--navy-700);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}
.clinic-card__type-pill--group {
    background: var(--navy-100);
    border-color: var(--navy-200);
}
.clinic-card__type-pill--more {
    background: var(--slate-100);
    border-color: var(--slate-200);
    color: var(--slate-500);
}

@keyframes fadeSlideDown {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== BIG MAP MODE ===== */
.bigmap-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--navy-700);
    background: var(--navy-50);
    border: 1px solid var(--navy-100);
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    text-decoration: none;
    vertical-align: middle;
}
.bigmap-trigger:hover {
    background: var(--navy-100);
    color: var(--navy-800);
    border-color: var(--navy-200, var(--navy-500));
}
.bigmap-trigger svg { flex-shrink: 0; }

body.bigmap-active { overflow: hidden; }
body.bigmap-active .site-header { position: fixed; left: 0; right: 0; z-index: 9999; overflow: visible; }
body.bigmap-active .megamenu { z-index: 10000; }
body.bigmap-active .hero,
body.bigmap-active .page-header,
body.bigmap-active .content-section,
body.bigmap-active .site-footer { display: none; }

#bigmap-overlay {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    background: var(--white);
    flex-direction: column;
}
body.bigmap-active #bigmap-overlay { display: flex; }

.bigmap-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: var(--navy-900);
    color: var(--white);
    flex-shrink: 0;
    min-height: 44px;
}
.bigmap-close {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--white);
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.15s;
}
.bigmap-close:hover { background: rgba(255,255,255,0.22); }
.bigmap-filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--white);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.15s;
}
.bigmap-filter-toggle:hover { background: rgba(255,255,255,0.18); }
.bigmap-filter-toggle.active { background: var(--navy-600); border-color: var(--navy-500); }
.bigmap-count {
    margin-left: auto;
    font-size: 13px;
    color: var(--slate-300);
    font-weight: 500;
}
.bigmap-count strong { color: var(--white); font-weight: 700; }

.bigmap-body {
    display: flex;
    flex: 1;
    min-height: 0;
    position: relative;
}

.bigmap-panel {
    width: 300px;
    flex-shrink: 0;
    background: var(--white);
    border-right: 1px solid var(--slate-200);
    padding: 20px;
    overflow-y: auto;
    transition: margin-left 0.25s ease, opacity 0.2s;
}
.bigmap-panel.collapsed {
    margin-left: -300px;
    opacity: 0;
    pointer-events: none;
}
.bigmap-panel__title {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 16px;
}
.bigmap-panel__group {
    margin-bottom: 16px;
}
.bigmap-panel__group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--slate-600);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.bigmap-panel__group select,
.bigmap-panel__group input[type="range"] {
    width: 100%;
    padding: 8px 10px;
    font-family: var(--font-body);
    font-size: 14px;
    border: 1px solid var(--slate-300);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--slate-800);
    appearance: auto;
}
.bigmap-panel__group select:focus,
.bigmap-panel__group input:focus {
    outline: none;
    border-color: var(--navy-500);
    box-shadow: 0 0 0 3px rgba(59,114,196,0.12);
}
.bigmap-panel__range-display {
    font-size: 13px;
    color: var(--slate-600);
    margin-top: 4px;
    text-align: right;
}
.bigmap-panel__fee-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}
.bigmap-panel__fee-header label {
    margin-bottom: 0 !important;
}
.bigmap-panel__fee-header select {
    width: auto;
    padding: 3px 6px;
    font-size: 12px;
    border: 1px solid var(--slate-300);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--slate-800);
    font-family: var(--font-body);
}
.bigmap-panel__dual-range {
    position: relative;
    height: 36px;
}
.bigmap-panel__dual-range input[type="range"] {
    position: absolute;
    width: 100%;
    top: 0;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    margin: 0;
    padding: 0;
    height: 36px;
    border: none;
}
.bigmap-panel__dual-range input[type="range"]::-webkit-slider-runnable-track {
    height: 4px;
    background: var(--slate-200);
    border-radius: 2px;
}
.bigmap-panel__dual-range input[type="range"]:last-child::-webkit-slider-runnable-track {
    background: transparent;
}
.bigmap-panel__dual-range input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    pointer-events: all;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--navy-600);
    border: 2px solid var(--white);
    box-shadow: 0 1px 3px rgba(0,0,0,0.25);
    cursor: pointer;
    margin-top: -7px;
}
.bigmap-panel__dual-range input[type="range"]::-moz-range-track {
    height: 4px;
    background: var(--slate-200);
    border-radius: 2px;
    border: none;
}
.bigmap-panel__dual-range input[type="range"]:last-child::-moz-range-track {
    background: transparent;
}
.bigmap-panel__dual-range input[type="range"]::-moz-range-thumb {
    pointer-events: all;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--navy-600);
    border: 2px solid var(--white);
    box-shadow: 0 1px 3px rgba(0,0,0,0.25);
    cursor: pointer;
}
.bigmap-panel__reset {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 8px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--slate-600);
    background: var(--slate-100);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-align: center;
    transition: all 0.15s;
}
.bigmap-panel__reset:hover { background: var(--slate-200); color: var(--slate-800); }

#bigmap-map {
    flex: 1;
    min-width: 0;
}

/* Enhanced Big Map Popups */
.map-popup--big { min-width: 240px; max-width: 300px; }
.map-popup--big .map-popup__header { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
.map-popup--big .map-popup__logo { width: 40px; height: 40px; border-radius: var(--radius-sm); object-fit: contain; flex-shrink: 0; }
.map-popup--big .map-popup__title { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--navy-900); line-height: 1.3; }
.map-popup--big .map-popup__address { font-size: 12px; color: var(--slate-500); margin-top: 2px; }
.map-popup--big .map-popup__pills { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.map-popup--big .map-popup__pill {
    display: inline-block;
    padding: 2px 7px;
    background: var(--navy-50);
    border: 1px solid var(--navy-100);
    border-radius: 100px;
    color: var(--navy-700);
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
}
.map-popup--big .map-popup__meta {
    font-size: 12px;
    color: var(--slate-600);
    margin-bottom: 8px;
    line-height: 1.5;
}
.map-popup--big .map-popup__link {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--navy-600);
}
.map-popup--big .map-popup__link:hover { color: var(--navy-800); }

/* Big Map: Leaflet popup overrides for larger popups */
#bigmap-map .leaflet-popup-content { margin: 10px 12px; }

/* ===== BIG MAP MOBILE ===== */
@media (max-width: 767px) {
    .bigmap-panel {
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        width: 280px;
        z-index: 10;
        box-shadow: var(--shadow-xl);
        margin-left: 0;
    }
    .bigmap-panel.collapsed {
        transform: translateX(-100%);
        margin-left: 0;
        opacity: 0;
        pointer-events: none;
    }
    .bigmap-toolbar { padding: 8px 10px; gap: 8px; }
    .bigmap-close span,
    .bigmap-filter-toggle span { display: none; }
    .bigmap-close, .bigmap-filter-toggle { padding: 6px 8px; }
}

/* ===== CLINIC EMBED IN ARTICLES ===== */
.clinic-embed-wrapper { margin: 32px 0; position: relative; }
.clinic-embed__number {
    position: absolute; top: -12px; left: -12px;
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--navy-700); color: #fff;
    font-size: 16px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    z-index: 2; box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.article-single__content .clinic-card a { text-decoration: none; }

/* ===== ACTIVE NAV HIGHLIGHTING ===== */
.site-header__nav > a.nav-active { color: var(--navy-800); background: var(--navy-50); }
.mega-trigger.nav-current > .mega-trigger__link,
.nav-dropdown.nav-current > .nav-dropdown__link { color: var(--navy-800); background: var(--navy-50); }

/* ===== NAV CTA BUTTON ===== */
.nav-cta,
.site-header__nav .nav-cta,
.nav-dropdown.nav-current > .nav-cta { background: var(--primary, #3faeeb) !important; color: var(--white) !important; border-radius: var(--radius-sm); padding: 6px 14px; font-size: 13px; font-weight: 600; transition: background 0.2s; }
.nav-cta:hover,
.site-header__nav .nav-cta:hover,
.nav-dropdown.nav-current > .nav-cta:hover { background: var(--sky-600, #0284c7) !important; color: var(--white) !important; }

/* ===== FEATURED TIER CLINICS GRID ===== */
.featured-clinics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    align-items: stretch;
}
.featured-clinics-grid .clinic-card {
    margin-bottom: 0;
    height: 100%;
}
@media (max-width: 900px) {
    .featured-clinics-grid { grid-template-columns: 1fr; }
}

/* ===== MOBILE MENU BOTTOM BAR (mmenu) ===== */
/* Cookie banner must not cover the open off-canvas menu */
.mm-wrapper--opened #cookie-banner { display: none !important; }
.mm-menu .mm-navbar--bottom {
    height: auto;
    padding: 0;
    border-top: 1px solid rgba(0,0,0,0.08);
}
.mm-bottom-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 14px;
    box-sizing: border-box;
}
.mm-bottom-bar a.mm-cta-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: var(--primary, #3faeeb);
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    padding: 11px 10px;
    border-radius: 10px;
    text-decoration: none;
    white-space: nowrap;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mm-bottom-bar a.mm-cta-btn:hover { background: var(--sky-600, #0284c7); }
.mm-bottom-bar .mm-lang-switch {
    display: flex;
    flex-shrink: 0;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 10px;
    overflow: hidden;
}
.mm-bottom-bar .mm-lang-switch__btn {
    padding: 10px 13px;
    font-size: 13px;
    font-weight: 700;
    color: var(--navy-700, #334155);
    text-decoration: none;
    line-height: 1;
    display: block;
}
.mm-bottom-bar .mm-lang-switch__btn.active {
    background: var(--primary, #3faeeb);
    color: #fff;
}

/* ===== LANGUAGE SWITCHER ===== */
.lang-switcher { position: relative; display: flex; align-items: center; margin-left: 8px; }
.lang-switcher__btn { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 6px; font-size: 13px; font-weight: 500; color: var(--slate-600); background: var(--slate-100); border: none; cursor: pointer; transition: all 0.2s; }
.lang-switcher__btn:hover { background: var(--sky-50, #f0f9ff); color: var(--primary, #3faeeb); }
.lang-switcher__chevron { transition: transform 0.2s; }
.lang-switcher.active .lang-switcher__chevron { transform: rotate(180deg); }
.lang-switcher__menu { display: none; position: absolute; top: calc(100% + 6px); right: 0; min-width: 140px; background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius-sm); box-shadow: 0 8px 24px rgba(0,0,0,0.12); z-index: 1000; overflow: hidden; }
.lang-switcher.active .lang-switcher__menu { display: block; }
.lang-switcher__item { display: flex; align-items: center; gap: 8px; padding: 9px 16px; font-size: 14px; font-weight: 500; color: var(--navy-700); text-decoration: none; transition: background 0.15s; }
.lang-switcher__item span { font-weight: 400; color: var(--slate-400); font-size: 12px; }
.lang-switcher__item:hover { background: var(--sky-50, #f0f9ff); }
.lang-switcher__item--active { color: var(--primary, #3faeeb); background: var(--sky-50, #f0f9ff); }
.lang-switcher__item--active::after { content: '\2713'; margin-left: auto; font-size: 13px; color: var(--primary, #3faeeb); }

/* ===== THAI LANGUAGE TYPOGRAPHY ===== */
html[lang="th"] { font-family: 'Sarabun', 'DM Sans', sans-serif; }
html[lang="th"] h1, html[lang="th"] h2, html[lang="th"] h3, html[lang="th"] h4, html[lang="th"] h5, html[lang="th"] h6, html[lang="th"] .site-header__logo span { font-family: 'Kanit', sans-serif; }

/* ===== PROCEDURES ===== */
.procedure-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.procedure-card { display: flex; flex-direction: column; padding: 16px 20px; border: 1px solid var(--slate-200); border-radius: 10px; text-decoration: none; color: var(--slate-700); transition: all 0.2s; background: var(--white); }
.procedure-card:hover { border-color: var(--primary, #3faeeb); box-shadow: 0 2px 8px rgba(3,105,161,0.1); transform: translateY(-1px); }
.procedure-card__name { font-weight: 600; font-size: 15px; color: var(--navy-700, #1e3a5f); }
.procedure-card__name-alt { font-size: 13px; color: var(--slate-400); margin-top: 2px; }
.procedure-card__count { font-size: 12px; color: var(--slate-400); margin-top: 6px; }
.procedure-category-title { font-size: 20px; color: var(--navy-700, #1e3a5f); margin: 32px 0 16px; padding-bottom: 8px; border-bottom: 2px solid var(--slate-200); }
.procedure-filter-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.procedure-filter-pill { display: inline-block; padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 500; text-decoration: none; color: var(--slate-600); background: var(--slate-100); transition: all 0.2s; }
.procedure-filter-pill:hover, .procedure-filter-pill--active { background: var(--primary, #3faeeb); color: var(--white); }
@media (max-width: 1024px) { .procedure-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .procedure-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .procedure-grid { grid-template-columns: 1fr; } }

/* Procedure detail - clinic card */
.procedure-clinic-card { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border: 1px solid var(--slate-200); border-radius: 8px; margin-bottom: 8px; transition: border-color 0.2s; }
.procedure-clinic-card:hover { border-color: var(--primary, #3faeeb); }
.procedure-clinic-card__info h3 { font-size: 15px; margin: 0; }
.procedure-clinic-card__info h3 a { color: var(--navy-700, #1e3a5f); text-decoration: none; }
.procedure-clinic-card__info h3 a:hover { color: var(--primary, #3faeeb); }
.procedure-clinic-card__info p { font-size: 13px; color: var(--slate-500); margin: 2px 0 0; }
.procedure-clinic-card__price { font-size: 14px; font-weight: 600; color: var(--primary, #3faeeb); white-space: nowrap; }

/* Procedure rows on clinic detail */
.procedure-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--slate-100); }
.procedure-row:last-child { border-bottom: none; }
.procedure-row__name { color: var(--navy-700, #1e3a5f); text-decoration: none; font-size: 14px; font-weight: 500; }
.procedure-row__name:hover { color: var(--primary, #3faeeb); }
.procedure-row__price { font-size: 13px; color: var(--slate-500); white-space: nowrap; }

/* ===== BEFORE & AFTER ===== */
.ba-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; border: 1px solid var(--slate-200); border-radius: 8px; overflow: hidden; padding: 8px; }
.ba-pair__image { position: relative; overflow: hidden; border-radius: 6px; }
.ba-pair__image img { width: 100%; height: auto; display: block; aspect-ratio: 1; object-fit: cover; }
.ba-pair__label { position: absolute; top: 6px; left: 6px; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; color: var(--white); background: rgba(0,0,0,0.6); }
.ba-pair__label--after { background: rgba(16,185,129,0.85); }
.ba-pair__caption { grid-column: 1 / -1; font-size: 13px; color: var(--slate-500); margin: 4px 0 0; padding: 0 4px; }
@media (max-width: 768px) { .ba-grid { grid-template-columns: 1fr; } }

/* B&A single-image gallery */
.ba-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.ba-gallery__item { position: relative; border-radius: 8px; overflow: hidden; }
.ba-gallery__item img { width: 100%; height: auto; display: block; aspect-ratio: 1; object-fit: cover; transition: transform 0.2s; }
.ba-gallery__item:hover img { transform: scale(1.03); }
.ba-gallery__caption { position: absolute; bottom: 0; left: 0; right: 0; padding: 6px 8px; font-size: 12px; color: var(--white); background: linear-gradient(transparent, rgba(0,0,0,0.65)); line-height: 1.3; }
@media (max-width: 768px) { .ba-gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .ba-gallery { grid-template-columns: repeat(2, 1fr); gap: 6px; } }

/* ===== PROMOTIONS ===== */
/* Full-width promo block, used on the clinic's own /promotions sub-page. */
.promo-card { padding: 16px; border: 1px solid var(--slate-200); border-radius: 8px; margin-bottom: 12px; transition: border-color 0.2s; }
.promo-card:hover { border-color: var(--primary, #3faeeb); }
.promo-card__header { margin-bottom: 8px; }
.promo-card__header h4 { font-size: 16px; margin: 0; color: var(--navy-700, #1e3a5f); }
.promo-card__procedure { display: inline-block; font-size: 12px; color: var(--primary, #3faeeb); background: var(--sky-50, #f0f9ff); padding: 2px 8px; border-radius: 4px; margin-top: 4px; }
.promo-card__prices { display: flex; align-items: center; gap: 12px; margin: 8px 0; }
.promo-card__original { font-size: 14px; color: var(--slate-400); text-decoration: line-through; }
.promo-card__promo { font-size: 18px; font-weight: 700; color: #059669; }
.promo-card__savings { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 600; color: var(--white); background: #059669; }
.promo-card__date { font-size: 13px; color: var(--slate-500); }
.promo-card--expired { background: var(--slate-50); }
.promo-card--expired .promo-card__promo { color: var(--slate-400); text-decoration: line-through; }
.promo-card--expired img { filter: grayscale(1); opacity: 0.65; transition: filter 0.25s, opacity 0.25s; }
.promo-card--expired:hover img { filter: grayscale(0); opacity: 1; }

/* Compact preview card in the clinic profile sidebar. Separate class from
   .promo-card above, which the sub-page uses for its full-width blocks. */
.promo-mini { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--slate-200); border-radius: 8px; margin-bottom: 12px; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; text-decoration: none; color: inherit; }
.promo-mini:hover { border-color: var(--primary, #3faeeb); box-shadow: 0 2px 8px rgba(15, 23, 42, 0.07); }
.promo-mini__thumb { flex: 0 0 76px; width: 76px; height: 76px; border-radius: 6px; overflow: hidden; background: var(--slate-100); }
.promo-mini__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.promo-mini__body { flex: 1 1 auto; min-width: 0; }
.promo-mini__header { margin-bottom: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.promo-mini__header h4 { font-size: 15px; line-height: 1.35; margin: 0; color: var(--navy-700, #1e3a5f); }
.promo-mini__procedure { display: inline-block; font-size: 12px; color: var(--primary, #3faeeb); background: var(--sky-50, #f0f9ff); padding: 2px 8px; border-radius: 4px; }
.promo-mini__excerpt { font-size: 13px; line-height: 1.5; color: var(--slate-500); margin: 0 0 6px; }
.promo-mini__prices { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 6px 0; }
.promo-mini__original { font-size: 14px; color: var(--slate-400); text-decoration: line-through; }
.promo-mini__promo { font-size: 17px; font-weight: 700; color: #059669; }
.promo-mini__savings { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 600; color: var(--white); background: #059669; }
.promo-mini__date { font-size: 12px; color: var(--slate-500); }
/* Expired offers stay listed but read as past: muted panel, greyscale image,
   struck-through price. Hover restores colour so the card still invites a
   click through to the clinic's full promotions page. */
.promo-mini--expired { background: var(--slate-50); }
.promo-mini--expired .promo-mini__thumb img { filter: grayscale(1); opacity: 0.6; transition: filter 0.25s, opacity 0.25s; }
.promo-mini--expired .promo-mini__header h4 { color: var(--slate-500); font-weight: 600; }
.promo-mini--expired .promo-mini__excerpt { color: var(--slate-400); }
.promo-mini--expired .promo-mini__date { color: var(--slate-400); }
.promo-mini--expired .promo-mini__original { color: var(--slate-300); }
.promo-mini--expired .promo-mini__promo { color: var(--slate-400); text-decoration: line-through; }
.promo-mini--expired .promo-mini__savings { background: var(--slate-300); color: var(--slate-600); }
.promo-mini--expired .promo-mini__procedure { background: var(--slate-100); color: var(--slate-500); }
.promo-mini--expired:hover { background: var(--white); border-color: var(--slate-300); }
.promo-mini--expired:hover .promo-mini__thumb img { filter: grayscale(0); opacity: 1; }
.promo-mini--expired:hover .promo-mini__header h4 { color: var(--navy-700, #1e3a5f); }

/* Shared by the profile card, the promotions listing and the sub-page. */
.promo-expired-badge { display: inline-block; font-size: 11px; font-weight: 700; color: #b91c1c; background: #fef2f2; padding: 2px 8px; border-radius: 8px; text-transform: uppercase; letter-spacing: 0.03em; }

@media (max-width: 480px) {
    .promo-mini__thumb { flex-basis: 60px; width: 60px; height: 60px; }
}

/* ===== CLINIC TYPE ICON COLORING ===== */
.clinics-type-pill img, .megamenu__type-icon { filter: brightness(0) invert(63%) sepia(6%) saturate(500%) hue-rotate(180deg); }
.clinic-pin-typed img { filter: brightness(0) invert(1); }

/* ===== CLINIC PROCEDURE DETAIL CARDS ===== */
.clinic-procedures-list { display: flex; flex-direction: column; gap: 16px; }
.clinic-proc-card { display: flex; gap: 16px; padding: 16px; border: 1px solid var(--slate-200); border-radius: 10px; transition: border-color 0.2s; }
.clinic-proc-card:hover { border-color: var(--primary, #3faeeb); }
.clinic-proc-card--hidden { display: none; }
.clinic-proc-card__img { flex-shrink: 0; width: 120px; height: 120px; border-radius: 8px; overflow: hidden; }
.clinic-proc-card__img img { width: 100%; height: 100%; object-fit: cover; }
.clinic-proc-card__body { flex: 1; min-width: 0; }
.clinic-proc-card__title { font-size: 16px; font-weight: 600; color: var(--navy-700, #1e3a5f); margin: 0 0 6px; }
.clinic-proc-card__desc { font-size: 14px; color: var(--slate-600); line-height: 1.6; margin: 0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.clinic-proc-card__desc p { margin: 0 0 4px; }
@media (max-width: 480px) {
    .clinic-proc-card { flex-direction: column; }
    .clinic-proc-card__img { width: 100%; height: 180px; }
}

/* ===== PROCEDURE DETAIL MODAL ===== */
.proc-modal { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; padding: 24px; opacity: 0; visibility: hidden; transition: opacity 0.2s, visibility 0.2s; }
.proc-modal.open { opacity: 1; visibility: visible; }
.proc-modal__content { background: var(--white); border-radius: 12px; max-width: 680px; width: 100%; max-height: 85vh; overflow-y: auto; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.proc-modal__close { position: absolute; top: 12px; right: 12px; z-index: 2; background: rgba(0,0,0,0.5); color: #fff; border: none; border-radius: 50%; width: 32px; height: 32px; font-size: 20px; line-height: 30px; text-align: center; cursor: pointer; transition: background 0.2s; }
.proc-modal__close:hover { background: rgba(0,0,0,0.8); }
.proc-modal__img { width: 100%; border-radius: 12px 12px 0 0; overflow: hidden; }
.proc-modal__img img { width: 100%; height: auto; display: block; }
.proc-modal__body { padding: 24px; }
.proc-modal__body h3 { font-size: 20px; font-weight: 700; color: var(--navy-800, #1e293b); margin: 0 0 16px; }
.proc-modal__desc { font-size: 15px; color: var(--slate-600); line-height: 1.7; }
.proc-modal__desc p { margin: 0 0 10px; }
.proc-modal__desc:empty { display: none; }
@media (max-width: 480px) {
    .proc-modal { padding: 12px; }
    .proc-modal__content { max-height: 90vh; }
    .proc-modal__body { padding: 16px; }
    .proc-modal__body h3 { font-size: 18px; }
}

/* ===== CLINICS SEARCH BAR ===== */
.clinics-search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border: 2px solid var(--slate-200);
    border-radius: 12px;
    background: var(--white);
    transition: border-color 0.2s;
}
.clinics-search-bar:focus-within { border-color: var(--sky-500); }
.clinics-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    background: transparent;
    color: var(--navy-800);
}
.clinics-search-input::placeholder { color: var(--slate-400); }

/* ===== AUTOCOMPLETE DROPDOWN (search/clinics pages) ===== */
.autocomplete-dropdown {
    position: absolute;
    left: 0; right: 0;
    z-index: 100;
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    max-height: 360px;
    overflow-y: auto;
}


/* ===== FULL-PAGE CLINIC MAP (/map) ===== */
.cmap {
    --cmap-radius: 14px;
    display: flex;
    height: calc(100vh - var(--header-h, 72px));
    min-height: 540px;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

/* ---- filter rail ---- */
.cmap__panel {
    width: 342px;
    flex-shrink: 0;
    background: var(--white);
    border-right: 1px solid var(--slate-200);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transition: margin-left .28s cubic-bezier(.4,0,.2,1);
    scrollbar-width: thin;
}
.cmap__panel.is-collapsed { margin-left: -342px; }
.cmap__panel::-webkit-scrollbar { width: 8px; }
.cmap__panel::-webkit-scrollbar-thumb { background: var(--slate-200); border-radius: 8px; }

.cmap__panel-head {
    padding: 22px 22px 18px;
    background: linear-gradient(135deg, #1a3a4a 0%, #24506a 100%);
    color: #fff;
}
.cmap__title { font-size: 20px; margin: 0 0 5px; color: #fff; letter-spacing: -.2px; }
.cmap__subtitle { font-size: 12.5px; color: rgba(255,255,255,.72); margin: 0; line-height: 1.6; }

.cmap__filters { padding: 18px; display: flex; flex-direction: column; gap: 14px; }

/* Each filter sits on its own soft card so the rail reads as a stack */
.cmap__field {
    display: flex; flex-direction: column; gap: 7px; min-width: 0;
    background: var(--slate-50);
    border: 1px solid var(--slate-100);
    border-radius: var(--cmap-radius);
    padding: 12px 13px;
    transition: border-color .16s, box-shadow .16s;
}
.cmap__field:focus-within {
    border-color: #bcd7e6;
    box-shadow: 0 0 0 3px rgba(63,174,235,.13);
    background: var(--white);
}
.cmap__field > label {
    display: flex; align-items: center; gap: 6px;
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .5px; color: #7c8ea0;
}
.cmap__field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cmap__field-row .cmap__field { padding: 11px 12px; }

/* Inputs: rounded, borderless-on-card, chunky enough to tap */
.cmap__field input[type="text"],
.cmap__field select {
    width: 100%;
    padding: 9px 11px;
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: 10px;
    font-size: 13.5px;
    font-family: inherit;
    color: var(--navy-800);
    appearance: none;
    -webkit-appearance: none;
}
.cmap__field select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 9px center;
    background-size: 13px;
    padding-right: 28px;
    cursor: pointer;
}
.cmap__field select:hover, .cmap__field input[type="text"]:hover { border-color: #cbd5e1; }
.cmap__field select:focus, .cmap__field input[type="text"]:focus { outline: none; border-color: #3faeeb; }

.cmap__search { position: relative; display: flex; align-items: center; }
.cmap__search svg { position: absolute; left: 11px; color: #94a3b8; pointer-events: none; }
.cmap__search input { padding-left: 33px !important; }

.cmap__panel-foot { margin-top: 2px; }
.cmap__reset {
    width: 100%; padding: 11px;
    background: var(--white); border: 1.5px solid var(--slate-200);
    border-radius: 11px; font-size: 13px; font-weight: 700; color: var(--slate-500);
    cursor: pointer; font-family: inherit; transition: all .16s;
}
.cmap__reset:hover { background: #fff5f5; border-color: #fecaca; color: #dc2626; }

/* ---- clinic-type listbox (native options cannot show an icon) ---- */
.cmap-select { position: relative; }
.cmap-select__btn {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 9px 11px; background: var(--white); border: 1px solid var(--slate-200);
    border-radius: 10px; font-size: 13.5px; color: var(--navy-800); cursor: pointer;
    font-family: inherit; text-align: left; transition: border-color .16s;
}
.cmap-select__btn:hover { border-color: #cbd5e1; }
.cmap-select.is-open .cmap-select__btn { border-color: #3faeeb; }
.cmap-select__value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmap-select__btn > svg { flex-shrink: 0; color: #94a3b8; transition: transform .2s; }
.cmap-select.is-open .cmap-select__btn > svg { transform: rotate(180deg); }
.cmap-select__menu {
    display: none; position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 40;
    max-height: 330px; overflow-y: auto; background: var(--white);
    border: 1px solid var(--slate-200); border-radius: 13px;
    box-shadow: 0 16px 34px rgba(15,23,42,.16); padding: 6px;
}
.cmap-select.is-open .cmap-select__menu { display: block; animation: cmapPop .16s ease-out; }
@keyframes cmapPop { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }
.cmap-select__opt {
    width: 100%; display: flex; align-items: center; gap: 10px; padding: 7px 8px;
    background: none; border: 0; border-radius: 10px; cursor: pointer;
    font-family: inherit; font-size: 13.5px; color: var(--navy-800); text-align: left;
    transition: background .12s;
}
.cmap-select__opt:hover { background: #eff6fb; }
.cmap-select__opt.is-on { background: linear-gradient(135deg, #1a3a4a, #2c5f7c); color: #fff; }
.cmap-select__ico {
    width: 30px; height: 30px; flex-shrink: 0; border-radius: 9px;
    background: #fff; border: 1px solid var(--slate-100);
    display: flex; align-items: center; justify-content: center; color: #64748b;
}
.cmap-select__opt.is-on .cmap-select__ico { background: rgba(255,255,255,.18); border-color: transparent; color: #fff; }
.cmap-select__ico img { width: 17px; height: 17px; object-fit: contain; }
.cmap-select__lbl { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmap-select__num {
    font-size: 11px; font-weight: 700; color: #94a3b8;
    background: var(--slate-100); border-radius: 100px; padding: 2px 8px; min-width: 26px; text-align: center;
}
.cmap-select__opt:hover .cmap-select__num { background: #dbeafe; color: #1e40af; }
.cmap-select__opt.is-on .cmap-select__num { background: rgba(255,255,255,.2); color: #fff; }

/* ---- map side ---- */
.cmap__main { flex: 1; display: flex; flex-direction: column; min-width: 0; position: relative; }
.cmap__bar {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    padding: 11px 16px; background: var(--white);
    border-bottom: 1px solid var(--slate-200);
    box-shadow: 0 1px 3px rgba(15,23,42,.04);
    z-index: 600;
}
.cmap__toggle, .cmap__locate {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px;
    border: 0; border-radius: 100px; font-size: 13px; font-weight: 600;
    cursor: pointer; font-family: inherit; transition: all .16s;
}
.cmap__toggle { background: linear-gradient(135deg, #1a3a4a, #2c5f7c); color: #fff; }
.cmap__toggle.is-off { background: var(--slate-100); color: var(--slate-600); }
.cmap__locate { background: var(--slate-100); color: var(--slate-600); }
.cmap__locate:hover { background: #dbeafe; color: #1e40af; }
.cmap__locate.is-on { background: #3faeeb; color: #fff; }
.cmap__locate.is-busy { opacity: .6; pointer-events: none; }
.cmap__locate.is-busy svg { animation: cmapSpin 1s linear infinite; }
@keyframes cmapSpin { to { transform: rotate(360deg); } }

.cmap__count {
    display: inline-flex; align-items: baseline; gap: 5px;
    font-size: 13px; color: var(--slate-500); white-space: nowrap;
    background: var(--slate-50); border-radius: 100px; padding: 5px 14px;
}
.cmap__count strong { font-size: 17px; color: var(--navy-800); font-weight: 800; }

.cmap__chips { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; min-width: 0; }
.cmap-chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px;
    background: #eff6fb; border: 1px solid #cfe6f5; border-radius: 100px;
    font-size: 12px; font-weight: 600; color: #1a3a4a; cursor: pointer;
    font-family: inherit; max-width: 210px; transition: all .14s;
}
.cmap-chip:hover { background: #fee2e2; border-color: #fecaca; color: #991b1b; }
.cmap-chip svg { flex-shrink: 0; opacity: .5; }
.cmap-chip:hover svg { opacity: 1; }

.cmap__list-link {
    display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600;
    color: var(--navy-600); text-decoration: none; white-space: nowrap; margin-left: auto;
    padding: 7px 13px; border-radius: 100px; transition: background .16s;
}
.cmap__list-link:hover { background: var(--slate-100); }

.cmap__canvas { flex: 1; min-height: 0; }
.cmap__canvas .leaflet-container { background: #e8eaed; }
.cmap__canvas .leaflet-control-zoom a {
    border-radius: 9px !important; color: var(--navy-700);
    box-shadow: 0 2px 6px rgba(15,23,42,.1);
}
.cmap__canvas .leaflet-popup-content-wrapper { border-radius: 13px; }

.cmap__empty {
    position: absolute; inset: 54px 0 0 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
    background: rgba(248,250,252,.95); color: var(--slate-500);
    z-index: 500; text-align: center; padding: 20px;
}
.cmap__empty p { margin: 0; font-size: 15px; }
/* `hidden` must beat the display:flex above, or the panel covers the map */
.cmap__empty[hidden] { display: none; }

/* "You are here" pulse */
.cmap-me { position: relative; }
.cmap-me__dot {
    position: absolute; inset: 0; margin: auto; width: 13px; height: 13px;
    background: #3faeeb; border: 2.5px solid #fff; border-radius: 50%;
    box-shadow: 0 1px 5px rgba(15,23,42,.4);
}
.cmap-me__ring {
    position: absolute; inset: 0; margin: auto; width: 13px; height: 13px;
    border-radius: 50%; background: rgba(63,174,235,.4);
    animation: cmapPulse 2.2s ease-out infinite;
}
@keyframes cmapPulse {
    0%   { transform: scale(1); opacity: .7; }
    100% { transform: scale(3.4); opacity: 0; }
}

.cmap-pop-tier {
    display: inline-block; font-size: 9.5px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .3px; padding: 1px 6px; border-radius: 100px; margin-left: 6px; vertical-align: 2px;
}
.cmap-pop-tier--gold { background: #fef3c7; color: #92400e; }
.cmap-pop-tier--silver { background: #f1f5f9; color: #475569; }

@media (max-width: 900px) {
    .cmap { flex-direction: column; height: auto; }
    .cmap__panel {
        width: 100%; border-right: 0; border-bottom: 1px solid var(--slate-200);
        max-height: 64vh; transition: max-height .28s cubic-bezier(.4,0,.2,1);
    }
    .cmap__panel.is-collapsed { margin-left: 0; max-height: 0; overflow: hidden; border-bottom: 0; }
    .cmap__main { height: 74vh; min-height: 460px; }
    .cmap__list-link { margin-left: 0; }
    .cmap__count { order: -1; }
}

/* "Open in Google Maps" strip under the clinic profile map */
.clinic-map__gmaps {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    padding: 11px 14px; font-size: 13.5px; font-weight: 600;
    color: var(--navy-700); text-decoration: none;
    background: var(--white); border-top: 1px solid var(--slate-100);
    transition: background .16s, color .16s;
}
.clinic-map__gmaps:hover { background: var(--slate-50); color: var(--navy-600); }
.clinic-map__gmaps-ext { opacity: .5; }
.clinic-map__gmaps:hover .clinic-map__gmaps-ext { opacity: 1; }

/* ===== ADSENSE × MMENU STACKING ===== */
/*
   mmenu 9 never hides the off-canvas panel. `.mm-menu--offcanvas` is
   position:fixed at z-index:0 and is permanently rendered; what hides it is
   `.mm-slideout` (position:relative, z-index:1, opaque) painted on top of it.
   Opening the menu slides that page node aside to reveal the panel underneath.

   So the panel is only ever hidden by being *covered*. AdSense breaks that in
   both directions, because Auto ads inject their containers at body level,
   outside the page node:

     - a body-level ad leaves a transparent gap that is not covered by
       `.mm-slideout`, so the closed menu shows through it — this is why menu
       items appear near an ad at the foot of the page with the menu shut;
     - it does not slide when the menu opens, and Google's ad iframes carry
       z-index 2147483647, so it paints straight over the open panel.

   This cannot be fixed by extending offCanvas.page.selector alone: mmenu wraps
   the page once on DOMContentLoaded (it *moves* matched nodes into a new div
   and leaves everything else behind), while Auto ads inject later and at
   arbitrary positions. So the panel has to defend itself.
*/

/* Closed: hide the panel outright rather than relying on the page covering it.
   The 0.4s delay matches mmenu's slideout duration so the panel stays visible
   for the whole close animation — the same delayed-visibility trick mmenu uses
   on .mm-blocker. Without the delay the menu would blink out while the page is
   still sliding back. */
.mm-wrapper .mm-menu--offcanvas {
    visibility: visible;
    transition: visibility 0s;
}
.mm-wrapper:not(.mm-wrapper--opened) .mm-menu--offcanvas {
    visibility: hidden;
    transition: visibility 0s linear .4s;
}

/* Open: lift the panel and its blocker above anything injected into the page. */
.mm-wrapper--opened .mm-menu--offcanvas { z-index: 2147483646; }
.mm-wrapper--opened .mm-wrapper__blocker { z-index: 2147483645; }

/* An anchor ad sits at the maximum z-index, which nothing can outrank, so the
   ads are taken out of the paint order for as long as the menu is open. Mirrors
   the existing `.mm-wrapper--opened #cookie-banner` rule. visibility rather than
   display, so nothing reflows and the ad is not torn down and re-requested. */
.mm-wrapper--opened .ad-slot,
.mm-wrapper--opened ins.adsbygoogle,
.mm-wrapper--opened .google-auto-placed,
.mm-wrapper--opened iframe[id^="google_ads_iframe"],
.mm-wrapper--opened [id^="google_anchor"],
.mm-wrapper--opened [id^="google_esf"] {
    visibility: hidden !important;
}
