:root {
    --primary-purple: #5e4b8d;
    --text-gray: #555;
    --border-light: #ddd;
    --bg-light: #f9f9f9;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 40px;
    background-color: #fff;
}

.locator-section {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

h1 {
    color: var(--primary-purple);
    font-size: 2rem;
    margin-bottom: 30px;
}

/* Search Bar Styling */
.search-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto 20px;
}

.search-container input {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid var(--border-light);
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
}

/* City Chips Styling */
.city-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.chip {
    padding: 8px 20px;
    border: 1px solid var(--primary-purple);
    border-radius: 8px;
    background: white;
    color: var(--primary-purple);
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
}

.chip:hover {
    background: var(--primary-purple);
    color: white;
}

/* Content Layout (Map + List) */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    height: 500px; /* Fixed height for the scrollable effect */
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background-color: #e5e5f7;
    background-image: radial-gradient(#444cf7 0.5px, transparent 0.5px), radial-gradient(#444cf7 0.5px, #e5e5f7 0.5px);
    background-size: 20px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Scrollable Branch List */
.branch-list {
    text-align: left;
    overflow-y: auto;
    padding-right: 10px;
}

/* Custom Scrollbar */
.branch-list::-webkit-scrollbar {
    width: 8px;
}
.branch-list::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 10px;
}

.branch-card {
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    transition: box-shadow 0.3s;
}

.branch-card h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.1rem;
}

.branch-card p {
    margin: 0;
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
        height: auto;
    }
    .map-container {
        height: 300px;
    }
}
/* Container for the iframe */
.map-container {
    width: 100%;
    height: 100%;
    min-height: 300px; /* Ensures map has height even if empty */
    border-radius: 8px;
    overflow: hidden; /* Clips iframe corners to match border-radius */
    border: 1px solid var(--border-light);
}

/* Force the iframe to fill the container */
.map-container iframe {
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

/* Responsive Logic */
@media (max-width: 850px) {
    .content-grid {
        grid-template-columns: 1fr;
        height: auto; 
    }

    .map-container {
        height: 350px; /* Fixed height for mobile view */
        margin-bottom: 20px;
    }
}