/*

Theme Name: NHD Travel Theme

Author: Arda

Description: Custom WordPress theme for NHD Travel.

Version: 1.0

*/



/* 1. RESET */

* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

}



/* 2. HEADER & NAVIGATION */

header {

    background-color: #ffffff;

    padding: 20px 50px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    box-shadow: 0 2px 10px rgba(0,0,0,0.1);

    position: fixed;

    width: 100%;

    top: 0;

    z-index: 1000;

}



header h1 {

    color: #3DA398; /* NHD Turquoise */

    font-size: 28px;

    cursor: pointer;

}



.logo img {

    height: 45px;

    display: block;

}



header nav ul {

    list-style: none;

    display: flex;

    gap: 30px;

}



header nav ul li {

    color: #333333;

    font-weight: bold;

    font-size: 16px;

    cursor: pointer;

    transition: color 0.3s ease;

}



header nav ul li:hover {

    color: #3DA398;

}



/* 3. MAIN CONTENT WRAPPER */

main {

    margin-top: 85px;

}



/* 4. HERO SECTION & PARALLAX EFFECT */

.hero-section {

    height: 80vh;

    background-size: cover;

    background-position: center;

    background-attachment: fixed;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    text-align: center;

    position: relative;

}



.hero-section-content {

    position: relative;

    z-index: 2; /* Slaytın üstünde kalması için */

}



.hero-section h2 {

    font-size: 65px;

    color: #ffffff;

    margin-bottom: 20px;

    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);

}



.hero-section p {

    font-size: 24px;

    color: #eeeeee;

    margin-bottom: 40px;

    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);

}



.cta-button {

    padding: 15px 40px;

    font-size: 18px;

    background-color: #3DA398;

    color: #ffffff;

    border: none;

    border-radius: 8px;

    cursor: pointer;

    font-weight: bold;

    transition: background 0.3s ease, transform 0.2s ease;

}



.cta-button:hover {

    background-color: #318a80;

    transform: scale(1.05);

}



/* 5. SEARCH & FILTER BAR */

.search-bar-container {

    max-width: 1000px;

    margin: -50px auto 40px auto;

    background-color: #ffffff;

    padding: 10px 30px;

    border-radius: 50px;

    box-shadow: 0 10px 30px rgba(0,0,0,0.15);

    position: relative; 

    z-index: 10;

}



.search-form {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;

}



.input-group {

    display: flex;

    flex-direction: column;

    flex: 1;

    border-right: 1px solid #e0e0e0;

    padding-right: 20px;

}



.input-group:nth-child(3) {

    border-right: none;

}



.input-group label {

    font-size: 14px;

    font-weight: bold;

    color: #333333;

    margin-bottom: 5px;

}



.input-group input, .input-group select {

    border: none;

    outline: none;

    font-size: 16px;

    color: #555555;

    background-color: transparent;

    cursor: pointer;

    font-family: inherit;

}



.search-button {

    background-color: #3DA398;

    color: #ffffff;

    border: none;

    padding: 15px 40px;

    border-radius: 30px;

    font-size: 16px;

    font-weight: bold;

    cursor: pointer;

    transition: background 0.3s ease, transform 0.2s ease;

}



.search-button:hover {

    background-color: #318a80;

    transform: scale(1.05);

}



/* ==========================================================================

   YENİ: TOUR CARDS & KUSURSUZ GRID MOTORU (SÜNME ENGELİ)

   ========================================================================== */

.tours-section {

    padding: 80px 50px;

    background-color: #f9f9f9;

}



.section-title {

    text-align: center;

    font-size: 2.2rem;

    font-weight: 800;

    color: #222;

    position: relative;

    display: block;

    padding-bottom: 15px;

    margin-bottom: 40px;

    margin-top: 40px;

}



.section-title::after {

    content: '';

    position: absolute;

    bottom: 0;

    left: 50%;

    transform: translateX(-50%);

    width: 80px;

    height: 4px;

    background-color: #3DA398;

    border-radius: 2px;

}



.tour-grid {

    display: grid;

    grid-template-columns: repeat(auto-fill, 280px); 

    gap: 25px;

    /* İŞTE SİHİR BURADA: Maksimum genişliği 890px yaptık. 3 kart tam sığar. */

    max-width: 890px; 

    margin: 0 auto;

    align-items: stretch; 

    justify-content: center; /* Kartlar tam ortaya hizalanır */

}



