:root {
    --sal-primary: #002b4d;
    --sal-secondary: #c29d59;
    --sal-text: #333;
    --sal-bg: #f9f9f9;
}

.sal-container {
    font-family: 'Arial', sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Header & Filters */
.sal-header {
    background: var(--sal-primary);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.sal-filters select,
.sal-search input {
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    outline: none;
    min-width: 200px;
}

.sal-filters select option {
    color: #333;
}

.sal-search input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.sal-search input:focus,
.sal-filters select:focus {
    border-color: var(--sal-secondary);
    background: rgba(255, 255, 255, 0.2);
}

/* Content Layout */
.sal-content-wrapper {
    display: flex;
    flex-direction: row;
    /* Desktop: Sidebar left, Map right */
    height: 600px;
}

/* Sidebar List */
.sal-sidebar {
    width: 350px;
    background: #fff;
    overflow-y: auto;
    border-right: 1px solid #eee;
    flex-shrink: 0;
}

.sal-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sal-item {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.sal-item:hover,
.sal-item.active {
    background: #f4f8fb;
    border-left: 4px solid var(--sal-secondary);
}

.sal-item h3 {
    margin: 0 0 5px;
    font-size: 16px;
    color: var(--sal-primary);
    font-weight: 600;
}

.sal-item .sal-address {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
}

.sal-item .sal-region {
    display: inline-block;
    background: var(--sal-secondary);
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Map Container */
.sal-map-container {
    flex-grow: 1;
    position: relative;
}

#seotronix-map-canvas {
    width: 100%;
    height: 100%;
}

/* InfoWindow Styles */
/* InfoWindow Styles (Dark Theme) */
.gm-style-iw {
    padding: 0 !important;
    /* Reset Google's default padding if possible, though strict nesting makes this hard. Use reset on internal div */
    overflow: hidden !important;
}

.sal-popup {
    background-color: var(--sal-primary);
    color: #fff;
    max-width: 300px;
    padding: 15px;
    border-radius: 0;
    /* Optional: Squarer look */
    position: relative;
}

/* Header */
.sal-popup-header h3 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
}

/* Body */
.sal-popup-body {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    margin-bottom: 15px;
}

.sal-address-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
}

.sal-popup .sal-icon {
    font-size: 16px;
}

.sal-popup .sal-address-text {
    font-style: normal;
    font-weight: 600;
}

.sal-desc {
    margin-top: 5px;
    overflow: visible !important;
    /* Ensure no scrollbar appears */
    max-height: none !important;
}

/* Footer & Buttons */
.sal-popup-footer {
    text-align: right;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 10px;
}

.sal-btn-zoom {
    background: #fff;
    color: var(--sal-primary);
    border: none;
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.sal-btn-zoom:hover {
    background: var(--sal-secondary);
    color: #fff;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .sal-content-wrapper {
        flex-direction: column-reverse;
        /* Mobile: Map top, List bottom (Wait, usually map is top) */
        /* Actually, usually users want map visible first, so let's keep Map Top, List Bottom if desired, OR standard */
        /* Let's do: Map on top, List below */
        flex-direction: column;
        height: auto;
    }

    .sal-map-container {
        height: 400px;
        /* Fixed height for map on mobile */
    }

    .sal-sidebar {
        width: 100%;
        height: 300px;
        /* Scrollable list below map */
        border-right: none;
        border-top: 1px solid #eee;
    }

    .sal-header {
        flex-direction: column;
        align-items: stretch;
    }

    .sal-filters select,
    .sal-search input {
        width: 100%;
    }
}