/* --- GENEL AYARLAR VE RENK PALETİ --- */
:root {
    --primary-color: #001f3f; /* Logodaki Koyu Lacivert */
    --secondary-color: #f1ede9; /* Kapadokya Taşı Beji - Biraz daha açık */
    --light-color: #fdfaf6; /* Çok Açık Krem / Kırık Beyaz */
    --dark-text: #333333; /* Koyu Metin Rengi */
    --light-text: #ffffff; /* Açık Metin Rengi */

    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    background-color: var(--light-color);
    color: var(--dark-text);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 3rem;
}

/* --- HEADER VE NAVİGASYON --- */
.main-header {
    background: transparent;
    padding: 2rem 0;
    position: absolute;
    width: 100%;
    z-index: 10;
}
.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-text {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--light-text);
}
.main-nav a {
    color: var(--light-text);
    margin: 0 1rem;
    font-weight: 500;
    transition: opacity 0.3s ease;
}
.main-nav a:hover {
    opacity: 0.8;
}

/* --- HERO (KARŞILAMA) ALANI --- */
.hero {
    height: 100vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../images/otel-giris.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--light-text);
}
.hero-content h1 {
    font-size: 4.5rem;
}
.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--light-color);
    color: var(--primary-color);
    border: 1px solid var(--light-color);
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn:hover {
    background: transparent;
    color: var(--light-color);
}
.btn-secondary {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--light-color);
}

/* --- İÇERİK BÖLÜMLERİ --- */
.content-section {
    padding: 5rem 20px;
    text-align: center;
}
.content-section h2 {
    font-size: 2.5rem;
}

