.page-genesis-block,
.page-neo-nomad-block,
.page-verified-resident-block,
.page-shop-block,
.page-office-block,
.page-factory-block {
    overflow: hidden;
}

.page-genesis-block .site-header,
.page-genesis-block .site-footer,
.page-neo-nomad-block .site-header,
.page-neo-nomad-block .site-footer,
.page-verified-resident-block .site-header,
.page-verified-resident-block .site-footer,
.page-shop-block .site-header,
.page-shop-block .site-footer,
.page-office-block .site-header,
.page-office-block .site-footer,
.page-factory-block .site-header,
.page-factory-block .site-footer {
    display: none;
}

.page-genesis-block .site-main,
.page-neo-nomad-block .site-main,
.page-verified-resident-block .site-main,
.page-shop-block .site-main,
.page-office-block .site-main,
.page-factory-block .site-main {
    padding: 0;
}

.genesis-map-page {
    height: 100vh;
    min-height: 100vh;
    background: #efe6d8;
    overflow: hidden;
}

.genesis-map-viewport {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: grab;
    background: #efe6d8;
    user-select: none;
    touch-action: none;
}

.genesis-map-viewport.is-dragging {
    cursor: grabbing;
}

.genesis-map-stage {
    position: absolute;
    left: 0;
    top: 0;
    width: 2400px;
    transform: translate3d(0, 0, 0) scale(1);
    transform-origin: 0 0;
    will-change: transform;
}

.genesis-base-image {
    display: block;
    width: 2400px;
    max-width: none;
    height: auto;
    pointer-events: none;
    user-select: none;
}

.genesis-assets-layer {
    position: absolute;
    inset: 0;
    z-index: 10;
}

.genesis-node {
    position: absolute;
    border: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    cursor: pointer;
    transform: translate(-50%, -100%);
    transform-origin: bottom center;
    z-index: 20;
}

.genesis-node img {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 18px 24px rgba(7, 30, 58, 0.20));
    pointer-events: none;
}

.genesis-node:hover img {
    filter: drop-shadow(0 26px 34px rgba(7, 30, 58, 0.32)) brightness(1.04);
}

.genesis-node.is-selected img {
    outline: 3px solid rgba(212, 175, 55, 0.9);
    outline-offset: 4px;
    border-radius: 12px;
}

/* Small default plot label + hover identity card */
.genesis-label-wrap {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 45;
    pointer-events: none;
}

.genesis-plot-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    max-width: 220px;
    min-height: 22px;
    padding: 4px 9px;

    border-radius: 999px;
    background: rgba(255, 252, 246, 0.96);
    border: 1px solid rgba(185, 146, 71, 0.48);

    color: #071e3a;
    font-size: 11px;
    font-weight: 950;
    line-height: 1;
    text-align: center;
    white-space: nowrap;

    box-shadow:
        0 8px 18px rgba(7, 30, 58, 0.18),
        0 2px 6px rgba(7, 30, 58, 0.08);

    backdrop-filter: blur(10px);
    overflow: hidden;
    text-overflow: ellipsis;

    transition:
        opacity .16s ease,
        transform .16s ease;
}

.genesis-hover-card {
    position: absolute;
    right: 0;
    top: 0;

    width: max-content;
    min-width: 158px;
    max-width: 260px;
    padding: 8px 10px;

    border-radius: 14px;
    background: rgba(255, 252, 246, 0.98);
    border: 1px solid rgba(185, 146, 71, 0.56);

    box-shadow:
        0 18px 38px rgba(7, 30, 58, 0.24),
        0 4px 12px rgba(7, 30, 58, 0.10);

    color: #10233f;
    text-align: left;
    opacity: 0;
    visibility: hidden;
    transform: translate(-18px, -18px) scale(0.96);
    backdrop-filter: blur(14px);

    transition:
        opacity .16s ease,
        visibility .16s ease,
        transform .16s ease;
}

.genesis-node:hover .genesis-plot-label {
    opacity: 0;
    transform: translate(-18px, -18px) scale(0.95);
}

.genesis-node:hover .genesis-hover-card {
    opacity: 1;
    visibility: visible;
    transform: translate(-28px, -28px) scale(1);
}

