/* ==========================================
   AZEM PASTANE / ŞUBELERİMİZ
========================================== */

.azem-locations {
    --location-gold: var(--general);
    --location-dark: var(--text);
    --location-bg: #faf9f6;
    --location-border: #e5e1d9;
    --location-muted: #737373;

    padding: clamp(35px, 6vw, 90px) 0;
    background: var(--location-bg);
    color: var(--location-dark);
}

.azem-locations,
.azem-locations * {
    box-sizing: border-box;
}

.azem-locations__container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

/* SAYFA BAŞLIĞI */

.azem-locations__header {
    margin-bottom: 45px;
}

.azem-locations__header>span {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 18px;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.6px;
}

.azem-locations__header>span::before {
    content: "";
    width: 32px;
    height: 3px;
    background: var(--location-gold);
}

.azem-locations__header h2 {
    margin: 0;

    font-size: clamp(30px, 4.2vw, 56px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.04em;
    text-transform: none;
    color: var(--location-dark);
}

.azem-locations__header h2 em {
    font-style: normal;

    background: linear-gradient(transparent 80%,
            var(--location-gold) 80%,
            var(--location-gold) 95%,
            transparent 95%);

    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.azem-locations__header p {
    max-width: 650px;
    margin: 20px 0 0;

    font-size: 15px;
    line-height: 1.8;
    color: var(--location-muted);
}

/* ŞUBELER LİSTESİ */

.azem-locations__list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
}

/* ŞUBE KARTI */

.azem-location {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr) minmax(0, 1fr);

    grid-template-areas:
        "header header"
        "photo map"
        "info actions";

    background: #ffffff;
    border: 1px solid var(--location-border);
    border-radius: 0 35px 0 0;

    overflow: hidden;

    transition: box-shadow .3s ease;
}

.azem-location:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, .06);
}

/* ŞUBE BAŞLIĞI */

.azem-location__header {
    grid-area: header;

    display: flex;
    align-items: center;
    gap: 22px;

    min-width: 0;

    background: var(--location-dark);
}

.azem-location__number {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 90px;
    min-height: 95px;
    align-self: stretch;
    flex-shrink: 0;

    background: var(--location-gold);

    color: var(--location-dark);
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
}

.azem-location__heading {
    flex: 1;
    min-width: 0;
    padding: 16px 0;
}

.azem-location__heading>span {
    display: block;
    margin-bottom: 5px;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--location-gold);
}

.azem-location__heading h3 {
    margin: 0;

    font-size: clamp(22px, 2.4vw, 32px);
    font-weight: 700;
    line-height: 1.25;
    text-transform: none;
    overflow-wrap: anywhere;
    color: #ffffff;
}

.azem-location__header>i {
    margin-right: 30px;
    font-size: 26px;
    color: var(--location-gold);
}

/* FOTOĞRAF VE HARİTA */

.azem-location__photo {
    grid-area: photo;
}

.azem-location__map {
    grid-area: map;
    border-left: 4px solid var(--location-gold);
}

.azem-location__photo,
.azem-location__map {
    position: relative;
    min-width: 0;
    height: clamp(280px, 29vw, 390px);
    overflow: hidden;
    background: #ecebe7;
}

.azem-location__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;

    transition: transform .6s ease;
}

.azem-location__photo:hover img {
    transform: scale(1.035);
}

.azem-location__map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* İLETİŞİM BİLGİLERİ */

.azem-location__info {
    grid-area: info;

    display: flex;
    flex-direction: column;
    gap: 24px;

    min-width: 0;
    padding: 30px;
}

.azem-location__detail {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.azem-location__detail>div:last-child {
    flex: 1;
    min-width: 0;
}

.azem-location__icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;
    flex-shrink: 0;

    background: #fbf5e3;
    color: #8b6810;
    font-size: 17px;
}

.azem-location__detail span {
    display: block;
    margin-bottom: 6px;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
    color: var(--location-muted);
}

.azem-location__detail address {
    margin: 0;

    font-size: 14px;
    font-style: normal;
    line-height: 1.75;
    overflow-wrap: anywhere;
    color: var(--location-dark);
}

