.custom-map-container {
    width: 100%;
    background-color: #242f3e; /* Matches dark theme while loading */
    position: relative; /* Ensure wrapper context */
    overflow: hidden; /* Keep UI inside */
    font-family: 'Inter', 'Linear Grotesk', sans-serif;
}

/* * Gradient Overlay Style */
.custom-map-gradient-overlay {
    position: absolute;
    background: linear-gradient(0.76deg, rgba(12, 4, 2, 0) 56.55%, #0B0402 87.18%, #000000 99.21%);
    mix-blend-mode: normal;
    pointer-events: none;
    z-index: 1; 
}

/* * SVG Connector Layer */
.custom-map-connector-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 15; 
}

.custom-map-connector-line {
    stroke: #EA5628; 
    stroke-width: 2px;
    stroke-dasharray: 5, 5;
}

/* * Static Info Window (Branch Card Wrapper) */
.custom-map-static-info {
    position: absolute;
    top: 111px;
    left: 146px;
    /* Wrapper Styles */
    display: flex;
    padding: 20px;
    align-items: center;
    gap: 10px;
    border: 4px solid #ea5628;
    width: 502px;
    background: transparent;
    box-sizing: border-box;
    z-index: 20;
    display: none; 
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Close Button */
.custom-map-close {
    display: none; /* Hidden per request */
    position: absolute;
    top: 30px; 
    right: 30px;
    background: rgba(255,255,255,0.2);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    text-align: center;
    line-height: 32px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 30;
    backdrop-filter: blur(4px);
}

.custom-map-close:hover {
    background: #EA5628;
    color: #fff;
}

/* --- Branch Card Styles --- */
.branch-card {
    display: flex;
    width: 100%; /* Fill wrapper */
    flex-direction: column;
    align-items: flex-start;
    border: 0.8px solid #27272a;
    position: relative;
    background-color: #18181b;
}

.branch-header {
    height: 234px;
    align-self: stretch;
    position: relative;
    overflow: hidden; 
}

.branch-image {
    width: 100%;
    height: 100%;
    opacity: 0.6;
    object-fit: cover;
    display: block;
}

.social-media-container {
    display: inline-flex;
    height: 52px;
    align-items: center;
    gap: 16px;
    position: absolute;
    top: 20px;
    bottom: auto;
    right: 20px;
    left: auto; 
}

.social-icon {
    display: flex;
    width: 48px;
    height: 48px;
    justify-content: center;
    align-items: center;
    background-color: #ea5628;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.social-icon:hover {
    background-color: #d14820;
}

.social-icon a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.branch-content {
    display: flex;
    padding: 32px;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    align-self: stretch;
    position: relative;
}

.branch-title {
    color: #fff;
    letter-spacing: -0.75px;
    font: 700 30px/36px "Inter", sans-serif;
    margin: 0;
    width: 100%;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
}

.contact-icon {
    display: flex;
    width: 48px;
    height: 48px;
    justify-content: center;
    align-items: center;
    background-color: #ea5628;
    flex-shrink: 0;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.contact-label {
    color: #99a1af;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    font: 700 14px/20px "Inter", sans-serif;
}

.contact-value {
    color: #fff;
    font: 400 16px/26px "Inter", sans-serif;
    text-decoration: none;
}

.hours-text, .phone-text {
    font-size: 18px;
    line-height: 28px;
}

.phone-text:hover {
    color: #ea5628;
}

.directions-button {
    display: flex;
    padding: 16.4px 0;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    color: #ea5628;
    letter-spacing: 0.7px;
    text-decoration: underline !important;
    font: 700 16px/20px "Inter", sans-serif;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.directions-button:hover {
    color: #d14820;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .custom-map-static-info {
        width: 90%;
        left: 5%;
        right: 5%;
        top: auto;
        bottom: 20px; /* Dock to bottom on mobile */
        height: auto;
        max-height: 60vh;
        overflow-y: auto;
    }

    /* Hide connector logic on mobile */
    .custom-map-connector-layer,
    .custom-map-connector-point {
        display: none !important;
    }

    .branch-content {
        padding: 20px;
        gap: 16px;
    }

    .branch-title {
        font-size: 24px;
        line-height: 30px;
    }

    .contact-item {
        gap: 12px;
    }

    .contact-icon {
        width: 40px;
        height: 40px;
    }
}