/* --- GLOBAL STYLES --- */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    line-height: 1.6;
    background-color: #ffffff;
    font-family: 'Noto Sans', sans-serif;
    overflow-x: hidden;
}

/* --- REFINED FLOATING NAVBAR --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.8rem 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 2000;
}

.navbar-logo {
    width: 60px;
    height: 60px;
}

.navbar-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
    align-items: center;
}

.navbar-links a {
    text-decoration: none;
    color: #00346b;
    position: relative;
    font-weight: 500;
}

.navbar-links a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #00346b;
    bottom: -5px; 
    left: 0;
    transform: scaleX(0); 
    transform-origin: left;
    transition: transform 0.3s ease-out;
}

.navbar-links a:hover::after {
    transform: scaleX(1);
}

/* --- SEARCH --- */
.search-form {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 20px;
    background-color: #fff;
    overflow: hidden;
}

.search-form input[type="text"] {
    border: none;
    padding: 6px 15px;
    font-size: 0.85rem;
    outline: none;
    width: 120px;
    transition: width 0.3s ease-in-out;
}

.search-form input[type="text"]:focus {
    width: 140px;
}

.search-button {
    border: none;
    background-color: transparent;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 1rem;
    color: #555;
}

/* =========================================
   Language Switcher Styles
   ========================================= */

.language-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 1rem;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease, opacity 0.3s ease;
    font-size: 0.95rem;
}

/* Adds a tiny shadow to the flags so the white of the UK/RO flags doesn't blend into the background */
.lang-btn img {
    border-radius: 2px;
    box-shadow: 0 0 3px rgba(0,0,0,0.4);
}

.lang-btn:hover {
    color: #d4af37; /* Matches your gold accent color */
}

/* Highlights the language the user is currently looking at */
.lang-btn.active {
    color: #d4af37;
}
.lang-btn:not(.active) {
    opacity: 0.7;
}
.lang-btn:not(.active):hover {
    opacity: 1;
}

.lang-divider {
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.1rem;
    margin: 0 2px;
}

/* Mobile Specific */
.mobile-lang-switch {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 52, 107, 0.1); /* Subtle divider line */
}

.mobile-lang-switch .lang-btn {
    font-size: 1.1rem;
    color: #00346b; /* Dark blue text to match your mobile menu */
}

.mobile-lang-switch .lang-btn.active {
    color: #d4af37;
    font-weight: 700;
}

/* --- HERO SLIDER --- */

.hero-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
    z-index: 0; /* Keeps it behind the text (z-index: 1 & 2) */
}

.hero-slider {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: #000;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    z-index: 1;
    display: flex;
    align-items: center;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-slide img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 0 10%;
    max-width: 800px;
    color: white;
}

.hero-subtitle {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 1rem;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s ease 0.2s;
}

.hero-content h2 {
    font-size: clamp(2.2rem, 6vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 700;
    transform: translateY(40px);
    opacity: 0;
    transition: all 0.8s ease 0.4s;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 500px;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s ease 0.6s;
}

.hero-btn {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    background: #fff;
    color: #00346b;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.8s ease 0.8s, background 0.3s ease, color 0.3s ease;
}

.hero-slide.active .hero-subtitle,
.hero-slide.active h2,
.hero-slide.active p,
.hero-slide.active .hero-btn {
    transform: translateY(0);
    opacity: 1;
}

.hero-dots {
    position: absolute;
    bottom: 40px;
    right: 5%;
    z-index: 10;
    display: flex;
    gap: 10px;
}

.hero-dots .dot {
    width: 10px;
    height: 10px;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.hero-dots .dot.active {
    background: #fff;
    border-color: #fff;
    transform: scale(1.3);
}

#scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 40px;
    z-index: 10;
    width: 200px;
    transition: all 0.5s ease;
}

#scroll-indicator video {
    width: 120px;
    height: 120px;
}

/* --- PAGE CONTENT & FLIP CARDS --- */
.page-content {
    padding: 8rem 2rem 4rem;
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
    background-color: #ffffff;
}

.page-content h1 {
    color: #00346b;
    font-size: 2.5rem;
    margin-bottom: 3.5rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.link-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1366px;
    margin: 0 auto;
}

