/* ===================================
   THEMATIC SECTIONS - LOCATION-BASED STYLING
   =================================== */

/* Base Thematic Section */
.thematic-section {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
}

.theme-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.thematic-section .container {
    position: relative;
    z-index: 2;
}

/* ===================================
   CARIBBEAN PARADISE - TROPICAL VIBES
   =================================== */

.caribbean-paradise {
    background:
        linear-gradient(135deg, rgba(0, 206, 209, 0.50) 0%, rgba(32, 178, 170, 0.55) 50%, rgba(72, 209, 204, 0.50) 100%),
        url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?w=1920&q=80');
    background-size: 400% 400%, cover;
    background-position: 0 50%, center;
    animation: tropicalGradient 15s ease infinite;
    color: white;
}

@keyframes tropicalGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Animated Palm Trees */
.palm-trees {
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 100%;
    height: 200px;
    background:
        radial-gradient(ellipse at 10% 100%, rgba(34, 139, 34, 0.3) 0%, transparent 40%),
        radial-gradient(ellipse at 25% 100%, rgba(46, 125, 50, 0.3) 0%, transparent 40%),
        radial-gradient(ellipse at 75% 100%, rgba(34, 139, 34, 0.3) 0%, transparent 40%),
        radial-gradient(ellipse at 90% 100%, rgba(46, 125, 50, 0.3) 0%, transparent 40%);
    animation: palmSway 8s ease-in-out infinite;
    opacity: 0.4;
}

@keyframes palmSway {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    50% { transform: translateX(20px) rotate(2deg); }
}

/* Animated Waves */
.waves {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        repeating-linear-gradient(
            90deg,
            transparent 0px,
            rgba(255, 255, 255, 0.05) 50px,
            transparent 100px
        );
    animation: waveMove 20s linear infinite;
}

@keyframes waveMove {
    0% { background-position: 0 0; }
    100% { background-position: 200px 0; }
}

.caribbean-label {
    background: rgba(255, 255, 255, 0.2) !important;
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
    color: white !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 206, 209, 0.3) !important;
}

.caribbean-paradise .section-title,
.caribbean-paradise .section-description {
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.caribbean-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.destination-card-thematic {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.destination-card-thematic:hover {
    transform: translateY(-15px) scale(1.05);
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.destination-card-thematic .card-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.destination-card-thematic h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
    font-family: var(--font-display);
}

.destination-card-thematic p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.card-features {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.feature-tag {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    color: white;
    font-family: var(--font-heading);
}

.theme-link {
    display: inline-block;
    color: white;
    font-weight: 600;
    font-family: var(--font-heading);
    padding: 0.75rem 2rem;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.theme-link:hover {
    background: white;
    color: #00CED1;
    transform: scale(1.05);
}

/* ===================================
   EUROPEAN ELEGANCE - CLASSIC SOPHISTICATION
   =================================== */

.european-elegance {
    background:
        linear-gradient(135deg, rgba(44, 24, 16, 0.60) 0%, rgba(74, 44, 26, 0.65) 50%, rgba(107, 66, 38, 0.58) 100%),
        url('https://images.unsplash.com/photo-1502602898657-3e91760cbb34?w=1920&q=80');
    background-size: cover;
    background-position: center;
    color: #F5F5DC;
}

/* Vintage Architecture Pattern */
.architecture-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 50px,
            rgba(255, 215, 0, 0.03) 50px,
            rgba(255, 215, 0, 0.03) 51px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 50px,
            rgba(255, 215, 0, 0.03) 50px,
            rgba(255, 215, 0, 0.03) 51px
        );
    opacity: 0.5;
}

.vintage-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(184, 134, 11, 0.1) 0%, transparent 40%);
    animation: vintageShimmer 10s ease-in-out infinite;
}

@keyframes vintageShimmer {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.european-label {
    background: rgba(255, 215, 0, 0.2) !important;
    border: 2px solid #FFD700 !important;
    color: #FFD700 !important;
    box-shadow: 0 8px 32px rgba(255, 215, 0, 0.3) !important;
}

.european-elegance .section-title {
    color: #FFD700;
    font-style: italic;
}

.european-elegance .section-description {
    color: #F5F5DC;
}

.european-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.europe-card {
    background: rgba(255, 215, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.europe-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
    transition: left 0.6s ease;
}

.europe-card:hover::before {
    left: 100%;
}

.europe-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 15px 50px rgba(255, 215, 0, 0.3);
}

.europe-card.large {
    grid-row: span 2;
    padding: 3rem;
    background:
        linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(184, 134, 11, 0.15)),
        rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 40%, rgba(255, 215, 0, 0.1) 0%, transparent 60%);
    z-index: 0;
}

.card-content {
    position: relative;
    z-index: 1;
}

.europe-card h3,
.europe-card h4 {
    color: #FFD700;
    margin-bottom: 1rem;
    font-family: var(--font-display);
    font-size: 2.5rem;
}

