/* Catalog Page Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Caveat', cursive;
    font-weight: 600;
}

/* Header */
.header {
    background: url('/raw/desktop/2020-10-08_15-45-44_UTC_4.jpg') center/cover no-repeat;
    color: white;
    padding: 6rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

.header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.header p {
    font-family: 'Caveat', cursive;
    font-size: 1.5rem;
    font-weight: 500;
    opacity: 0.95;
}

.header-btn {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    padding: 10px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    font-family: 'Caveat', cursive;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.header-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

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

/* Filters */
.filters {
    background: white;
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.filters h2 {
    margin-bottom: 1.5rem;
    color: #667eea;
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #555;
}

.filter-group select,
.filter-group input {
    padding: 0.7rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: #667eea;
}

.search-box {
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 0.7rem 2.5rem 0.7rem 0.7rem;
}

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

/* Tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1rem;
}

.tag {
    padding: 0.5rem 1rem;
    background: #f0f0f0;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.tag:hover {
    background: #e8e8e8;
}

.tag.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Stats */
.stats {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

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

.stat-value {
    font-weight: 700;
    color: #667eea;
    font-size: 1.2rem;
}

/* Tours Grid */
.tours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.tour-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

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

.tour-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.tour-content {
    padding: 1.5rem;
}

.tour-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.7rem;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tour-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.tour-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.tour-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tour-tag {
    padding: 0.3rem 0.7rem;
    background: #f0f0f0;
    border-radius: 12px;
    font-size: 0.8rem;
    color: #555;
}

.tour-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.9rem;
}

.rating-value {
    font-weight: 700;
    color: #ffa726;
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: #999;
}

.loading {
    text-align: center;
    padding: 3rem;
    font-size: 1.2rem;
    color: #667eea;
}

/* Advantages Section */
.advantages-section {
    padding: 80px 24px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.advantages-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 48px;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.advantage-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.advantage-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 36px rgba(102, 126, 234, 0.2);
}

.advantage-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

.advantage-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.advantage-description {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
}

/* Geo Popup */
.geo-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.geo-popup-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.geo-popup-content {
    position: relative;
    background: white;
    border-radius: 12px;
    padding: 40px 32px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.geo-popup-overlay.visible .geo-popup-content {
    transform: translateY(0);
}

.geo-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    transition: color 0.2s ease;
}

.geo-popup-close:hover {
    color: #333;
}

.geo-popup-icon {
    font-size: 56px;
    text-align: center;
    margin-bottom: 24px;
}

.geo-popup-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 16px;
    line-height: 1.3;
}

.geo-popup-subtitle {
    font-size: 16px;
    color: #666;
    text-align: center;
    margin-bottom: 24px;
    line-height: 1.6;
}

.geo-popup-details {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
    text-align: center;
}

.geo-popup-airport {
    font-size: 18px;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 8px;
}

.geo-popup-country {
    font-size: 14px;
    color: #888;
}

.geo-popup-cta {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.geo-popup-cta .btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.geo-popup-cta .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.geo-popup-cta .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.geo-popup-cta .btn-secondary {
    background: #f5f5f5;
    color: #666;
    border: none;
}

.geo-popup-cta .btn-secondary:hover {
    background: #e0e0e0;
}

.geo-popup-footer {
    font-size: 13px;
    color: #999;
    text-align: center;
    margin-top: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .header h1 {
        font-size: 1.8rem;
    }
    
    .header .container > div {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .header-btn {
        padding: 12px 20px;
        font-size: 1.1rem;
    }
    
    .filter-row {
        grid-template-columns: 1fr;
    }
    
    .tours-grid {
        grid-template-columns: 1fr;
    }
    
    .advantages-section {
        padding: 60px 16px;
    }
    
    .advantages-title {
        font-size: 28px;
    }
    
    .advantages-grid {
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .geo-popup-content {
        padding: 32px 24px;
    }
    
    .geo-popup-title {
        font-size: 20px;
    }
    
    .geo-popup-cta {
        flex-direction: column;
    }
    
    .geo-popup-cta .btn {
        width: 100%;
    }
}
