/* ========================================
   TRAVEL24 DEALS - STYLESHEET
   ======================================== */

/* CSS Variables - Kleurenpalet & Typografie */
:root {
    /* Kleuren */
    --primary-color: #0077CC;
    --primary-hover: #005fa3;
    --accent-color: #FF6600;
    --accent-hover: #e55a00;
    --secondary-bg: #F5F5F5;
    --text-color: #333333;
    --light-bg: #FFFFFF;
    --border-color: #E0E0E0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);

    /* Typografie */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Lato', sans-serif;

    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */

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

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-bg);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: var(--font-heading);
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

/* ========================================
   LAYOUT UTILITIES
   ======================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.bg-light {
    background-color: var(--secondary-bg);
}

/* ========================================
   NAVIGATION
   ======================================== */

.navbar {
    background-color: var(--light-bg);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.logo-icon {
    width: 28px;
    height: 28px;
    stroke: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
}

.nav-menu a {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-color);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
    background-color: var(--secondary-bg);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    padding: var(--spacing-xs);
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 2px;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    position: relative;
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 119, 204, 0.8), rgba(255, 102, 0, 0.6));
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: var(--spacing-xl) 0;
}

.hero-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: var(--spacing-sm);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Search Box */
.search-box {
    background-color: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-hover);
    max-width: 1000px;
    margin: 0 auto;
}

.search-form {
    display: grid;
    grid-template-columns: repeat(4, 1fr) auto;
    gap: var(--spacing-sm);
    align-items: end;
}

.search-field {
    display: flex;
    flex-direction: column;
}

.search-field label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 6px;
}

.search-field input,
.search-field select {
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-field input:focus,
.search-field select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

.btn svg {
    flex-shrink: 0;
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-accent {
    background-color: var(--accent-color);
    color: white;
}

.btn-accent:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--light-bg);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-search {
    padding: 12px 32px;
    white-space: nowrap;
}

.btn-load-more {
    display: block;
    margin: var(--spacing-lg) auto 0;
}

/* ========================================
   TRUST BADGES
   ======================================== */

.trust-badges {
    background-color: var(--light-bg);
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--border-color);
}

.badges-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
}

.badge-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ========================================
   SECTIONS
   ======================================== */

.featured-section,
.category-section {
    padding: var(--spacing-xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-size: 2.2rem;
    color: var(--text-color);
    margin-bottom: var(--spacing-xs);
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
}

.section-title .title-icon {
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
    stroke: var(--primary-color);
}

/* ========================================
   FILTERS
   ======================================== */

.filters {
    display: flex;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 10px 20px;
    background-color: white;
    border: 2px solid var(--border-color);
    border-radius: 24px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ========================================
   CAROUSEL
   ======================================== */

.carousel-container {
    position: relative;
}

.carousel-wrapper {
    overflow: hidden;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: white;
    border: 2px solid var(--border-color);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: var(--shadow);
}

.carousel-btn svg {
    stroke: var(--primary-color);
}

.carousel-btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.carousel-btn:hover svg {
    stroke: white;
}

.carousel-btn-prev {
    left: -20px;
}

.carousel-btn-next {
    right: -20px;
}

/* ========================================
   DEALS GRID
   ======================================== */

.deals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

/* Deal Card */
.deal-card {
    background-color: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.deal-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.deal-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    position: relative;
}

.deal-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: var(--accent-color);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    z-index: 2;
}

.deal-badge.popular {
    background-color: var(--accent-color);
}

.deal-badge.discount {
    background-color: #00CC66;
}

.deal-badge.editors-choice {
    background-color: #9933FF;
}

.deal-content {
    padding: var(--spacing-sm);
}

.deal-type {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 8px;
}

.deal-type svg {
    flex-shrink: 0;
    stroke: var(--primary-color);
}

.deal-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: var(--spacing-xs);
    color: var(--text-color);
}

.deal-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    color: #666;
    margin-bottom: var(--spacing-sm);
}

.deal-location svg {
    flex-shrink: 0;
    stroke: #999;
}

.deal-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--border-color);
}

.deal-duration {
    font-size: 0.9rem;
    color: #666;
}

.deal-price {
    text-align: right;
}

.deal-price-label {
    font-size: 0.85rem;
    color: #666;
}

.deal-price-amount {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.deal-footer {
    padding: 0 var(--spacing-sm) var(--spacing-sm);
}

.deal-cta {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.deal-cta:hover {
    background-color: var(--primary-hover);
}

.deal-provider {
    font-size: 0.8rem;
    color: #999;
    margin-top: 6px;
    text-align: center;
}

/* Skeleton Loading */
.skeleton {
    animation: skeleton-loading 1.5s infinite;
}

.skeleton-image {
    width: 100%;
    height: 200px;
    background-color: var(--secondary-bg);
}

.skeleton-content {
    padding: var(--spacing-sm);
    height: 180px;
    background-color: var(--secondary-bg);
}

@keyframes skeleton-loading {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* ========================================
   NEWSLETTER SECTION
   ======================================== */

.newsletter-section {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: var(--spacing-xl) 0;
}

.newsletter-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-lg);
}

.newsletter-text h2 {
    font-size: 2rem;
    margin-bottom: var(--spacing-xs);
}

.newsletter-text p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: var(--spacing-sm);
    min-width: 400px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
}

.newsletter-form input:focus {
    outline: 2px solid white;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background-color: #2a2a2a;
    color: #e0e0e0;
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-title {
    color: white;
    font-size: 1.2rem;
    margin-bottom: var(--spacing-sm);
}

.footer-column p {
    line-height: 1.8;
    color: #b0b0b0;
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.social-links svg {
    width: 20px;
    height: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #b0b0b0;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    margin-bottom: 8px;
    color: #b0b0b0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-contact svg {
    flex-shrink: 0;
    stroke: #999;
}

.partner-logos {
    text-align: center;
    padding: var(--spacing-lg) 0;
    border-top: 1px solid #444;
    border-bottom: 1px solid #444;
}

.partner-logos h4 {
    color: white;
    margin-bottom: var(--spacing-sm);
    font-size: 1rem;
}

.partners-wrapper {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.partner-logo {
    background-color: white;
    color: var(--text-color);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
}

.footer-bottom {
    margin-top: var(--spacing-lg);
    text-align: center;
}

.disclaimer {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: var(--spacing-sm);
    line-height: 1.6;
}

.copyright {
    font-size: 0.9rem;
    color: #666;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Desktop - 4 cards per row (default with auto-fill) */
@media (min-width: 1024px) {
    .deals-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Tablet - 2-3 cards per row */
@media (max-width: 1023px) and (min-width: 768px) {
    .deals-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .search-form {
        grid-template-columns: repeat(2, 1fr);
    }

    .btn-search {
        grid-column: 1 / -1;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-form {
        min-width: auto;
        width: 100%;
        max-width: 500px;
    }
}

/* Mobile - 1 card per row */
@media (max-width: 767px) {
    .deals-grid {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .search-form {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 1.5rem;
    }

    .carousel-btn-prev {
        left: -10px;
    }

    .carousel-btn-next {
        right: -10px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-form {
        flex-direction: column;
        min-width: auto;
        width: 100%;
    }

    .filters {
        justify-content: flex-start;
    }

    .filter-btn {
        font-size: 0.85rem;
        padding: 8px 16px;
    }
}

/* Touch device optimizations */
@media (hover: none) {
    .deal-card:hover {
        transform: none;
    }

    .deal-card:active {
        transform: scale(0.98);
    }
}
