*, *::before, *::after { 
    box-sizing: border-box; 
}

html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Smooth Scroll Setup */
html.lenis, html.lenis body { height: auto; width: 100%; overflow-x: hidden; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

/* Page Layout - FIX: Removed overflow: hidden */
/* Update this class */
.explore-wrapper { 
    padding: 100px 20px 60px; 
    max-width: 1000px; 
    margin: 0 auto; 
    width: 100%; /* Add this */
}
.explore-header { text-align: center; margin-bottom: 80px; }
.header-main { font-size: 3.5rem; color: var(--primary); margin-bottom: 15px; }
.header-sub { color: #666; font-size: 1.2rem; }

/* Update this class */
.spot-card {
    display: flex; align-items: center; gap: 40px; margin-bottom: 80px;
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-radius: 20px; padding: 30px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.04); border: 1px solid var(--border-color);
    will-change: transform;
    max-width: 100%; /* Add this */
    width: 100%;     /* Add this */
}
.spot-card:nth-child(even) { flex-direction: row-reverse; }

/* Image Container */
.spot-img-container { flex: 1; height: 400px; border-radius: 16px; overflow: hidden; position: relative; }
.spot-img-inner {
    position: absolute; top: -10%; left: 0; width: 100%; height: 120%; 
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center;
    will-change: transform;
}
.spot-img-inner i { font-size: 3rem; color: rgba(255,255,255,0.8); text-shadow: 0 5px 15px rgba(0,0,0,0.3); }

/* Info Section */
.spot-info { flex: 1; padding: 20px; }
.spot-info h2 { font-size: 2.5rem; color: var(--primary-dark); margin-bottom: 15px; }
.spot-info p { color: #555; font-size: 1.05rem; line-height: 1.8; margin-bottom: 25px; }

/* --- MAGNETIC MAP LINK & ANIMATED ICON --- */
.action-link {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px; border: 1px solid var(--border-color);
    border-radius: 30px; font-weight: 700; text-transform: uppercase; font-size: 0.85rem;
    color: var(--text-dark); text-decoration: none; transition: all 0.3s ease;
}
.action-link i { color: var(--gold-accent); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }

@media (hover: hover) {
    .action-link:hover { border-color: var(--primary); color: var(--primary); box-shadow: 0 5px 15px rgba(197, 90, 55, 0.1); }
    .action-link:hover i { transform: translateY(-4px) scale(1.1); color: var(--primary); }
}

/* --- AMBIENT BACKGROUND --- */
.ambient-bg { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; z-index: -1; overflow: hidden; pointer-events: none; }
.ambient-orb { position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.15; will-change: transform; }
.orb-1 { width: 600px; height: 600px; background: var(--gold-accent); top: -10%; left: -10%; animation: floatOrb 20s ease-in-out infinite alternate; }
.orb-2 { width: 500px; height: 500px; background: #E8C372; bottom: -20%; right: -10%; animation: floatOrb 25s ease-in-out infinite alternate-reverse; }
.mouse-orb { width: 400px; height: 400px; background: rgba(205, 133, 63, 0.4); top: -200px; left: -200px; }
@keyframes floatOrb { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(100px, 50px) scale(1.1); } }

/* --- FILTER BUTTONS --- */
.explore-filters { display: flex; justify-content: center; gap: 15px; margin-bottom: 60px; flex-wrap: wrap; }
.filter-btn {
    background: transparent; border: 1px solid var(--gold-accent); color: var(--gold-darker);
    padding: 10px 25px; border-radius: 50px; font-size: 0.95rem; font-family: 'Lato', sans-serif;
    cursor: pointer; transition: all 0.3s ease; font-weight: bold;
}
.filter-btn:hover { background: rgba(205, 133, 63, 0.1); }
.filter-btn.active { background: var(--gold-accent); color: white; box-shadow: 0 5px 15px rgba(205, 133, 63, 0.3); }

/* --- LUXURIOUS IMAGE ZOOM --- */
.premium-zoom { animation: slowBreath 15s ease-in-out infinite alternate; }

/* ========================================= */
/* --- RESPONSIVE & MOBILE UI POLISH ---     */
/* ========================================= */

@media (max-width: 1024px) {
    .spot-card, .spot-card:nth-child(even) { flex-direction: column; padding: 30px; gap: 30px; }
    .spot-img-container { 
        width: 100%; 
        /* FIX: Strict heights prevent iOS mobile collapse */
        height: 350px !important; 
        min-height: 350px !important; 
        display: block !important; 
    }
    .header-main { font-size: 3rem; }
}

@media (max-width: 768px) {
    .header-main { font-size: 2.5rem; }
    .spot-img-container { height: 280px !important; min-height: 280px !important; }
    
    .ambient-orb { opacity: 0.15; }
    .orb-1 { width: 300px; height: 300px; }
    .orb-2 { width: 250px; height: 250px; }

    /* REPLACE THE OLD .explore-filters WITH THIS */
    .explore-filters {
        justify-content: center; 
        flex-wrap: wrap; 
        margin: 0 0 40px 0; 
        padding: 0;
        width: 100%;
    }
    
    .filter-btn { 
        white-space: normal; 
        flex-shrink: 0; 
    }
}

@media (max-width: 400px) {
    .header-main, .page-header h1 { 
        font-size: 2.2rem; /* Scales down slightly to prevent text clipping */
    }
}