/* --- ÖNE ÇIKAN ODALAR --- */
.featured-rooms {
    padding: 5rem 0;
    background-color: var(--secondary-color);
}
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.room-card {
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.room-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.room-image {
    overflow: hidden;
}
.room-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.room-card:hover .room-image img {
    transform: scale(1.05);
}
.room-content {
    padding: 1.5rem;
}
.room-content h3 {
    font-size: 1.5rem;
}

/* --- OTEL ÖZELLİKLERİ --- */
.hotel-features {
    padding: 5rem 0;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: center;
}
.feature-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.feature-item span {
    display: block;
    font-weight: 600;
    font-size: 1.1rem;
}

/* --- FOOTER --- */
.main-footer {
    background: var(--primary-color);
    color: var(--light-color);
    text-align: center;
    padding: 2rem 0;
}
.main-footer p {
    margin: 0.5rem 0;
}


/* --- YENİ EKLENEN STİLLER: ODALARIMIZ SAYFASI --- */

.page-header {
    padding: 8rem 0 4rem 0;
    background-color: var(--secondary-color);
    text-align: center;
    margin-top: -101px; /* Header yüksekliğini dengelemek için (ayarlanabilir) */
}

.page-header h1 {
    font-size: 3.5rem;
    color: var(--primary-color);
}

.rooms-page-section {
    padding: 5rem 0;
}

.room-list-item {
    display: flex;
    background: #fff;
    margin-bottom: 3rem;
    box-shadow: 0 5px 25px rgba(0,0,0,0.07);
    border-radius: 8px;
    overflow: hidden;
}

.room-list-item:nth-child(even) {
    flex-direction: row-reverse;
}

.room-list-image {
    flex: 1 1 40%; /* Genişliğin %40'ını kaplasın */
}

.room-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.room-list-content {
    flex: 1 1 60%; /* Genişliğin %60'ını kaplasın */
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.room-list-content h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
}

.room-excerpt {
    font-size: 1rem;
    color: #555;
}

.room-features-icons {
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.room-features-icons i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1.5rem;
    opacity: 0.7;
}

/* --- MOBİL UYUMLULUK --- */
@media (max-width: 992px) {
    .rooms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-header {
        background-color: var(--primary-color);
        padding: 1rem 0;
        position: static;
    }
    .hero {
        height: 60vh;
        background-attachment: scroll;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .main-nav {
        display: none; /* Mobil için menü hamburger ikonu yapılacak */
    }
    .rooms-grid {
        grid-template-columns: 1fr;
    }
    .section-title {
        font-size: 2.2rem;
    }

    /* Odalar sayfası mobil uyumluluk */
    .page-header {
        margin-top: 0;
        padding: 4rem 0 2rem 0;
    }
    .page-header h1 {
        font-size: 2.5rem;
    }
    .room-list-item,
    .room-list-item:nth-child(even) {
        flex-direction: column;
    }
    .room-list-content {
        padding: 2rem;
    }
}

/* --- YENİ EKLENEN STİLLER: GALERİ SAYFASI --- */

.gallery-page-section {
    padding: 5rem 0;
}

.gallery-filter {
    text-align: center;
    margin-bottom: 3rem;
}

.gallery-filter ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gallery-filter li {
    display: inline-block;
    margin: 0 1rem;
}

.gallery-filter a {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--dark-text);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.gallery-filter a:hover,
.gallery-filter a.active {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
    aspect-ratio: 4 / 3; /* Resimlerin oranını korur */
}

.gallery-item::after {
    content: '\f00e'; /* Font Awesome search-plus ikonu */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: #fff;
    font-size: 2rem;
    background: rgba(0, 31, 63, 0.6);
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.4s ease;
}

.gallery-item:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* --- HEADER DÜZELTMESİ: İÇ SAYFA HEADER'I --- */
.header-inner {
    position: static; /* Ana sayfadaki absolute konumlandırmayı iptal et */
    background-color: var(--primary-color);
    padding: 1.5rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-inner .logo-text,
.header-inner .main-nav a {
    color: var(--light-text); /* Yazı rengi beyaz kalsın */
}

/* Sayfanın header altına kaymasını engelleyen geçici çözümü kaldırıyoruz */
.page-header {
    /* margin-top: -101px; Bu satırı silin veya yorum satırı yapın */
    padding-top: 4rem; /* Daha temiz bir üst boşluk */
    padding-bottom: 4rem;
}

/* --- YENİ EKLENEN STİLLER: İLETİŞİM SAYFASI --- */

.contact-page-section {
    padding: 5rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
}

.contact-info h3, .contact-form h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1.5rem;
    margin-top: 5px;
    width: 25px; /* İkonların hizalı durması için */
}

.info-item div {
    display: flex;
    flex-direction: column;
}

.info-item strong {
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.info-item span {
    color: #555;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form .btn {
    width: 100%;
    border-radius: 5px;
    padding: 1rem;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.contact-form .btn:hover {
    background: #002a57;
    border-color: #002a57;
    color: var(--light-text);
}

.map-section {
    line-height: 0; /* Haritanın altındaki boşluğu kaldırır */
}

/* İletişim sayfası mobil uyumluluk */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* --- YENİ EKLENEN STİLLER: STICKY HEADER VE MOBİL MENÜ --- */

/* Sticky Header Stili */
.main-header {
    transition: all 0.4s ease-in-out;
}

.header-sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    padding: 1rem 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    z-index: 1000;
}

.header-sticky .logo-text,
.header-sticky .main-nav a {
    color: var(--light-text);
}

/* Mobil Menü: Hamburger İkonu */
.hamburger-menu {
    display: none; /* Varsayılan olarak gizli */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.hamburger-menu span {
    width: 30px;
    height: 3px;
    background-color: #fff;
    border-radius: 5px;
}

/* Mobil Menü: Kapatma Butonu */
.close-menu {
    display: none; /* Varsayılan olarak gizli */
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
}

/* --- MOBİL UYUMLULUK GÜNCELLEMELERİ --- */

/* Medya sorgusunu header-inner'ın üstüne taşıyalım ve güncelleyelim */
/* --- MOBİL UYUMLULUK GÜNCELLEMELERİ (NİHAİ VE DÜZELTİLMİŞ HALİ) --- */
@media (max-width: 768px) {
    /* Ana Header ayarları */
    .main-header {
        padding: 1rem 0;
    }
    .header-inner {
        background-color: var(--primary-color);
        position: static; /* İç sayfalarda header sabit kalsın */
    }

    /* Menü ve Hamburger */
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%; /* vh yerine % kullanmak bazen daha kararlı olabilir */
        background-color: var(--primary-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 1001;
        
        /* DÜZELTME: Menüyü transform ile gizleyip göstermek daha performanslı ve kararlıdır. */
        transform: translateX(-100%);
        transition: transform 0.4s ease-in-out;
        
        /* ÖNEMLİ: Flex'i tekrar tanımlıyoruz */
        display: flex; 
    }

    .main-nav.mobile-nav-open {
        /* DÜZELTME: Menüyü görünür hale getiren kural */
        transform: translateX(0);
    }

    .main-nav a {
        font-size: 1.5rem;
        margin: 1.5rem 0;
        color: var(--light-text) !important;
    }

    .hamburger-menu {
        display: flex; /* Mobilde göster */
        z-index: 1002; /* Her şeyin üstünde olmasını garantile */
    }
    
    /* DÜZELTME: Header sticky olduğunda da hamburger ikonu görünsün */
    .header-sticky .hamburger-menu span {
        background-color: #fff;
    }

    .close-menu {
        display: block; /* Mobil menü içindeyken göster */
    }

    /* Diğer mobil düzeltmeler (bunlar zaten vardı, kontrol amaçlı) */
    .hero, .main-slider-section {
        height: 80vh;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .room-list-item,
    .room-list-item:nth-child(even) {
        flex-direction: column;
    }
    .room-list-content {
        padding: 2rem;
    }
    
    .rooms-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2.2rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
}
/* --- YENİ EKLENEN STİLLER: SWIPER SLIDER --- */
.main-slider-section { position: relative; width: 100%; height: 100vh; }
.main-slider { width: 100%; height: 100%; }
.swiper-slide {
    display: flex; justify-content: center; align-items: center; text-align: center;
    background-size: cover; background-position: center; position: relative; color: #fff;
}
.swiper-slide::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); }
.swiper-slide .hero-content { position: relative; z-index: 2; }
/* Swiper Navigasyon ve Sayfalama Stilleri */
.swiper-button-next, .swiper-button-prev { color: #fff; opacity: 0.7; transition: opacity 0.3s; }
.swiper-button-next:hover, .swiper-button-prev:hover { opacity: 1; }
.swiper-pagination-bullet { background: #fff; opacity: 0.7; }
.swiper-pagination-bullet-active { opacity: 1; transform: scale(1.2); }
/* --- YENİ EKLENEN STİLLER: ODA DETAY SAYFASI --- */

.room-detail-section {
    padding: 5rem 0;
}

.room-detail-slider {
    width: 100%;
    height: 500px; /* Mobil için daha düşük olabilir */
    margin-bottom: 3rem;
    border-radius: 8px;
    overflow: hidden;
}

.room-detail-slider .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.room-detail-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.room-description h2, 
.room-features-list h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.room-features-list ul {
    list-style: none;
    padding: 0;
}

.room-features-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

.room-features-list li i {
    margin-right: 1rem;
    color: var(--primary-color);
    width: 20px;
    text-align: center;
    font-size: 1.2rem;
}

/* Oda Detay Sayfası Mobil Uyumluluk */
@media (max-width: 992px) {
    .room-detail-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .room-detail-slider {
        height: 300px;
    }
}

.fixed-action-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.action-btn i {
    font-size: 1.5rem; /* İkon boyutu */
}

/* WhatsApp ve Arama Butonları (Küçük, yuvarlak) */
.whatsapp-btn, .call-btn {
    width: 55px;
    height: 55px;
    color: #fff;
}

.whatsapp-btn { background-color: #25D366; }
.call-btn { background-color: var(--primary-color); }

.whatsapp-btn:hover { background-color: #1DA851; transform: scale(1.1); }
.call-btn:hover { background-color: #003366; transform: scale(1.1); }

/* Rezervasyon Butonu (Daha büyük ve yazılı) */
.book-now-btn {
    background-color: #c8a45d; /* Lüks bir altın rengi */
    color: #fff;
    padding: 0 20px;
    height: 55px;
    font-weight: 600;
    font-family: var(--font-body);
}

.book-now-btn i {
    margin-right: 10px;
}

.book-now-btn:hover {
    background-color: #b3914f;
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}

/* Mobil için rezervasyon butonundaki yazıyı gizle */
@media (max-width: 768px) {
    .book-now-btn span {
        display: none;
    }
    .book-now-btn {
        width: 55px;
        padding: 0;
    }
    .book-now-btn i {
        margin-right: 0;
    }
}

/* --- PRELOADER (AÇILIŞ PERDESİ) --- */

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999; /* Her şeyin en üstünde */
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none; /* Animasyon bitince tıklamayı engellemesin */
}

/* Perdeler (Sol ve Sağ) */
.curtain {
    position: absolute;
    top: 0;
    width: 50%; /* Ekranın yarısı */
    height: 100%;
    background-color: var(--primary-color); /* Sitenin lacivert rengi */
    transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1); /* Çok yumuşak, lüks geçiş */
    z-index: 1;
}

.curtain-left {
    left: 0;
    transform: translateX(0);
}

.curtain-right {
    right: 0;
    transform: translateX(0);
}

/* Ortadaki Yazı */
.preloader-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    transition: opacity 0.5s ease;
}

.brand-name {
    display: block;
    font-family: var(--font-heading); /* Cormorant Garamond */
    font-size: 3.5rem;
    letter-spacing: 5px;
    font-weight: 700;
    margin-bottom: 10px;
    opacity: 0;
    animation: fadeInUp 0.8s forwards 0.2s; /* Yazı alttan gelerek belirsin */
}

.brand-sub {
    display: block;
    font-family: var(--font-body); /* Montserrat */
    font-size: 1rem;
    letter-spacing: 8px;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeInUp 0.8s forwards 0.4s; /* Biraz gecikmeli gelsin */
}

/* Animasyon Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- AKTİF OLUNCA (PERDE AÇILINCA) --- */

/* Sol perde sola, sağ perde sağa kaysın */
body.loaded .curtain-left {
    transform: translateX(-100%);
}

body.loaded .curtain-right {
    transform: translateX(100%);
}

/* Yazı kaybolsun */
body.loaded .preloader-content {
    opacity: 0;
}

/* Mobil Düzenleme */
@media (max-width: 768px) {
    .brand-name { font-size: 2.5rem; }
    .brand-sub { letter-spacing: 4px; }
}