.city-az {
    padding: 24px 0 48px;
}

.city-az-breadcrumb {
    margin-bottom: 16px;
    font-size: 14px;
}

.city-az-hero {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin-bottom: 20px;
}

.city-az-hero img {
    width: 100%;
    max-width: 280px;
    height: auto;
    border-radius: 8px;
}

.city-az-hero h1 {
    margin: 0 0 8px;
}

.city-az-alphabet {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    margin-bottom: 20px;
    padding-bottom: 8px;
}

.city-az-alphabet a {
    flex: 0 0 auto;
    min-width: 32px;
    text-align: center;
    padding: 6px 8px;
    border: 1px solid #d7d7d7;
    border-radius: 4px;
    text-decoration: none;
}

.city-az-group:target,
.city-az-group:target h2 {
    background: #eef6ff;
}

.city-az-layout {
    display: block;
}

.city-az-taxonomy {
    max-width: none;
    margin-bottom: 8px;
}

.city-az-taxonomy-current {
    margin: 0;
    font-weight: 700;
}

.city-az-results {
    max-width: none;
}

.city-az-group h2 {
    margin: 16px 0 8px;
    font-size: 20px;
    line-height: 1.2;
}

.city-az-group ul {
    list-style: none;
    padding: 0;
    margin: 0 0 8px;
}

.city-az-group li + li {
    margin-top: 6px;
}

/* CITY_HOSPITAL_DOCTOR_HIERARCHY_R1: level 1 = bounded facility card. */
.city-az-facility {
    border: 1px solid #c9d3e0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 28px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 53, 123, 0.08);
}

.city-az-facility:last-child {
    margin-bottom: 0;
}

.city-az-facility-main {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.city-az-facility-body {
    min-width: 0;
}

.city-az-facility-name {
    margin: 0 0 6px;
    font-size: 22px;
    line-height: 1.25;
    color: #00357b;
}

.city-az-facility-city,
.city-az-facility-unit {
    margin: 0 0 4px;
}

.city-az-view-hospital {
    display: inline-block;
    margin-top: 4px;
    padding: 6px 0;
    font-weight: 600;
}

.city-az-facility-image,
.city-az-doctor img {
    width: 72px;
    height: auto;
    border-radius: 6px;
}

/* Level 2 = doctors nested inside their own facility card. */
.city-az-doctor-section {
    margin-top: 16px;
    padding: 14px 16px 16px;
    border-top: 2px solid #dbe3ee;
    border-radius: 0 0 8px 8px;
    background: #f2f6fc;
}

.city-az-doctor-heading {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    color: #333333;
}

.city-az-doctors {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.city-az-doctors li {
    min-width: 0;
}

.city-az-doctor {
    display: flex;
    gap: 10px;
    align-items: center;
    min-height: 56px;
    height: 100%;
    padding: 8px 10px;
    border: 1px solid #dde4ee;
    border-radius: 8px;
    background: #ffffff;
    text-decoration: none;
}

.city-az-doctor img {
    width: 48px;
    flex: 0 0 48px;
}

.city-az-doctor-text {
    min-width: 0;
}

.city-az-doctor-title,
.city-az-doctor-name {
    display: block;
}

.city-az-doctor-title {
    display: inline-block;
    margin-bottom: 3px;
    padding: 1px 7px;
    border: 1px solid #c9d3e0;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
    color: #00357b;
    background: #ffffff;
}

.city-az-doctor-title--professor,
.city-az-doctor-title--associate {
    font-weight: 700;
    border-color: #00357b;
    background: #eef4ff;
}

.city-az-doctor-name {
    color: #222222;
    overflow-wrap: anywhere;
}

.city-az-empty {
    margin: 0;
}

@media (max-width: 767px) {
    .city-az {
        padding-top: 16px;
    }

    .city-az-facility {
        padding: 16px;
        margin-bottom: 24px;
    }

    .city-az-doctor-section {
        padding: 12px;
    }

    .city-az-doctors {
        grid-template-columns: 1fr;
    }
}
