/* Hotspots page */
body {
    background: #0a0a0a;
    color: #e0e0e0;
    min-height: 100vh;
}

/* Header */
.hotspots-header {
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.95), transparent);
    pointer-events: none;
}

.hotspots-header > * {
    pointer-events: auto;
}

/* Title */
.hotspots-title {
    padding: 7rem 2rem 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.hotspots-title h1 {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: white;
    margin-bottom: 0.25rem;
}

.hotspots-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.05em;
}

/* Layout */
.hotspots-layout {
    display: flex;
    gap: 0;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem 2rem;
    height: calc(100vh - 10rem);
}

/* List */
.hotspots-list {
    width: 360px;
    min-width: 300px;
    overflow-y: auto;
    padding-right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hotspots-list::-webkit-scrollbar {
    width: 4px;
}

.hotspots-list::-webkit-scrollbar-track {
    background: transparent;
}

.hotspots-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
}

.hotspot-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hotspot-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(212, 160, 23, 0.3);
}

.hotspot-card.active {
    background: rgba(212, 160, 23, 0.08);
    border-color: rgba(212, 160, 23, 0.5);
}

.hotspot-card-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.25rem;
}

.hotspot-card-type {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #d4a017;
    margin-bottom: 0.35rem;
}

.hotspot-card-address {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
}

/* Map */
.hotspots-map-wrap {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

#map {
    width: 100%;
    height: 100%;
    background: #1a1a1a;
}

/* Override Leaflet for dark theme */
.leaflet-container {
    font-family: monospace;
}

.leaflet-tile-pane {
    filter: invert(1) hue-rotate(180deg) brightness(0.85) contrast(1.1) saturate(0.3);
}

.leaflet-control-zoom a {
    background: #1a1a1a !important;
    color: #ccc !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

.leaflet-control-zoom a:hover {
    background: #2a2a2a !important;
    color: white !important;
}

.leaflet-control-attribution {
    background: rgba(10, 10, 10, 0.8) !important;
    color: rgba(255, 255, 255, 0.3) !important;
    font-size: 0.65rem !important;
}

.leaflet-control-attribution a {
    color: rgba(212, 160, 23, 0.5) !important;
}

/* Custom marker */
.hotspot-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #d4a017;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.hotspot-marker:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 16px rgba(212, 160, 23, 0.4);
}

.hotspot-marker.active {
    background: white;
    border-color: #d4a017;
    transform: scale(1.3);
    box-shadow: 0 4px 20px rgba(212, 160, 23, 0.5);
}

.hotspot-marker-inner {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}

.hotspot-marker.active .hotspot-marker-inner {
    background: #d4a017;
}

/* Map popup */
.leaflet-popup-content-wrapper {
    background: rgba(20, 20, 20, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6) !important;
    color: #e0e0e0 !important;
    font-family: monospace !important;
    max-width: 280px;
}

.leaflet-popup-tip {
    background: rgba(20, 20, 20, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-top: none !important;
    border-left: none !important;
}

.leaflet-popup-content {
    margin: 0 !important;
    padding: 0 !important;
}

.popup-content {
    padding: 1rem 1.25rem;
}

.popup-name {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.2rem;
}

.popup-type {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #d4a017;
    margin-bottom: 0.6rem;
}

.popup-description {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
    margin-bottom: 0.6rem;
}

.popup-address {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 0.5rem;
}

.popup-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.popup-tag {
    font-size: 0.65rem;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    background: rgba(212, 160, 23, 0.1);
    color: rgba(212, 160, 23, 0.7);
    letter-spacing: 0.05em;
}

/* Detail overlay */
.hotspot-detail-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.hotspot-detail-overlay.open {
    display: flex;
}

.detail-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 2rem;
    cursor: pointer;
    z-index: 2010;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    transition: color 0.2s ease;
}

.detail-close:hover {
    color: white;
}

.detail-content {
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
}

.detail-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
}

.detail-type {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #d4a017;
    margin-bottom: 1rem;
}

.detail-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.detail-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.detail-meta-row {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}

.detail-meta-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.3);
    min-width: 70px;
}

.detail-meta-value {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.detail-meta-value a {
    color: rgba(212, 160, 23, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.detail-meta-value a:hover {
    color: #d4a017;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.detail-tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    background: rgba(212, 160, 23, 0.1);
    color: rgba(212, 160, 23, 0.7);
    letter-spacing: 0.05em;
}

/* Responsive */
@media (max-width: 900px) {
    .hotspots-layout {
        flex-direction: column;
        height: calc(100vh - 9rem);
        padding: 0 1rem 1rem;
    }

    .hotspots-list {
        width: 100%;
        min-width: 0;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        padding-right: 0;
        padding-bottom: 0.75rem;
        gap: 0.5rem;
        flex-shrink: 0;
    }

    .hotspot-card {
        min-width: 220px;
        flex-shrink: 0;
    }

    .hotspots-map-wrap {
        flex: 1;
        min-height: 0;
    }

    .hotspots-title {
        padding: 6rem 1rem 1rem;
    }

    .hotspots-title h1 {
        font-size: 1.8rem;
    }

    .detail-content {
        padding: 1.5rem;
    }
}