.europe-card h4 {
    font-size: 1.5rem;
}

.location-description {
    color: #F5F5DC;
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.experience-list {
    list-style: none;
    margin-bottom: 2rem;
}

.experience-list li {
    color: rgba(245, 245, 220, 0.9);
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    font-family: var(--font-heading);
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.experience-list li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: #FFD700;
    font-size: 1.25rem;
}

.experience-list li:last-child {
    border-bottom: none;
}

.btn-outline-light {
    background: transparent;
    border: 2px solid #FFD700;
    color: #FFD700;
    padding: 0.875rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: #FFD700;
    color: #2C1810;
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}

.europe-mini-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.europe-mini-grid .europe-card {
    padding: 1.5rem;
}

.europe-mini-grid p {
    color: rgba(245, 245, 220, 0.8);
    font-size: 0.95rem;
    margin: 0;
}

/* ===================================
   ADVENTURE AWAITS - BOLD & RUGGED
   =================================== */

.adventure-awaits {
    background:
        linear-gradient(135deg, rgba(26, 26, 26, 0.55) 0%, rgba(44, 36, 22, 0.60) 50%, rgba(61, 48, 32, 0.55) 100%),
        url('https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?w=1920&q=80');
    background-size: cover;
    background-position: center;
    color: white;
}

/* Mountain Silhouette */
.mountain-silhouette {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background:
        linear-gradient(to top right, transparent 49%, #0A0A0A 50%),
        linear-gradient(to top left, transparent 49%, #0A0A0A 50%);
    background-size: 30% 100%, 30% 100%;
    background-position: left bottom, 20% bottom;
    background-repeat: no-repeat;
    opacity: 0.4;
}

.adventure-texture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.02) 2px,
            rgba(255, 255, 255, 0.02) 4px
        );
}

.adventure-label {
    background: rgba(255, 87, 34, 0.3) !important;
    border: 2px solid #FF5722 !important;
    color: #FF5722 !important;
    box-shadow: 0 8px 32px rgba(255, 87, 34, 0.3) !important;
}

.adventure-awaits .section-title {
    color: #FF5722;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.adventure-awaits .section-description {
    color: rgba(255, 255, 255, 0.9);
}

.adventure-showcase {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.adventure-card {
    background: rgba(255, 87, 34, 0.1);
    border: 3px solid rgba(255, 87, 34, 0.3);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.adventure-card:hover {
    transform: scale(1.03);
    border-color: #FF5722;
    box-shadow: 0 20px 60px rgba(255, 87, 34, 0.4);
}

.adventure-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: #FF5722;
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-weight: 600;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    z-index: 3;
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.5);
}

.adventure-image {
    height: 250px;
    background: linear-gradient(135deg, rgba(255, 87, 34, 0.3), rgba(0, 0, 0, 0.5)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 400"><rect fill="%233D3020" width="800" height="400"/><path d="M0,300 Q200,200 400,280 T800,250 L800,400 L0,400 Z" fill="%231A1A1A" opacity="0.5"/></svg>');
    background-size: cover;
    background-position: center;
}

.adventure-content {
    padding: 2.5rem;
}

.adventure-content h3 {
    color: #FF5722;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-display);
}

.location-tag {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    display: block;
    font-family: var(--font-heading);
}

.adventure-content p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.adventure-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 87, 34, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(255, 87, 34, 0.2);
}

.adventure-stats .stat {
    text-align: center;
}

.adventure-stats strong {
    display: block;
    color: #FF5722;
    font-size: 1.5rem;
    font-family: var(--font-display);
    margin-bottom: 0.25rem;
}

.adventure-stats span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: var(--font-heading);
}

