/* =====================================================
   TOURS PAGE STYLES
   ===================================================== */


.tours-search-result-info {
    background: var(--bg-light);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.search-results-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.search-results-count {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Search term highlighting */
mark {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 500;
}

/* Zero Results Styling */
.zero-results-container {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    background: var(--bg-light);
    border-radius: 16px;
    border: 2px dashed var(--border-color);
}

.zero-results-content {
    text-align: center;
    max-width: 500px;
    padding: 2rem;
}

.zero-results-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.zero-results-icon i {
    font-size: 2rem;
    color: var(--white);
}

.zero-results-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.zero-results-content p {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.search-suggestions {
    margin-bottom: 2rem;
}

.search-suggestions h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.suggestion-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.suggestion-btn {
    padding: 0.5rem 1rem;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-dark);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.suggestion-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.zero-results-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.zero-results-actions .btn-secondary,
.zero-results-actions .btn-primary {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.zero-results-actions .btn-secondary {
    background: var(--white);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.zero-results-actions .btn-secondary:hover {
    background: var(--bg-light);
    transform: translateY(-1px);
}

.zero-results-actions .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    border: none;
}

.zero-results-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Mobile responsive zero results */

/* Image Placeholder for Missing Images */
.image-placeholder {
    width: 100%;
    height: 200px;
    background: var(--bg-light);
    border: 2px dashed var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.placeholder-content {
    text-align: center;
    color: var(--text-light);
}

.placeholder-content i {
    font-size: 2rem;
    margin-bottom: 8px;
    display: block;
    color: var(--text-muted);
}

.placeholder-content span {
    display: block;
    font-weight: 500;
    margin-bottom: 4px;
    font-size: 0.9rem;
}

.placeholder-content small {
    font-size: 0.75rem;
    color: var(--text-light);
    font-family: monospace;
}

/* Tours Hero Section */
.tours-hero-section {
    background: var(--text-dark);
    color: var(--text-color);
    padding: 180px 0 120px;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    z-index: 1;
}

.tours-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../../images/hero/pages/tours-hero.webp') center/cover;
    opacity: 1;
    z-index: 1;
}

/* FIX: Dark overlay kaldırıldı - temiz görsel için */

.tours-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.tours-hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.6);
}

.tours-hero-description {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    color: var(--text-color);
    opacity: 1;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.tours-search-bar {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 50px;
    padding: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.search-input {
    flex: 1;
    border: none;
    padding: 16px 24px;
    font-size: 16px;
    border-radius: 50px;
    outline: none;
    color: #1a1a1a !important;
    background: transparent;
    font-weight: 500;
}

.search-input::placeholder {
    color: var(--text-muted, #94a3b8);
    font-style: italic;
    font-weight: 400;
}

.search-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(25, 118, 210, 0.3);
    position: relative;
    overflow: hidden;
}

.search-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.search-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-dark) 100%);
    transform: scale(1.08) rotate(5deg);
    box-shadow: 0 6px 20px rgba(25, 118, 210, 0.4);
}

.search-btn:hover::before {
    width: 100%;
    height: 100%;
}

.search-btn:active {
    transform: scale(0.95);
}

/* Filter styles moved to universal-filters.css */

/* Tours Grid Section */
.tours-grid-section {
    padding: 3rem 0;
    background: var(--bg-light);
    min-height: 60vh;
}

.tours-count {
    margin-bottom: 2rem;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-light, #64748b);
    text-align: center;
}

.tours-count span {
    color: var(--primary-color);
    font-weight: 600;
}

/* Loading State */
.tours-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
    color: var(--text-muted, #94a3b8);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--bg-muted);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =====================================================
   FEATURED TOURS STYLES - Premium Platform Premium Level
   ===================================================== */

.featured-tours {
    padding: 100px 0;
    background: var(--white);
}

/* RESPONSIVE TOURS GRID - TÜM CİHAZLAR UYUMLU */
.tours-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Desktop: Sabit 4 kolon */
    gap: 2rem;
    margin-top: 3rem;
}

/* LAPTOP VE KÜÇÜK DESKTOP (1024px - 1400px) */
@media (max-width: 1400px) and (min-width: 1025px) {
    .tours-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 kolon koru */
        gap: 1.5rem;
    }
}

