/* ==========================================================================
   Özel Stiller - Avenor Guzelyurt Projesi
   ========================================================================== */

/* Pre-loader / Yükleme Ekranı - Sadece Spinner */
#de-loader {
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
    top: 0;
    left: 0;
    background-color: #ffffff !important;
    background-image: none !important;
    z-index: 999999 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease;
}

#de-loader * {
    display: none !important;
}

#de-loader::before {
    content: none !important;
    background-image: none !important;
    display: none !important;
}

#de-loader::after {
    content: "";
    width: 45px;
    height: 45px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #d1a355;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: block !important;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hero Video Stilleri */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
}

.hero-image {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
}

.vertical-center {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: none;
}

/* Desktop ve mobil kontrolü */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

@media (max-width: 991px) {
    .desktop-only {
        display: none;
    }
    
    .mobile-only {
        display: block;
    }
    
    .hero-image {
        width: 100vw;
        height: 100vh;
        min-width: 100vw;
        min-height: 100vh;
        object-fit: cover;
        object-position: center;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    
    .vertical-center {
        background: none;
    }
}

@media (max-width: 991px) {
    .desktop-only {
        display: none;
    }
    
    .mobile-only {
        display: block;
    }
    
    .hero-image {
        width: 100vw;
        height: 100vh;
        min-width: 100vw;
        min-height: 100vh;
        object-fit: cover;
        object-position: center;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    
    .vertical-center {
        background: none;
    }
}

/* Hero Section - Lead Text */
.hero-lead-text {
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    opacity: 0.95;
    line-height: 1.6;
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white !important;
}

/* Tab Navigation - Large */
.tab-nav-large {
    font-size: 1.2rem;
}

/* Room Details - Content Wrapper */
.room-detail-content {
    max-width: 90%;
}

/* Room Details - Text */
.room-detail-text {
    line-height: 1.7;
}

/* Gallery Items */
.gallery-item img {
    height: 300px;
    object-fit: cover;
    width: 100%;
}

/* Icon Styles - Flaticon UIcons */
.id-color {
    color: #cca574; /* Temanın ana rengi (altın sarısı) */
}

.fs-40 {
    font-size: 50px !important;
}

/* Features Grid - Desktop Margin */
@media (min-width: 992px) {
    #section-overview .col-lg-6:nth-of-type(2) > .row.g-4 {
        margin-top: 70px !important;
    }
}

/* Kat Planları - Başlık ve Açıklama Stilleri */
.floorplan-item {
    text-align: center;
    padding: 0;
}


/* Kat Planları Carousel Navigation - Sadece Masaüstü */
#floorplan-carousel .owl-nav {
    display: block;
}

#floorplan-carousel .owl-nav button.owl-prev,
#floorplan-carousel .owl-nav button.owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(204, 165, 116, 0.9) !important;
    color: #fff !important;
    border-radius: 50%;
    font-size: 20px;
    transition: all 0.3s ease;
    z-index: 10;
}

#floorplan-carousel .owl-nav button.owl-prev {
    left: -70px;
}

#floorplan-carousel .owl-nav button.owl-next {
    right: -70px;
}

#floorplan-carousel .owl-nav button.owl-prev:hover,
#floorplan-carousel .owl-nav button.owl-next:hover {
    background: rgba(204, 165, 116, 1) !important;
    transform: translateY(-50%) scale(1.1);
}

/* Mobilde navigation'ı gizle */
@media (max-width: 767px) {
    #floorplan-carousel .owl-nav {
        display: none !important;
    }
}

.floorplan-item img {
    margin-bottom: 20px;
    border-radius: 8px;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Masaüstü cihazlarda görsel boyut sınırlaması */
@media (min-width: 992px) {
    .floorplan-item img {
        max-width: 70%;
        margin-left: auto;
        margin-right: auto;
        display: block;
    }
}

/* Mobil cihazlarda carousel ve görsel ayarları */
@media (max-width: 991px) {
    .floorplan-item img {
        max-height: 50vh;
        object-fit: contain;
        width: auto;
        max-width: 100%;
        margin: 0 auto 20px;
        display: block;
    }
    
    .floorplan-caption {
        padding: 15px;
    }
    
    .floorplan-caption h4 {
        font-size: 1.2rem;
    }
    
    .floorplan-caption p {
        font-size: 0.9rem;
    }
}

.floorplan-caption {
    padding: 20px;
    background: rgba(209, 163, 85, 0.1);
    border-radius: 8px;
    margin: 0 auto;
    max-width: 500px;
}

.floorplan-caption h4 {
    color: #cca574;
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.floorplan-caption p {
    color: #e0e0e0;
    font-size: 1rem;
    margin-bottom: 0;
    line-height: 1.6;
}

/* Dark section için yazı renklerini ayarla */
.section-dark .floorplan-caption h4 {
    color: #cca574;
}

.section-dark .floorplan-caption p {
    color: #e0e0e0;
}

/* Footer - Mobil İkon Hizalama */
@media (max-width: 991px) {
    footer .col-lg-4 {
        margin-bottom: 30px;
    }
    
    footer .d-flex {
        align-items: flex-start !important;
    }
    
    footer .d-flex i {
        flex-shrink: 0;
        margin-top: 5px;
    }
    
    footer .d-flex .ms-3 {
        flex: 1;
        min-width: 0;
    }
    
    footer .d-flex h4 {
        white-space: normal;
        word-wrap: break-word;
    }
    
    footer .d-flex p {
        white-space: normal;
        word-wrap: break-word;
    }
}

/* Partner Cards */
.partner-link {
    display: block;
    text-decoration: none;
    cursor: pointer;
    position: relative;
}

.partner-card {
    transition: all 0.3s ease;
    min-height: 120px;
    position: relative;
    overflow: hidden;
    border: none !important;
    outline: none !important;
}

.partner-card::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    color: #14233D !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 5;
}

.partner-link:hover .partner-card::after {
    opacity: 1;
}

.partner-link:hover .partner-card,
.partner-card:hover {
    transform: translateY(-5px);
}

.partner-card img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    filter: grayscale(0%);
    opacity: 1;
    transition: all 0.3s ease;
}

.partner-link:hover .partner-card img,
.partner-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Floorplan Zoom İşlevselliği */
.floorplan-wrapper {
    cursor: pointer;
    overflow: hidden;
    border-radius: 0.25rem;
    aspect-ratio: 3 / 4;
}

.floorplan-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.floorplan-wrapper .floorplan-zoom-icon {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 45px;
    height: 45px;
    background: #cca574;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 5;
}

.floorplan-wrapper:hover .floorplan-zoom-icon {
    background: #b89564;
    transform: scale(1.1);
}

.floorplan-wrapper img {
    transition: transform 0.3s ease;
}

.floorplan-wrapper:hover img {
    transform: scale(1.02);
}

/* Floorplan Modal (Özel Popup) */
.floorplan-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.floorplan-modal.active {
    display: flex;
}

.floorplan-modal-content {
    position: relative;
    max-width: 95%;
    max-height: 95%;
    animation: zoomIn 0.3s ease;
}

.floorplan-modal-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.floorplan-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 40px;
    height: 40px;
    background: #cca574;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.floorplan-modal-close:hover {
    background: #b89564;
    transform: rotate(90deg);
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
