.map-hero {
    padding-top: 56px;
    padding-bottom: 56px;
    background:
        radial-gradient(circle at 20% 10%, rgba(210, 176, 109, 0.18), transparent 30%),
        linear-gradient(180deg, #fbf8f2 0%, #f6f0e7 100%);
}

.map-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
    gap: 38px;
    align-items: center;
}

.map-hero-panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.map-hero-card {
    background: #fff;
    border: 1px solid var(--asylonia-line);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--asylonia-shadow);
}

.map-hero-number {
    display: block;
    color: var(--asylonia-navy);
    font-family: "Georgia", "Times New Roman", serif;
    font-size: 2.1rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 8px;
}

.map-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.map-tools .btn {
    min-width: 54px;
}

.map-shell {
    border: 1px solid var(--asylonia-line);
    border-radius: 30px;
    overflow: hidden;
    background: #f4eee4;
    box-shadow: var(--asylonia-shadow);
}

.map-status-bar {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 20px;
    background: #fff;
    border-bottom: 1px solid var(--asylonia-line);
    color: var(--asylonia-text-soft);
}

.map-status-bar strong {
    color: var(--asylonia-navy);
}

.map-scroll {
    overflow: auto;
    overscroll-behavior: contain;
    background:
        radial-gradient(circle at 50% 25%, rgba(210, 176, 109, 0.15), transparent 34%),
        linear-gradient(180deg, #f6f0e7 0%, #ebe0d2 100%);
    padding: 36px;
}

.map-stage {
    position: relative;
    width: 1640px;
    height: 1040px;
    transform-origin: top left;
    transition: transform 220ms ease;
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0)),
        rgba(255, 255, 255, 0.12);
}

.map-loading {
    position: absolute;
    left: 40px;
    top: 40px;
    background: #fff;
    border: 1px solid var(--asylonia-line);
    border-radius: 18px;
    padding: 18px 22px;
    box-shadow: var(--asylonia-shadow);
    color: var(--asylonia-navy);
    font-weight: 800;
}

.map-asset {
    position: absolute;
    transform-origin: bottom center;
    user-select: none;

    border: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    font: inherit;
    text-align: left;
}

.map-asset:focus {
    outline: none;
}

.map-asset:focus-visible .map-label {
    box-shadow:
        0 0 0 4px rgba(185, 146, 71, 0.25),
        0 14px 26px rgba(7, 30, 58, 0.13);
}

.map-asset img {
    display: block;
    width: 100%;
    height: auto;
    pointer-events: none;
}

.map-asset.is-clickable {
    cursor: pointer;
}

.map-asset.is-clickable:hover img {
    filter: drop-shadow(0 18px 24px rgba(7, 30, 58, 0.22)) brightness(1.04);
}

.map-asset-tile img {
    filter: drop-shadow(0 12px 18px rgba(7, 30, 58, 0.06));
}

.map-asset-prop img {
    filter: drop-shadow(0 16px 18px rgba(7, 30, 58, 0.12));
}

.map-asset-plot img {
    filter: drop-shadow(0 18px 24px rgba(7, 30, 58, 0.15));
}

.map-label {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, -100%);
    min-width: 150px;
    max-width: 210px;
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(185, 146, 71, 0.45);
    color: var(--asylonia-navy);
    box-shadow: 0 14px 26px rgba(7, 30, 58, 0.13);
    backdrop-filter: blur(10px);
    pointer-events: auto;
    cursor: pointer;
}

.map-label-title {
    display: block;
    font-weight: 900;
    line-height: 1.15;
    font-size: 0.92rem;
}

.map-label-meta {
    display: block;
    color: var(--asylonia-text-soft);
    font-size: 0.74rem;
    margin-top: 4px;
    font-weight: 700;
}

.map-label-badge {
    display: inline-flex;
    margin-top: 7px;
    min-height: 24px;
    align-items: center;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--asylonia-navy);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.map-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

.map-modal.is-open {
    display: block;
}

.map-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 18, 31, 0.55);
    backdrop-filter: blur(6px);
}

.map-modal-card {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(920px, calc(100vw - 28px));
    max-height: calc(100vh - 42px);
    overflow: auto;
    transform: translate(-50%, -50%);
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
    background: #fff;
    border-radius: 30px;
    border: 1px solid rgba(210, 176, 109, 0.55);
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.35);
}

.map-modal-close {
    position: absolute;
    right: 16px;
    top: 16px;
    z-index: 2;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: var(--asylonia-navy);
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.map-modal-image-wrap {
    display: grid;
    place-items: center;
    min-height: 360px;
    background:
        radial-gradient(circle at 50% 30%, rgba(210, 176, 109, 0.18), transparent 40%),
        #f6f0e7;
    padding: 26px;
}

.map-modal-image-wrap img {
    width: 100%;
    max-height: 390px;
    object-fit: contain;
    filter: drop-shadow(0 22px 26px rgba(7, 30, 58, 0.16));
}

.map-modal-body {
    padding: 34px;
}

.map-modal-meta {
    color: var(--asylonia-gold);
    font-weight: 900;
    margin: 10px 0 16px;
}

.map-modal-body p {
    color: var(--asylonia-text-soft);
}

.map-modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 22px 0;
}

.map-modal-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    background: #f7f0e6;
    border: 1px solid var(--asylonia-line);
    color: var(--asylonia-navy);
    font-size: 0.82rem;
    font-weight: 800;
}

.map-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.map-notes-panel {
    background: linear-gradient(135deg, #0b2f53 0%, #09243f 100%);
    color: #fff;
    border-radius: 28px;
    padding: 34px;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.35fr);
    gap: 30px;
    align-items: start;
    border: 1px solid rgba(210, 176, 109, 0.45);
    box-shadow: var(--asylonia-shadow);
}

.map-notes-panel p {
    color: rgba(255, 255, 255, 0.78);
    margin-top: 14px;
}

.map-notes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.map-notes-grid article {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 22px;
    padding: 22px;
}

.map-notes-grid h3 {
    margin-bottom: 10px;
}

@media (max-width: 1180px) {
    .map-hero-grid,
    .map-notes-panel {
        grid-template-columns: 1fr;
    }

    .map-status-bar {
        flex-direction: column;
    }

    .map-scroll {
        padding: 22px;
    }
}

@media (max-width: 760px) {
    .map-modal-card {
        grid-template-columns: 1fr;
    }

    .map-modal-image-wrap {
        min-height: 250px;
    }

    .map-modal-body,
    .map-notes-panel {
        padding: 24px;
    }

    .map-notes-grid {
        grid-template-columns: 1fr;
    }

    .map-modal-actions {
        flex-direction: column;
        align-items: stretch;
    }
}