/* =================================== */
/* MAFSALLI TENTE GÖRSEL GRİD STİLLERİ */
/* =================================== */

.grid-item-container {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-item-container:hover {
    transform: scale(1.03); 
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* KRİTİK: GÖRSELİN KARE OLMASINI SAĞLAYAN YAPI (1:1 oranı) */
.grid-thumbnail-wrapper {
    width: 100%;
    padding-bottom: 100%; 
    position: relative;
    overflow: hidden;
}

.grid-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.grid-item-container:hover .grid-thumbnail {
    transform: scale(1.05); 
}


/* =================================== */
/* LIGHTBOX/MODAL STİLİ (MOBİL UYUMLU VE GEZİNME) */
/* =================================== */

.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95); /* Çok koyu arka plan */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999; /* Z-index yükseltildi (Diğer her şeyin üstünde olmalı) */
    
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-modal.visible {
    opacity: 1;
    visibility: visible;
}

.lightbox-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 95%;
    max-height: 95%;
    position: relative;
    
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.lightbox-modal.visible .lightbox-content-wrapper {
    transform: translateY(0);
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh; 
    display: block;
    object-fit: contain;
    border-radius: 0.5rem;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.7);
}

/* KRİTİK DÜZELTME: Açıklama metinleri kesinlikle gizlendi */
.lightbox-details {
    display: none !important; 
}


/* MODERN GEZİNME BUTONLARI */
.lightbox-nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    
    background: transparent; 
    color: rgba(255, 255, 255, 0.85); /* Hafif şeffaf beyaz */
    border: none;
    cursor: pointer;
    font-size: 3.5rem; 
    padding: 10px;
    
    transition: color 0.3s ease, transform 0.3s ease;
    z-index: 10001;
}

.lightbox-nav-button:hover {
    color: var(--accent-color); /* Hover'da Lacivert vurgu */
    transform: translateY(-50%) scale(1.1);
}

.nav-prev {
    left: -80px; 
}

.nav-next {
    right: -80px; 
}

/* MOBİL VE TABLET UYUMLULUĞU */
@media (max-width: 992px) {
    .lightbox-nav-button {
        font-size: 2.5rem;
    }
    .nav-prev {
        left: 5px; 
    }
    .nav-next {
        right: 5px; 
    }
}


/* Kapatma Butonu */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent-color); 
    color: #FFFFFF;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 1.8rem; 
    cursor: pointer;
    z-index: 10002;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transition: background-color 0.3s ease;
}

.lightbox-close:hover {
    background: var(--accent-glow);
}



/* =================================== */
/* 17. DİNAMİK FİYAT / ÖZELLİK PANELİ  */
/* =================================== */

.dynamic-feature-panel {
    /* Aksan Gradient'i HTML içinde inline stil ile sağlanabilir veya buraya eklenebilir */
    background: var(--accent-gradient) !important;
    box-shadow: 0 10px 40px var(--accent-shadow-base) !important;
    transition: transform 0.3s ease;
}

.dynamic-feature-panel:hover {
    transform: translateY(-5px);
}

/* Fiyat Alanı Vurgusu */
.price-estimate-box {
    border: 3px solid var(--accent-hover-color);
    transition: all 0.5s ease;
    /* Başlangıçta hafifçe parlasın */
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4) inset; 
}

/* Özellik Listesindeki Vurgu İkonları */
.feature-list-vertical .text-warning {
    /* Sarı yerine, beyaz/açık aksan rengi daha iyi duracaktır */
    color: var(--bs-card-bg) !important; 
}


/* =================================== */
/* 3. 💻 JavaScript (Fiyat Simülasyonu) */
/* =================================== */
/* Bu simülasyon, statik görünen alana dinamiklik katar */

@keyframes pricePulse {
    0% { background-color: white; }
    50% { background-color: var(--bs-gray-200); }
    100% { background-color: white; }
}

.price-estimate-box {
    animation: pricePulse 5s infinite alternate; /* Fiyat kutusunun rengini yavaşça değiştirir */
}



/* =================================== */
/* 18. MOBİL UYUMLU GALERİ STİLLERİ     */
/* =================================== */

.grid-item-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px; /* Köşeleri yumuşatır */
    cursor: pointer;
    box-shadow: var(--box-shadow-subtle);
    transition: box-shadow 0.3s ease;
}

.grid-item-container:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.grid-thumbnail-wrapper {
    width: 100%;
    /* Görseli kareye yakın bir alanda tutmak için 1:1 oran sağlar */
    padding-bottom: 100%; 
    position: relative;
    overflow: hidden;
}

.grid-thumbnail {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Görseli kapsayıcıyı kaplayacak şekilde kırpar */
    transition: transform 0.5s ease-in-out, filter 0.5s ease;
    filter: brightness(0.95);
}

/* Hover ve Mobil Etkileşim Efektleri */
.grid-item-container:hover .grid-thumbnail {
    transform: scale(1.05); /* Hafif Zoom */
    filter: brightness(0.7); /* Karartma */
}

/* Hover Üst Katmanı (Overlay) */
.grid-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(47, 79, 127, 0.5); /* Aksan renginde yarı şeffaf katman */
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 10px;
}

.grid-item-container:hover .grid-item-overlay {
    opacity: 1; /* Hover'da belirir */
}

/* Büyütme İkonu */
.zoom-icon {
    font-size: 2.5rem;
    margin-bottom: 5px;
    transform: translateY(10px);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.grid-item-container:hover .zoom-icon {
    opacity: 1;
    transform: translateY(0);
}

.item-title {
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.2;
}

/* =================================== */
/* MOBİL BASİTLEŞTİRME (GRİD)          */
/* =================================== */

/* Mobilde (xs, sm) gridi 2 sütuna düşürmek için */
@media (max-width: 767.98px) {
    .row.g-4 > div {
        /* Tekrar 2 sütuna zorla */
        flex: 0 0 auto;
        width: 50%;
    }
    .grid-item-overlay {
         /* Mobilde sadece büyütme ikonu görünsün */
        opacity: 1; 
        background: none; 
        justify-content: flex-end; /* İkonu alta alır */
        padding-bottom: 15px;
    }
    .grid-item-container:not(:hover) .grid-item-overlay {
        opacity: 0.8;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.1));
    }
    .grid-item-container:not(:hover) .zoom-icon {
        opacity: 1;
        transform: none;
    }
    .grid-item-container .item-title {
         display: none; /* Mobilde başlık gizlendi */
    }
}
