/*
 * Contact sayfasi ofis panelleri — kart tabanli tasarim.
 *
 * Duzen: solda beyaz kart (fotograf + ikonlu bilgi satirlari + Get Directions
 * butonu), sagda harita. Iki sutun ayni yukseklikte biter.
 *
 * ACF: contact_locations_repeater > location_image (fotograf),
 *      location_address_link (Get Directions hedefi).
 *
 * Ayri dosya olarak tutuluyor cunku assets/less/style.css baska bir minifier
 * ile uretilmis; tumunu lessc ile derlemek dosyanin tamamini degistiriyor.
 */

/* ---- Bolum basligi ---- */
.sub-page-contact .maps-and-information .locations-section-title {
    font-size: 40px;
    font-weight: 800;
    color: #12193F;
    letter-spacing: -.01em;
    margin-bottom: 34px;
}

/* ---- Lokasyon sekmeleri ---- */
.sub-page-contact .maps-and-information .location-tabs {
    gap: 10px;
    margin-bottom: 46px;
}

.sub-page-contact .maps-and-information .location-tab-btn {
    padding: 13px 26px;
    background: #fff;
    border: 1px solid #E4E7EF;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    color: #12193F;
    box-shadow: 0 2px 10px rgba(18, 25, 63, .05);
    transition: color .25s ease, border-color .25s ease, background .25s ease,
                box-shadow .25s ease, transform .25s ease;
}

.sub-page-contact .maps-and-information .location-tab-btn:hover {
    color: #E31E24;
    border-color: #E31E24;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(227, 30, 36, .14);
}

.sub-page-contact .maps-and-information .location-tab-btn.active {
    background: #12193F;
    border-color: #12193F;
    color: #fff;
    box-shadow: 0 8px 22px rgba(18, 25, 63, .26);
}

.sub-page-contact .maps-and-information .location-tab-btn.active:hover {
    color: #fff;
    border-color: #12193F;
}

/* ---- Baslik: kirmizi etiket + buyuk lacivert basli ---- */
.sub-page-contact .maps-and-information .office-heading {
    margin-bottom: 26px;
}

.sub-page-contact .maps-and-information .office-eyebrow {
    display: block;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #E31E24;
    margin-bottom: 10px;
}

.sub-page-contact .maps-and-information .office-heading h3 {
    font-size: 46px;
    font-weight: 800;
    line-height: 1.1;
    color: #12193F;
    margin: 0;
}

/* ---- Panel govdesi ---- */
.sub-page-contact .maps-and-information .location-content {
    align-items: stretch;
    gap: 32px;
    background: transparent;
    padding: 0;
}

.sub-page-contact .maps-and-information .location-content .left,
.sub-page-contact .maps-and-information .location-content .right {
    display: flex;
    flex-direction: column;
}

/* ---- Sol: beyaz kart ---- */
.sub-page-contact .maps-and-information .office-card {
    display: flex;
    flex-direction: column;
    flex: 1;
    background: #fff;
    border-radius: 22px;
    padding: 18px;
    box-shadow: 0 10px 34px rgba(18, 25, 63, .08);
}

.sub-page-contact .maps-and-information .office-photo {
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
}

.sub-page-contact .maps-and-information .office-photo img {
    width: 100%;
    /* Sabit yukseklik yerine gorselin kendi orani (768x456 ~ 16:9.5).
       Sabit 272px'te bina ustten/alttan kirpiliyordu. aspect-ratio kart
       genisligine gore yuksekligi otomatik ayarlar — kirpma olmaz.
       min/max: cok dar veya cok genis kartta asiriya kacmasin. */
    aspect-ratio: 768 / 456;
    height: auto;
    min-height: 230px;
    max-height: 400px;
    object-fit: cover;
    display: block;
    transition: transform .45s ease;
}

.sub-page-contact .maps-and-information .office-card:hover .office-photo img {
    transform: scale(1.04);
}

/* ---- Bilgi satirlari ---- */
.sub-page-contact .maps-and-information .office-info {
    flex: 1;
    padding: 6px 8px 0;
}

