/* =========================================================
   ŞİFA KAPLICA EVLERİ
   APART DAİRE DETAY SAYFASI
========================================================= */

.apart-detail-page {
    width: min(1500px, 94vw);
    margin: 0 auto;
    padding: 18px 0 20px;
}


/* =========================================================
   GERİ DÖN
========================================================= */

.apart-detail-page .back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: var(--green);
    font-size: 14px;
    font-weight: 600;

    margin-bottom: 4px;

    transition: .25s ease;
}

.apart-detail-page .back-button:hover {
    color: var(--gold);
    transform: translateX(-4px);
}


/* =========================================================
   SAYFA BAŞLIĞI
========================================================= */

.apart-detail-header {
    text-align: center;
    margin-bottom: 16px;
}

.apart-detail-eyebrow {
    display: block;

    color: var(--gold);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 4px;
    text-transform: uppercase;

    margin-bottom: 2px;
}

.apart-detail-header h1 {
    color: var(--green);

    font-size: 34px;
    font-weight: 750;

    line-height: 1.05;

    margin: 2px 0 5px;
}

.apart-detail-header p {
    color: var(--gray);

    font-size: 14px;

    margin: 0;
}


/* =========================================================
   A / B / C / D SEKMELERİ
========================================================= */

.apart-block-tabs {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 8px;

    margin-bottom: 14px;
}

.apart-block-tab {
    min-width: 105px;
    height: 38px;

    padding: 0 20px;

    border: 1px solid var(--border);
    border-radius: 9px;

    background: #fff;

    color: var(--text);

    font-size: 13px;
    font-weight: 650;

    cursor: pointer;

    transition: .25s ease;
}

.apart-block-tab:hover {
    border-color: var(--green);

    color: var(--green);

    transform: translateY(-2px);
}

.apart-block-tab.active {
    background: var(--green);
    border-color: var(--green);

    color: #fff;

    box-shadow: 0 7px 18px rgba(31, 75, 61, .18);
}


/* =========================================================
   BLOK İÇERİKLERİ

   Varsayılan olarak B/C/D gizli.
========================================================= */

.apart-block-content {
    display: none;
}

.apart-block-content.active {
    display: block;

    animation: apartContentFade .35s ease;
}

@keyframes apartContentFade {

    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* =========================================================
   ANA YERLEŞİM
========================================================= */

.apart-detail-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1.65fr)
        minmax(330px, .85fr);

    gap: 18px;

    align-items: stretch;
}


/* =========================================================
   GALERİ
========================================================= */

.apart-gallery {
    min-width: 0;

    background: #fff;

    border: 1px solid var(--border);
    border-radius: 14px;

    padding: 10px;

    box-shadow: var(--shadow);
}


/* ANA FOTOĞRAF */

.apart-main-image {
    position: relative;

    width: 100%;
    height: 450px;

    overflow: hidden;

    border-radius: 10px;

    background: #e9e5dd;
}

.apart-main-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        opacity .18s ease,
        transform .45s ease;
}

.apart-main-image img.is-changing {
    opacity: 0;
}

.apart-main-image:hover img {
    transform: scale(1.015);
}


/* FOTOĞRAF ÜZERİNDE BLOK ETİKETİ */

.apart-image-label {
    position: absolute;

    left: 18px;
    bottom: 16px;

    display: inline-flex;
    align-items: center;

    padding: 7px 14px;

    border-radius: 50px;

    background: rgba(23, 56, 45, .84);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    color: #fff;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: .5px;
}


/* =========================================================
   KÜÇÜK FOTOĞRAFLAR
========================================================= */

.apart-thumbnails {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 7px;
    margin-top: 9px;
}

.apart-thumbnail {
    position: relative;

    height: 75px;

    padding: 0;

    border: 2px solid transparent;
    border-radius: 8px;

    overflow: hidden;

    background: #eee;

    cursor: pointer;

    opacity: .72;

    transition: .25s ease;
}

.apart-thumbnail img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .35s ease;
}

.apart-thumbnail:hover {
    opacity: 1;

    transform: translateY(-2px);
}

.apart-thumbnail:hover img {
    transform: scale(1.05);
}

.apart-thumbnail.active {
    opacity: 1;

    border-color: var(--gold);

    box-shadow: 0 5px 15px rgba(0, 0, 0, .10);
}


