
/* ============================================================
  LAYOUT & CONTAINERS
============================================================ */

.map-container {
    display: none;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #111;
}

.map-container.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.map {
    width: 100%;
    height: 100%;
    display: block;
}

svg {
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

/* ============================================================
  MAP SWITCHER
============================================================ */

#map-switcher {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 1500;
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

#map-switcher button {
    background: #1a1a1a;
    color: #aaa;
    border: none;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.4px;
    transition: background 0.2s, color 0.2s;
    border-right: 1px solid #333;
}

#map-switcher button:last-child {
    border-right: none;
}

#map-switcher button.active {
    background: #c8a000;
    color: #111;
}

#map-switcher button:hover:not(.active) {
    background: #2a2a2a;
    color: white;
}

.map-total {
    font-size: 11px;
    font-weight: 400;
    color: #888;
    margin-top: 3px;
    letter-spacing: 0.3px;
}

#btn-south.active .map-total,
#btn-north.active .map-total {
    color: #333;
}

/* ============================================================
  MAP SWITCHER COLUMNS & ACT FILTER
============================================================ */

.map-switcher-col {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.act-filter {
    display: flex;
    border-top: 1px solid #333;
}

.act-btn {
    flex: 1;
    background: #111;
    color: #666;
    border: none;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.4px;
    transition: background 0.2s, color 0.2s;
    border-right: 1px solid #333;
}

.act-btn:last-child {
    border-right: none;
}

.act-btn.active {
    background: #2a2a2a;
    color: #c8a000;
}

.act-btn:hover:not(.active) {
    background: #1e1e1e;
    color: #aaa;
}

/* ============================================================
  TRACKER BAR
============================================================ */

#tracker {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1500;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}
@media (min-width: 768px) {
    #tracker {
        flex-wrap: nowrap;
    }
}

.tracker-btn {
    background: #1a1a1a;
    color: #aaa;
    border: none;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.4px;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s, opacity 0.2s;
    box-shadow: 0 2px 12px rgba(0,0,0,0.6);
    white-space: nowrap;
}

.tracker-btn:hover {
    background: #2a2a2a;
    color: white;
}

.tracker-btn.hidden-category {
    opacity: 0.65;
    text-decoration: line-through;
}

.tracker-btn .count {
    color: #c8a000;
    margin-left: 6px;
}

/* ============================================================
  SIDEBAR
============================================================ */

#sidebar {
    position: fixed;
    top: 0;
    right: -360px;
    width: 340px;
    height: 100vh;
    background: #1a1a1a;
    color: white;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    box-sizing: border-box;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -4px 0 20px rgba(0,0,0,0.5);
}

#sidebar.open {
    right: 0;
}

#sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

#sidebar-category {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
}

#sidebar-name {
    font-size: 18px;
    font-weight: bold;
}

#sidebar-close {
    background: none;
    border: none;
    color: #888;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

#sidebar-close:hover {
    color: white;
}

#sidebar-status {
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 6px;
    display: inline-block;
    background: #2a2a2a;
}

#sidebar-status[data-status="collected"]    { color: #4caf50; }
#sidebar-status[data-status="captured"]     { color: #4caf50; }
#sidebar-status[data-status="unsure"]       { color: #ffd900; }
#sidebar-status[data-status="not_collected"] { color: #f44336; }
#sidebar-status[data-status="not_captured"]  { color: #f44336; }

#sidebar-image {
    width: 100%;
    border-radius: 8px;
    display: block;
    background: #2a2a2a;
    cursor: zoom-in;
}

#sidebar-description {
    font-size: 25px;
    line-height: 1.4;
    color: #ccc;
}

/* ============================================================
  LIGHTBOX
============================================================ */

#lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}

#lightbox.open {
    display: flex;
}

#lightbox-image {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
    object-fit: contain;
    box-shadow: 0 8px 40px rgba(0,0,0,0.8);
}

/* ============================================================
  TOOLTIP
============================================================ */

#tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    pointer-events: none;
    display: none;
    z-index: 9999;
    max-width: 220px;
    line-height: 1.3;
}

/* ============================================================
  SVG COLLECTIBLE STATES
============================================================ */

.collected {
    opacity: 0.5;
    fill: black !important;
}

.unsure {
    fill: white;
    font-size: 5px;
    font-weight: bold;
    pointer-events: none;
    paint-order: stroke;
    stroke: black;
    stroke-width: 2px;
}

/* HVT captured state — dims the card image like collected does for circles */
.captured {
    opacity: 0.4;
}

#map-container:active {
    cursor: grabbing;
}

/* ============================================================
  RESET BUTTON & MODAL
============================================================ */

#reset-btn {
    position: fixed;
    bottom: 16px;
    right: 16px;
    z-index: 1500;
    background: #1a1a1a;
    color: #aaa;
    border: none;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.4px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.6);
    transition: background 0.2s, color 0.2s;
}

#reset-btn:hover {
    background: #c0392b;
    color: white;
}

#reset-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 3000;
    justify-content: center;
    align-items: center;
}

#reset-modal.open {
    display: flex;
}

#reset-modal-box {
    background: #1a1a1a;
    border-radius: 10px;
    padding: 28px 24px;
    width: 320px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#reset-modal-title {
    font-size: 16px;
    font-weight: bold;
    color: white;
}

#reset-modal-message {
    font-size: 13px;
    color: #aaa;
    line-height: 1.5;
}

#reset-modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 8px;
}

#reset-cancel {
    background: #2a2a2a;
    color: #aaa;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

#reset-cancel:hover {
    background: #333;
    color: white;
}

#reset-confirm {
    background: #c0392b;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

#reset-confirm:hover {
    background: #e74c3c;
}
