/* weather layer selector */
.weather-layer-select {
    display: block;
    width: 10rem;
    /* w-40 */
    padding: 0.5rem 2.5rem 0.5rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5rem;
    color: #111827;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.15s ease-in-out;
    appearance: none;
}

.weather-layer-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.weather-layer-select:hover {
    border-color: #9ca3af;
}

.dark .weather-layer-select {
    color: #f9fafb;
    background-color: #374151;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%9ca3af' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    border-color: #4b5563;
}

.dark .weather-layer-select:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

.dark .weather-layer-select:hover {
    border-color: #6b7280;
}


.weather-layer-label {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0;
}

.weather-layer-label-text, .weather-region-label-text {
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5rem;
    color: #111827;
}



.dark .weather-layer-label-text,
.dark .weather-region-label-text {
    color: #f9fafb;
}

@media (max-width: 640px) {
    .weather-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto 1fr;
    }
}

.map-container {
    position: relative;
    z-index: 0;
    height: 100%;
    width: 100%;
    grid-column: 1 / -1;
}



.weather-grid {
    display: grid;
    grid-template-columns: max-content 1fr;
    grid-template-rows: auto 1fr;
    align-items: center;
    gap: 1rem;
    width: 100%;
}


/* CLOUDS */
.legend-clouds-1 {
    background: linear-gradient(to right, #ffffff, #d4d4d4);
}

.legend-clouds-2 {
    background: linear-gradient(to right, #d4d4d4, #a3a3a3);
}

.legend-clouds-3 {
    background: linear-gradient(to right, #a3a3a3, #737373);
}

.legend-clouds-4 {
    background: linear-gradient(to right, #737373, #404040);
}

/* PRECIPITATION */
.legend-precipitation-1 {
    background: #c6e9ff;
}

.legend-precipitation-2 {
    background: #7cb8ff;
}

.legend-precipitation-3 {
    background: #3d8cff;
}

.legend-precipitation-4 {
    background: #0060ff;
}

.legend-precipitation-5 {
    background: #7000c6;
}

/* TEMPERATURE */
.legend-temp-1 {
    background: #7d00e3;
}

.legend-temp-2 {
    background: #0000ff;
}

.legend-temp-3 {
    background: #00ff00;
}

.legend-temp-4 {
    background: #ffff00;
}

.legend-temp-5 {
    background: #ff0000;
}

/* PRESSURE */
.legend-pressure-1 {
    background: #0000ff;
}

.legend-pressure-2 {
    background: #00ffff;
}

.legend-pressure-3 {
    background: #00ff00;
}

.legend-pressure-4 {
    background: #ffff00;
}

.legend-pressure-5 {
    background: #ff0000;
}

/* WIND */
.legend-wind-1 {
    background: #ffffff;
    border: 1px solid #d1d5db;
}

.legend-wind-2 {
    background: #73d3ff;
}

.legend-wind-3 {
    background: #00a8ff;
}

.legend-wind-4 {
    background: #ff7300;
}

.legend-wind-5 {
    background: #ff0000;
}

.coordinates-title {
    font-weight: bold;
}

.coordinates-title .fi-fo-fieldset-heading {
    font-size: 1.25rem;
    font-weight: bold;   
}

.map-picker-popup {
    min-width: 180px;
    padding: 0.25rem 0;
    color: #111827;
    font-size: 0.8125rem;
    line-height: 1.35;
}

.map-picker-popup__title {
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
}

.map-picker-popup__row {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.15rem 0;
}

.map-picker-popup__label {
    color: #6b7280;
    flex-shrink: 0;
}

.map-picker-popup__value {
    font-weight: 500;
    text-align: right;
}

.map-picker-popup-container .maplibregl-popup-content {
    padding: 0.75rem 0.875rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}

.dark .map-picker-popup {
    color: #f9fafb;
}

.dark .map-picker-popup__label {
    color: #9ca3af;
}