/* Custom styles for the page */
body {
    font-family: "Inter", sans-serif;
    background-color: #f9fafb;
    /* bg-gray-50 */
    color: #1f2937;
    /* text-gray-800 */
}

/* Styling for the map container */
.map-container {
    position: relative;
    width: 100%;
    height: 70vh;
    /* 70% of the viewport height */
    border-radius: 0.75rem;
    /* rounded-xl */
    overflow: hidden;
    /* Ensures the map stays within the rounded corners */
    box-shadow:
        0 20px 25px -5px rgb(0 0 0 / 0.1),
        0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.map {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
}

.maplibregl-ctrl-attrib {
    display: none;
}

/* Styling for the elevation display */
#elevation {
    font-family: monospace;
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: white;
    color: black;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

#profile-canvas {
    width: 100%;
    height: 100%;
    cursor: crosshair;
}

.profile-container {
    position: relative;
    width: 100%;
    height: 400px;
    background: white;
    border-radius: 0.75rem;
    padding: 1rem;
    box-shadow:
        0 20px 25px -5px rgb(0 0 0 / 0.1),
        0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.map-profile {
    height: 500px;
    border-radius: 0.75rem;
    box-shadow:
        0 20px 25px -5px rgb(0 0 0 / 0.1),
        0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.profile-marker {
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #818cf8, #4f46e5);
    border: 2px solid white;
    box-shadow:
        0 0 6px rgba(79, 70, 229, 0.5),
        0 2px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    will-change: width, height;
}

.profile-marker:hover {
    transform: scale(1.4) !important;
}

.maplibregl-marker {
    will-change: transform;
}

/* Theme switcher buttons */
.theme-switcher {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    padding: 0.4rem 0.6rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.theme-btn {
    font-family: "Inter", sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
    background: transparent;
    border: none;
    padding: 0.3rem 0.75rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.theme-btn:hover {
    background: #1c646c !important;
    color: #ffffff !important;
    box-shadow: 0 1px 4px rgba(28, 100, 108, 0.35);
}

.theme-btn.active {
    background: #1c646c !important;
    color: #ffffff !important;
    box-shadow: 0 1px 4px rgba(28, 100, 108, 0.4);
}
