:root {
    --primary-yellow: #FFD700;
    --primary-red: #FF3131;
    --primary-blue: #0088ff;
    --bg-dark: #0a0a0f;
    --card-bg: rgba(20, 20, 25, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-white: #ffffff;
    --text-gray: #b0b0b0;
    --glow-yellow: 0 0 15px rgba(255, 215, 0, 0.5);
    --glow-red: 0 0 15px rgba(255, 49, 49, 0.5);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Background Stars Effect */
.stars-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #1b2735 0%, #090a0f 100%);
    z-index: -1;
}

.stars-bg::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 20px 30px, #eee, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 40px 70px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 50px 160px, #ddd, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 90px 40px, #fff, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 200px 200px;
    opacity: 0.3;
}

/* Header Styles */
header {
    text-align: center;
    padding: 3rem 1rem;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
}

.logo-container {
    margin-bottom: 1.5rem;
}

.main-logo {
    max-width: 280px;
    filter: drop-shadow(0 0 20px var(--primary-yellow));
    animation: floating 3s ease-in-out infinite;
}

h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.pixel-text {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.6em;
    color: var(--primary-red);
    text-shadow: var(--glow-red);
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
    letter-spacing: 1px;
}

/* Map Container */
.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1rem 5rem;
}

.map-wrapper {
    position: relative;
    width: 100%;
    max-width: 1100px;
    background: var(--card-bg);
    border-radius: 20px;
    padding: 10px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    overflow: auto;
}

.map-container {
    position: relative;
    width: 100%;
    min-width: 800px; /* Force minimum width for the grid map */
}

#base-map {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    opacity: 0.85;
}

.markers-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Marker Styles */
.marker {
    position: absolute;
    width: 28px;
    height: 28px;
    background: var(--primary-yellow);
    border: 2px solid #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: 800;
    font-size: 11px;
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--glow-yellow);
    z-index: 10;
}

.marker:hover {
    transform: translate(-50%, -50%) scale(1.5);
    background: #fff;
    z-index: 20;
    box-shadow: 0 0 25px #fff;
}

.marker.active {
    background: var(--primary-red);
    box-shadow: var(--glow-red);
    color: #fff;
}

/* Info Overlay */
.info-overlay {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 500px;
    z-index: 1000;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 0;
    pointer-events: none;
}

.info-overlay.active {
    bottom: 30px;
    opacity: 1;
    pointer-events: all;
}

.glass-card {
    background: rgba(15, 15, 20, 0.85);
    backdrop-filter: blur(25px);
    border: 1px solid var(--primary-yellow);
    padding: 2rem;
    border-radius: 25px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.8);
    text-align: center;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 24px;
    cursor: pointer;
}

.close-btn:hover {
    color: var(--primary-red);
}

#vendor-name {
    color: var(--primary-yellow);
    margin-bottom: 1rem;
    line-height: 1.4;
}

#vendor-desc {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 140px;
    justify-content: center;
}

.social-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-btn.tiktok {
    background: #000000;
    border-color: #ff0050;
    box-shadow: 2px 2px 0px #00f2ea, -2px -2px 0px #ff0050;
}

.social-btn.bluesky {
    background: #0085ff;
}

.social-btn.linktree {
    background: #43e660;
    color: #171a1c;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    filter: brightness(1.1);
}

.social-btn i {
    font-size: 1.2rem;
}

/* Footer */
footer {
    padding: 3rem 1rem;
    background: rgba(0,0,0,0.8);
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.organizer-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
    margin-bottom: 20px;
}

.footer-logo {
    height: 40px;
}

.org-name {
    font-weight: 800;
    color: var(--primary-yellow);
}

.divider {
    color: var(--text-gray);
    opacity: 0.3;
}

.event-details {
    font-size: 0.9rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Stands List Section */
.stands-list-container {
    width: 100%;
    max-width: 1100px;
    margin-top: 4rem;
    padding: 0 10px;
}

.section-title {
    color: var(--primary-yellow);
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-red);
    margin: 10px auto 0;
    border-radius: 2px;
}

.stands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    width: 100%;
}

.stand-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.stand-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-yellow);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.stand-number {
    background: var(--primary-yellow);
    color: #000;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: var(--glow-yellow);
}

.stand-info {
    flex: 1;
    overflow: hidden;
}

.stand-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stand-action {
    color: var(--text-gray);
    font-size: 1rem;
    transition: color 0.3s ease;
}

.stand-card:hover .stand-action {
    color: var(--primary-red);
}

.loading-text, .error-text {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--text-gray);
    font-style: italic;
}

/* Animations */
@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Mobile Tweaks */
@media (max-width: 600px) {
    h1 { font-size: 2rem; }
    .subtitle { font-size: 0.9rem; }
    .glass-card { padding: 1.5rem; }
}
