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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    overflow-x: hidden;
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

body.loaded {
    opacity: 1;
}

#map {
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
}

.info-badge {
    top: 20px;
}

.instruction-banner {
    top: 80px;
}

.alert-notification {
    top: 80px;
}

@media (max-width: 768px) {        
    .info-badge {
        top: 20px;
    }
    
    .instruction-banner {
        top: 80px;
    }
    
    .alert-notification {
        top: 80px;
    }
}

.controls {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 10px;
}

.btn {
    background: #dc2626;
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.3s;
    touch-action: manipulation;
}

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

.btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.btn-secondary {
    background: #1e40af;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 24px;
    max-width: 400px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1f2937;
}

.form-group {
    margin-bottom: 16px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

input, textarea, select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.modal-actions .btn {
    flex: 1;
}

.btn-cancel {
    background: #6b7280;
}

.notification-item {
    background: #f3f4f6;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 14px;
}

.notification-item button {
    background: #dc2626;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    margin-top: 8px;
    cursor: pointer;
    font-size: 13px;
}

.info-badge {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 12px 20px;
    border-radius: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    font-weight: 600;
    color: #1f2937;
    font-size: 14px;
}

.alert-notification {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: #dc2626;
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 2001;
    max-width: 90%;
    animation: slideDown 0.3s ease-out;
    display: none;
}

@keyframes slideDown {
    from {
        transform: translateX(-50%) translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

.alert-notification.show {
    display: block;
}

.instruction-banner {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: #1e40af;
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 1000;
    max-width: 90%;
    font-size: 14px;
    display: none;
}

.instruction-banner.show {
    display: block;
}

.delete-btn-popup {
    background: #991b1b;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    margin-top: 8px;
    display: block;
    width: 100%;
}

.age-indicator {
    font-size: 11px;
    color: #6b7280;
    font-style: italic;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 3000;
}

.loading-overlay.show {
    display: flex;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #dc2626;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.ios-install-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 20px;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.3);
    z-index: 2000;
    display: none;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.ios-install-banner.show {
    display: block;
}

.ios-banner-content {
    max-width: 600px;
    margin: 0 auto;
}

.ios-banner-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.ios-banner-title {
    font-weight: 700;
    font-size: 16px;
}

.ios-banner-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ios-banner-steps {
    font-size: 14px;
    line-height: 1.6;
}

.ios-banner-step {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

.ios-banner-step-number {
    background: rgba(255,255,255,0.3);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    margin-right: 10px;
    flex-shrink: 0;
}

.ios-share-icon {
    display: inline-block;
    font-weight: 700;
    padding: 0 4px;
}

@media (max-width: 768px) {
    .ios-install-banner {
        padding: 12px 16px;
    }
    
    .ios-banner-title {
        font-size: 14px;
    }
    
    .ios-banner-steps {
        font-size: 13px;
    }
}

.android-install-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #34A853 0%, #0F9D58 100%);
    color: white;
    padding: 16px 20px;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.3);
    z-index: 2000;
    display: none;
    animation: slideUp 0.3s ease-out;
}

.android-install-banner.show {
    display: block;
}

.android-banner-content {
    max-width: 600px;
    margin: 0 auto;
}

.android-banner-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.android-banner-title {
    font-weight: 700;
    font-size: 16px;
}

.android-banner-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.android-banner-steps {
    font-size: 14px;
    line-height: 1.6;
}

.android-banner-step {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

.android-banner-step-number {
    background: rgba(255,255,255,0.3);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    margin-right: 10px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .android-install-banner {
        padding: 12px 16px;
    }
    
    .android-banner-title {
        font-size: 14px;
    }
    
    .android-banner-steps {
        font-size: 13px;
    }
}

.floatingchat-container-wrap {
    transform: scale(0.75) !important;
    transform-origin: bottom right !important;
}
