:root {
    --primary-red: #e52716;
    --text-dark: #1b1a19;
    --text-black: #000000;
    --text-light: #ffffff;
    --text-gray: rgba(27, 26, 25, 0.4);
    --text-gray-darker: rgba(0, 0, 0, 0.4);
    --bg-white: #ffffff;
    --bg-light-gray: #f1f1f1;
    --border-color: #d9d9d9;
    --border-color-light: #d8d9e0;
}

/* CSS from section:map */
.map-section {
    padding-top: 48px;
    padding-bottom: 48px;
}

.map-title {
    font-weight: 500;
    font-size: 32px;
    line-height: 39px;
    letter-spacing: -0.64px;
    margin: 0 0 32px;
}

.map-tabs {
    display: flex;
    border: 1px solid var(--primary-red);
    border-radius: 16px;
    padding: 4px;
    margin-bottom: 48px;
    max-width: 512px;
}

.tab-btn {
    flex: 1;
    padding: 16px 24px;
    border-radius: 16px;
    font-weight: 500;
    font-size: 18px;
    line-height: 22px;
    color: var(--text-black);
    background-color: var(--bg-white);
    transition: background-color 0.3s, color 0.3s;
    border: none;
    cursor: pointer;
}

.tab-btn.active {
    background-color: var(--primary-red);
    color: var(--text-light);
}

.map-layout {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.location-sidebar {
    flex-shrink: 0;
    width: 382px;
    background-color: var(--bg-white);
    border-radius: 16px;
    box-shadow: 0px 3px 7px 0px rgba(117, 117, 117, 0.1), 0px 12px 12px 0px rgba(117, 117, 117, 0.09), 0px 28px 17px 0px rgba(117, 117, 117, 0.05), 0px 49px 20px 0px rgba(117, 117, 117, 0.01), 0px 77px 21px 0px rgba(117, 117, 117, 0);
    padding: 16px;
    height: 739px;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--bg-light-gray);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.search-bar input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 15px;
    line-height: 20px;
    color: var(--text-gray);
    width: 100%;
}

.location-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: 600px;
    overflow-y: scroll;
}

.location-card {
    border-radius: 16px;
    padding: 24px 12px;
    cursor: pointer;
    transition: transform 0.2s;
}

.location-card:hover, .location-card.active {
    transform: translateY(-2px);
    background-color: var(--bg-light-gray);
}

.location-card h3 {
    margin: 0 0 6px;
    font-weight: 600;
    font-size: 20px;
    line-height: 24px;
    color: var(--text-black);
}

.location-card p {
    margin: 0 0 9px;
    font-weight: 500;
    font-size: 16px;
    line-height: 19px;
    color: var(--text-black);
}

.location-hours {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    font-size: 14px;
    line-height: 17px;
    color: var(--text-black);
}

.map-area {
    flex-grow: 1;
    height: 739px;
    position: relative;
    border: 1px solid var(--border-color);
    border-radius: 32px;
    overflow: hidden;
}

#map {
    width: 100%;
    height: 100%;
}

/* Custom marker styles */
.ymaps-2-1-79-placemark-overlay {
    display: flex;
    justify-content: center;
    align-items: center;
}

.custom-marker {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translate(-50%, -50%);
}

.custom-marker img {
    width: 17px;
    height: 17px;
}

.marker-office {
    background-color: var(--primary-red);
}

.marker-atm {
    background-color: #929292;
}

/* Map info card styles */
.map-info-card {
    position: absolute;
    left: 16px;
    top: 16px;
    width: 382px;
    background-color: var(--bg-white);
    border-radius: 16px;
    box-shadow: 0 3px 7px rgba(117, 117, 117, 0.1),
    0 12px 12px rgba(117, 117, 117, 0.09),
    0 28px 17px rgba(117, 117, 117, 0.05),
    0 49px 20px rgba(117, 117, 117, 0.01),
    0 77px 21px rgba(117, 117, 117, 0);
    padding: 16px;
    z-index: 100;
    display: none;
}

.map-info-card .map-info-header {
    display: none;
}

