/* Maps Page Styles */
.maps__section {
    padding-bottom: 60px;
}

.maps__section h1 {
    font-size: 32px;
    font-weight: 600;
    margin-block: 40px 24px;
    text-align: center;
    color: #1a1a2e;
}

/* Search bar */
.maps__search__wrap {
    max-width: 480px;
    margin: 0 auto 36px;
    position: relative;
}

.maps__search__input {
    width: 100%;
    padding: 14px 20px 14px 48px;
    font-size: 16px;
    border: 2px solid #e8ecf0;
    border-radius: 12px;
    background: #fff;
    color: #1a1a2e;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.maps__search__input::placeholder {
    color: #8895a7;
}

.maps__search__input:focus {
    border-color: #146a90;
    box-shadow: 0 0 0 3px rgba(20, 106, 144, 0.12);
}

.maps__search__icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #8895a7;
    pointer-events: none;
}

.maps__search__clear {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border: none;
    background: #e8ecf0;
    color: #5a6578;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    display: none;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.maps__search__clear:hover {
    background: #146a90;
    color: #fff;
}

.maps__search__clear.visible {
    display: flex;
}

.maps__search__no-results {
    text-align: center;
    padding: 48px 20px;
    color: #5a6578;
    font-size: 16px;
    display: none;
}

.maps__search__no-results.visible {
    display: block;
}

.map__block {
    margin-block: 0 50px;
}

.map__block h2 {
    font-size: 20px;
    font-weight: 500;
    color: #000;
    margin-bottom: 30px;
    background: #D4EEF9;
    color: rgb(20, 106, 144);
    padding: 10px;
    border-radius: 4px;
}

.map__block .grid__row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.map__block .map__card {
    display: flex;
    flex-direction: column;
    gap: 0;
    text-decoration: none;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #e8ecf0;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.map__block .map__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(20, 106, 144, 0.15);
    border-color: rgba(20, 106, 144, 0.2);
}

.map__block .map__card .map__card__img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.map__block .map__card img {
    width: 100%;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.map__block .map__card:hover img {
    transform: scale(1.05);
}

.map__block .map__card .map__card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
    height: 60px;
    pointer-events: none;
}

.map__block .map__card span {
    display: block;
    padding: 16px 18px;
    color: #1a1a2e;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.35;
}

.map__block .map__card.map__card--hidden {
    display: none !important;
}

@media (max-width: 991px) {
    .map__block .grid__row {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .maps__section h1 {
        font-size: 24px;
        text-align: left;
        margin-bottom: 20px;
    }

    .maps__search__wrap {
        margin-bottom: 28px;
    }

    .maps__search__input {
        padding: 12px 16px 12px 44px;
        font-size: 15px;
    }

    .map__block h2 {
        font-size: 16px;
    }

    .map__block .grid__row {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .map__block {
        margin-block: 0 40px;
    }

    .map__block .map__card span {
        padding: 12px 14px;
        font-size: 14px;
    }

    .map__block .map__card .map__card__img-wrap {
        aspect-ratio: 16/10;
    }
}

@media (max-width: 450px) {
    .map__block .map__card .map__card__img-wrap {
        aspect-ratio: 4/3;
    }

    .map__block .map__card img {
        min-height: 140px;
    }

    .map__block .map__card span {
        font-size: 13px;
    }
}
