:root {
    --bg: #0f0f0f;
    --text: #e0e0e0;
    --text-bright: #ffffff;
    --text-dim: #a0a0a0;
    --link-bg: #1a1a1a;
    --link-bg-hover: #252525;
    --link-border: #2a2a2a;
    --accent: #f6c324;
}

[data-theme="light"] {
    --bg: #f0f0f0;
    --text: #1f1f1f;
    --text-bright: #000000;
    --text-dim: #5f5f5f;
    --link-bg: #e5e5e5;
    --link-bg-hover: #dadada;
    --link-border: #d5d5d5;
    --accent: #f6c324;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.link {
    display: block;
    padding: 1rem 1.5rem;
    background: var(--link-bg);
    color: var(--text);
    text-decoration: none;
    border: 0.0625rem solid var(--link-border);
    border-radius: 0.375rem;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.01875rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.link:hover {
    background: var(--link-bg-hover);
    border-color: var(--accent);
    color: var(--text-bright);
    box-shadow: 0 0 0.625rem rgba(246, 195, 36, 0.2);
}

.link:active {
    transform: scale(0.98);
}


body.spots-page {
    display: block;
    padding: 0;
    background: var(--bg);
    min-height: 100vh;
}

.theme-toggle {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    background: var(--link-bg);
    border: 0.0625rem solid var(--link-border);
    border-radius: 0.375rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.01875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text);
    z-index: 10;
}

.theme-toggle:hover {
    background: var(--link-bg-hover);
    border-color: var(--accent);
    color: var(--text-bright);
}

.spots-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.spots-header {
    padding: 1.25rem;
    background: var(--bg);
    border-bottom: 0.0625rem solid var(--link-border);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-logo {
    color: var(--text);
    text-decoration: none;
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: -0.05em;
    transition: all 0.3s ease;
    cursor: pointer;
}

.header-logo:hover {
    color: var(--accent);
}

.map-wrapper {
    flex: 1;
    position: relative;
    overflow: hidden;
    margin: 1.25rem;
    border-radius: 0.375rem;
}

#map {
    width: 100%;
    height: 100%;
}

.leaflet-container {
    background: var(--bg);
}

.leaflet-control-zoom a {
    background: var(--link-bg);
    color: var(--text);
    border: 0.0625rem solid var(--link-border);
    display: none;
}

.leaflet-control-zoom a:hover {
    background: var(--link-bg-hover);
    color: var(--text-bright);
}

.leaflet-control-attribution {
    background: rgba(15, 15, 15, 0.8);
    color: var(--text-dim);
    display: none;
}

.leaflet-control-attribution a {
    color: var(--text);
}

.location-marker {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    border: 0.0625rem solid var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    font-weight: bold;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.location-marker:hover {
    transform: scale(1.2);
    border-width: 3px;
}

.locations-list {
    background: var(--link-bg);
    border-top: 0.0625rem solid var(--link-border);
    padding: 1.25rem;
    max-height: 15.625rem;
    overflow-y: auto;
}

.locations-title {
    font-size: 0.9rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.0625rem;
    margin-bottom: 0.9375rem;
    font-weight: 500;
}

.location-item {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: var(--link-bg);
    border: 0.0625rem solid var(--link-border);
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.location-item:hover {
    background: var(--link-bg-hover);
    border-color: var(--accent);
    box-shadow: 0 0 0.625rem rgba(246, 195, 36, 0.2);
}

.location-color-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.location-item-text {
    flex: 1;
    text-align: left;
}

.location-item-name {
    font-size: 0.95rem;
    color: var(--text);
    font-weight: 500;
}

.location-item-coords {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.locations-list::-webkit-scrollbar {
    width: 0.375rem;
}

.locations-list::-webkit-scrollbar-track {
    background: var(--link-bg);
}

.locations-list::-webkit-scrollbar-thumb {
    background: var(--link-bg-hover);
    border-radius: 0.1875rem;
}

.locations-list::-webkit-scrollbar-thumb:hover {
    background: var(--link-bg-active);
}

@media (max-width: 48rem) {
    .spots-header h1 {
        font-size: 1.5rem;
    }

    .locations-list {
        max-height: 12.5rem;
    }

    .location-item {
        padding: 0.625rem;
        font-size: 0.9rem;
    }
}
