section.map-block {
    max-width: 100% !important;
    width: 100% !important;
    padding: 40px 32px;
    background-color: white;
}

section.map-block .wrapper {
    max-width: var(--gbg-wide-width) !important;
    width: 100% !important;
    margin: 0 auto;
}

@media screen and (min-width: 998px) {
    section.map-block {
        padding: 80px 16px;
    }
}

section.map-block.alignfull {
    padding: 32px 0;
}

/* Map Header */
section.map-block .map-header {
    text-align: center;
    margin-bottom: 24px;
}

section.map-block .map-title {
    text-align: start;
    font-size: clamp(29.9px, 5vw, 48px);
    font-weight: 500;
    color: var(--gbg-color-primary, #333);
    margin: 0;
    line-height: 1;
}

/* Map Content Layout */
section.map-block .map-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin: 0 auto;
}

@media screen and (min-width: 768px) {
    section.map-block .map-content {
        grid-template-columns: 65% auto;
    }
}

/* Map Container */
section.map-block .map-container {
    position: relative;
}

section.map-block .google-map {
    width: 100%;
    height: 240px;
    border-radius: var(--gbg-border-radius-xl);
    overflow: hidden;
    border: 1px solid var(--gbg-color-grey);
}

@media screen and (min-width: 768px) {
    section.map-block .google-map {
        height: 500px;
    }
}

section.map-block .locations-list {
    position: relative;
}

section.map-block .locations-list::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 48px;
    background: linear-gradient(to top, var(--gbg-color-primary) 0%, transparent 100%);
    border-radius: 0 0 var(--gbg-border-radius-xl) var(--gbg-border-radius-xl);
    pointer-events: none;
    z-index: 1;
}

section.map-block .address-list {
    background-color: var(--gbg-color-primary);
    border-radius: var(--gbg-border-radius-xl);
    list-style: none;
    padding: 16px;
    margin: 0;
    width: 100%;
    height: 100%;
    max-height: 504px;
    overflow-y: auto;
    position: relative;
}

section.map-block .address-list::-webkit-scrollbar {
    display: none;
}

section.map-block .address-list .address-item {
    padding: 8px;
    margin: 0 0 20px 0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    background-color: transparent;
    transform: translateY(0);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

section.map-block .address-list .address-item:hover {
    background-color: var(--gbg-color-light-citron);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

section.map-block .address-list .address-item.active {
    background-color: var(--gbg-color-light-citron);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Default styling without custom image */
section.map-block .address-list .address-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

section.map-block .address-list .address-item:before {
    display: none;
}

section.map-block .address-list .address-item .location-image {
    background-color: var(--gbg-color-grey);
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--gbg-border-radius-md);
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    transform: scale(1);
}

section.map-block .address-list .address-item .location-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

section.map-block .address-list .address-item .location-content span:first-child {
    display: block;
    font-weight: 500;
    color: var(--gbg-color-light);
    font-size: clamp(16px, 4vw, 20px);
    line-height: 1;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

section.map-block .address-list .address-item .location-content span:last-child {
    color: var(--gbg-color-light);
    font-size: clamp(14px, 4vw, 16px);
    line-height: 1.25;
    text-wrap: pretty;
    display: inline-flex;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Hover and active effects */
section.map-block .address-list .address-item:hover .location-image {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

section.map-block .address-list .address-item.active .location-image {
    transform: scale(1.02);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

section.map-block .address-list .address-item.active .location-content span,
section.map-block .address-list .address-item:hover .location-content span {
    color: var(--gbg-color-primary) !important;
}