.genesis-hover-top {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 5px;
}

.genesis-hover-badge {
    display: inline-flex;
    align-items: center;
    min-height: 16px;
    padding: 0 7px;

    border-radius: 999px;
    background: rgba(7, 30, 58, 0.95);
    color: #fff;

    font-size: 8px;
    font-weight: 950;
    line-height: 1;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.genesis-hover-type {
    display: inline-flex;
    align-items: center;

    color: #b17a12;
    font-size: 8px;
    font-weight: 950;
    line-height: 1;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.genesis-hover-name {
    display: block;
    overflow: hidden;
    max-width: 238px;

    color: #071e3a;
    font-size: 12px;
    font-weight: 950;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.genesis-hover-subtitle {
    display: block;
    overflow: hidden;
    max-width: 238px;
    margin-top: 4px;

    color: #526071;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.genesis-label-hidden .genesis-label-wrap {
    display: none;
}

/* Admin editor */
.genesis-editor-bar {
    position: fixed;
    left: 18px;
    top: 18px;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 252, 246, 0.94);
    border: 1px solid rgba(185, 146, 71, 0.45);
    box-shadow: 0 20px 60px rgba(7, 30, 58, 0.18);
    backdrop-filter: blur(14px);
}

.genesis-editor-bar button,
.genesis-editor-panel button {
    min-height: 34px;
    border: 0;
    border-radius: 999px;
    padding: 0 14px;
    background: var(--asylonia-navy);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.genesis-editor-bar span {
    color: var(--asylonia-text-soft);
    font-size: 0.86rem;
    font-weight: 700;
}

.genesis-editor-panel {
    position: fixed;
    left: 18px;
    top: 74px;
    z-index: 10000;
    width: 310px;
    max-height: calc(100vh - 94px);
    overflow: auto;
    padding: 16px;
    border-radius: 22px;
    background: rgba(255, 252, 246, 0.96);
    border: 1px solid rgba(185, 146, 71, 0.45);
    box-shadow: 0 20px 60px rgba(7, 30, 58, 0.18);
    backdrop-filter: blur(14px);
}

.genesis-editor-panel label {
    display: block;
    margin-bottom: 10px;
    color: var(--asylonia-navy);
    font-size: 0.82rem;
    font-weight: 900;
}

.genesis-editor-panel input,
.genesis-editor-panel select {
    display: block;
    width: 100%;
    margin-top: 5px;
    min-height: 36px;
    border-radius: 12px;
    border: 1px solid var(--asylonia-line);
    padding: 0 10px;
    background: #fff;
}

.gm-panel-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.genesis-editor-panel p {
    margin-top: 10px;
    color: var(--asylonia-text-soft);
    font-size: 0.82rem;
}

/* Popup card */
.genesis-popup {
    position: fixed;
    right: 28px;
    bottom: 84px;
    z-index: 9999;
    width: min(380px, calc(100vw - 40px));
    padding: 24px;
    border-radius: 24px;
    background: rgba(255, 252, 246, 0.96);
    border: 1px solid rgba(185, 146, 71, 0.45);
    box-shadow: 0 28px 80px rgba(7, 30, 58, 0.28);
    backdrop-filter: blur(14px);
    display: none;
}

.genesis-popup.is-open {
    display: block;
}

.genesis-popup h2 {
    margin: 8px 0 10px;
}

.genesis-popup h3 {
    margin: -4px 0 14px;
    color: var(--asylonia-text-soft);
    font-size: 1rem;
    font-weight: 850;
}

.genesis-popup p {
    color: var(--asylonia-text-soft);
}

.genesis-popup-close {
    position: absolute;
    right: 14px;
    top: 14px;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 0;
    background: var(--asylonia-navy);
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.genesis-popup-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.genesis-popup-badge,
.genesis-popup-verified {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 10px;

    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.genesis-popup-badge {
    background: rgba(7, 30, 58, 0.08);
    color: var(--asylonia-navy);
}

.genesis-popup-verified {
    background: var(--asylonia-navy);
    color: #fff;
}

/* Bottom-right map controls */
.genesis-map-controls {
    position: fixed;
    right: 18px;
    bottom: 16px;
    z-index: 10000;

    display: flex;
    align-items: center;
    gap: 4px;

    padding: 4px;
    border-radius: 999px;
    background: rgba(255, 252, 246, 0.58);
    border: 1px solid rgba(185, 146, 71, 0.22);
    box-shadow: 0 10px 26px rgba(7, 30, 58, 0.14);
    backdrop-filter: blur(10px);
}

.genesis-map-control-btn {
    width: 26px;
    height: 26px;

    border: 0;
    border-radius: 999px;
    background: rgba(7, 30, 58, 0.86);
    color: #fff;

    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 5px 12px rgba(7, 30, 58, 0.16);
}

.genesis-map-control-btn:hover {
    background: rgba(7, 30, 58, 0.96);
    filter: brightness(1.08);
}

@media (max-width: 760px) {
    .genesis-map-stage,
    .genesis-base-image {
        width: 1800px;
    }

    .genesis-popup {
        left: 16px;
        right: 16px;
        bottom: 76px;
        width: auto;
    }

    .genesis-editor-bar {
        left: 10px;
        top: 10px;
        max-width: calc(100vw - 20px);
        overflow-x: auto;
    }

    .genesis-editor-panel {
        left: 10px;
        top: 66px;
        width: min(310px, calc(100vw - 20px));
        max-height: calc(100vh - 148px);
    }

    .genesis-map-controls {
        right: 12px;
        bottom: 12px;
    }

    .genesis-map-control-btn {
        width: 28px;
        height: 28px;
    }

    .genesis-plot-label {
        font-size: 10px;
        min-height: 20px;
        padding: 4px 8px;
    }

    .genesis-hover-card {
        min-width: 145px;
        max-width: 220px;
    }

    .genesis-hover-name,
    .genesis-hover-subtitle {
        max-width: 200px;
    }
}

/* Public Record Preview Card upgrade */
.genesis-popup {
    width: min(420px, calc(100vw - 40px));
    padding: 22px;
}

.genesis-popup-meta {
    padding-right: 38px;
}

.genesis-popup-record-id {
    margin: 2px 0 8px;
    color: #b17a12 !important;
    font-size: 0.72rem;
    font-weight: 950;
    line-height: 1;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.genesis-popup h2 {
    margin: 0 0 8px;
    color: #071e3a;
    font-size: clamp(2rem, 5vw, 3.05rem);
    font-weight: 950;
    line-height: 0.94;
    letter-spacing: -0.045em;
}

.genesis-popup h3 {
    margin: 0 0 8px;
    color: #071e3a;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.15;
}

.genesis-popup-block {
    margin: 0 0 14px;
    color: #526071 !important;
    font-size: 0.84rem;
    font-weight: 850;
    line-height: 1.25;
}

.genesis-popup #genesisPopupDescription {
    margin: 0 0 18px;
    color: #334155;
    font-size: 0.92rem;
    line-height: 1.55;
}

.genesis-popup-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.genesis-popup-actions .btn {
    min-height: 40px;
    padding-inline: 16px;
}

.genesis-popup-report {
    display: inline-flex;
    margin-top: 14px;
    color: rgba(7, 30, 58, 0.62);
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: none;
}

.genesis-popup-report:hover {
    color: #b17a12;
    text-decoration: underline;
}

@media (max-width: 760px) {
    .genesis-popup h2 {
        font-size: 2rem;
    }

    .genesis-popup-actions {
        flex-direction: column;
    }

    .genesis-popup-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Advanced Mini Profile Card */
.genesis-profile-card {
    width: min(470px, calc(100vw - 40px));
    max-height: calc(100vh - 116px);
    overflow: auto;
    padding: 22px;
}

.genesis-popup-media {
    display: none;
    margin: 14px 0 14px;
}

.genesis-popup-media.is-visible {
    display: block;
}

.genesis-profile-hero-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid rgba(185, 146, 71, 0.28);
    box-shadow: 0 16px 34px rgba(7, 30, 58, 0.12);
    background: #efe6d8;
}

.genesis-profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 12px 0 4px;
}

.genesis-profile-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    background: rgba(7, 30, 58, 0.06);
    border: 1px solid rgba(7, 30, 58, 0.08);
    color: #071e3a;
    font-size: 0.72rem;
    font-weight: 850;
}

.genesis-popup-special {
    display: none;
    margin: 14px 0 2px;
}

.genesis-popup-special.is-visible {
    display: block;
}

.genesis-mini-section {
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(185, 146, 71, 0.26);
}

.genesis-mini-section h4 {
    margin: 0 0 10px;
    color: #071e3a;
    font-size: 0.92rem;
    font-weight: 950;
}

.genesis-wishlist-list {
    display: grid;
    gap: 8px;
}

.genesis-wishlist-person {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 9px;
    align-items: center;
    padding: 8px;
    border-radius: 14px;
    background: rgba(7, 30, 58, 0.045);
}

.genesis-wishlist-avatar {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #071e3a;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 950;
}

.genesis-wishlist-name {
    display: block;
    color: #071e3a;
    font-size: 0.82rem;
    font-weight: 950;
    line-height: 1.15;
}

.genesis-wishlist-role {
    display: block;
    color: #526071;
    font-size: 0.72rem;
    font-weight: 780;
    line-height: 1.15;
    margin-top: 2px;
}

.genesis-gateway-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.genesis-gateway-link {
    min-height: 38px;
    border-radius: 999px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(7, 30, 58, 0.92);
    color: #fff;
    text-decoration: none;
    font-size: 0.76rem;
    font-weight: 900;
    text-align: center;
}

.genesis-gateway-link:hover {
    color: #fff;
    filter: brightness(1.08);
}

.genesis-ai-panel {
    display: grid;
    gap: 10px;
}

.genesis-ai-panel p {
    margin: 0;
    color: #334155 !important;
    font-size: 0.84rem;
    line-height: 1.45;
}

.genesis-ai-feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.genesis-ai-feature-list span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    background: rgba(185, 146, 71, 0.13);
    border: 1px solid rgba(185, 146, 71, 0.28);
    color: #8a5c06;
    font-size: 0.72rem;
    font-weight: 900;
}

.genesis-popup-actions .genesis-action-primary {
    background: var(--asylonia-navy);
    color: #fff;
}

.genesis-popup-actions .genesis-action-gold {
    background: linear-gradient(180deg, #efd27b, #c99225);
    color: #071e3a;
    border-color: rgba(185, 146, 71, 0.55);
}

.genesis-popup-actions .genesis-action-light {
    background: #fff;
    color: #8a5c06;
    border: 1px solid rgba(185, 146, 71, 0.45);
}

@media (max-width: 760px) {
    .genesis-profile-card {
        max-height: calc(100vh - 96px);
    }

    .genesis-gateway-grid {
        grid-template-columns: 1fr;
    }
}

.genesis-wishlist-empty {
    padding: 14px;
    border-radius: 14px;
    background: rgba(7, 30, 58, 0.045);
    color: #526071;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.45;
}

.genesis-wishlist-more {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    padding: 10px 10px 0;
    border-top: 1px solid rgba(185, 146, 71, 0.22);
}

.genesis-wishlist-more p {
    margin: 0;
    color: #526071 !important;
    font-size: 0.78rem;
    font-weight: 850;
    line-height: 1.25;
}

.genesis-wishlist-more-btn {
    flex: 0 0 auto;
    min-width: 58px;
    min-height: 32px;
    border: 1px solid rgba(185, 146, 71, 0.48);
    border-radius: 999px;
    background: #fff;
    color: #8a5c06;
    font-size: 0.78rem;
    font-weight: 950;
    cursor: pointer;
}

.genesis-wishlist-more-btn:hover {
    background: rgba(185, 146, 71, 0.12);
}

.genesis-wishlist-more-btn:disabled {
    cursor: wait;
    opacity: 0.65;
}

.genesis-wishlist-complete {
    justify-content: center;
}

/* Bigger floating map controls */
.genesis-map-controls {
    gap: 9px;
    padding: 8px;
}

.genesis-map-control-btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
    font-size: 1.08rem;
    border-radius: 999px;
}

.genesis-map-control-exit .material-symbols-outlined {
    font-size: 24px;
    line-height: 1;
    font-variation-settings:
        'FILL' 1,
        'wght' 700,
        'GRAD' 0,
        'opsz' 24;
}
