.greece-map-page {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    padding: 0 0 24px;
}

.greece-map-page-header {
    max-width: 1200px;
    margin: 16px auto 8px;
    padding: 0 16px;
    text-align: center;
}

.greece-map-page-title {
    color: #2077ba;
    font-size: clamp(1.5rem, 4.5vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
    word-break: break-word;
}

.greece-map-page-hint {
    display: none;
    margin: 8px 0 0;
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.4;
}

.greece-map-page .row {
    margin-left: 0;
    margin-right: 0;
}

.greece-map-page .col-md-12 {
    padding-left: 8px;
    padding-right: 8px;
}

.greece-map-page #container {
    position: relative;
    width: 100%;
    height: min(80vh, 820px);
    min-height: 420px;
    overflow: hidden;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.greece-map-page #svg_map {
    width: 100%;
    height: 100%;
    max-width: 100%;
    display: block;
}

.greece-map-reset {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 4;
    display: none;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 14px;
    border: 0;
    border-radius: 999px;
    background: #2077ba;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(32, 119, 186, 0.28);
}

.greece-map-reset.is-visible {
    display: inline-flex;
}

.greece-map-page .popup-container {
    max-width: 360px;
}

.greece-map-page.is-mobile-map #container,
.greece-map-page.is-mobile-map #svg_map {
    touch-action: none;
}

@media screen and (max-width: 767px) {
    .greece-map-page {
        padding-bottom: 12px;
    }

    .greece-map-page-header {
        margin: 10px auto 4px;
        padding: 0 12px;
    }

    .greece-map-page-title {
        font-size: clamp(1.25rem, 6vw, 1.75rem);
    }

    .greece-map-page-hint {
        display: block;
    }

    .greece-map-page #container {
        height: calc(100dvh - 230px);
        min-height: 340px;
        max-height: 680px;
        touch-action: none;
    }

    .greece-map-page #svg_map {
        touch-action: none;
    }

    .greece-map-page .popup-container {
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 20;
        display: none;
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        max-height: 52vh;
        overflow: hidden;
        padding: 10px 14px 12px;
        border-radius: 16px 16px 0 0;
        background-color: rgba(255, 255, 255, 0.98);
        box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.16);
        touch-action: pan-y;
        overscroll-behavior: contain;
        pointer-events: auto;
    }

    .greece-map-page .popup-container.is-open {
        display: flex;
    }

    .greece-map-page .popup-header {
        width: auto;
        flex: 0 0 auto;
        font-size: 1.25rem;
        margin-bottom: 8px;
        touch-action: manipulation;
    }

    .greece-map-page .popup-content {
        flex: 1 1 auto;
        min-height: 0;
        max-height: calc(52vh - 48px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        touch-action: pan-y;
    }

    .greece-map-page .map_listing {
        padding: 12px;
        font-size: 0.95rem;
    }

    .greece-map-reset {
        top: 8px;
        right: 8px;
        min-height: 44px;
        padding: 10px 16px;
    }
}

@media screen and (max-width: 480px) {
    .greece-map-page #container {
        height: calc(100dvh - 210px);
        min-height: 300px;
    }
}
