.solina-offices-map {
    --solina-map-green: #2f4d3a;
    --solina-map-dark-green: #2f4f22;
    --solina-map-cream: #eeeeb4;
    --solina-map-cream-border: #e8d9a0;
    --solina-map-yellow: #ffd95e;
    --solina-map-red: #760000;
    --solina-map-yellow-opacity: rgb(255 217 94 / 0.10);
    --solina-font-family: Inter, sans-serif;
}

/* Tabs */
.solina-offices-map__tabs {
    display: flex;
    margin: 0 auto 60px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.solina-offices-map__tab {
    display: inline-flex;
    padding: 16px 20px;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    gap: 10px;
    color: var(--solina-map-yellow);
    border-radius: 40px !important;
    font-family: var(--solina-font-family);
    background-color: var(--solina-map-yellow-opacity);
}

.solina-offices-map__tab:focus {
    color: var(--solina-map-yellow);
    background-color: var(--solina-map-yellow-opacity);
}

.solina-offices-map__tab:hover {
    background: var(--solina-map-yellow);
    color: var(--solina-map-green);
}

.solina-offices-map__tab.is-active {
    background: var(--solina-map-yellow);
    color: var(--solina-map-green);
}

.solina-offices-map__tab-icon {
    display: inline-flex;
    width: 16px;
    height: 16px;
}

.solina-offices-map__tab-icon svg {
    width: 100%;
    height: 100%;
}

/* Map */
.solina-offices-map__map-wrapper {
    position: relative;
    width: 100%;
}

.solina-offices-map__map {
    width: 100%;
    height: 730px;
}

/* Marker pin */
.solina-pin {
    position: relative;
    width: 34px;
    height: 39.2px; /* 52:60 aspect ratio of the pin SVG */
    color: var(--solina-map-cream);
}

.solina-pin svg {
    display: block;
    width: 100%;
    height: 100%;
}

.solina-pin__icon {
    position: absolute;
    top: 41.7%; /* center of the pin's circle, per the SVG viewBox */
    left: 50%;
    display: inline-flex;
    width: 16px;
    height: 16px;
    transform: translate(-50%, -50%);
    color: var(--solina-map-green);
}

.solina-pin__icon svg {
    width: 100%;
    height: 100%;
}

.solina-pin--selected {
    width: 46px;
    height: 53.1px;
    color: var(--solina-map-yellow);
    z-index: 10;
}

.solina-pin--selected .solina-pin__icon {
    width: 22px;
    height: 22px;
}

/* Cluster bubble */
.solina-cluster {
    position: relative;
    width: 40px;
    height: 46.2px; /* 52:60 aspect ratio of the pin SVG */
    color: var(--solina-map-cream);
}

.solina-cluster svg {
    display: block;
    width: 100%;
    height: 100%;
}

.solina-cluster__count {
    position: absolute;
    top: 41.7%; /* center of the pin's circle, per the SVG viewBox */
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 700;
    font-size: 14px;
    color: var(--solina-map-green);
}

/* Info panel */
.solina-offices-map__panel {
    position: absolute;
    padding: 16px 12px;
    top: 16px;
    right: 16px;
    max-width: 400px;
    background: var(--solina-map-yellow);
    border-radius: 16px;
    color: var(--solina-map-green);
    overflow: hidden;
    z-index: 20;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.solina-offices-map__panel[hidden] {
    display: none;
}

.solina-offices-map__panel-image img {
    display: block;
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.solina-offices-map__panel-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 44px;
    height: 44px;
    border-radius: 0 16px 0 16px !important;
    border: none;
    background: var(--solina-map-yellow);
    font-size: 18px;
    line-height: 1;
    cursor: pointer !important;
    color: var(--solina-map-dark-green);
}

.solina-offices-map__panel-close:hover {
    background: var(--solina-map-dark-green) !important;
    color: var(--solina-map-yellow) !important;
}

.solina-offices-map__panel-title {
    margin: 16px 0 4px;
    font-size: 32px;
    color: var(--solina-map-red);
}

.solina-offices-map__panel-tags {
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--solina-map-dark-green);
}

.solina-offices-map__panel-divider {
    margin: 12px 0 !important;
    opacity: 0.1 !important;
    height: 1px !important;
    border: none !important;
    background-color: #121212 !important;
}

.solina-offices-map__panel-address {
    font-size: 14px;
    font-weight: 500;
    color: var(--solina-map-red);
}

.solina-offices-map__panel-description {
    font-size: 14px;
    color: var(--solina-map-red);
    margin-bottom: 8px;
}

.solina-offices-map__panel-description p {
    margin: 0 0 8px;
}

.solina-offices-map__panel-description p:last-child {
    margin-bottom: 0;
}

.solina-offices-map__panel-contact {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    font-size: 14px;
    color: var(--solina-map-red);
}

.solina-offices-map__panel-contact-title {
    margin-bottom: 0 !important;
    font-size: 12px;
    font-weight: 500;
}

.solina-offices-map__panel-contact-info {
    max-width: 180px;
    width: 100%;
}

.solina-offices-map__panel-contact-info p {
    margin: 0 !important;
}

/* Reset zoom button */
.solina-offices-map__reset-zoom {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0 10px 10px 0;
    padding: 0;
    border: none;
    border-radius: 50% !important;
    background: var(--solina-map-yellow);
    color: var(--solina-map-green);
    cursor: pointer !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: background 0.2s, color 0.2s;
}

.solina-offices-map__reset-zoom:focus {
    background: var(--solina-map-yellow);
    color: var(--solina-map-green);
}

.solina-offices-map__reset-zoom:hover {
    color: var(--solina-map-yellow);
    background: #445d29;
}

.solina-offices-map__reset-zoom svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 600px) {
    .solina-offices-map__panel {
        left: 16px;
        right: 16px;
        max-width: none;
    }

    .solina-offices-map__map {
        height: 480px;
    }

    .solina-offices-map__tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        align-items: flex-start;
        justify-content: flex-start;
    }
}
