/*
 * Global Styles
 * 
 * Shared across ALL pages: reset, header, footer, hero, hero-carousel,
 * section layout, base card styles, floating itinerary button.
 * 
 * CSS variables and typography defined in typography.css (loaded before this).
 */

/* ============================================
   RESET
   ============================================ */

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

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

/* ============================================
   HEADER
   ============================================ */

.header {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3a8a 100%);
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo i {
    margin-right: 10px;
    color: #FFD700;
}

nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2rem;
    margin: 0;
    margin-top: 0.50rem;
    padding: 0;
}

.nav-menu li {
    display: flex;
    align-items: center;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    line-height: 1;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #FFD700;
}

.verified-badge {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,215,0,0.5);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    gap: 8px;
}

.verified-badge:hover {
    background: rgba(255,215,0,0.2);
    border-color: #FFD700;
    transform: translateY(-2px);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    min-width: 40px;
    min-height: 40px;
}

/* ============================================
   HOMEPAGE HERO
   ============================================ */

.hero {
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding-top: 80px;
    position: relative;
    transition: background-image 0.7s ease-in-out;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: white;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.hero-content .search-note {
    color: #1e40af;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.certification-badges {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.cert-badge {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,215,0,0.5);
    color: white;
    padding: 0.8rem 1.2rem;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.cert-badge:hover {
    background: rgba(255,215,0,0.2);
    border-color: #FFD700;
    transform: translateY(-2px);
}

.cert-badge i {
    color: #FFD700;
    font-size: 1.1rem;
}

.search-box {
    background: rgba(255,255,255,0.95);
    padding: 2rem;
    border-radius: 15px;
    max-width: 800px;
    margin: 2rem auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.search-box h3 {
    color: #333;
    margin-bottom: 1rem;
    text-align: center;
}

.hero .search-form {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 1rem;
    align-items: end;
}

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

.hero .form-group label {
    color: #333;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.hero .form-group input,
.hero .form-group select {
    padding: 0.8rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
}

.hero .search-btn {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #333;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s;
}

.hero .search-btn:hover {
    transform: translateY(-2px);
}

.search-note {
    color: #1e40af;
    font-size: 0.9rem;
    text-align: center;
    margin-top: 1rem;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* ============================================
   HERO CAROUSEL (landing pages)
   ============================================ */

.hero-carousel {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    margin-top: 80px;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
}

.carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-content {
    color: white;
    max-width: 800px;
    padding: 0 60px;
    z-index: 2;
}

.carousel-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-content .tagline {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.carousel-actions {
    display: flex;
    gap: 1rem;
}

.cta-btn {
    padding: 14px 32px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-btn.primary {
    background: linear-gradient(135deg, #0066cc, #004999);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.4);
}

.cta-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 102, 204, 0.5);
}

.cta-btn.secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    backdrop-filter: blur(10px);
}

.cta-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10;
}

.carousel-arrow:hover {
    background: rgba(255, 255, 255, 0.5);
}

.carousel-arrow.prev { left: 20px; }
.carousel-arrow.next { right: 20px; }

.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dots .dot.active {
    background: white;
    width: 30px;
    border-radius: 6px;
}

/* ============================================
   SECTION LAYOUT
   ============================================ */

.section {
    padding: 4rem 0;
}

.section:nth-child(even) {
    background: #f8fafc;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
}

.section-subtitle {
    text-align: center;
    font-size: var(--font-lg);
    margin-bottom: var(--space-2xl);
    color: var(--color-text-secondary);
}

/* ============================================
   BASE CARD STYLES
   ============================================ */

.card-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.verified-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #10B981;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.cert-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255,255,255,0.95);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: var(--font-sm);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: auto;
    max-width: fit-content;
}

.cert-tag i {
    color: var(--color-brand-primary);
}

.card-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-size: var(--font-lg);
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0 0 8px 0;
}

.card-content p {
    font-size: var(--font-sm);
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-md);
}

.rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--font-sm);
    color: var(--color-text-secondary);
    margin-bottom: 12px;
}

.rating i {
    color: var(--color-accent-warning);
}

.stars {
    color: #FFD700;
}

.review-count {
    color: var(--color-text-tertiary);
}

.price {
    font-size: var(--font-base);
    font-weight: 600;
    color: var(--color-brand-primary);
    margin-bottom: 12px;
}

.card-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--color-brand-primary) 0%, var(--color-brand-secondary) 100%);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: var(--font-base);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
    text-align: center;
    display: block;
    text-decoration: none;
}

a .card-btn {
    text-decoration: none;
}

.card-btn:hover {
    background: linear-gradient(135deg, var(--color-brand-secondary) 0%, var(--color-brand-primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(3, 105, 161, 0.3);
    text-decoration: none;
}

.event-btn {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #333;
}

.resort-btn {
    background: linear-gradient(135deg, #2c5aa0, #1e3a8a);
}

.see-more-btn {
    display: inline-block;
    padding: 12px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.see-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

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

.footer {
    background: var(--color-brand-primary);
    color: white;
    padding: var(--space-2xl) 0 var(--space-md) 0;
}

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

.footer-section h3 {
    margin-bottom: var(--space-md);
    color: var(--color-brand-accent);
}

.footer-section p {
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-section a {
    color: #cbd5e1;
    text-decoration: none;
    display: block;
    margin-bottom: var(--space-sm);
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--color-brand-accent);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-xl);
    border-top: 1px solid #334155;
    color: #cbd5e1;
    font-size: 0.9rem;
}

/* ============================================
   FLOATING ITINERARY BUTTON
   ============================================ */

.itinerary-fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #333;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
}

.itinerary-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

/* ============================================
   MISC GLOBAL
   ============================================ */

.grecaptcha-badge {
    visibility: hidden !important;
}

/* ============================================
   GLOBAL RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-menu {
        display: none;
    }
    
    .nav-menu.mobile-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #1e3a8a;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    
    .verified-badge {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .hero .search-form {
        grid-template-columns: 1fr;
    }
    
    .search-box {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .certification-badges {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cert-badge {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 2rem;
    }

    .hero-carousel {
        height: 400px;
    }

    .carousel-content h1 {
        font-size: 2rem;
    }

    .carousel-content .tagline {
        font-size: 1rem;
    }

    .carousel-actions {
        flex-direction: column;
    }

    .cta-btn {
        width: 100%;
    }

    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .carousel-arrow.prev { left: 10px; }
    .carousel-arrow.next { right: 10px; }

    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-section {
        text-align: center;
    }

    .itinerary-fab {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        bottom: 15px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 0 1rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .search-box {
        padding: 1rem;
        margin: 0.5rem;
    }
    
    .hero .form-group input,
    .hero .form-group select {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
    
    .hero .search-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .card-content {
        padding: 1rem;
    }
    
    .card-content h3 {
        font-size: 1.1rem;
    }
    
    .price {
        font-size: 1.3rem;
    }
}
