/* Üst üste iki .project-mary-panel arasında nefes payı */
.project-mary-panel + .project-mary-panel {
    margin-top: 6px;
}

/* Yeni inline stat öğesi: ikon + metin yan yana */
.room-stat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    line-height: 1;
    /* parent .project-mary-panel-item uppercase yapıyor; bu zaten istediğimiz görünüm */
}

.room-stat__icon {
    width: 16px;
    height: 16px;
    color: #d2d945;
    flex-shrink: 0;
    display: inline-block;
}

.room-stat__icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
    display: block;
}


/* ============ ODA DETAY MODAL ============ */

/* Body scroll lock — modal açıkken arka plan kaymasın */
body.room-modal-open {
    overflow: hidden;
}

/* Modal kapsayıcı (tam ekran overlay) */
.room-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.room-modal.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0s linear 0s;
}

/* Karartma overlay */
.room-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 10, 10, 0.88);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

/* İçerik kutusu */
.room-modal__container {
    position: absolute;
    inset: 24px;
    max-width: 1280px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    transform: scale(0.96);
    transition: transform 0.3s ease;
}

.room-modal.is-open .room-modal__container {
    transform: scale(1);
}

/* Kapat butonu (sağ üst) */
.room-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 20;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #ffffff;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    padding: 0;
}

.room-modal__close:hover {
    background: rgba(0, 0, 0, 0.85);
}

/* Ana içerik flex: sol detaylar | sağ galeri */
.room-modal__content {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 0;
}

/* ============ SOL PANEL: ODA DETAYLARI ============ */
.room-modal__details {
    width: 45%;
    max-width: 480px;
    background: #153750;
    color: #ffffff;
    padding: 40px 36px;
    overflow-y: auto;
}

.room-modal__title {
    color: #d2d945;
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 14px;
    line-height: 1.2;
}

.room-modal__description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    line-height: 1.6;
    margin: 0 0 24px;
}

/* Hızlı stat satırı: kapasite, m², ikram, manzara */
.room-modal__quickstats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 28px;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.room-modal__quickstats .room-stat {
    font-size: 13px;
}

.room-modal__quickstats .room-stat__icon {
    width: 18px;
    height: 18px;
}

/* Özellik kategorileri */
.room-modal__category {
    margin-bottom: 22px;
}

.room-modal__category:last-child {
    margin-bottom: 0;
}

.room-modal__category-title {
    color: #d2d945;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 0 0 12px;
    font-weight: 600;
}

.room-modal__features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.room-modal__feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.3;
}

.room-modal__feature svg {
    width: 18px;
    height: 18px;
    color: #d2d945;
    fill: currentColor;
    flex-shrink: 0;
}

/* ============ SAĞ PANEL: GALERİ ============ */
.room-modal__gallery {
    flex: 1;
    background: #0d0a0a;
    display: flex;
    flex-direction: column;
    position: relative;
    min-width: 0;
}

.room-modal__main {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
}

.room-modal__main picture {
    width: 100%;
    height: 100%;
    display: block;
}

.room-modal__main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Navigasyon okları */
.room-modal__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    z-index: 2;
    padding: 0;
}

.room-modal__arrow:hover {
    background: #d2d945;
    color: #153750;
}

.room-modal__arrow svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.room-modal__arrow--prev { left: 16px; }
.room-modal__arrow--next { right: 16px; }

/* Thumbnail şeridi (birden fazla fotoğraf varsa görünür) */
.room-modal__thumbs {
    display: flex;
    gap: 8px;
    padding: 12px;
    overflow-x: auto;
    background: #1a1a1a;
    flex-shrink: 0;
    scrollbar-width: thin;
}

.room-modal__thumbs::-webkit-scrollbar {
    height: 6px;
}
.room-modal__thumbs::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.room-modal__thumb {
    width: 100px;
    height: 66px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s ease, border-color 0.2s ease;
    border: 2px solid transparent;
    padding: 0;
    background: none;
}

.room-modal__thumb:hover {
    opacity: 0.85;
}

.room-modal__thumb.is-active {
    opacity: 1;
    border-color: #d2d945;
}

.room-modal__thumb picture,
.room-modal__thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}


/* ============ RESPONSIVE ============ */

/* Tablet ve altı: dikey stack (önce galeri, sonra detaylar) */
@media (max-width: 992px) {
    .room-modal__container {
        inset: 0;
        border-radius: 0;
        max-width: none;
    }

    .room-modal__content {
        flex-direction: column;
    }

    .room-modal__gallery {
        height: 45vh;
        flex: 0 0 45vh;
    }

    .room-modal__details {
        width: 100%;
        max-width: none;
        padding: 24px 20px;
        flex: 1;
    }

    .room-modal__title {
        font-size: 22px;
    }
}

/* Küçük mobil: tek sütun özellikler */
@media (max-width: 576px) {
    .room-modal__features {
        grid-template-columns: 1fr;
    }

    .room-modal__thumb {
        width: 70px;
        height: 48px;
    }

    .room-modal__details {
        padding: 20px 16px;
    }

    .room-modal__arrow {
        width: 38px;
        height: 38px;
    }
}