/* =========================================================
   BİLGİ KUTUSU
========================================================= */

.apart-info {
    background: #fff;

    border: 1px solid var(--border);
    border-radius: 14px;

    padding: 23px 24px;

    box-shadow: var(--shadow);

    min-width: 0;
}

.apart-info-label {
    display: block;

    color: var(--gold);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 3px;

    margin-bottom: 3px;
}

.apart-info h2 {
    color: var(--green);

    font-size: 28px;
    line-height: 1.1;

    margin: 0 0 7px;
}

.apart-info-description {
    color: var(--gray);

    font-size: 13px;
    line-height: 1.55;

    margin-bottom: 15px;
}


/* =========================================================
   ÖZELLİKLER
========================================================= */

.apart-features {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 8px;
}

.apart-feature {
    display: flex;
    align-items: center;

    gap: 10px;

    min-height: 62px;

    padding: 9px 10px;

    background: #faf8f4;

    border: 1px solid #ece7df;
    border-radius: 9px;

    transition: .25s ease;
}

.apart-feature:hover {
    background: #fff;

    border-color: rgba(185, 150, 99, .55);

    transform: translateY(-2px);
}

.apart-feature > i {
    width: 34px;
    height: 34px;

    flex: 0 0 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--green);

    color: #fff;

    font-size: 13px;
}

.apart-feature > div {
    min-width: 0;
}

.apart-feature strong {
    display: block;

    color: var(--text);

    font-size: 12px;
    font-weight: 700;

    line-height: 1.25;

    margin-bottom: 2px;
}

.apart-feature span {
    display: block;

    color: var(--gray);

    font-size: 11px;
    line-height: 1.3;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .apart-detail-layout {
        grid-template-columns: 1.3fr 1fr;
    }

    .apart-main-image {
        height: 310px;
    }

    .apart-features {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   MOBİL
========================================================= */

@media (max-width: 800px) {

    .apart-detail-page {
        width: min(94vw, 700px);
        padding-top: 14px;
    }

    .apart-detail-header {
        margin: 10px 0 16px;
    }

    .apart-detail-header h1 {
        font-size: 27px;
    }

    .apart-detail-header p {
        font-size: 13px;
    }

    .apart-block-tabs {
        display: grid;
        grid-template-columns: repeat(4, 1fr);

        gap: 5px;
    }

    .apart-block-tab {
        min-width: 0;

        width: 100%;

        padding: 0 5px;
    }

    .apart-detail-layout {
        grid-template-columns: 1fr;
    }

    .apart-main-image {
        height: 310px;
    }

    .apart-info {
        padding: 20px;
    }

    .apart-features {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* =========================================================
   KÜÇÜK TELEFON
========================================================= */

@media (max-width: 520px) {

    .apart-detail-header h1 {
        font-size: 24px;
    }

    .apart-block-tab {
        height: 36px;

        font-size: 11px;
    }

    .apart-main-image {
        height: 230px;
    }

    .apart-thumbnails {
        gap: 5px;
    }

    .apart-thumbnail {
        height: 55px;
    }

    .apart-info h2 {
        font-size: 24px;
    }

    .apart-features {
        grid-template-columns: 1fr;
    }

}



/* =========================================================
   ORTAK GERİ BUTONU
========================================================= */

.apartments-page .back-button,
.apart-detail-page .back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: var(--green);

    font-size: 14px;
    font-weight: 600;
    line-height: 1;

    margin: 0 0 4px;
    padding: 0;

    text-decoration: none;

    transition: .25s ease;
}

.apartments-page .back-button:hover,
.apart-detail-page .back-button:hover {
    color: var(--gold);
    transform: translateX(-4px);
}

/* =========================================================
   DAİRELER SAYFASI İLE ÜST HİZA EŞİTLEME
========================================================= */

.apart-detail-page {
    position: relative;
}

/* Geri butonu */
.apart-detail-page .back-button {
    position: absolute;
    top: 18px;
    left: 0;

    margin: 0;
    z-index: 10;

    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: var(--green);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;

    text-decoration: none;
}

/* Başlık alanı */
.apart-detail-header {
    margin: 28px 0 12px;
    text-align: center;
}