.map-info-card h2 {
    font-weight: 600;
    font-size: 20px;
    line-height: 24px;
    color: var(--text-black);
    margin: 0 0 16px;
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-content .address {
    font-weight: 500;
    font-size: 16px;
    line-height: 19px;
    margin: 0;
}

.info-group {
    display: flex;
    flex-direction: column;
    gap: 9px;
    transition: all 0.3s ease;
}

.info-label {
    font-weight: 500;
    font-size: 14px;
    line-height: 17px;
    color: var(--text-gray-darker);
    margin: 0;
}

.info-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    font-size: 14px;
    line-height: 17px;
}

.call-icon-wrapper {
    position: relative;
    width: 18px;
    height: 18px;
}

.info-value {
    font-weight: 500;
    font-size: 12px;
    line-height: 15px;
}

.info-footer {
    background-color: var(--bg-light-gray);
    padding: 16px 21px;
    margin-top: 17px;
    border-radius: 16px;
}

.info-footer p {
    margin: 0;
    font-weight: 500;
    font-size: 16px;
    line-height: 19px;
    text-align: center;
}

.info-footer .highlight {
    font-weight: 600;
    color: var(--primary-red);
    text-decoration: none;
}

.map-zoom-controls {
    position: absolute;
    right: 20px;
    bottom: 36px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    background-color: var(--bg-white);
    border: 1.11px solid var(--border-color-light);
    border-radius: 9px;
    padding: 4.4px;
    z-index: 100;
}

.map-zoom-controls button {
    width: 35.5px;
    height: 35.5px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-white);
    border-radius: 9px;
    border: none;
    cursor: pointer;
    padding: 0;
}

.map-zoom-controls button:hover {
    background-color: var(--bg-light-gray);
}

/* Mobile search modal styles */
.mobile-search-modal {
    position: fixed;
    left: 16px;
    right: 16px;
    background-color: var(--bg-white);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 16px;
    max-height: 55vh;
    border-radius: 16px;
}

.mobile-search-modal.active {
    transform: translateY(-150%);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.modal-header h3 {
    font-weight: 600;
    font-size: 20px;
    line-height: 24px;
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
}

.modal-search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--bg-light-gray);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.modal-search-bar input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 15px;
    line-height: 20px;
    color: var(--text-gray);
    width: 100%;
}

.modal-location-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.modal-location-card {
    border-radius: 16px;
    padding: 24px 12px;
    cursor: pointer;
    transition: transform 0.2s;
}

.modal-location-card:hover, .modal-location-card.active {
    transform: translateY(-2px);
    background-color: var(--bg-light-gray);
}

.modal-location-card h3 {
    margin: 0 0 6px;
    font-weight: 600;
    font-size: 20px;
    line-height: 24px;
    color: var(--text-black);
}

.modal-location-card p {
    margin: 0 0 9px;
    font-weight: 500;
    font-size: 16px;
    line-height: 19px;
    color: var(--text-black);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 1200px) {
    .map-layout {
        flex-direction: column;
    }
    .location-sidebar {
        width: 100%;
        height: auto;
        max-height: 400px;
    }
    .map-area {
        width: 100%;
        height: 60vh;
    }
    .map-info-card {
        width: 300px;
    }
}

@media (max-width: 768px) {
    .map-info-card {
        width: calc(100% - 32px);
        left: 16px;
        right: 16px;
        position: absolute;
        bottom: 16px;
        top: auto;
        max-height: 400px;
        overflow-y: scroll;
        padding-top: 7px;
    }

    .map-info-card .info-card-header {
        display: flex;
        border-radius: 16px;
        background: var(--bg-light-gray);
        height: 4px;
        width: 36px;
        margin: 0 auto 8px;
    }

    .map-zoom-controls {
        right: 10px;
        top: 10px;
        bottom: auto;
    }

    .info-group {
        display: none;
    }

    .location-list {
        display: none;
    }

    .search-bar {
        margin-bottom: 0;
    }

    .location-sidebar {
        background: none;
        padding: 0;
        box-shadow: none;
    }

    .map-tabs {
        margin-bottom: 16px;
    }

    .map-section {
        padding: 16px;
    }
}
