/* =========================================================
   WORLD / MAP
   ========================================================= */

.worldSection {
    background:
        radial-gradient(
            circle at center,
            rgba(50, 81, 57, 0.17),
            transparent 65%
        );
}

.mapLayout {
    display: grid;
    grid-template-columns:
        minmax(0, 2fr)
        minmax(300px, 1fr);

    gap: 0;

    max-width: 1350px;
    margin: 0 auto;

    align-items: stretch;

    overflow: hidden;

    border: 1px solid var(--border-strong);
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.52);
}

.mapWrapper {
    position: relative;

    min-width: 0;
    width: 100%;

    overflow: hidden;
    
    align-self: start;
}

.worldMap {
    display: block;
    width: 100%;
    height: auto;
}


/* =========================================================
   MAP MARKERS
   ========================================================= */

.mapLocation {
    position: absolute;

    width: 28px;
    height: 28px;

    padding: 0;

    border: 1px solid var(--gold-light);
    border-radius: 50%;

    background: rgba(30, 17, 8, 0.85);

    transform: translate(-50%, -50%);
    cursor: pointer;

    box-shadow:
        0 0 0 5px rgba(201, 166, 91, 0.08),
        0 0 22px rgba(228, 201, 130, 0.3);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.mapLocation span {
    position: absolute;
    left: 50%;
    top: 50%;

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--gold-light);
    transform: translate(-50%, -50%);
}

.mapLocation:hover {
    background: var(--forest-light);

    transform:
        translate(-50%, -50%)
        scale(1.22);

    box-shadow:
        0 0 0 8px rgba(201, 166, 91, 0.12),
        0 0 32px rgba(228, 201, 130, 0.55);
}

.mapLocation.selected {
    background: var(--gold);

    transform:
        translate(-50%, -50%)
        scale(1.25);

    box-shadow:
        0 0 0 8px rgba(201, 166, 91, 0.14),
        0 0 35px rgba(228, 201, 130, 0.7);
}

.mapLocation.selected span {
    background: #161b13;
}

.mapLocation.editing {
    outline: 3px solid white;

    box-shadow:
        0 0 0 8px rgba(201, 166, 91, 0.25),
        0 0 40px rgba(228, 201, 130, 0.9);
}


/* =========================================================
   MAP INFO PANEL
   ========================================================= */

.mapInfo {
    min-width: 0;
    min-height: 100%;

    display: flex;
    flex-direction: column;
    align-items: stretch;

    padding: 32px;

    border-left: 1px solid var(--border-strong);

    background:
        linear-gradient(
            145deg,
            rgba(24, 33, 25, 0.98),
            rgba(10, 15, 11, 0.98)
        );
}

.mapInfo h3 {
    margin-bottom: 10px;

    color: var(--cream);
    font-size: 1.8rem;
}

.mapLocationType {
    margin-bottom: 14px;

    color: var(--gold);

    font-size: 0.78rem;
    font-weight: bold;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.mapLocationImage {
    
    max-height: 200px;
    max-width: 200px;

    margin: 18px 0;

    object-fit: cover;

    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

#mapLocationDescription {
    color: var(--muted);
}

.mapLocationBooks {
    margin-top: auto;
    padding-top: 28px;
}

.mapBooksLabel {
    margin-bottom: 10px;

    color: var(--gold);

    font-size: 0.72rem;
    font-weight: bold;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.mapBookLink {
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.mapBookLink:hover {
    transform: translateY(-1px);
}


/* =========================================================
   MAP EDITOR
   ========================================================= */

.mapEditHelper {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 5000;

    width: 260px;
    padding: 18px;

    border: 1px solid var(--gold);

    background: rgba(8, 13, 9, 0.96);
    color: var(--cream);

    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.65);
}

.mapEditHelper strong {
    display: block;
    margin-bottom: 10px;

    color: var(--gold-light);
    letter-spacing: 0.08em;
}

#mapEditSelected {
    margin-bottom: 8px;
    color: var(--muted);
}

#mapEditCoords {
    margin-bottom: 12px;

    color: var(--gold-light);

    font-family: monospace;
    font-size: 1rem;
}

.mapEditHelper button {
    width: 100%;
    padding: 8px 12px;

    border: 1px solid var(--gold);

    background: transparent;
    color: var(--gold-light);

    cursor: pointer;
}

.mapEditHelper button:hover {
    background: rgba(201, 166, 91, 0.12);
}