/* Flip Card Container */
.flip-card {
    background-color: transparent;
    height: 500px;
    perspective: 1000px;
    cursor: pointer;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.flip-card:hover {
    transform: translateY(-10px);
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.flip-card:hover .flip-card-inner {
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* Toggle Class for flipping via JS */
.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

/* Front & Back Faces - CRITICAL FIX HERE */
.flip-card-front, .flip-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 12px;
    overflow: hidden;
}

/* Front Style (Original video card styling) */
.video-link-card {
    position: relative;
    height: 100%; /* Ensure it fills the absolute container */
}

.video-link-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.overlay-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 2.5rem;
    background: linear-gradient(to top, rgba(0, 52, 107, 0.85) 0%, rgba(0, 0, 0, 0) 60%);
    color: white;
    transition: background 0.4s ease;
}

.overlay-text h2 {
    font-size: 1.8rem;
    margin: 0;
    font-weight: 600;
    transform: translateY(10px);
    transition: transform 0.4s ease;
}

.overlay-text::after {
    content: 'CLICK PENTRU LOCAȚII ↻';
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 12px;
    letter-spacing: 2px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.flip-card:hover .video-link-card video {
    transform: scale(1.05);
}

.flip-card:hover .overlay-text {
    background: linear-gradient(to top, rgba(0, 52, 107, 1) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.flip-card:hover .overlay-text h2,
.flip-card:hover .overlay-text::after {
    transform: translateY(0);
    opacity: 1;
}

/* Back Style (List of locations) */
.flip-card-back {
    background-color: #fcfcfc;
    color: #00346b;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    padding: 2rem;
    box-sizing: border-box;
    border: 2px solid #00346b;
    /* Ensure backface is hidden initially */
    backface-visibility: hidden;
    z-index: 1; /* Lower z-index initially */
}

.flip-card.flipped .flip-card-back {
     z-index: 5; /* Bring to front when flipped */
}

.flip-card-back h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    border-bottom: 2px solid #00346b;
    padding-bottom: 0.5rem;
}

/* Scrollable List */
.card-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-right: 8px; /* Room for scrollbar */
}

.card-list::-webkit-scrollbar {
    width: 6px;
}

.card-list::-webkit-scrollbar-thumb {
    background: #00346b;
    border-radius: 10px;
}

.card-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 12px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #eee;
    text-align: left;
    transition: all 0.3s ease;
}

.card-list-item:hover {
    border-color: #00346b;
    transform: translateX(3px);
}

.card-list-item span {
    font-weight: 600;
    font-size: 0.95rem;
    color: #333;
    max-width: 65%;
}

.list-details-btn {
    background-color: #00346b;
    color: #fff;
    padding: 6px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.list-details-btn:hover {
    background-color: #0288d1;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 52, 107, 0.2);
}

/* --- LOCATION SECTION --- */
.location-container {
    display: flex;
    max-width: 1432px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
    background-color: #ffffff;
    gap: 2.5rem;
    box-sizing: border-box;
}

#map-description {
    width: 31.4%;
    background-color: #fcfcfc;
    border: 1px solid #eee;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

#map-description-image {
    width: 2fr;
    height: 280px;
    object-fit: cover;
    border-bottom: 5px solid #00346b;
}

.map-info-content {
    padding: 2rem;
}

#map-description-image-title {
    color: #00346b;
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

#map-description-image-text {
    color: #666;
    font-size: 1rem;
    line-height: 1.7;
}

#map {
    flex: 1;
    height: 650px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 1;
    min-height: 350px; /* Safety min height */
}

/* --- FIXED MAP LEGEND & POPUPS --- */
.leaflet-control-layers, 
.info.legend {
    padding: 10px;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
    border-radius: 10px !important;
    border: none !important;
    color: #00346b;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 0.85rem;
}

.legend-item i.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 10px;
}

