/* =========================================
   GRAIKIŠKA MAGIJA – PARDUOTUVIŲ ŽEMĖLAPIS
   ========================================= */

.gm-shop-map {
    --gm-map-blue: #205f7b;
    --gm-map-blue-light: #2a7592;
    --gm-map-blue-dark: #153f56;
    --gm-map-blue-deep: #102f41;
    --gm-map-gold: #edbd2f;
    --gm-map-gold-light: #f6d46d;
    --gm-map-white: #ffffff;
    --gm-map-text: #dce9ef;
    --gm-map-muted: rgba(220, 233, 239, .72);
    --gm-map-border: rgba(255, 255, 255, .14);

    position: relative;
    isolation: isolate;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-right: auto;
    margin-left: auto;
    overflow: hidden;
    padding: 62px 38px;
    border-radius: 30px;
    color: var(--gm-map-white);
    background:
        radial-gradient(circle at 8% 4%, rgba(237, 189, 47, .16), transparent 31%),
        radial-gradient(circle at 92% 94%, rgba(255, 255, 255, .08), transparent 33%),
        linear-gradient(135deg, #256d89 0%, #205f7b 43%, #174960 100%);
    box-shadow: 0 28px 70px rgba(7, 32, 45, .18);
    font-family: inherit;
}

.gm-shop-map::before,
.gm-shop-map::after {
    content: "";
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
    pointer-events: none;
}

.gm-shop-map::before {
    top: -250px;
    right: -130px;
    width: 430px;
    height: 430px;
}

.gm-shop-map::after {
    bottom: -210px;
    left: -95px;
    width: 320px;
    height: 320px;
}

.gm-shop-map *,
.gm-shop-map *::before,
.gm-shop-map *::after {
    box-sizing: border-box;
}

.gm-shop-map__title {
    position: relative;
    margin: 0 0 34px;
    padding-bottom: 17px;
    color: var(--gm-map-white);
    font-size: clamp(31px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -.8px;
}

.gm-shop-map__title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 72px;
    height: 3px;
    border-radius: 999px;
    background: var(--gm-map-gold);
}

/* Miesto filtras */

.gm-shop-map__toolbar {
    display: flex;
    align-items: center;
    gap: 14px;
    width: fit-content;
    max-width: 100%;
    margin: 0 0 22px;
    padding: 10px 12px 10px 17px;
    border: 1px solid var(--gm-map-border);
    border-radius: 14px;
    background: rgba(255, 255, 255, .075);
    box-shadow: 0 15px 35px rgba(7, 32, 45, .12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.gm-shop-map__toolbar label {
    color: var(--gm-map-gold-light);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    white-space: nowrap;
}

.gm-shop-map__toolbar select {
    min-width: 190px;
    max-width: 100%;
    min-height: 43px;
    margin: 0;
    padding: 9px 38px 9px 13px;
    border: 1px solid rgba(255, 255, 255, .17);
    border-radius: 10px;
    outline: none;
    color: var(--gm-map-white);
    background-color: rgba(11, 48, 65, .42);
    font: inherit;
    font-size: 15px;
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.gm-shop-map__toolbar select:hover,
.gm-shop-map__toolbar select:focus {
    border-color: rgba(237, 189, 47, .7);
    background-color: rgba(11, 48, 65, .6);
    box-shadow: 0 0 0 3px rgba(237, 189, 47, .12);
}

.gm-shop-map__toolbar select option {
    color: #163d51;
    background: #fff;
}

/* Pagrindinis išdėstymas */

.gm-shop-map__layout {
    display: grid;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, .8fr);
    gap: 22px;
    align-items: start;
}

.gm-shop-map__canvas,
.gm-shop-map__panel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border: 1px solid var(--gm-map-border);
    border-radius: 22px;
    background: rgba(255, 255, 255, .075);
    box-shadow: 0 24px 60px rgba(7, 32, 45, .18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.gm-shop-map__canvas {
    position: relative;
    align-self: start;
    width: 100%;
    height: fit-content;
    overflow: hidden;
    background:
        radial-gradient(circle at 46% 44%, rgba(255, 255, 255, .12), transparent 48%),
        rgba(7, 38, 53, .16);
}

.gm-shop-map__canvas::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(145deg, rgba(255, 255, 255, .035), transparent 54%);
}

.gm-shop-map__canvas img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
    user-select: none;
    filter: drop-shadow(0 18px 25px rgba(7, 32, 45, .22));
}

/* Žemėlapio taškai */

.gm-shop-map__marker {
    position: absolute;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin: -14px 0 0 -14px;
    padding: 0;
    border: 3px solid var(--gm-map-white);
    border-radius: 999px;
    outline: none;
    color: var(--gm-map-blue-deep);
    background: var(--gm-map-gold);
    box-shadow:
        0 5px 14px rgba(7, 32, 45, .34),
        0 0 0 4px rgba(237, 189, 47, .13);
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease, background .18s ease;
}

.gm-shop-map__marker > span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.gm-shop-map__marker > b {
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.gm-shop-map__marker::after {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 999px;
}

.gm-shop-map__marker:hover,
.gm-shop-map__marker:focus-visible,
.gm-shop-map__marker.is-active {
    z-index: 6;
    transform: scale(1.34);
    box-shadow:
        0 7px 18px rgba(7, 32, 45, .4),
        0 0 0 6px rgba(237, 189, 47, .18);
}

.gm-shop-map__marker.is-active {
    border-color: var(--gm-map-gold-light);
    color: var(--gm-map-white);
    background: var(--gm-map-blue-deep);
}

.gm-shop-map__marker.is-filtered-out {
    opacity: .1;
    pointer-events: none;
}

/* Miestų pavadinimai ant žemėlapio */

.gm-shop-map__city-label {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transform: translate(-3px, -50%);
    color: var(--gm-map-white);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    pointer-events: none;
    text-shadow:
        0 1px 2px rgba(7, 32, 45, .95),
        0 0 5px rgba(7, 32, 45, .85),
        0 0 10px rgba(7, 32, 45, .55);
}

.gm-shop-map__city-label i {
    display: block;
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 50%;
    background: var(--gm-map-gold);
    box-shadow: 0 2px 6px rgba(7, 32, 45, .45);
}

.gm-shop-map__city-label b {
    font: inherit;
}

/* Dešinysis informacijos blokas */

.gm-shop-map__panel {
    align-self: start;
    display: flex;
    min-height: 330px;
    padding: 29px;
}

.gm-shop-map__prompt {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding-top: 73px;
    color: var(--gm-map-text);
    line-height: 1.65;
}

.gm-shop-map__prompt::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 58px;
    height: 58px;
    border: 1px solid rgba(237, 189, 47, .45);
    border-radius: 50%;
    background:
        radial-gradient(circle, var(--gm-map-gold) 0 5px, transparent 6px),
        rgba(237, 189, 47, .08);
    box-shadow: 0 12px 28px rgba(7, 32, 45, .15);
}

.gm-shop-map__prompt strong {
    color: var(--gm-map-white);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.28;
}

.gm-shop-map__prompt span {
    color: var(--gm-map-muted);
    font-size: 15px;
}

.gm-shop-map__group {
    align-self: flex-start;
    width: 100%;
}

.gm-shop-map__city {
    position: relative;
    margin: 0 0 8px;
    padding-top: 14px;
    color: var(--gm-map-white);
    font-size: 27px;
    font-weight: 700;
    line-height: 1.2;
}

.gm-shop-map__city::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 54px;
    height: 3px;
    border-radius: 999px;
    background: var(--gm-map-gold);
}

.gm-shop-map__group-summary {
    margin: 0 0 18px;
    color: var(--gm-map-gold-light);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.gm-shop-map__group-shops {
    display: grid;
    gap: 12px;
}

.gm-shop-map__group-shop {
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 15px;
    background: rgba(8, 38, 52, .2);
    transition: transform .22s ease, border-color .22s ease, background .22s ease;
}

.gm-shop-map__group-shop:hover {
    transform: translateY(-2px);
    border-color: rgba(237, 189, 47, .35);
    background: rgba(8, 38, 52, .3);
}

.gm-shop-map__group-shop h4 {
    margin: 0 0 8px;
    color: var(--gm-map-white);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
}

.gm-shop-map__address,
.gm-shop-map__details {
    margin: 7px 0;
    color: var(--gm-map-text);
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-line;
}

.gm-shop-map__details {
    color: var(--gm-map-muted);
}

.gm-shop-map__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
}

.gm-shop-map__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 15px;
    border: 1px solid var(--gm-map-gold);
    border-radius: 11px;
    color: var(--gm-map-blue-deep) !important;
    background: var(--gm-map-gold);
    box-shadow: 0 10px 22px rgba(237, 189, 47, .15);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.gm-shop-map__button:hover,
.gm-shop-map__button:focus-visible {
    transform: translateY(-1px);
    color: var(--gm-map-blue-deep) !important;
    background: var(--gm-map-gold-light);
    box-shadow: 0 13px 27px rgba(237, 189, 47, .23);
}

.gm-shop-map__text-link {
    color: var(--gm-map-white) !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration-color: rgba(237, 189, 47, .55) !important;
    text-underline-offset: 4px;
}

.gm-shop-map__text-link:hover,
.gm-shop-map__text-link:focus-visible {
    color: var(--gm-map-gold-light) !important;
}

.gm-shop-map .is-hidden {
    display: none !important;
}

.gm-shop-map__empty {
    margin: 0;
    padding: 22px;
    border: 1px solid var(--gm-map-border);
    border-radius: 15px;
    color: var(--gm-map-text);
    background: rgba(255, 255, 255, .075);
}

@media (max-width: 1050px) {
    .gm-shop-map {
        padding: 52px 28px;
    }

    .gm-shop-map__layout {
        grid-template-columns: minmax(0, 1.2fr) minmax(270px, .8fr);
    }

    .gm-shop-map__panel {
        padding: 24px;
    }
}

@media (max-width: 850px) {
    .gm-shop-map__layout {
        grid-template-columns: 1fr;
    }

    .gm-shop-map__panel {
        min-height: 0;
    }
}

@media (max-width: 600px) {
    .gm-shop-map {
        padding: 38px 15px;
        border-radius: 22px;
    }

    .gm-shop-map__title {
        margin-bottom: 27px;
        font-size: 34px;
    }

    .gm-shop-map__toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
        width: 100%;
        padding: 13px;
    }

    .gm-shop-map__toolbar label {
        padding-left: 2px;
    }

    .gm-shop-map__toolbar select {
        width: 100%;
        min-width: 0;
    }

    .gm-shop-map__canvas,
    .gm-shop-map__panel {
        border-radius: 17px;
    }

    .gm-shop-map__panel {
        padding: 21px;
    }

    .gm-shop-map__prompt strong {
        font-size: 20px;
    }

    .gm-shop-map__city {
        font-size: 24px;
    }

    .gm-shop-map__marker {
        width: 25px;
        height: 25px;
        margin: -12.5px 0 0 -12.5px;
        border-width: 2px;
    }

    .gm-shop-map__marker > b {
        font-size: 11px;
    }

    .gm-shop-map__city-label {
        gap: 3px;
        font-size: 9px;
    }

    .gm-shop-map__city-label i {
        width: 5px;
        height: 5px;
        flex-basis: 5px;
    }

    .gm-shop-map__group-shop {
        padding: 15px;
    }

    .gm-shop-map__button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gm-shop-map__marker,
    .gm-shop-map__group-shop,
    .gm-shop-map__button {
        transition: none;
    }
}