.sub-page-contact .maps-and-information .info-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid #ECEEF3;
}

.sub-page-contact .maps-and-information .info-row:last-child {
    border-bottom: 0;
}

.sub-page-contact .maps-and-information .info-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #12193F;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.sub-page-contact .maps-and-information .info-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.sub-page-contact .maps-and-information .info-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #12193F;
}

.sub-page-contact .maps-and-information .info-value {
    font-size: 16px;
    line-height: 1.6;
    color: #5A6178;
    text-decoration: none;
    word-break: break-word;
    transition: color .25s ease;
}

.sub-page-contact .maps-and-information a.info-value:hover {
    color: #E31E24;
}

.sub-page-contact .maps-and-information .info-value b {
    display: block;
    color: #E31E24;
    font-weight: 700;
    margin-top: 2px;
}

/* ---- Get Directions butonu ---- */
.sub-page-contact .maps-and-information .directions-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
    padding: 17px 24px;
    border-radius: 12px;
    background: #E31E24;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}

.sub-page-contact .maps-and-information .directions-btn:hover {
    background: #c4171d;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(227, 30, 36, .3);
}

.sub-page-contact .maps-and-information .directions-btn i {
    font-size: 16px;
}

/* ---- Sag: harita karti ---- */
.sub-page-contact .maps-and-information .location-content .right .map {
    flex: 1;
    display: flex;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 10px 34px rgba(18, 25, 63, .08);
}

.sub-page-contact .maps-and-information .location-content .right .map iframe {
    width: 100%;
    height: 100%;
    min-height: 560px;
    border: 0;
    display: block;
    flex: 1;
}

/* ---- Responsive ---- */
@media (max-width: 1199px) {
    .sub-page-contact .maps-and-information .office-heading h3 {
        font-size: 38px;
    }

    .sub-page-contact .maps-and-information .office-photo img {
        min-height: 210px;
    }
}

@media (max-width: 991px) {
    /* LESS'teki mobil kural padding:30px 20px veriyor — kart tasariminda
       govde seffaf oldugu icin sifirliyoruz. */
    .sub-page-contact .maps-and-information .location-content {
        gap: 24px;
        padding: 0;
        background: transparent;
    }

    /* LESS'in mobil kurallari bizimkinden sonra geldigi icin tekrar eziyoruz. */
    .sub-page-contact .maps-and-information .locations-section-title {
        font-size: 27px;
        margin-bottom: 24px;
    }

    .sub-page-contact .maps-and-information .location-tabs {
        gap: 8px;
        margin-bottom: 28px;
    }

    .sub-page-contact .maps-and-information .location-tab-btn {
        padding: 11px 18px;
        font-size: 14.5px;
    }

    .sub-page-contact .maps-and-information .office-heading h3 {
        font-size: 30px;
    }

    .sub-page-contact .maps-and-information .office-eyebrow {
        font-size: 13px;
    }

    .sub-page-contact .maps-and-information .office-photo img {
        min-height: 180px;
        max-height: 320px;
    }

    .sub-page-contact .maps-and-information .location-content .right .map iframe {
        min-height: 340px;
    }
}

@media (max-width: 575px) {
    .sub-page-contact .maps-and-information .locations-section-title {
        font-size: 23px;
    }

    .sub-page-contact .maps-and-information .location-tab-btn {
        padding: 10px 15px;
        font-size: 13.5px;
    }

    .sub-page-contact .maps-and-information .office-card {
        padding: 14px;
    }

    .sub-page-contact .maps-and-information .office-heading h3 {
        font-size: 26px;
    }

    .sub-page-contact .maps-and-information .info-row {
        gap: 13px;
        padding: 16px 0;
    }

    .sub-page-contact .maps-and-information .info-icon {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }

    .sub-page-contact .maps-and-information .info-value {
        font-size: 15px;
    }

    .sub-page-contact .maps-and-information .directions-btn {
        font-size: 16px;
        padding: 15px 20px;
    }
}
