/* ========================================
   COMPREHENSIVE RESPONSIVE STYLES
   Mobil Uyumlu Tasarım
   ======================================== */

/* ========================================
   GENEL RESPONSIVE AYARLAR
   ======================================== */

/* Tablet ve altı (max-width: 1024px) */
@media (max-width: 1024px) {
    .container {
        max-width: 100%;
        padding: 0 20px;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }
}

/* Tablet (max-width: 768px) */
@media (max-width: 768px) {
    /* Container */
    .container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    /* Daralma sorununu önle - SADECE MOBİLDE */
    html, body {
        overflow-x: hidden !important;
    }
    
    /* Hakkımızda ve Galeri sayfaları için özel düzenlemeler - SADECE MOBİLDE */
    .about-us-section .container,
    .gallery-section .container,
    .mission-section .container,
    .vision-section .container,
    .values-section .container {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 15px !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
    }
    
    /* Inline style'ları override et - SADECE MOBİLDE */
    .about-us-section div[style*="max-width: 1000px"],
    .gallery-section div[style*="max-width: 1000px"],
    .mission-section div[style*="max-width: 1000px"],
    .vision-section div[style*="max-width: 1000px"],
    .values-section div[style*="max-width: 1000px"] {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box !important;
    }
    
    /* Padding değerlerini mobilde azalt */
    .about-us-section div[style*="padding: 50px"],
    .mission-section div[style*="padding: 50px"],
    .vision-section div[style*="padding: 50px"],
    .values-section div[style*="padding: 35px"] {
        padding: 20px 15px !important;
    }
    
    /* Tüm section'lar için - SADECE MOBİLDE */
    section {
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    
    /* Tüm max-width: 1000px elementlerini mobilde tam genişlik yap */
    div[style*="max-width: 1000px"],
    div[style*="max-width:1000px"] {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
    }
    
    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    h5 { font-size: 1.1rem; }
    h6 { font-size: 1rem; }
    
    /* Header */
    .header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        max-height: 70px;
        height: auto;
        z-index: 1000 !important;
    }
    
    .navbar {
        padding: 10px 0;
        width: 100%;
    }
    
    .nav-container {
        display: flex !important;
        justify-content: flex-start !important;
        align-items: center !important;
        width: 100% !important;
        padding: 0 10px !important;
        margin: 0 !important;
        position: relative !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        flex-wrap: nowrap !important;
    }
    
    .nav-logo {
        flex-shrink: 0;
        order: 1;
        margin-right: auto;
        max-width: 50%;
        overflow: hidden;
    }
    
    .nav-logo h2 {
        font-size: 1rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .nav-logo .site-logo {
        height: 30px !important;
        max-width: 100%;
    }
    
    .nav-menu {
        position: fixed !important;
        left: -100% !important;
        top: 70px !important;
        flex-direction: column !important;
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
        width: 100% !important;
        text-align: center !important;
        transition: left 0.3s ease !important;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05) !important;
        padding: 20px 0 !important;
        z-index: 9998 !important;
        margin: 0 !important;
        order: 3;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .nav-menu.active {
        left: 0 !important;
    }
    
    /* Hamburger aktif durumu - X şekli */
    .hamburger.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .nav-item {
        margin: 15px 0;
        width: 100%;
    }
    
    .nav-link {
        font-size: 1.1rem;
        padding: 10px 20px;
        width: 100%;
        display: block;
        text-align: center;
    }
    
    .language-selector {
        order: 2;
        flex-shrink: 0;
        margin-left: auto;
        margin-right: 10px;
        position: relative !important;
        z-index: 1001 !important;
    }
    
    .language-selector .language-btn {
        padding: 6px 10px !important;
        font-size: 0.75rem !important;
        white-space: nowrap;
    }
    
    .language-selector .language-btn span {
        display: none;
    }
    
    .hamburger {
        display: flex !important;
        order: 3;
        flex-shrink: 0;
        margin-left: auto !important;
        margin-right: 15px !important;
        z-index: 1001 !important;
        position: relative !important;
        padding: 5px;
        cursor: pointer !important;
        pointer-events: auto !important;
    }
    
    /* Hamburger menü navbar içinde doğru konumlandırma */
    .navbar {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        position: relative !important;
        padding: 10px 15px !important;
        box-sizing: border-box !important;
    }
    
    /* Nav-container düzenlemesi */
    .nav-container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        flex: 1 !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
    
    /* Rezervasyon sayfasında hamburger menüyü sağa it */
    body:has(.reservation-container) .hamburger,
    .reservation-page .hamburger {
        margin-left: auto !important;
        margin-right: 0 !important;
        order: 999 !important;
    }
    
    body:has(.reservation-container) .nav-container,
    .reservation-page .nav-container {
        justify-content: space-between !important;
    }
    
    body:has(.reservation-container) .nav-logo,
    .reservation-page .nav-logo {
        margin-right: auto !important;
    }
    
    .hamburger .bar {
        background: white !important;
        width: 22px;
        height: 3px;
        border-radius: 2px;
        transition: all 0.3s ease !important;
    }
    
    /* Hamburger aktif durumu */
    .hamburger.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px) !important;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0 !important;
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px) !important;
    }
    
    /* Hero Section */
    .hero {
        height: 50vh;
        margin-top: 70px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    /* Search Section */
    .search-section {
        padding: 40px 0;
    }
    
    .search-box {
        padding: 30px 20px;
    }
    
    .search-box h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .search-inputs {
        flex-direction: column;
        gap: 15px;
    }
    
    .input-group {
        width: 100%;
        min-width: 100%;
    }
    
    /* Tours Grid */
    .tours-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tour-card {
        width: 100%;
    }
    
    .tour-image {
        height: 200px;
    }
    
    /* Footer */
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-bottom {
        text-align: center;
    }
    
    /* Contact Section */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    /* Page Header */
    .page-header {
        padding: 60px 0 40px;
        margin-top: 70px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
}

/* Mobil (max-width: 480px) */
@media (max-width: 480px) {
    /* Container */
    .container {
        padding: 0 10px;
    }
    
    /* Typography */
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.1rem; }
    h5 { font-size: 1rem; }
    h6 { font-size: 0.9rem; }
    
    p {
        font-size: 0.9rem;
    }
    
    /* Header */
    .header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-height: 60px;
        height: auto;
        z-index: 1000 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .navbar {
        padding: 8px 0;
        width: 100%;
    }
    
    .nav-container {
        display: flex !important;
        justify-content: flex-start !important;
        align-items: center !important;
        width: 100% !important;
        padding: 0 10px !important;
        margin: 0 !important;
        position: relative !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        flex-wrap: nowrap !important;
    }
    
    .nav-logo {
        flex-shrink: 0;
        order: 1;
        margin-right: auto;
        max-width: 45%;
        overflow: hidden;
    }
    
    .nav-logo h2 {
        font-size: 0.9rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .nav-logo .site-logo {
        height: 28px !important;
        max-width: 100%;
    }
    
    .nav-menu {
        top: 60px !important;
    }
    
    .language-selector {
        order: 2;
        margin-left: auto;
        margin-right: 5px;
    }
    
    .language-selector .language-btn {
        padding: 5px 8px !important;
        font-size: 0.7rem !important;
    }
    
    .language-selector .language-btn span {
        display: none;
    }
    
    .hamburger {
        order: 3;
        margin-left: 5px;
    }
    
    .hamburger .bar {
        width: 20px;
        height: 2px;
    }
    
    /* Hero Section */
    .hero {
        height: 40vh;
        margin-top: 60px;
    }
    
    .hero-content {
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .hero-content p {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    .hero-content .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* Search Section */
    .search-section {
        padding: 30px 0;
    }
    
    .search-box {
        padding: 20px 15px;
        border-radius: 12px;
    }
    
    .search-box h2 {
        font-size: 1.25rem;
        margin-bottom: 15px;
    }
    
    .input-group input,
    .input-group select {
        padding: 12px 15px 12px 45px;
        font-size: 14px;
    }
    
    .input-group i {
        left: 12px;
        font-size: 16px;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .btn-sm {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    /* Tour Cards */
    .tour-card {
        border-radius: 12px;
    }
    
    .tour-image {
        height: 180px;
    }
    
    .tour-content {
        padding: 15px;
    }
    
    .tour-title {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .tour-description {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }
    
    .tour-meta {
        flex-direction: column;
        gap: 8px;
        font-size: 0.85rem;
    }
    
    /* Footer */
    .footer {
        padding: 30px 0 15px;
    }
    
    .footer-section {
        margin-bottom: 25px;
    }
    
    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .footer-section p,
    .footer-section ul li {
        font-size: 0.9rem;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    /* Contact Section */
    .contact-section {
        padding: 50px 0;
    }
    
    .contact-method {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    /* Page Header */
    .page-header {
        padding: 50px 0 30px;
        margin-top: 60px;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .breadcrumb {
        font-size: 0.85rem;
    }
}

/* ========================================
   ÖZEL RESPONSIVE AYARLAR
   ======================================== */

/* Search Form - Mobil Optimizasyonu */
@media (max-width: 768px) {
    .search-form {
        width: 100%;
    }
    
    .search-inputs {
        flex-direction: column;
    }
    
    .input-group {
        width: 100%;
    }
    
    .input-group input,
    .input-group select {
        font-size: 16px; /* iOS zoom'u önlemek için */
    }
    
    .search-form .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Tour Cards - Mobil Optimizasyonu */
@media (max-width: 768px) {
    .tour-card {
        max-width: 100%;
    }
    
    .tour-image img {
        object-fit: cover;
    }
    
    .tour-footer {
        flex-direction: column;
        gap: 10px;
    }
    
    .tour-price {
        text-align: center;
        width: 100%;
    }
    
    .tour-button {
        width: 100%;
        justify-content: center;
    }
}

/* Hotels Grid - Mobil Optimizasyonu */
@media (max-width: 768px) {
    .hotels-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .hotel-card {
        max-width: 100%;
    }
}

/* Tables - Mobil Optimizasyonu */
@media (max-width: 768px) {
    .details-table {
        font-size: 0.85rem;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .details-table thead,
    .details-table tbody,
    .details-table tr,
    .details-table td,
    .details-table th {
        display: block;
    }
    
    .details-table thead {
        display: none;
    }
    
    .details-table tr {
        margin-bottom: 15px;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 10px;
    }
    
    .details-table td {
        border: none;
        padding: 8px 0;
        text-align: left;
    }
    
    .details-table td:before {
        content: attr(data-label) ": ";
        font-weight: 600;
        display: inline-block;
        width: 120px;
    }
}

/* Forms - Mobil Optimizasyonu */
@media (max-width: 768px) {
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* iOS zoom'u önlemek için */
        padding: 12px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .payment-options {
        grid-template-columns: 1fr;
    }
    
    .payment-method {
        padding: 15px;
    }
}

/* Lightbox/Gallery - Mobil Optimizasyonu */
@media (max-width: 768px) {
    .lightbox {
        padding: 10px;
    }
    
    .lightbox-content {
        max-width: 95%;
        max-height: 90vh;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }
}

/* Slider - Mobil Optimizasyonu */
@media (max-width: 768px) {
    .hero-slider {
        height: 40vh;
    }
    
    .slide img {
        object-fit: cover;
    }
    
    .prev-btn,
    .next-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .slider-dots {
        bottom: 15px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
}

/* Admin Panel - Mobil Optimizasyonu */
@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-100%);
        width: 80%;
        max-width: 300px;
    }
    
    .admin-sidebar.active {
        transform: translateX(0);
    }
    
    .admin-main {
        margin-left: 0;
        padding: 20px 10px;
    }
    
    .admin-table {
        font-size: 0.85rem;
        display: block;
        overflow-x: auto;
    }
}

/* Flatpickr Calendar - Mobil Optimizasyonu */
@media (max-width: 768px) {
    .flatpickr-calendar {
        max-width: 100%;
        width: 100% !important;
    }
    
    .flatpickr-calendar.open {
        left: 0 !important;
        right: 0 !important;
        margin: 0 auto;
    }
}

/* WhatsApp Button - Mobil Optimizasyonu */
@media (max-width: 768px) {
    .whatsapp-btn {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
        font-size: 24px;
    }
    
    .whatsapp-text {
        display: none;
    }
}

/* Scroll to Top Button - Mobil Optimizasyonu */
@media (max-width: 768px) {
    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 80px;
        right: 20px;
        font-size: 18px;
    }
}

/* ========================================
   LANDSCAPE ORIENTATION
   ======================================== */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        height: 50vh;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .header,
    .footer,
    .btn,
    .whatsapp-btn,
    .scroll-to-top,
    .admin-secret-link {
        display: none !important;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    .page-header {
        margin-top: 0;
        padding: 20px 0;
    }
}

/* ========================================
   ACCESSIBILITY - Touch Targets
   ======================================== */
@media (max-width: 768px) {
    a,
    button,
    input[type="button"],
    input[type="submit"],
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        padding: 12px 20px;
    }
}

/* ========================================
   HIGH DPI DISPLAYS
   ======================================== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .tour-image img,
    .hotel-image img,
    .hero-slider img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