/* TABLET VE BÜYÜK MOBİL (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .tours-grid {
        grid-template-columns: repeat(2, 1fr); /* Tablet: 2 kolon */
        gap: 1.5rem;
    }
}

/* MOBİL (768px ve altı) */
@media (max-width: 768px) {
    .tours-grid {
        grid-template-columns: 1fr; /* Mobil: 1 kolon */
        gap: 1.5rem;
    }
}

.tour-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 500px; /* MİNİMUM YÜKSEKLIK - alt kısım görünsün */
}

.tour-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
    border-color: var(--primary-color);
}

.tour-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.tour-image img,
.tour-image picture {
    width: 100%;
    height: 100%;
    display: block;
}

.tour-image picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

/* Fallback images for non-WebP files */
.tour-image-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

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

.tour-card:hover .tour-image img,
.tour-card:hover .tour-image picture img,
.tour-card:hover .tour-image-fallback {
    transform: scale(1.1);
}

.tour-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.tour-badge-success {
    background: var(--success-color);
    color: var(--white);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); /* W4-A: Contrast boost for accessibility */
}

.tour-badge-primary {
    background: var(--primary-color);
    color: var(--white);
}

.tour-badge-warning {
    background: var(--warning-color);
    color: #000000; /* W4-A: Dark text for contrast (7.75:1 ratio with #ffb700) */
    font-weight: 600; /* Extra weight for readability */
}

.tour-wishlist {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.tour-wishlist:hover {
    background: var(--white);
    transform: scale(1.1);
}

.tour-wishlist.active {
    background: var(--error-color);
    color: var(--white);
}

.tour-wishlist i {
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.tour-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.tour-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    line-height: 1.3;
    min-height: 3.3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tour-description {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.2rem;
    height: 4.5rem; /* SABİT YÜKSEKLIK - 3 satır */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
}

/* Read More Button için açıklama alanı */
.tour-description.expandable {
    cursor: pointer;
}

.tour-description.expandable::after {
    content: none;
}

.tour-description .read-more-toggle {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    margin-left: 4px;
}

.tour-description.expanded {
    -webkit-line-clamp: unset;
    max-height: none;
    height: auto;
}

.tour-description.expanded::after {
    content: none;
}

.tour-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    min-height: 60px; /* SABİT YÜKSEKLIK - 2 satır highlight */
    align-items: flex-start;
    align-content: flex-start;
    overflow: hidden; /* Taşan içeriği gizle */
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--primary-light);
    color: var(--on-primary, #ffffff);
    padding: 0.3rem 0.7rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.highlight-item i {
    font-size: 0.7rem;
}

.tour-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 12px;
    min-height: 90px; /* MİNİMUM YÜKSEKLIK */
    align-content: start;
    align-items: start;
}

.info-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Üstten başlat */
    min-height: 65px; /* Her item'in minimum yüksekliği */
}

.info-icon {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
    flex-shrink: 0; /* Icon boyutu sabit */
}

.info-label {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    margin-bottom: 0.3rem;
    flex-shrink: 0; /* Label boyutu sabit */
    white-space: nowrap; /* Tek satırda kal */
}

.info-value {
    font-size: 0.85rem; /* Biraz daha küçük */
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.1; /* Daha sıkı satır aralığı */
    text-align: center;
    flex: 1; /* Kalan alanı doldur */
    display: flex;
    align-items: flex-start; /* Üstten hizala */
    justify-content: center;
    overflow: hidden; /* Taşan metni gizle */
    max-height: 32px; /* Maksimum yükseklik - 2 satır */
}

.tour-footer {
    display: flex;
    flex-direction: column; /* Dikey yerleşim */
    gap: 1rem;
    margin-bottom: 1rem;
    margin-top: auto;
    padding-top: 1rem;
}

/* Fiyat üstte */
.tour-price-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Butonlar altta */
.tour-actions-section {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
}

