/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: linear-gradient(135deg, #ffffff 0%, #fff5f5 50%, #ffe6e6 100%);
    min-height: 100vh;
}

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

/* Header */
header {
    background: linear-gradient(135deg, #DC143C 0%, #C41E3A 50%, #B71C3A 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(220, 20, 60, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.language-selector select,
.currency-selector select {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.language-selector select:hover,
.currency-selector select:hover {
    background: rgba(255, 255, 255, 0.3);
}

.language-selector select option,
.currency-selector select option {
    background: #C41E3A;
    color: white;
}

.header-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Main Search Section */
.search-section {
    background: white;
    margin: 2rem 0;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(220, 20, 60, 0.2);
    overflow: hidden;
    border: 2px solid #ffe6e6;
}

.search-tabs {
    background: linear-gradient(135deg, #f3f4f6 0%, #ffe6e6 100%);
    display: flex;
    border-bottom: 1px solid #e5e7eb;
}

.tab-button {
    flex: 1;
    padding: 1rem 2rem;
    border: none;
    background: transparent;
    color: #C41E3A;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-button.active {
    background: white;
    color: #DC143C;
    border-bottom-color: #DC143C;
    box-shadow: 0 -2px 10px rgba(220, 20, 60, 0.1);
}

.tab-button:hover {
    background: rgba(220, 20, 60, 0.1);
}

.search-form {
    padding: 2rem;
    background: white;
}

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

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

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #C41E3A;
    font-size: 0.9rem;
}

.form-group select,
.form-group input {
    padding: 0.75rem;
    border: 2px solid #ffe6e6;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group select:focus,
.form-group input:focus {
    outline: none;
    border-color: #DC143C;
    box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.1);
}

.search-button {
    background: linear-gradient(135deg, #DC143C 0%, #C41E3A 100%);
    color: white;
    border: none;
    padding: 1rem 3rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.3);
}

.search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 20, 60, 0.4);
}

/* Offers Section */
.offers-section {
    margin: 3rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    color: #C41E3A;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #C41E3A 0%, #DC143C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.offer-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(220, 20, 60, 0.15);
    transition: all 0.3s ease;
    border: 2px solid #fff5f5;
    position: relative;
}

.offer-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(220, 20, 60, 0.25);
    border-color: #ffe6e6;
}

.offer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #DC143C 0%, #C41E3A 100%);
}

.offer-image-container {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.offer-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.offer-card:hover .offer-image {
    transform: scale(1.05);
}

.offer-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #1a1a1a;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.offer-content {
    padding: 1.5rem;
}

.offer-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #C41E3A;
    margin-bottom: 0.5rem;
}

.offer-description {
    color: #6b7280;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.offer-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.price-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: #DC143C;
}

.price-old {
    font-size: 1rem;
    color: #9ca3af;
    text-decoration: line-through;
    margin-left: 0.5rem;
}

.offer-cta {
    background: linear-gradient(135deg, #DC143C 0%, #C41E3A 100%);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

.offer-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.3);
}

/* Destinations Gallery */
.destinations-section {
    margin: 3rem 0;
    background: white;
    padding: 3rem 0;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(220, 20, 60, 0.1);
}

.destinations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.destination-card {
    position: relative;
    height: 140px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(220, 20, 60, 0.15);
    transition: all 0.3s ease;
    border: 2px solid #fff5f5;
}

.destination-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(220, 20, 60, 0.25);
}

.destination-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.destination-card:hover .destination-image {
    transform: scale(1.1);
}

.destination-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(220, 20, 60, 0.9));
    color: white;
    padding: 1rem;
    text-align: center;
}

.destination-name {
    font-size: 1rem;
    font-weight: 600;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #8B0000 0%, #C41E3A 100%);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: white;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ffcccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffcccc;
}

/* Cookie Banner Bottom */
.cookie-banner-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #ffffff 0%, #fff5f5 100%);
    color: #1a1a1a;
    padding: 1rem 0;
    box-shadow: 0 -4px 20px rgba(220, 20, 60, 0.2);
    z-index: 10000;
    border-top: 3px solid #DC143C;
    backdrop-filter: blur(10px);
}

.cookie-content-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-text p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.cookie-link {
    color: #DC143C;
    text-decoration: underline;
    font-weight: 500;
}

.cookie-link:hover {
    color: #C41E3A;
}

.cookie-buttons-bottom {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.cookie-accept-all {
    background: linear-gradient(135deg, #DC143C 0%, #C41E3A 100%);
    color: white;
    border: none;
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.cookie-accept-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.3);
}

.cookie-necessary {
    background: rgba(220, 20, 60, 0.1);
    color: #C41E3A;
    border: 2px solid #DC143C;
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.cookie-necessary:hover {
    background: rgba(220, 20, 60, 0.2);
}

.cookie-customize {
    background: transparent;
    color: #C41E3A;
    border: 1px solid #ffe6e6;
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.cookie-customize:hover {
    background: rgba(220, 20, 60, 0.1);
    border-color: #DC143C;
}

/* AdSense Optimization */
.adsense-container {
    margin: 2rem 0;
    text-align: center;
    background: #fff5f5;
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid #ffe6e6;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-wrapper {
    max-width: 100%;
    overflow-x: hidden;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .search-tabs {
        flex-direction: column;
    }
    
    .tab-button {
        padding: 0.8rem 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .search-form {
        padding: 1.5rem;
    }
    
    .search-button {
        width: 100%;
        padding: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .offers-grid {
        grid-template-columns: 1fr;
    }
    
    .destinations-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .destination-card {
        height: 120px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .cookie-content-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .cookie-text {
        min-width: auto;
    }
    
    .cookie-buttons-bottom {
        justify-content: center;
        width: 100%;
    }
    
    .cookie-accept-all,
    .cookie-necessary,
    .cookie-customize {
        flex: 1;
        min-width: 100px;
    }
}

@media (max-width: 480px) {
    .offer-image-container {
        height: 140px;
    }
    
    .destination-card {
        height: 100px;
    }
    
    .search-section {
        margin: 1rem 0;
        border-radius: 15px;
    }
    
    .cookie-buttons-bottom {
        flex-direction: column;
    }
    
    .cookie-accept-all,
    .cookie-necessary,
    .cookie-customize {
        width: 100%;
    }
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #C41E3A;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
    border-radius: 0 0 4px 4px;
}

.skip-link:focus {
    top: 0;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Animation Classes */
.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Performance Optimizations */
.offer-image,
.destination-image {
    will-change: transform;
}

.offer-card,
.destination-card {
    contain: layout style paint;
}

/* Form Validation Styles */
.form-group select.error,
.form-group input.error {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.form-group select.error:focus,
.form-group input.error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Keyboard Navigation Enhancement */
.keyboard-nav *:focus {
    outline: 2px solid #DC143C;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .offer-card,
    .destination-card {
        border-width: 2px;
        border-color: #000;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    .cookie-banner-bottom,
    .adsense-container {
        display: none !important;
    }
    
    .offer-card,
    .destination-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}