:root {
    --primary-red: #D8232A; /* Michelin Red */
    --deep-blue: #002B5B;  /* Deep Blue */
    --white: #FFFFFF;
    --light-gray: #F5F5F7;
    --dark-gray: #333333;
    --font-main: 'Outfit', sans-serif;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

body, html {
    height: 100%;
    font-family: var(--font-main);
    overflow: hidden;
}

.guru-filter {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 90%;
    max-width: 600px;
}

.brand {
    background: var(--primary-red);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 50px;
    box-shadow: var(--shadow);
}

.brand h1 {
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-bar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    gap: 10px;
    padding: 8px;
    border-radius: 40px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 43, 91, 0.1);
}

.filter-btn {
    border: none;
    background: transparent;
    padding: 10px 20px;
    border-radius: 30px;
    font-family: var(--font-main);
    font-weight: 600;
    color: var(--deep-blue);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-btn:hover {
    background: rgba(0, 43, 91, 0.05);
}

.filter-btn.active {
    background: var(--deep-blue);
    color: var(--white);
}

#map {
    height: 100vh;
    width: 100vw;
    background: var(--light-gray);
}

/* Custom Popup Styles */
.leaflet-popup-content-wrapper {
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
}

.leaflet-popup-content {
    margin: 0;
    width: 250px !important;
}

.guru-popup {
    padding: 15px;
}

.guru-popup h3 {
    color: var(--deep-blue);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.guru-popup .dish {
    font-weight: 600;
    color: var(--primary-red);
    margin-bottom: 10px;
}

.guru-popup p {
    font-size: 0.9rem;
    color: var(--dark-gray);
    margin-bottom: 15px;
    line-height: 1.4;
}

.guru-btn {
    display: block;
    width: 100%;
    background: var(--primary-red);
    color: var(--white);
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease;
}

.guru-btn:hover {
    background: #b51d23;
    transform: translateY(-2px);
}

.guru-btn:active {
    transform: translateY(0);
}

.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Locate Me Button */
.locate-btn {
    position: absolute;
    bottom: 30px;
    right: 20px;
    z-index: 1000;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--white);
    color: var(--deep-blue);
    border: none;
    box-shadow: var(--shadow);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.locate-btn:hover {
    transform: scale(1.1);
    background: var(--deep-blue);
    color: var(--white);
}

.locate-btn:active {
    transform: scale(0.95);
}

/* Custom Markers */
.custom-marker {
    display: flex;
    align-items: center;
    justify-content: center;
}

.marker-pin {
    width: 30px;
    height: 30px;
    border-radius: 50% 50% 50% 0;
    background: var(--primary-red);
    position: absolute;
    transform: rotate(-45deg);
    left: 50%;
    top: 50%;
    margin: -15px 0 0 -15px;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.marker-pin::after {
    content: '';
    width: 14px;
    height: 14px;
    margin: 8px 0 0 8px;
    background: white;
    position: absolute;
    border-radius: 50%;
}

.marker-pin.orange {
    background: #FF8C00;
}

/* User Location Dot */
.user-location-dot {
    width: 15px;
    height: 15px;
    background: #007AFF;
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(0, 122, 255, 0.2), 0 2px 5px rgba(0,0,0,0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 122, 255, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 122, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 122, 255, 0); }
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .filter-bar {
        width: 100%;
        overflow-x: auto;
        justify-content: flex-start;
    }
    
    .filter-btn {
        padding: 8px 15px;
        font-size: 0.8rem;
    }

    .locate-btn {
        bottom: 20px;
        right: 15px;
        width: 50px;
        height: 50px;
    }
}
