* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    font-family: 'Arial', sans-serif;
    overflow: hidden;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

#map {
    height: 100vh;
    width: 100vw;
    z-index: 1;
}

.overlay-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.95) 0%, rgba(69, 160, 73, 0.95) 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    min-height: 60px;
}

.header-left {
    flex: 0 0 auto;
}

.header-center {
    flex: 1;
    text-align: center;
    padding: 0 10px;
}

.header-right {
    flex: 0 0 auto;
    width: 40px;
}

.overlay-header h1 {
    font-size: 1.8em;
    margin-bottom: 5px;
    line-height: 1.2;
}

.overlay-header p {
    font-size: 0.9em;
    opacity: 0.9;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropdown-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.hamburger {
    font-size: 18px;
    line-height: 1;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.95);
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-top: 5px;
    z-index: 1001;
}

.dropdown-content a {
    color: #333;
    padding: 16px 20px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s ease;
    border-radius: 8px;
    font-size: 16px;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.dropdown-content a:hover {
    background-color: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

.dropdown.active .dropdown-content {
    display: block;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    padding: 20px;
    box-sizing: border-box;
}

.modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    margin: 10% auto;
    padding: 0;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
    overflow: hidden;
    position: relative;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-content h2 {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 20px;
    margin: 0;
    font-size: 1.5em;
    text-align: center;
    position: relative;
}

.modal-body {
    padding: 30px 20px;
    text-align: center;
}

.modal-body h3 {
    color: #333;
    font-size: 1.3em;
    margin-bottom: 15px;
    font-weight: 600;
}

.modal-body p {
    color: #666;
    font-size: 1.1em;
    margin: 0;
    font-style: italic;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.close:hover {
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.2);
}

.overlay-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(52, 58, 64, 0.95);
    color: white;
    text-align: center;
    padding: 10px 20px;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
}

.overlay-footer p {
    margin: 0;
    opacity: 0.8;
    font-size: 0.8em;
}

.success-message {
    color: #28a745;
    font-weight: bold;
}

.error-message {
    color: #dc3545;
    font-weight: bold;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .overlay-header {
        padding: 12px 15px;
        min-height: 56px;
    }
    
    .overlay-header h1 {
        font-size: 1.3em;
        margin-bottom: 2px;
    }
    
    .overlay-header p {
        font-size: 0.75em;
    }
    
    .header-center {
        padding: 0 8px;
    }
    
    .dropdown-btn {
        padding: 10px 12px;
        font-size: 14px;
        min-width: 40px;
        min-height: 40px;
    }
    
    .hamburger {
        font-size: 16px;
    }
    
    .dropdown-content {
        min-width: 140px;
        right: 0;
        left: auto;
    }
    
    .dropdown-content a {
        padding: 14px 16px;
        font-size: 14px;
        min-height: 40px;
    }
    
    .modal {
        padding: 15px;
    }
    
    .modal-content {
        width: 100%;
        margin: 15% auto;
        max-width: none;
    }
    
    .modal-content h2 {
        font-size: 1.2em;
        padding: 16px;
    }
    
    .modal-body {
        padding: 20px 16px;
    }
    
    .modal-body h3 {
        font-size: 1.1em;
        margin-bottom: 12px;
    }
    
    .modal-body p {
        font-size: 0.95em;
        line-height: 1.4;
    }
    
    .close {
        top: 12px;
        right: 16px;
        font-size: 24px;
        width: 28px;
        height: 28px;
    }
    
    .overlay-footer {
        padding: 8px 15px;
    }
    
    .overlay-footer p {
        font-size: 0.7em;
    }
}

@media (max-width: 480px) {
    .overlay-header {
        padding: 10px 12px;
        min-height: 52px;
    }
    
    .overlay-header h1 {
        font-size: 1.1em;
        line-height: 1.1;
    }
    
    .overlay-header p {
        font-size: 0.7em;
    }
    
    .header-center {
        padding: 0 6px;
    }
    
    .dropdown-btn {
        padding: 8px 10px;
        font-size: 12px;
        min-width: 36px;
        min-height: 36px;
    }
    
    .hamburger {
        font-size: 14px;
    }
    
    .dropdown-content {
        min-width: 120px;
    }
    
    .dropdown-content a {
        padding: 12px 14px;
        font-size: 13px;
        min-height: 36px;
    }
    
    .modal {
        padding: 10px;
    }
    
    .modal-content {
        margin: 20% auto;
    }
    
    .modal-content h2 {
        font-size: 1.1em;
        padding: 14px;
    }
    
    .modal-body {
        padding: 16px 12px;
    }
    
    .modal-body h3 {
        font-size: 1em;
        margin-bottom: 10px;
    }
    
    .modal-body p {
        font-size: 0.9em;
        line-height: 1.3;
    }
    
    .close {
        top: 10px;
        right: 12px;
        font-size: 20px;
        width: 24px;
        height: 24px;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .overlay-header h1 {
        font-size: 1em;
    }
    
    .modal-content {
        margin: 25% auto;
    }
    
    .modal-body {
        padding: 14px 10px;
    }
}

/* Landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .modal-content {
        margin: 5% auto;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .modal-body {
        padding: 15px;
    }
}