/* Background image layer */
.location-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/Construction/LuxuryHouse.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: 0;
}

/* Dark overlay for better readability - Lighter to let image show through */
.location-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

/* Section positioning */
.section {
    position: relative;
    overflow: hidden;
}

/* Description container - 60px padding bottom */
.description-container {
    padding-bottom: 60px !important;
}

/* Location badge - Transparent version */
.location-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(43, 108, 176, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.location-badge i {
    font-size: 1rem;
    color: rgb(43, 108, 176);
}

/* Location description */
.location-description {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 600px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.text-highlight {
    color: rgb(43, 108, 176);
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Contact pills - Updated to uniform hover */
.contact-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.5rem 1.5rem;
    border-radius: 40px;
    color: white;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.contact-pill i {
    color: rgb(43, 108, 176);
}

.contact-pill:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

/* Map card styling - UNIFORM HOVER (NO BLUE) */
.map-card {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3) !important;
}

.map-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.5) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    background: rgba(255, 255, 255, 0.18) !important;
}

.map-card-header {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 1.2rem !important;
    transition: all 0.3s ease;
}

.map-card:hover .map-card-header {
    background: rgba(255, 255, 255, 0.15) !important;
    border-bottom-color: rgba(255, 255, 255, 0.2) !important;
}

.map-card-title {
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.map-card:hover .map-card-title {
    letter-spacing: 0.3px;
}

.map-icon {
    color: rgb(43, 108, 176) !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.map-card:hover .map-icon {
    color: rgb(63, 128, 196) !important;
}

.map-card-footer {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 1.2rem !important;
    transition: all 0.3s ease;
}

.map-card:hover .map-card-footer {
    background: rgba(255, 255, 255, 0.12) !important;
    border-top-color: rgba(255, 255, 255, 0.2) !important;
}

.map-body {
    background: transparent !important;
    padding: 0 !important;
}

/* Map container styling */
#map {
    border-radius: 0;
    height: 500px !important;
    width: 100%;
}

/* Directions button - Updated to uniform hover */
.directions-btn {
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    padding: 10px 30px !important;
    font-size: 1rem;
}

.directions-btn:hover {
    background: white !important;
    border-color: white !important;
    color: rgb(43, 108, 176) !important;
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

/* Home button styling - Transparent version */
.home-btn {
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 12px;
    padding: 12px 40px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.home-btn:hover {
    background: white !important;
    border-color: white !important;
    color: rgb(43, 108, 176) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 991px) {
    .description-container {
        padding-bottom: 50px !important;
    }
    .location-description {
        font-size: 1.1rem;
    }
    .map-card-title {
        font-size: 1rem;
    }
    #map {
        height: 450px !important;
    }
}

@media (max-width: 768px) {
    .location-background {
        background-attachment: scroll;
    }
    
    .description-container {
        padding-bottom: 40px !important;
    }
    
    #map {
        height: 400px !important;
    }
    
    .location-badge {
        padding: 0.5rem 1.5rem;
        font-size: 0.8rem;
    }
    
    .contact-pill {
        padding: 0.4rem 1.2rem;
        font-size: 0.8rem;
    }
    
    .map-card-title {
        font-size: 0.95rem;
    }
    
    .map-card-header {
        padding: 1rem !important;
    }
    
    .map-card-footer {
        padding: 1rem !important;
    }
}

@media (max-width: 576px) {
    .description-container {
        padding-bottom: 30px !important;
    }
    
    .location-description {
        font-size: 1rem;
    }
    
    .home-btn {
        padding: 10px 30px;
        font-size: 0.9rem;
    }
    
    .map-card-title {
        font-size: 0.85rem;
    }
    
    #map {
        height: 350px !important;
    }
    
    .directions-btn {
        padding: 8px 20px !important;
        font-size: 0.9rem;
    }
}

/* Animation */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.location-badge, .location-description, .contact-pill, .map-card {
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
}

.location-badge { animation-delay: 0.1s; }
.location-description { animation-delay: 0.2s; }
.contact-pill { animation-delay: 0.3s; }
.map-card { animation-delay: 0.4s; }