/* Alttaki sola dayalı olanlar (Onları serbest bıraktık, 4'lü genişlikte kaldılar) */

.category-showcase-section .tour-grid {

    max-width: 1200px; /* Genişliği geri 1200px yaptık ki 4 kart sığsın */

    justify-content: start; /* Sola yaslı kalırlar */

}



.tour-card {

    background-color: #ffffff;

    border-radius: 12px;

    overflow: hidden;

    box-shadow: 0 4px 15px rgba(0,0,0,0.05);

    transition: transform 0.3s ease, box-shadow 0.3s ease;

    cursor: pointer;

    width: 100%;

    display: flex;

    flex-direction: column;

}



.tour-card:hover {

    transform: translateY(-10px);

    box-shadow: 0 8px 25px rgba(0,0,0,0.15);

}



.tour-card img {

    width: 100%;

    height: 200px;

    object-fit: cover;

}



.tour-content {

    padding: 20px;

    display: flex;

    flex-direction: column;

    flex: 1; /* Alt kısmın daima alta yaslanması için */

}



.tour-content h3 {

    font-size: 18px;

    color: #333333;

    margin: 10px 0;

    line-height: 1.4;

}



.tour-price-row {

    display: flex;

    justify-content: space-between;

    align-items: center;

    border-top: 1px solid #eeeeee;

    padding-top: 15px;

    margin-top: auto; /* Düğmeyi daima karta hizalar */

}



.price {

    font-size: 18px;

    font-weight: bold;

    color: #333333;

}



.small-button {

    padding: 8px 20px;

    background-color: transparent;

    color: #3DA398;

    border: 2px solid #3DA398;

    border-radius: 6px;

    font-weight: bold;

    cursor: pointer;

    transition: all 0.3s ease;

}



.small-button:hover {

    background-color: #3DA398;

    color: #ffffff;

}



/* ==========================================================================

   YENİ: KATEGORİ SLAYT MOTORU (KEN BURNS EFEKTİ)

   ========================================================================== */

.category-hero-slider {

    position: absolute;

    top: 0; left: 0; width: 100%; height: 100%;

    z-index: 0;

    overflow: hidden;

    background: #111;

}



.category-hero-slide {

    position: absolute;

    top: 0; left: 0; width: 100%; height: 100%;

    background-size: cover;

    background-position: center;

    opacity: 0;

    /* CSS Animasyonu ile yavaşça büyüyüp solma efekti */

    animation: kenburns-fade infinite; 

}



.category-hero-slider::after {

    content: '';

    position: absolute;

    top: 0; left: 0; width: 100%; height: 100%;

    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.8)); /* Orijinal koyu kaplama */

    z-index: 1;

}



@keyframes kenburns-fade {

    0% { opacity: 0; transform: scale(1); }

    10% { opacity: 1; }

    25% { opacity: 1; }

    35% { opacity: 0; transform: scale(1.05); }

    100% { opacity: 0; transform: scale(1.05); }

}





/* 7. FOOTER */

footer {

    background-color: #1a1a1a;

    color: #ffffff;

    padding: 60px 50px 20px 50px;

    margin-top: 60px;

}



.footer-content {

    display: flex;

    justify-content: space-between;

    flex-wrap: wrap;

    gap: 40px;

    max-width: 1200px;

    margin: 0 auto;

    border-bottom: 1px solid #333333;

    padding-bottom: 40px;

}



.footer-column {

    flex: 1;

    min-width: 250px;

}



.footer-column h3 {

    font-size: 20px;

    color: #3DA398;

    margin-bottom: 20px;

}



.footer-column p {

    font-size: 14px;

    color: #cccccc;

    line-height: 1.6;

    margin-bottom: 10px;

}



.footer-column ul {

    list-style: none;

}



.footer-column ul li {

    margin-bottom: 10px;

}



.footer-column ul li a {

    color: #cccccc;

    text-decoration: none;

    transition: color 0.3s ease;

}



.footer-column ul li a:hover {

    color: #3DA398;

}



.tursab-logo {

    margin-top: 15px;

    border-radius: 4px;

    display: block;

}



.footer-bottom {

    text-align: center;

    padding-top: 20px;

    font-size: 13px;

    color: #666666;

}



/* ==========================================================================

   Phase 5: Single Tour Template Styles & Booking Engine

   ========================================================================== */

.single-tour-wrapper { width: 100%; margin: 0 auto; }

