/* ==========================================================
   Asylonia Neo Nomad Claim Markers - compact map polish
   Purpose:
   - keep the gold marker small for 100-150 plots
   - never cover the plot number
   - avoid expensive image markers on the map
   - let Vault use badge images separately
   ========================================================== */

.neo-claim-layer {
    position: absolute;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
}

.neo-plot-hotspot {
    position: absolute;
    width: 46px !important;
    height: 18px !important;
    min-width: 46px;
    min-height: 18px;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    transform: translate(-50%, -50%);
    cursor: pointer;
    pointer-events: auto;
    touch-action: none;
    user-select: none;
    font: inherit;
}

.neo-plot-hotspot * {
    pointer-events: none;
}

.neo-plot-ring {
    position: absolute;
    left: 0;
    top: 1px;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 216, 132, 0.66);
    background: rgba(6, 4, 2, 0.46);
    box-shadow:
        0 2px 5px rgba(0, 0, 0, 0.30),
        0 0 0 1px rgba(0, 0, 0, 0.16) inset;
}

.neo-plot-dot {
    position: absolute;
    left: 3px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffd884 0%, #d09a36 62%, #9d6417 100%);
    box-shadow:
        0 0 8px rgba(255, 216, 132, 0.30),
        0 1px 2px rgba(0, 0, 0, 0.28);
    font-size: 0;
    line-height: 0;
    overflow: hidden;
}

/* Keep the original label node for accessibility/legacy code, but do not render it.
   The visible text is generated from data-plot-id so claimed plots still show the plot number,
   not a long user name that would cover the map. */
.neo-plot-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.neo-plot-hotspot::after {
    content: attr(data-plot-id);
    position: absolute;
    left: 17px;
    top: 2px;
    height: 14px;
    min-width: 25px;
    max-width: 29px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    border-radius: 999px;
    border: 1px solid rgba(255, 216, 132, 0.52);
    background: rgba(8, 5, 2, 0.64);
    color: #ffe4a2;
    font-size: 7px;
    font-weight: 950;
    letter-spacing: -0.02em;
    line-height: 1;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.26);
    overflow: hidden;
    text-overflow: clip;
    white-space: nowrap;
}

.neo-plot-hotspot.is-claimed .neo-plot-dot {
    background: linear-gradient(180deg, #8fe0a6 0%, #39b969 100%);
    box-shadow:
        0 0 9px rgba(143, 224, 166, 0.28),
        0 1px 2px rgba(0, 0, 0, 0.28);
}

.neo-plot-hotspot.is-claimed::after {
    border-color: rgba(143, 224, 166, 0.62);
    color: #d9ffe5;
}

.neo-plot-hotspot:hover,
.neo-plot-hotspot:focus-visible {
    outline: none;
    z-index: 20000 !important;
}

.neo-plot-hotspot:hover .neo-plot-ring,
.neo-plot-hotspot:focus-visible .neo-plot-ring {
    border-color: rgba(255, 216, 132, 0.96);
    box-shadow:
        0 0 0 3px rgba(255, 216, 132, 0.17),
        0 8px 18px rgba(0, 0, 0, 0.30);
}

.neo-plot-hotspot:hover::after,
.neo-plot-hotspot:focus-visible::after {
    background: rgba(8, 5, 2, 0.84);
    border-color: rgba(255, 216, 132, 0.86);
}

/* Modal kept lightweight; existing modal styles may already cover this. */
.neo-claim-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
}

.neo-claim-modal.is-open {
    display: block;
}

.neo-claim-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 3, 1, 0.66);
    backdrop-filter: blur(6px);
}

.neo-claim-card {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(420px, calc(100vw - 32px));
    border-radius: 22px;
    padding: 24px;
    background: linear-gradient(180deg, #fff8eb 0%, #f4e4c8 100%);
    border: 1px solid rgba(184, 124, 31, 0.30);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
    color: #071a34;
}

.neo-claim-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid rgba(7, 26, 52, 0.12);
    background: rgba(255, 255, 255, 0.74);
    color: #071a34;
    cursor: pointer;
}

.neo-claim-eyebrow,
.neo-claim-meta {
    color: #a46c17;
    font-size: 0.68rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.neo-claim-card h2 {
    margin: 6px 0 8px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 0.95;
    color: #071a34;
}

.neo-claim-description {
    color: rgba(7, 26, 52, 0.62);
    line-height: 1.55;
}

.neo-claim-status {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    background: #ffe0a0;
    color: #4b2a04;
    font-size: 0.7rem;
    font-weight: 950;
    text-transform: uppercase;
}

.neo-claim-status.is-claimed {
    background: #bff2cd;
    color: #0f5029;
}

.neo-claim-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.neo-claim-primary,
.neo-claim-secondary {
    min-height: 38px;
    border-radius: 999px;
    padding: 0 14px;
    font-weight: 950;
    cursor: pointer;
}

.neo-claim-primary {
    border: 0;
    color: #1a1005;
    background: linear-gradient(180deg, #ffd884 0%, #d39d3a 58%, #a76d18 100%);
}

.neo-claim-secondary {
    border: 1px solid rgba(184, 124, 31, 0.30);
    color: #071a34;
    background: rgba(255, 255, 255, 0.55);
}

.neo-claim-message {
    margin: 12px 0 0;
    color: #0f5029;
    font-weight: 800;
}

.neo-claim-message.is-error {
    color: #a12a19;
}

/* ==========================================================
   Neo Nomad Marker Size - readable compact v2
   ========================================================== */

.neo-plot-hotspot {
    width: auto !important;
    min-width: 58px !important;
    height: 26px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 0 7px 0 2px !important;
    border-radius: 999px !important;
    transform: translate(-50%, -50%) !important;
}

.neo-plot-ring {
    display: none !important;
}

.neo-plot-dot {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    border-radius: 999px !important;
    display: grid !important;
    place-items: center !important;
    font-size: 0 !important;
    background: linear-gradient(180deg, #ffd884 0%, #d39d3a 58%, #a76d18 100%) !important;
    box-shadow:
        0 0 0 1px rgba(44, 24, 6, 0.82),
        0 6px 12px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.38) !important;
}

.neo-plot-dot::after {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(25, 12, 2, 0.72);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.22);
}

.neo-plot-label {
    position: static !important;
    transform: none !important;
    display: inline-flex !important;
    align-items: center !important;
    min-height: 16px !important;
    padding: 0 5px !important;
    border-radius: 999px !important;
    color: #fff4d6 !important;
    background: rgba(20, 10, 2, 0.82) !important;
    border: 1px solid rgba(255, 216, 132, 0.42) !important;
    font-size: 0.56rem !important;
    font-weight: 950 !important;
    letter-spacing: 0.02em !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18) !important;
}

.neo-plot-hotspot:hover .neo-plot-dot,
.neo-plot-hotspot:focus-visible .neo-plot-dot {
    transform: scale(1.06);
    box-shadow:
        0 0 0 4px rgba(255, 216, 132, 0.26),
        0 8px 18px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.38) !important;
}
