/* --- 1. CORE VARIABLES & BASE --- */
:root {
    --deep-blue: #1D3557;
    --sunset-warm: #E76F51;
    --sand-bg: #F8F9F5;
    --wave-grad: linear-gradient(to right, #A8DADC 0%, #457B9D 20%, #1D3557 50%, #457B9D 80%, #A8DADC 100%);
}

body {
    font-family: 'Lato', sans-serif;
    background: radial-gradient(circle at top left, #FDFCF0 0%, var(--sand-bg) 100%);
    color: var(--deep-blue);
}

h1, h2, h3, h4, h5, .navbar-brand, .Oswald {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: high-quality;
    -ms-interpolation-mode: bicubic;
}

/* --- 2. LAYOUT COMPONENTS --- */
.navbar { 
    background: rgba(29, 53, 87, 0.95) !important; 
    backdrop-filter: blur(5px); 
}

.hero {
    height: 60vh;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), 
                url('https://images.unsplash.com/photo-1501594907352-04cda38ebc29?auto=format&fit=crop&w=1600&q=80') center/cover;
    display: flex; 
    justify-content: center; 
    align-items: center;
    clip-path: ellipse(150% 100% at 50% 0%);
}

.accent-hr { 
    border: none; 
    border-top: 3px solid var(--sunset-warm); 
    width: 60px; 
    opacity: 1; 
}

/* --- 3. CARDS & GALLERY --- */
.card {
    border-radius: 20px; 
    border: 1px solid rgba(29, 53, 87, 0.05);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden; 
    background: white; 
    position: relative;
}

.card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 30px 60px rgba(29, 53, 87, 0.1) !important; 
}

.position-relative.overflow-hidden, 
.card-img-top { 
    border-radius: 20px 20px 0 0; 
}

.card-img-top {
    height: 250px; 
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.card:hover .card-img-top { transform: scale(1.1); }

/* --- 4. BUTTONS & INTERACTION --- */
button, .btn, .nav-link, select, .like-container { cursor: pointer !important; }


.btn-explore-red {
    border: 2px solid #dc3545 !important; 
    color: #dc3545 !important;
    font-weight: bold; 
    transition: 0.3s;
}
.btn-explore-red:hover { 
    background: #dc3545 !important; 
    color: white !important; 
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4); 
}


.btn-dedicated-blue { 
    background: #007bff; 
    color: white; 
    border: none; 
    transition: 0.3s; 
}

.btn-dedicated-blue:hover {
    background-color: #007bff !important; 
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
    filter: brightness(1) !important;
    color: white !important;
    transform: translateY(-1px);
}

.btn-dedicated-blue:active {
    background-color: #007bff !important;
    transform: translateY(0);
}

/* Nav Links */
.nav-custom-link {
    font-family: 'Oswald', sans-serif; 
    text-transform: uppercase; 
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.6) !important; 
    text-decoration: none;
    padding: 0.5rem 1rem; 
    transition: 0.3s;
}
.nav-custom-link:hover { 
    color: #00d4ff !important; 
    text-shadow: 0 0 10px #00d4ff; 
    transform: translateY(-2px); 
}

/* Like Heart */
.like-heart { 
    display: inline-block; 
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    pointer-events: none; 
}
.like-container:active .like-heart { transform: scale(1.5); }

/* --- 5. WAVE TRANSITION --- */
.wave-transition {
    position: fixed; top: 0; left: -200%; width: 150%; height: 100vh;
    background: var(--wave-grad); 
    z-index: 10000;
    display: flex; 
    justify-content: center; 
    align-items: center;
    transition: left 1.4s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 40px 0 100px rgba(0,0,0,0.6); 
    pointer-events: none;
}

.wave-transition::after, 
.wave-transition::before {
    content: ""; position: absolute; top: 0; width: 150px; height: 100%; background-size: 100% 100%;
}
.wave-transition::after { 
    right: -145px; 
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 1000" preserveAspectRatio="none"><path d="M0 0 C 50 100 80 300 0 500 C 80 700 50 900 0 1000 L 0 1000 L 0 0 Z" fill="%23A8DADC"/></svg>'); 
}
.wave-transition::before { 
    left: -145px; 
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 1000" preserveAspectRatio="none"><path d="M100 0 C 50 100 20 300 100 500 C 20 700 50 900 100 1000 L 100 1000 L 100 0 Z" fill="%23A8DADC"/></svg>'); 
}

.wave-transition.active { left: 0 !important; pointer-events: all; }

.transition-content { 
    opacity: 0; 
    transform: translateY(20px); 
    transition: 0.5s; 
    pointer-events: none; 
    z-index: 10001; 
}
.wave-transition.active .transition-content { 
    opacity: 1; 
    transform: translateY(0); 
    transition-delay: 0.4s; 
}

/* --- 6. DEDICATED VIEW & MODALS --- */
#main-slide-container { 
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease; 
}
#info-section { transition: background-color 0.8s ease; }


.nav-arrow {
    position: fixed; top: 50%; transform: translateY(-50%);
    z-index: 100; color: white;
    background: rgba(29, 53, 87, 0.4) !important; 
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex; align-items: center; justify-content: center;
    width: 50px; height: 80px; padding: 0;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.left-arrow { left: 0; border-radius: 0 15px 15px 0; }
.right-arrow { right: 0; border-radius: 15px 0 0 15px; }

.nav-arrow:hover {
    background: var(--deep-blue) !important;
    width: 60px;
    color: #00d4ff !important;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.nav-arrow svg { width: 24px; height: auto; display: block; }

/* Modals */
.modal-backdrop { 
    background-color: rgba(29, 53, 87, 0.4) !important; 
    backdrop-filter: blur(4px); 
}
.modal-content { 
    border-radius: 25px; 
    border: none; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.2); 
}

/* --- RESPONSIVE DEDICATED VIEW FIXES --- */


.min-vh-100 {
    min-height: 100vh;
}


.dedicated-image {
    width: 100%;
    height: 100%;
    min-height: 400px; 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


@media (max-width: 991px) {
    body {
        overflow-y: auto !important; 
    }
    
    .dedicated-image {
        height: 50vh; 
    }
    
    #info-section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    .nav-arrow {
        width: 40px;
        height: 60px;
    }
}


@media (max-height: 700px) and (min-width: 992px) {
    #info-section {
        overflow-y: auto;
        max-height: 100vh;
    }
    #spot-description {
        font-size: 1rem;
    }
    #mini-map-container {
        height: 120px !important;
    }
}

/* Custom Like Styling */
.like-heart.text-danger {
    color: #e63946 !important; 
    opacity: 1 !important;
}

.like-heart.text-muted {
    color: #6c757d !important;
    opacity: 0.6;
}


.like-container[style*="pointer-events: none"] {
    cursor: default !important;
}