* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    overflow: hidden;
    background: #1a1a2e;
}

#map-container {
    position: relative;
    width: 100vw;
    height: 100vh;
}

#map {
    width: 100%;
    height: 100%;
}

/* Navigation Bar */
.navbar {
    border-radius: 50px;
    margin-top: 30px;
    position: absolute;
    top: 0;
    left: 5%;
    width: 90%;
    z-index: 1000;
    background: #006376;
    padding: 15px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 15px;
    font-size: 1.8rem;
    font-weight: 700;
    color: #37b465;
    text-decoration: none;
}

.logo i {
    font-size: 2rem;
}

.nav-center {
    display: flex;
    align-items: center;
    gap: 30px;
    flex: 1;
    justify-content: center;
    margin: 0 30px;
}

.search-container {
    position: relative;
    display: flex;
    flex: 1;
    max-width: 500px;
}

.search-box {
    display: flex;
    width: 100%;
}

.search-box input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 30px 0 0 30px;
    outline: none;
    font-size: 1rem;
}

.search-box button {
    background: #8bc83f;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    font-size: 1rem;
}

.search-box button:hover {
    background: #37b465;
}

.autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1001;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: none;
}

.autocomplete-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.autocomplete-item:hover {
    background: #f5f5f5;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-icon {
    color: #37b465;
    font-size: 1rem;
}

.autocomplete-text {
    display: flex;
    flex-direction: column;
}

.autocomplete-main-text {
    font-weight: 500;
}

.autocomplete-secondary-text {
    font-size: 0.85rem;
    color: #666;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 5px;
    transition: all 0.3s;
    white-space: nowrap;
}

.nav-links a:hover, .nav-links a.active {
    background: #8bc83f;
    color: white;
}

.user-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.user-actions button {
    padding: 8px 16px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.sign-in {
    background: #37b465;
    color: #ffffff;
    border: 1px solid #37b465;
}

.sign-up {
    background: #37b465;
    color: white;
}

.sign-in:hover {
    background: #37b465;
    color: white;
}

.sign-up:hover {
    background: #37b465;
}

/* Controls Panel */
.controls {
    position: absolute;
    top: 100px;
    left: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    width: 350px;
    max-width: 90vw;
}

.controls h2 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: #333;
}

.controls p {
    color: #666;
    margin-bottom: 20px;
}

.location-list {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.location-item {
    padding: 12px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.location-item:hover {
    background: #f5f5f5;
}

.location-item:last-child {
    border-bottom: none;
}

.location-icon {
    color: #37b465;
    font-size: 1.2rem;
}

.location-name {
    font-weight: bold;
    margin-bottom: 3px;
}

.location-address {
    font-size: 0.85rem;
    color: #666;
}

.quick-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.action-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    background: #f0f4ff;
    color: #4285F4;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.action-btn:hover {
    background: #4285F4;
    color: white;
}

/* Map Controls */
.map-controls {
    position: absolute;
    bottom: 30px;
    left: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.map-btn {
    background: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.map-btn:hover {
    background: #f5f5f5;
    transform: scale(1.05);
}

.current-location {
    color: #8bc83f;
    background-color: #2f4858;
}

.zoom-in {
    color: #ffffff;
    background-color: #2f4858;
}

.zoom-out {
    color: #ffffff;
    background-color: #2f4858;
}

.attribution {
    position: absolute;
    bottom: 10px;
    left: 44.5%;
    width: 11%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    color: #333;
}

/* Mobile Responsiveness */
@media (max-width: 1100px) {
    .nav-center {
        flex-direction: column;
        gap: 15px;
        margin: 10px 0;
    }
    
    .search-container {
        max-width: 100%;
    }
    
    .nav-links {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-center {
        order: 3;
        width: 100%;
    }
    
    .controls {
        width: 90%;
        left: 5%;
        top: 120px;
    }
    
    .map-controls {
        bottom: 20px;
        right: 10px;
    }
    
    .map-btn {
        width: 45px;
        height: 45px;
    }
    
    .quick-actions {
        flex-direction: column;
    }
}