.adventure-grid-mini {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.mini-adventure-card {
    background: rgba(255, 87, 34, 0.1);
    border: 2px solid rgba(255, 87, 34, 0.3);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.mini-adventure-card:hover {
    background: rgba(255, 87, 34, 0.2);
    border-color: #FF5722;
    transform: translateX(10px);
}

.mini-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.mini-adventure-card h4 {
    color: #FF5722;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.mini-adventure-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin: 0;
}

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

/* Large Laptop (1200px-1440px) */
@media (max-width: 1440px) {
    .caribbean-cards {
        gap: 1.5rem;
    }

    .european-grid {
        gap: 1.5rem;
    }

    .adventure-showcase {
        gap: 1.5rem;
    }
}

/* Laptop (1024px-1200px) */
@media (max-width: 1200px) {
    .thematic-section {
        padding: 5rem 0;
    }

    .destination-card-thematic {
        padding: 2rem;
    }

    .destination-card-thematic h3 {
        font-size: 1.75rem;
    }

    .europe-card h3 {
        font-size: 2rem;
    }

    .europe-card.large {
        padding: 2.5rem;
    }

    .adventure-content h3 {
        font-size: 1.75rem;
    }
}

@media (max-width: 1024px) {
    .european-grid {
        grid-template-columns: 1fr;
    }

    .adventure-showcase {
        grid-template-columns: 1fr;
    }

    .europe-card.large {
        grid-row: span 1;
    }

    .adventure-card.featured {
        display: flex;
        flex-direction: column;
    }
}

/* Tablet (768px-1024px) */
@media (max-width: 900px) {
    .thematic-section {
        padding: 4rem 0;
    }

    .caribbean-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .destination-card-thematic {
        padding: 1.75rem;
    }

    .destination-card-thematic .card-icon {
        font-size: 3.5rem;
    }

    .destination-card-thematic h3 {
        font-size: 1.5rem;
    }

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

    .adventure-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .adventure-grid-mini {
        grid-template-columns: repeat(3, 1fr);
    }

    .mini-adventure-card {
        padding: 1.25rem;
    }
}

@media (max-width: 768px) {
    .thematic-section {
        padding: 3.5rem 0;
    }

    .caribbean-cards {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .destination-card-thematic {
        padding: 1.5rem;
    }

    .destination-card-thematic .card-icon {
        font-size: 3rem;
    }

    .destination-card-thematic h3 {
        font-size: 1.375rem;
    }

    .destination-card-thematic p {
        font-size: 0.95rem;
    }

    .card-features {
        gap: 0.5rem;
    }

    .feature-tag {
        font-size: 0.8rem;
        padding: 0.4rem 0.75rem;
    }

    .european-grid {
        gap: 1.25rem;
    }

    .europe-card {
        padding: 1.25rem;
    }

    .europe-card.large {
        padding: 1.5rem;
    }

    .europe-card h3 {
        font-size: 1.75rem;
    }

    .europe-card h4 {
        font-size: 1.25rem;
    }

    .europe-mini-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .location-description {
        font-size: 1rem;
    }

    .experience-list li {
        padding: 0.5rem 0;
        padding-left: 1.5rem;
        font-size: 0.9rem;
    }

    .adventure-showcase {
        gap: 1.25rem;
    }

    .adventure-card {
        padding: 0;
    }

    .adventure-image {
        height: 200px;
    }

    .adventure-content {
        padding: 1.5rem;
    }

    .adventure-content h3 {
        font-size: 1.5rem;
    }

    .adventure-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
        padding: 1rem;
    }

    .adventure-stats strong {
        font-size: 1.25rem;
    }

    .adventure-stats span {
        font-size: 0.75rem;
    }

    .adventure-grid-mini {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .mini-adventure-card {
        padding: 1.25rem;
        display: flex;
        align-items: center;
        text-align: left;
        gap: 1rem;
    }

    .mini-icon {
        font-size: 2.5rem;
        margin-bottom: 0;
    }

    .mini-adventure-card h4 {
        margin-bottom: 0.25rem;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    .thematic-section {
        padding: 3rem 0;
    }

    .destination-card-thematic {
        padding: 1.25rem;
    }

    .destination-card-thematic .card-icon {
        font-size: 2.5rem;
    }

    .destination-card-thematic h3 {
        font-size: 1.25rem;
    }

    .theme-link {
        font-size: 0.9rem;
        padding: 0.5rem 1.5rem;
    }

    .europe-card h3 {
        font-size: 1.5rem;
    }

    .btn-outline-light {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .adventure-badge {
        top: 1rem;
        right: 1rem;
        padding: 0.4rem 1rem;
        font-size: 0.75rem;
    }

    .adventure-content {
        padding: 1.25rem;
    }

    .adventure-content h3 {
        font-size: 1.375rem;
    }

    .adventure-stats {
        grid-template-columns: 1fr;
    }

    .mini-adventure-card {
        flex-direction: column;
        text-align: center;
    }

    .mini-icon {
        margin-bottom: 0.5rem;
    }
}

/* ===================================
   SPECIAL EFFECTS
   =================================== */

/* Parallax scroll effect for thematic sections */
@media (min-width: 1024px) {
    .thematic-section {
        transform-style: preserve-3d;
    }

    .theme-background {
        transform: translateZ(-10px) scale(1.1);
    }
}

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

/* Mobile performance - disable expensive animations */
@media (max-width: 768px) {
    /* Disable gradient animations */
    .caribbean-paradise,
    .european-elegance,
    .adventure-spirit {
        animation: none;
        background-size: 100% 100%;
    }
    
    /* Disable decorative animations */
    .palm-trees,
    .waves,
    .vintage-overlay,
    .compass-rose {
        animation: none;
    }
    
    /* Simplify floating icons */
    .destination-card-thematic .card-icon {
        animation: none;
    }
    
    /* Disable backdrop-filter on thematic labels */
    .caribbean-label,
    .european-label,
    .adventure-label {
        backdrop-filter: none;
    }
    
    /* Reduce parallax effects */
    .theme-background {
        transform: none;
    }
}

/* GPU acceleration for smooth scrolling */
.thematic-section {
    will-change: transform;
    transform: translateZ(0);
}