.tour-hero-section { position: relative; width: 100%; height: 60vh; min-height: 400px; background-color: #111; overflow: hidden; }

.tour-hero-image .hero-img { width: 100%; height: 100%; object-fit: cover; opacity: 0.75; }

.tour-hero-overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding-bottom: 40px; background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%); }

.tour-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.tour-hero-title { color: #ffffff; font-size: 3rem; font-weight: 800; margin: 0; }

.tour-layout-container { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; max-width: 1200px; margin: 50px auto; padding: 0 20px; align-items: start; }

.tour-main-content { display: flex; flex-direction: column; gap: 40px; }

.lead-text { font-size: 1.25rem; color: #444; line-height: 1.7; font-weight: 500; }

.wysiwyg-content p, .wysiwyg-content ul { font-size: 1.05rem; color: #444; line-height: 1.6; }

.tour-booking-sidebar { position: sticky; top: 30px; }

.sticky-booking-widget { background: #ffffff; border: 1px solid #e5e5e5; border-radius: 12px; padding: 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); }

.booking-header { display: flex; align-items: baseline; gap: 8px; margin-bottom: 25px; padding-bottom: 15px; border-bottom: 1px solid #eaeaea; }

.price-label { font-size: 1.1rem; color: #666; font-weight: 500; }

.price-value { font-size: 2.2rem; font-weight: 800; color: #3DA398; }

.form-group { margin-bottom: 20px; }

.form-group label { display: block; font-weight: 700; margin-bottom: 10px; color: #222; }

.form-control { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 6px; font-family: inherit; }

.participant-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; color: #444; }

.participant-info { display: flex; flex-direction: column; }

.participant-price { font-size: 0.85rem; color: #888; }

.qty-input { width: 70px; padding: 8px; text-align: center; border: 1px solid #ddd; border-radius: 6px; font-weight: 600; }

.booking-total-wrapper { display: flex; justify-content: space-between; align-items: center; background-color: #f9f9f9; padding: 15px; border-radius: 8px; margin-top: 20px; margin-bottom: 20px; border: 1px solid #eaeaea; }

.total-label { font-weight: 600; color: #444; }

.total-price { font-size: 1.5rem; font-weight: 800; color: #3DA398; }

.btn-book-now { width: 100%; background-color: #3DA398; color: #ffffff; padding: 18px; font-size: 1.2rem; font-weight: 700; border: none; border-radius: 8px; cursor: pointer; transition: background-color 0.2s ease-in-out; }

.btn-book-now:hover { background-color: #318a80; }



@media (max-width: 992px) {

    .tour-layout-container { grid-template-columns: 1fr; }

    .tour-booking-sidebar { position: static; order: -1; margin-bottom: 30px; }

}



/* ==========================================================================

   Phase 5.6: Custom Icons for Lists (Tik, Çarpı, Ünlem)

   ========================================================================== */

.check-list ul, .cross-list ul, .warning-list ul, .custom-bullets ul { list-style: none; padding-left: 0; margin: 0; }

.check-list li, .cross-list li, .warning-list li, .custom-bullets li { position: relative; padding-left: 35px; margin-bottom: 12px; font-size: 1.05rem; color: #444; }

.check-list li::before { content: '✔'; position: absolute; left: 0; top: 0; color: #10b981; font-size: 1.2rem; font-weight: bold; }

.cross-list li::before { content: '✖'; position: absolute; left: 0; top: 0; color: #ef4444; font-size: 1.2rem; font-weight: bold; }

.warning-list li::before { content: '!'; position: absolute; left: 0; top: -2px; color: #ffffff; background-color: #3DA398; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; font-weight: bold; }

.custom-bullets li::before { content: '•'; position: absolute; left: 10px; top: 0; color: #3DA398; font-size: 1.5rem; line-height: 1.2; }



/* ==========================================================================

   Phase 5.5: WhatsApp/GYG Tarzı Galeri ve Lightbox

   ========================================================================== */

.tour-container { max-width: 1200px; margin: 40px auto 30px auto; padding: 0 20px; }

.tour-main-title { font-size: 2.5rem; font-weight: 800; color: #111; margin-bottom: 25px; }

.bento-gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 250px 250px; gap: 12px; border-radius: 16px; overflow: hidden; cursor: pointer; transition: transform 0.2s ease; }

.bento-gallery:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.15); }

.bento-item { width: 100%; height: 100%; position: relative; overflow: hidden; background: #eee; }

.bento-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }

.bento-item:hover img { transform: scale(1.05); }

.item-main { grid-column: 1 / 2; grid-row: 1 / 3; }

.item-top { grid-column: 2 / 4; grid-row: 1 / 2; }

.item-bottom-left { grid-column: 2 / 3; grid-row: 2 / 3; }

.item-bottom-right { grid-column: 3 / 4; grid-row: 2 / 3; }

.more-photos-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); display: flex; justify-content: center; align-items: center; color: #ffffff; font-size: 1.1rem; font-weight: 600; transition: background 0.3s; }

.item-bottom-right:hover .more-photos-overlay { background: rgba(0,0,0,0.6); }



.nhd-lightbox { display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.95); flex-direction: column; justify-content: center; align-items: center; }

.lightbox-content { max-width: 90%; max-height: 80vh; }

.lightbox-content img { width: 100%; height: auto; max-height: 80vh; object-fit: contain; border-radius: 8px; }

.nhd-lightbox-close { position: absolute; top: 20px; right: 40px; color: #fff; font-size: 50px; font-weight: bold; cursor: pointer; transition: 0.3s; }

.nhd-lightbox-close:hover { color: #3DA398; } 

.lightbox-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.1); color: white; border: none; font-size: 2rem; padding: 15px 20px; cursor: pointer; border-radius: 50%; transition: 0.3s; }

.lightbox-btn:hover { background: #3DA398; }

.prev-btn { left: 5%; }

.next-btn { right: 5%; }



@media (max-width: 768px) {

    .bento-gallery { grid-template-columns: 1fr; grid-template-rows: 300px 150px 150px; }

    .item-main { grid-column: 1; grid-row: 1; }

    .item-top { grid-column: 1; grid-row: 2; }

    .item-bottom-left { grid-column: 1; grid-row: 3; }

    .item-bottom-right { display: none; } 

}



/* ==========================================================================

   FAZ 6.3 - TRIPADVISOR KAYAN YORUM BANDI

   ========================================================================== */

.tripadvisor-marquee-section { background-color: #f4f9f9; padding: 40px 0; overflow: hidden; border-top: 2px solid #3DA398; border-bottom: 2px solid #3DA398; margin-top: 50px; }

.marquee-container { width: 100%; overflow: hidden; white-space: nowrap; }

.marquee-track { display: inline-block; animation: scrollMarquee 25s linear infinite; }

.marquee-track:hover { animation-play-state: paused; }

.review-card { display: inline-block; background: #ffffff; padding: 15px 30px; margin: 0 20px; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); font-size: 1rem; color: #333; border-left: 5px solid #3DA398; }

.review-card strong { color: #3DA398; }

@keyframes scrollMarquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }



/* ==========================================================================

   FAZ 7.1 - CHECKOUT MODAL TASARIMI

   ========================================================================== */

.nhd-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); z-index: 10000; display: flex; justify-content: center; align-items: center; }

.nhd-modal-box { background: #fff; padding: 30px; border-radius: 12px; width: 90%; max-width: 450px; position: relative; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }

.close-modal { position: absolute; top: 15px; right: 20px; font-size: 28px; cursor: pointer; color: #999; }

.close-modal:hover { color: #3DA398; }

.nhd-modal-box .form-group { margin-bottom: 15px; }

.nhd-modal-box label { display: block; font-size: 13px; font-weight: bold; color: #555; margin-bottom: 5px; }

.nhd-modal-box input { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 6px; }



/* ==========================================================================

   FAZ 8: MOBİL OPTİMİZASYON VE YATAY KAYDIRMALI GALERİ

   ========================================================================== */

@media (max-width: 768px) {

    .bento-gallery { display: flex !important; overflow-x: auto !important; scroll-snap-type: x mandatory !important; gap: 15px !important; padding-bottom: 15px !important; -webkit-overflow-scrolling: touch !important; grid-template-columns: none !important; grid-template-rows: none !important; }

    .bento-gallery::-webkit-scrollbar { display: none !important; }

    .bento-item { flex: 0 0 85% !important; height: 320px !important; scroll-snap-align: center !important; border-radius: 12px !important; }

    .item-bottom-right { display: block !important; }

    .tour-hero-title { font-size: 2rem !important; }

    .tour-container { margin: 20px auto !important; }

}