/* TELEFON NUMARALARI */

.azem-location__phones {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 20px;
}

.azem-location__phones a {
    display: inline-flex;
    align-items: center;

    min-height: 30px;

    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--location-dark);
    text-decoration: none;

    transition: color .25s ease;
}

.azem-location__phones a:hover {
    color: #8b6810;
}

/* YOL TARİFİ BUTONU */

.azem-location__actions {
    grid-area: actions;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;
    border-left: 1px solid var(--location-border);
}

.azem-location__direction {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    width: 100%;
    max-width: 380px;
    min-height: 58px;
    padding: 15px 20px;

    background: var(--location-gold);
    color: var(--location-dark) !important;

    font-size: 14px;
    font-weight: 800;
    line-height: 1.5;
    text-decoration: none !important;

    transition:
        background .25s ease,
        color .25s ease;
}

.azem-location__direction span {
    flex: 1;
}

.azem-location__direction:hover {
    background: var(--location-dark);
    color: var(--location-gold) !important;
}

.azem-location a:focus-visible {
    outline: 2px solid #96700d;
    outline-offset: 3px;
}

/* ==========================================
   TABLET
========================================== */

@media (max-width: 991px) {

    .azem-locations__container {
        padding: 0 20px;
    }

    .azem-location__photo,
    .azem-location__map {
        height: 270px;
    }

    .azem-location__info,
    .azem-location__actions {
        padding: 22px;
    }

    .azem-location__phones {
        flex-direction: column;
        align-items: flex-start;
    }

}

/* ==========================================
   MOBİL
========================================== */

@media (max-width: 767px) {

    .azem-locations {
        padding: 35px 0;
    }

    .azem-locations__container {
        padding: 0 15px;
    }

    .azem-locations__header {
        margin-bottom: 28px;
    }

    .azem-locations__header h2 {
        font-size: clamp(27px, 6vw, 34px);
    }

    .azem-locations__header p {
        margin-top: 15px;
        font-size: 14px;
    }

    .azem-locations__list {
        gap: 30px;
    }

    .azem-location {
        grid-template-columns: minmax(0, 1fr);

        grid-template-areas:
            "header"
            "photo"
            "info"
            "map"
            "actions";

        border-radius: 0 24px 0 0;
    }

    .azem-location__header {
        gap: 14px;
    }

    .azem-location__number {
        width: 60px;
        min-height: 76px;
        font-size: 27px;
    }

    .azem-location__heading {
        padding: 12px 0;
    }

    .azem-location__heading h3 {
        font-size: 20px;
    }

    .azem-location__heading>span {
        font-size: 9px;
        letter-spacing: 1.2px;
    }

    .azem-location__header>i {
        margin-right: 15px;
        font-size: 18px;
    }

    .azem-location__photo {
        height: auto;
        aspect-ratio: 16 / 10;
    }

    .azem-location__map {
        height: 235px;
        border-left: 0;
        border-top: 3px solid var(--location-gold);
    }

    .azem-location__info {
        gap: 20px;
        padding: 22px 18px;
    }

    .azem-location__icon {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }

    .azem-location__detail address {
        font-size: 13px;
    }

    .azem-location__phones a {
        min-height: 44px;
        font-size: 15px;
    }

    .azem-location__actions {
        padding: 0;
        border: 0;
    }

    .azem-location__direction {
        max-width: none;
        min-height: 55px;
        padding: 15px 18px;
        font-size: 13px;
    }

}

/* KÜÇÜK MOBİL EKRANLAR */

@media (max-width: 375px) {

    .azem-locations__container {
        padding: 0 12px;
    }

    .azem-location__heading h3 {
        font-size: 18px;
    }

    .azem-location__number {
        width: 52px;
    }

    .azem-location__header>i {
        display: none;
    }

    .azem-location__map {
        height: 210px;
    }

}

/* ERİŞİLEBİLİRLİK */

@media (prefers-reduced-motion: reduce) {

    .azem-location,
    .azem-location__photo img,
    .azem-location__direction {
        transition: none;
    }

    .azem-location__photo:hover img {
        transform: none;
    }

}