:root {
    --primary-color: #0077b6;
    --secondary-color: #00b4d8;
    --text-color: #2d3436;
    --bg-color: #f5f6fa;
    --card-bg: #ffffff;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
}

.dark-theme {
    --primary-color: #90e0ef;
    --secondary-color: #48cae4;
    --text-color: #dfe6e9;
    --bg-color: #2d3436;
    --card-bg: #3b3f47;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-container {
    min-height: calc(100vh - 200px);
    display: flex;
    flex-direction: column;
}

/* Header Section */
.header-section {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
}

.title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    max-width: 800px;
    margin: 0 auto;
}

/* Map Section */
.map-wrapper {
    flex: 1;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.map-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: 600px;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

#map {
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

#map.loaded {
    opacity: 1;
}

/* Loading Spinner */
.loading-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--card-bg);
    z-index: 10;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--primary-color);
    border-top: 5px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    margin-top: 1rem;
    font-size: 1rem;
    color: var(--text-color);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .title {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .map-container {
        height: 400px;
    }

    .header-section {
        padding: 40px 15px;
    }

    .map-wrapper {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 1.6rem;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    .map-container {
        height: 300px;
    }

    .loading-spinner {
        width: 40px;
        height: 40px;
        border-width: 4px;
    }

    .loading-text {
        font-size: 0.9rem;
    }
}