/* Variables */
:root {
    --color-primary: #2563eb;
    --color-primary-dark: #1d4ed8;
    --color-secondary: #f97316;
    --color-text: #1f2937;
    --color-text-light: #6b7280;
    --color-background: #ffffff;
    --color-background-alt: #f3f4f6;
    --max-width: 1200px;
    --border-radius: 8px;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Layout & Common Styles */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 6rem 2rem;
}

/* Header & Navigation */
.main-header {
    background-color: var(--color-background);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--color-primary);
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--color-primary);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.hamburger {
    width: 30px;
    height: 3px;
    background-color: var(--color-text);
    border-radius: 3px;
    position: relative;
    transition: all 0.3s linear;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 3px;
    background-color: var(--color-text);
    border-radius: 3px;
    transition: all 0.3s linear;
}

.hamburger::before {
    transform: translateY(-8px);
}

.hamburger::after {
    transform: translateY(8px);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                url('https://images.unsplash.com/photo-1469474968028-56623f02e42e?w=1920&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 8rem;
    color: white;
}

.hero-content {
    margin-bottom: 4rem;
}

.hero-content h2 {
    font-size: 4.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Search Form */
.search-container {
    background: var(--color-background);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    width: 90%;
    max-width: 800px;
}

.search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.search-input {
    flex: 1 1 300px;
}

.date-inputs {
    flex: 1 1 300px;
    display: flex;
    gap: 1rem;
}

.search-form input {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid #e5e7eb;
    border-radius: var(--border-radius);
}

.search-button {
    background-color: var(--color-primary);
    color: white;
    padding: 1.2rem 2.4rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.search-button:hover {
    background-color: var(--color-primary-dark);
}

/* Featured Deals Section */
.featured-deals {
    background-color: var(--color-background);
}

.featured-deals h2,
.destinations h2,
.benefits h2 {
    text-align: center;
    font-size: 3.2rem;
    margin-bottom: 4rem;
}

.deals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

/* Benefits Section */
.benefits {
    background-color: var(--color-background-alt);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.benefit-card {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--color-background);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-card::before {
    content: '';
    display: block;
    width: 60px;
    height: 60px;
    margin: 0 auto 2rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.benefit-card:nth-child(1)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232563eb'%3E%3Cpath d='M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5'/%3E%3C/svg%3E");
}

.benefit-card:nth-child(2)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232563eb'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E");
}

.benefit-card:nth-child(3)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232563eb'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z'/%3E%3C/svg%3E");
}

/* Newsletter Section */
.newsletter {
    background-color: var(--color-primary);
    color: white;
    text-align: center;
}

.newsletter-form {
    max-width: 500px;
    margin: 3rem auto 0;
    display: flex;
    gap: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 1.2rem;
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form button {
    background-color: var(--color-secondary);
    padding: 1.2rem 2.4rem;
    border-radius: var(--border-radius);
    color: white;
    font-weight: 500;
}

/* Footer */
.main-footer {
    background-color: #1f2937;
    color: white;
    padding: 6rem 2rem 2rem;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
}

.footer-section h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.footer-section ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-section a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    html {
        font-size: 56.25%; /* 9px */
    }

    .hero-content h2 {
        font-size: 3.6rem;
    }

    .nav-links {
        display: none; /* We'll handle mobile navigation with JavaScript */
    }

    .newsletter-form {
        flex-direction: column;
    }

    .search-form {
        flex-direction: column;
    }

    .date-inputs {
        flex-direction: column;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: var(--color-background);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }

    .nav-links.active {
        transform: translateX(0);
    }
}

@media (max-width: 480px) {
    html {
        font-size: 50%; /* 8px */
    }

    section {
        padding: 4rem 1.5rem;
    }
}

/* Deal Cards */
.deal-card {
    background: var(--color-background);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.deal-card:hover {
    transform: translateY(-5px);
}

.deal-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.deal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.deal-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--color-secondary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 1.4rem;
    font-weight: 500;
}

.deal-content {
    padding: 2rem;
}

.deal-content h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.deal-location {
    color: var(--color-text-light);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.deal-description {
    margin-bottom: 2rem;
}

.deal-price {
    margin-bottom: 1.5rem;
}

.price-from {
    font-size: 1.4rem;
    color: var(--color-text-light);
}

.price {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0.5rem;
}

.per-night {
    font-size: 1.4rem;
    color: var(--color-text-light);
}

.deal-button {
    width: 100%;
    background: var(--color-primary);
    color: white;
    padding: 1rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.deal-button:hover {
    background: var(--color-primary-dark);
}

/* Destination Cards */
.destination-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 16/9;
}

.destination-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.destination-card:hover img {
    transform: scale(1.1);
}

.destination-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
}

.destination-content h3 {
    font-size: 2.4rem;
    margin-bottom: 0.5rem;
}

.destination-content p {
    font-size: 1.4rem;
    opacity: 0.9;
}

/* Responsive Grid Layouts */
.deals-grid,
.destination-grid {
    display: grid;
    gap: 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.deals-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.destination-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

@media (max-width: 768px) {
    .deals-grid,
    .destination-grid {
        grid-template-columns: 1fr;
        padding: 0 1.5rem;
    }
}

/* Animation Styles */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.search-container,
.deal-card,
.destination-card,
.benefit-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.deal-card:nth-child(2) {
    animation-delay: 0.2s;
}

.deal-card:nth-child(3) {
    animation-delay: 0.4s;
}

.destination-card:nth-child(2) {
    animation-delay: 0.2s;
}

.destination-card:nth-child(3) {
    animation-delay: 0.4s;
}

.destination-card:nth-child(4) {
    animation-delay: 0.6s;
}

.benefit-card:nth-child(2) {
    animation-delay: 0.2s;
}

.benefit-card:nth-child(3) {
    animation-delay: 0.4s;
}

/* Reviews Section */
.reviews {
    background-color: var(--color-background);
    padding: 8rem 2rem;
}

.reviews h2 {
    text-align: center;
    font-size: 3.2rem;
    margin-bottom: 4rem;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.review-card {
    background: var(--color-background);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.reviewer-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
}

.reviewer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reviewer-details h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.4rem;
}

.reviewer-details p {
    font-size: 1.4rem;
    color: var(--color-text-light);
}

.review-rating .stars {
    color: #fbbf24;
    font-size: 2rem;
    letter-spacing: 2px;
}

.review-text {
    color: var(--color-text);
    font-size: 1.6rem;
    line-height: 1.6;
    font-style: italic;
}

/* Add animation for review cards */
.review-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.review-card:nth-child(2) {
    animation-delay: 0.2s;
}

.review-card:nth-child(3) {
    animation-delay: 0.4s;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .reviews {
        padding: 6rem 1.5rem;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
        padding: 0 1.5rem;
    }

    .reviewer-avatar {
        width: 50px;
        height: 50px;
    }
} 