.dot.available { background-color: #2b82cb; }
.dot.unavailable { background-color: #2b82cb; filter: grayscale(70%) opacity(0.3); }

/* Leaflet Popup Styling - goes for the popups on the maps, it's in js not index so don't waste time looking */
.custom-popup h3 {
    margin: 0 0 8px;
    color: #00346b;
    font-size: 1.1rem;
    text-align: center;
}
.custom-popup p {
    text-align: center;
}

.popup-buttons {
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin-top: 15px;
    justify-content: center;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    
    /* FontAwesome Icon Styling */
    color: #5d59a0; 
    font-size: 1.2rem; 
}

/* Individual Button Colors */
.icon-btn.gm-bg { background: #33ccff; } /* Google Red */
.icon-btn.waze-bg { background: #33ccff; } /* Waze Blue */
.icon-btn.inquiry-bg { background: #33ccff; } /* Brand Navy */

.icon-btn:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 5px 12px rgba(0,0,0,0.2);
    color: #fff; /* Keeps the icon white on hover */
}

/* --- INQUIRY MODAL STYLES --- */
.modal {
    position: fixed;
    display: none;
    margin: auto;
    max-width: 1366px;
    inset: 0;
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    padding: 2rem;
    z-index: 4000;
}

.modal-content {
    margin: auto;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    width: 60%;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    
    /* NEW: Desktop Scrollability */
    max-height: 90vh; 
    overflow-y: auto; 
}
/* Custom scrollbar for the modal to make it look polished */
.modal-content::-webkit-scrollbar {
    width: 8px;
}
.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
.modal-content::-webkit-scrollbar-thumb {
    background: #00346b;
    border-radius: 10px;
}

/* NEW: Utility class to lock background scrolling */
body.no-scroll {
    overflow: hidden;
}
.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.form-group {
    width: 100%;
    margin-bottom: 1rem;
    text-align: left;
}

.form-row {
    display: flex;
    flex-direction: column;
    width: 70%;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #00346b;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
    box-sizing: border-box;
}
.email {
    max-width: 70%;
}

/* --- FOOTER & MOBILE NAV --- */
.site-footer {
    background-color: #002244;
    color: #ffffff;
    padding: 4rem 0 0;
}

.footer-content {
    max-width: 1366px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

/* Added this small block to handle your new ANPC link hover states smoothly */
.anpc-container img {
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.anpc-container img:hover {
    transform: scale(1.02);
    opacity: 0.9;
}
.anpc-container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: start;
}
.anpc-container a {
    max-width: 250px;
    gap: 1rem;
}

.footer-bottom {
    background: #001a33;
    text-align: center;
    padding: 1.5rem;
    margin-top: 3rem;
    font-size: 0.85rem;
    color: #888;
}

.hamburger-menu {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger-menu span {
    width: 30px;
    height: 3px;
    background: #00346b;
    border-radius: 3px;
}

.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: #f8f8f8;
    z-index: 3000;
    transform: translateY(-300%);
    transition: transform 0.9s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: auto;
}

.mobile-nav-overlay.active { transform: translateY(0); }

.close-btn { position: absolute; top: 20px; right: 30px; font-size: 3rem; border: none; background: none; color: #00346b; cursor: pointer; }

.mobile-links-list { list-style: none; padding: 0; }
.mobile-links-list li { margin: 1.5rem 0; }
.mobile-links-list a { text-decoration: none; font-size: 1.8rem; color: #00346b; font-weight: 700; }

.mobile-divider { width: 50px; border: 1px solid #00346b; margin: 2rem auto; }

/* --- MEDIA QUERIES --- */
@media (max-width: 1104px) {
    .desktop-link { display: none; }
    .hamburger-menu { display: flex; }
    .navbar { padding: 0.8rem 1rem; }
    
    .link-container { grid-template-columns: repeat(2, 1fr); }
    
    .location-container { 
        flex-direction: column; 
        padding: 0 1rem 4rem; 
        gap: 20px;
    }
    
    #map-description { 
        flex: none; 
        width: 100%; 
        order: 2; /* Sidebar goes below map on mobile */
    }
    
    #map { 
        height: 450px !important; /* Force visibility height */
        width: 100%;
        order: 1; /* Map stays on top */
    }
}

@media (max-width: 768px) {
    #scroll-indicator {
    position: absolute;
    bottom: 0px;
    left: 0px;
    z-index: 10;
    width: 200px;
    transition: all 0.5s ease;
}
    .link-container { grid-template-columns: 1fr; }
    .flip-card { height: 400px; } /* Slightly smaller on mobile to fit the screen */
    #map { height: 350px !important; }
    .page-content h1 { font-size: 1.8rem; }
    .hero-content { padding: 0 5%; }
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center; /* Centers the text on mobile */
    }
    
    .footer-bottom {
        flex-direction: column; /* Stacks the copyright and legal links */
        text-align: center;
        justify-content: center;
    }
    
    .legal-links {
        justify-content: center;
    }
    .anpc-container {
    justify-content: center;
    padding-left: 2rem;
}


}

/* --- CUSTOM SLIDER CAPTCHA & MODAL UPDATES --- */
.checkbox-group {
    display: flex;
    align-items: start;
    flex-wrap: nowrap;
}

.checkbox-group label {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    min-width: 200px;
    margin-bottom: 0;
    cursor: pointer;
    font-weight: 500;
    color: #555;
}
.form-check-input {
    max-width: 18px;
    margin-left: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.captcha-container {
    margin: auto;
    width: 66%;
    height: 45px;
    background-color: #f0f0f0;
    border-radius: 25px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
}

.captcha-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #e0e0e0;
    border-radius: 25px;
    transition: background-color 0.4s ease;
}

.captcha-track.success {
    background-color: #4CAF50; /* Green success color */
}

.captcha-text {
    position: absolute;
    width: 100%;
    text-align: center;
    line-height: 45px;
    color: #666;
    font-size: 0.95rem;
    pointer-events: none;
    user-select: none;
    font-weight: 600;
}

.captcha-track.success .captcha-text {
    color: white;
}

.captcha-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 41px;
    height: 41px;
    background-color: #00346b;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: grab;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    user-select: none;
    transition: background-color 0.3s ease;
    z-index: 2;
    font-size: 1.2rem;
}

.captcha-slider:active {
    cursor: grabbing;
}

.captcha-track.success .captcha-slider {
    background-color: #fff;
    color: #4CAF50;
    cursor: default;
    box-shadow: none;
}
/* --- MOBILE MODAL FULLSCREEN UPGRADES --- */
@media (max-width: 768px) {
    /* Remove padding around the background overlay */
    .modal {
        padding: 0;
        align-items: flex-start; /* Ensures content starts at the top */
    }
    
    /* Make the white box fill the entire screen and allow scrolling */
    .modal-content {
        width: 100vw;
        height: 100vh;
        max-width: 100%;
        border-radius: 30px;
        padding: 3rem 1.5rem 1.5rem; /* Extra padding on top so the close button doesn't overlap text */
        box-sizing: border-box;
        overflow-y: auto; 
    }

    /* Make the close button slightly larger and easier to tap */
    .close-modal {
        top: 15px;
        right: 20px;
        font-size: 2.5rem;
        z-index: 10;
    }

    /* Override the 70% and 66% desktop widths to fill the mobile screen */
    .form-row, 
    .captcha-container, 
    .email {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Scale down the CAPTCHA text so it fits perfectly on narrow screens */
    .captcha-text {
        font-size: 0.75rem; 
        letter-spacing: -0.2px; /* Tightens it up just a fraction */
    }

    /* Adjust checkbox layout for mobile so it doesn't break into awkward lines */
    .checkbox-group label {
        min-width: auto;
        font-size: 0.95rem;
    }
    
}

/* --- PREVENT MOBILE LANDSCAPE VIEW --- */

/* THIS IS THE MISSING ENGINE: It tells the phone how to rotate */
@keyframes flipPhone {
    0% { transform: translate(-50%, -50%) rotate(-90deg); }
    40% { transform: translate(-50%, -50%) rotate(0deg); }
    60% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(-90deg); }
}

/* --- MAP INTERACTION OVERLAY (MOBILE SCROLL-TRAP FIX) --- */
#map-interaction-overlay {
    position: absolute;
    inset: 0; /* Stretches to cover the entire map */
    background: rgba(255, 255, 255, 0.2); /* Very subtle white tint */
    backdrop-filter: blur(3px); /* Glass effect */
    z-index: 2000; /* Stays above all Leaflet controls */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.unlock-content {
    background: #00346b;
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    font-size: 0.95rem;
    pointer-events: none; /* Allows the click to pass through to the main overlay */
}

.unlock-content i {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

/* --- LIVE SEARCH DROPDOWN --- */
.search-dropdown {
    position: absolute;
    top: calc(100% + 15px); /* Positions it just below the search bar */
    right: 0;
    width: 280px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 52, 107, 0.15);
    border: 1px solid rgba(0, 52, 107, 0.1);
    overflow: hidden;
    display: none; /* Hidden by default */
    z-index: 3000;
    flex-direction: column;
}

.search-dropdown.active {
    display: flex;
    animation: fadeInDropdown 0.2s ease-out forwards;
}

@keyframes fadeInDropdown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.search-result-item {
    padding: 12px 15px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: #f0f7ff;
}

.search-result-title {
    color: #00346b;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 5px;
}

/* Category Badges inside the search results */
.search-result-badge {
    align-self: flex-start;
    font-size: 0.65rem;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-pagina { background: #eeeeee; color: #555555; }
.badge-office { background: #e1f5fe; color: #0288d1; }
.badge-rezidential { background: #e8f5e9; color: #2e7d32; }
.badge-comercial { background: #fff3e0; color: #f57c00; }

.search-no-results {
    padding: 15px;
    color: #777;
    font-size: 0.9rem;
    text-align: center;
    font-weight: 500;
}

/* Mobile search dropdown adjustment */
@media (max-width: 768px) {
    .search-dropdown {
        width: 240px;
        right: auto;
        left: 0;
    }
}