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

body {
    font-family: 'Monaco', 'Courier New', monospace;
    background: #000;
    color: #00ff00;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* Matrix rain background */
#matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.15;
}

.container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px 0;
    border-bottom: 2px solid #00ff00;
    text-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00;
    animation: glitch 3s infinite;
}

@keyframes glitch {
    0%, 100% {
        text-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00;
    }
    50% {
        text-shadow: 0 0 20px #00ff00, 0 0 40px #00ff00, -2px 0 #ff00ff;
    }
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    letter-spacing: 4px;
    position: relative;
}

h1::before {
    content: '> ';
    color: #00ff00;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.subtitle {
    font-size: 1rem;
    opacity: 0.8;
    letter-spacing: 2px;
    font-weight: 300;
}

/* Loading animation */
.loading {
    text-align: center;
    padding: 40px;
    color: #00ff00;
    font-size: 1.2rem;
}

.loading::after {
    content: '...';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* Controls */
.controls {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #00ff00;
    border-radius: 0;
    flex-wrap: wrap;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3), inset 0 0 20px rgba(0, 255, 0, 0.05);
    backdrop-filter: blur(10px);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-size: 0.9rem;
}

select {
    background: #000;
    color: #00ff00;
    border: 1px solid #00ff00;
    padding: 8px 15px;
    border-radius: 0;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s;
    text-shadow: 0 0 5px #00ff00;
}

select:hover {
    background: #001a00;
    box-shadow: 0 0 15px #00ff00, inset 0 0 10px rgba(0, 255, 0, 0.1);
}

select:focus {
    outline: none;
    box-shadow: 0 0 20px #00ff00, inset 0 0 15px rgba(0, 255, 0, 0.2);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 20px #00ff00; }
    50% { box-shadow: 0 0 30px #00ff00, 0 0 40px #00ff00; }
}

.stats {
    margin-left: auto;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Map */
#map {
    height: 500px;
    width: 100%;
    border: 2px solid #00ff00;
    border-radius: 0;
    margin-bottom: 30px;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.5), inset 0 0 30px rgba(0, 255, 0, 0.05);
    position: relative;
}

#map::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, transparent 0%, rgba(0, 255, 0, 0.03) 50%, transparent 100%),
        linear-gradient(0deg, transparent 0%, rgba(0, 255, 0, 0.03) 50%, transparent 100%);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 1000;
}

/* Places List */
.places-list {
    margin-top: 30px;
}

.places-list h2 {
    margin-bottom: 20px;
    font-size: 1.8rem;
    border-bottom: 1px solid #00ff00;
    padding-bottom: 10px;
}

#placesList {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Place Card */
.place-card {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #00ff00;
    border-radius: 0;
    padding: 20px;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.place-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00ff00, transparent, #00ff00);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.place-card:hover::before {
    opacity: 0.3;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.place-card:hover {
    background: rgba(0, 26, 0, 0.8);
    box-shadow: 0 0 25px rgba(0, 255, 0, 0.6), inset 0 0 15px rgba(0, 255, 0, 0.1);
    transform: translateY(-5px);
    border-color: #0f0;
}

.place-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #00ff00;
}

.place-card .type {
    display: inline-block;
    background: #003300;
    color: #00ff00;
    padding: 3px 10px;
    border-radius: 0;
    font-size: 0.8rem;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.place-card .address {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 10px;
}

.place-card .rating {
    font-size: 1rem;
    margin-bottom: 5px;
}

.place-card .info {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    font-size: 0.85rem;
    opacity: 0.7;
}

.place-card .info a {
    color: #00ff00;
    text-decoration: none;
    transition: opacity 0.3s;
}

.place-card .info a:hover {
    opacity: 1;
    text-shadow: 0 0 5px #00ff00;
}

/* Leaflet Popup Custom Styles */
.leaflet-popup-content-wrapper {
    background: #0a0a0a;
    color: #00ff00;
    border: 1px solid #00ff00;
    border-radius: 0;
}

.leaflet-popup-content {
    margin: 15px;
    font-family: 'Monaco', 'Courier New', monospace;
}

.leaflet-popup-tip {
    background: #0a0a0a;
    border: 1px solid #00ff00;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
    }
    
    .controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .stats {
        margin-left: 0;
        text-align: center;
    }
    
    #map {
        height: 400px;
    }
    
    #placesList {
        grid-template-columns: 1fr;
    }
}