/* Locations Page Styles */

/* --- Map Section --- */
.map-section {
    position: relative;
    z-index: 10;
}

.map-container {
    border: 5px solid white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

/* Overlay Info on Map */
.map-overlay-info {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 500; /* Above Leaflet controls */
    max-width: 300px;
    animation: fadeInRight 0.5s ease-out;
}

.map-overlay-info .card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    border-radius: 15px;
}

/* --- Controls Section --- */
.locations-list-section {
    position: relative;
}

.search-location-box .form-control {
    border: none;
    box-shadow: var(--shadow-sm);
    padding-left: 3rem !important; /* Space for icon */
    height: 50px;
}

.search-location-box .form-control:focus {
    box-shadow: var(--shadow-md);
}

/* --- Location Card View --- */
.location-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    height: 100%;
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.loc-img-wrapper {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.loc-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.location-card:hover .loc-img-wrapper img {
    transform: scale(1.1);
}

.loc-badges {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
}

.loc-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.loc-title {
    font-weight: 700;
    color: var(--dark-brown);
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.loc-address {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 1rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden; 
}

.loc-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

.loc-facilities {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: auto; /* Push to bottom of content area */
}

/* --- Location List View --- */
.location-list-item {
    background: var(--white);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    border: 1px solid rgba(0,0,0,0.03);
}

.location-list-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

/* --- Animations --- */
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .map-container {
        border-width: 3px;
        border-radius: 15px;
    }
    
    .map-overlay-info {
        display: none; /* Hide overlay on mobile to show map controls clearly */
    }
    
    .location-list-item {
        padding: 1rem;
    }
    
    .loc-img-wrapper {
        height: 150px;
    }
}
