/* ===================================
   Tours Page - Compact Design
   =================================== */

/* Tours Header */
.tours-section {
    padding: 60px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.tours-header {
    text-align: center;
    margin-bottom: 50px;
}

.tours-header h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 30px;
}

/* Month Tabs */
.month-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.month-tab {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    color: #495057;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.month-tab:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-2px);
}

.month-tab.active {
    background: #e31b23;
    color: white;
    border-color: #e31b23;
}

/* Country Filter */
.country-filter-wrapper {
    text-align: center;
    margin-bottom: 40px;
}

.country-filter-wrapper label {
    font-weight: 600;
    margin-right: 10px;
    font-size: 1.05rem;
    color: #495057;
}

#country-filter {
    padding: 10px 20px;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

#country-filter:hover {
    border-color: #e31b23;
}

#country-filter:focus {
    outline: none;
    border-color: #e31b23;
    box-shadow: 0 0 0 3px rgba(227, 27, 35, 0.1);
}

/* Tours Grid - Compact */
.tours-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

/* Tour Card - Compact */
.tour-card-compact {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tour-card-compact:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.tour-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tour-card-compact:hover .tour-card-img {
    transform: scale(1.05);
}

.tour-card-body {
    padding: 20px;
}

.tour-card-country {
    display: inline-block;
    background: #f8f9fa;
    color: #495057;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.tour-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.4;
    min-height: 50px;
}

.tour-card-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 12px;
}

.tour-card-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: #e31b23;
    text-align: right;
}

/* Tour Participants */
.tour-card-participants {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 0.95rem;
}

.participants-current {
    font-size: 1.3rem;
    font-weight: 800;
    color: #e31b23;
}

.participants-divider {
    font-size: 1.1rem;
    color: #adb5bd;
    font-weight: 600;
}

.participants-max {
    font-size: 1.1rem;
    font-weight: 700;
    color: #6c757d;
}

.participants-label {
    font-size: 0.9rem;
    color: #6c757d;
    margin-left: 2px;
}

/* Tour Badges */
.tour-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.tour-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.badge-hot {
    background: rgba(227, 27, 35, 0.9);
    color: white;
}

.badge-new {
    background: rgba(40, 167, 69, 0.9);
    color: white;
}

.badge-discount {
    background: rgba(255, 193, 7, 0.9);
    color: #1a1a1a;
}

/* No Tours */
.no-tours {
    text-align: center;
    padding: 80px 20px;
    color: #6c757d;
    font-size: 1.2rem;
    font-weight: 600;
}

/* ===================================
   Modal Styles
   =================================== */

.tour-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
}

.tour-modal.active {
    display: block;
}

.tour-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
}

.tour-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.tour-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.tour-modal-close:hover {
    background: #e31b23;
    transform: rotate(90deg);
}

.tour-modal-body {
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
}

.modal-header-section {
    margin-bottom: 30px;
}

.modal-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.modal-meta {
    font-size: 1.05rem;
    color: #6c757d;
    margin-bottom: 15px;
}

.modal-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #495057;
}

/* Gallery */
.modal-gallery {
    margin: 30px 0;
}

.gallery-main {
    position: relative;
    width: 100%;
    height: 400px;
    background: #000;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 15px;
}

.gallery-main img,
.gallery-main iframe {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.gallery-nav-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav-btn.prev {
    left: 15px;
}

.gallery-nav-btn.next {
    right: 15px;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
}

.gallery-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.gallery-thumb:hover {
    opacity: 0.9;
}

.gallery-thumb.active {
    opacity: 1;
    border-color: #e31b23;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Itinerary */
.itinerary-section {
    margin: 40px 0;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 3px solid #e31b23;
}

.itinerary-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.itinerary-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.itinerary-day {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #e31b23, #c01119);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.itinerary-day-label {
    font-size: 0.7rem;
    font-weight: 600;
    opacity: 0.9;
}

.itinerary-day-num {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
}

.itinerary-content h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.itinerary-content p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #495057;
    margin: 0;
}

/* Responsive */
@media (max-width: 1200px) {
    .tours-grid-compact {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    .tours-header h1 {
        font-size: 2rem;
    }
    
    .month-tabs {
        gap: 8px;
    }
    
    .month-tab {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .tours-grid-compact {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
    }
    
    .tour-card-img {
        height: 150px;
    }
    
    .tour-card-title {
        font-size: 1rem;
        min-height: 42px;
    }
    
    .tour-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .tour-modal-body {
        padding: 30px 20px;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .gallery-main {
        height: 250px;
    }
    
    .itinerary-item {
        flex-direction: column;
        gap: 15px;
    }
    
    .itinerary-day {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .tours-grid-compact {
        grid-template-columns: 1fr;
    }
    
    .tour-card-img {
        height: 180px;
    }
}