.tour-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.add-to-cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--success-color);
    color: var(--white);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    flex-shrink: 0; /* Boyut sabitle */
}

.add-to-cart-btn:hover {
    background: var(--success-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.tour-price {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.price-current {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
}

.price-original {
    font-size: 1.2rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.tour-cta {
    padding: 0.6rem 1.2rem;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
    flex: 1;
}

.tour-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.tour-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    height: 3rem;
    align-items: center;
}

.rating-stars {
    color: var(--warning-color);
    font-size: 1.1rem;
}

.rating-score {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1rem;
}

.rating-count {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Loading Animation */
@keyframes tourCardLoad {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tour-card {
    animation: tourCardLoad 0.6s ease forwards;
}

.tour-card:nth-child(1) { animation-delay: 0.1s; }
.tour-card:nth-child(2) { animation-delay: 0.2s; }
.tour-card:nth-child(3) { animation-delay: 0.3s; }

/* TÜM MOBİL CİHAZLAR İÇİN RESPONSİVE DESIGN */
/* STANDARD MOBİL (768px ve altı) */

/* KÜÇÜK MOBİL CİHAZLAR (480px ve altı) */

/* ÇOK KÜÇÜK EKRANLAR (360px ve altı) */

/* LANDSCAPE ORİENTASYON (Yatay tutma) */

/* =====================================================
   MOBILE RESPONSIVE - TOURS PAGE SPECIFIC (Filter styles removed)
   ===================================================== */

/* STANDARD MOBİL - TOURS PAGE RESPONSIVE (768px ve altı) */

/* KÜÇÜK MOBİL CİHAZLAR - TOURS PAGE (480px ve altı) */

/* ÇOK KÜÇÜK EKRANLAR - TOURS PAGE (360px ve altı) */

/* LANDSCAPE MOBİL - TOURS PAGE */

/* =====================================================
   CROSS-BROWSER COMPATIBILITY & SEARCH ENGINE OPTIMIZATION
   ===================================================== */

/* iOS Safari Optimizations */
@supports (-webkit-touch-callout: none) {
    .search-btn,
    .tour-card {
        -webkit-tap-highlight-color: rgba(25, 118, 210, 0.2);
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }
    
    .search-input {
        -webkit-appearance: none;
        -webkit-border-radius: 15px;
        border-radius: 15px;
    }
    
    
    /* iOS safe area support */
    @media screen and (max-height: 812px) and (max-width: 414px) {
        .tours-hero-section {
            padding-top: calc(6rem + env(safe-area-inset-top, 0px));
        }
        
        .tour-filters-section {
            padding-bottom: calc(2.5rem + env(safe-area-inset-bottom, 0px));
        }
    }
}

/* Android WebView Optimizations */

/* Firefox Mobile */
@-moz-document url-prefix() {
    .search-input {
        -moz-appearance: none;
    }
}

/* Edge Legacy Support */
@supports (-ms-accelerator: true) {
    .tour-cards-grid {
        display: -ms-grid;
        -ms-grid-columns: 1fr 1fr;
    }
}

/* High DPI Displays (Retina) */
@media (-webkit-min-device-pixel-ratio: 2) {
    .search-btn,
    .tour-card {
        border-width: 0.5px;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .search-btn,
    .tour-card {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .search-btn:hover,
    .tour-card:hover {
        transform: none !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .tour-card {
        border: 1px solid currentColor;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .tour-card {
        box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
    }
    
    .search-btn {
        box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
    }
}

/* Print Styles */
@media print {
    .tours-hero-section {
        background: none !important;
        color: var(--text-color);
    }
    
    .search-btn {
        border: 1px solid var(--border-dark);
        background: white !important;
        color: var(--text-color);
    }
    
    .tour-card {
        break-inside: avoid;
        margin-bottom: 1rem;
    }
}

/* Performance Optimizations */
.search-btn,
.tour-card {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* SEO & Accessibility Improvements */

.search-input[aria-invalid="true"] {
    border-color: var(--danger-color, #ef4444);
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

/* Screen Reader Only Content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}