﻿/* =========================
   Business Directory Visual Update
========================= */

/* Hero Section to match Register Page */
.directory-hero {
    background: radial-gradient(circle at 50% 50%, #004080 0%, #002d5a 100%);
    padding: 60px 0;
    border-bottom: 5px solid #d4af37;
    color: white;
    margin-bottom: 40px;
}

.hero-title {
    font-weight: 800;
    text-transform: uppercase;
}
.hero-subtitle {
    font-weight: 700;
    color: #d4af37; /* Gold color for the secondary heading */
    font-size: 1.5rem;
    margin-top: 20px;
}

.hero-description {
    max-width: 800px;
    margin: 10px auto;
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85); /* Slightly softer white */
}

.hero-divider {
    width: 60px;
    border-top: 2px solid rgba(212, 175, 55, 0.5); /* Subtle gold line */
    margin: 20px auto;
}
.btn-registry-outline {
    border: 2px solid #d4af37;
    color: #d4af37;
    font-weight: 700;
    text-transform: uppercase;
    padding: 10px 25px;
    background: transparent;
    transition: 0.3s;
}

    .btn-registry-outline:hover {
        background: #d4af37;
        color: white;
    }

/* The "Equal Height" Fix */
.directory-layout-wrapper {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.directory-layout {
    display: flex;
    height: 700px; /* This locks both the map and the list to the same height */
}

.map-container {
    flex: 1.2;
    height: 100%;
    position: relative;
    border-right: 1px solid #eee;
}

#businessMap {
    height: 100%;
    width: 100%;
}

.directory-list {
    flex: 1;
    height: 100%; /* Matches the layout height */
    overflow-y: auto;
    padding: 20px;
    background: #fafafa;
}

/* Card Styling - Compact but keeps your structure */
.directory-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 15px;
    background-color: #fff;
    border-radius: 10px;
    border: 1px solid #eee;
    transition: 0.2s ease;
    cursor: pointer;
}

    .directory-card:hover {
        border-color: #d4af37;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        transform: translateX(5px);
    }

.directory-img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 8px;
    margin-right: 15px;
    background: #fdfdfd;
}

.directory-content {
    flex: 1;
}

.directory-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #004080;
    margin: 0 0 5px 0;
}

.directory-info-line {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 2px;
}

.info-line {
    margin: 0 5px;
    color: #ccc;
}

/* Custom Scrollbar for the list side */
#style-scroll::-webkit-scrollbar {
    width: 6px;
}

#style-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#style-scroll::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

    #style-scroll::-webkit-scrollbar-thumb:hover {
        background: #d4af37;
    }

/* Responsive */
@media (max-width: 991px) {
    .directory-layout {
        flex-direction: column;
        height: auto;
    }

    .map-container {
        height: 400px;
    }

    .directory-list {
        height: 500px;
    }
}
/*MAP*/
.leaflet-control-attribution {
    font-size: 10px;
    opacity: 0.5;
}