html, body {
    height: 100%;
}

body {
    font-family: "Inter", "Segoe UI", Tahoma, sans-serif;
    background-color: #111827;
    color: #f8fafc;
}

#map {
    position: relative;
    min-height: 100vh;
    width: 100%;
    z-index: 1;
}

.country-select-wrapper {
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

#countrySelect {
    background-color: rgba(15, 23, 42, 0.35);
    border-color: rgba(255, 255, 255, 0.35);
    color: #f8fafc;
    border-radius: 999px;
    padding: 0.75rem 1.5rem;
    min-width: 200px;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

#countrySelect:focus {
    box-shadow: 0 0 0 0.2rem rgba(14, 165, 233, 0.35);
    background-color: rgba(15, 23, 42, 0.35);
    border-color: rgba(255, 255, 255, 0.35);
    color: #f8fafc;
}

.weather-card {
    background: linear-gradient(150deg, rgba(204, 14, 233, 0.12), rgba(59, 130, 246, 0.08));
}

.highlight-card {
    box-shadow: 0 0 0 0.25rem rgba(14, 165, 233, 0.35) !important;
}

.currency-form .form-control,
.currency-form .form-select {
    background-color: rgba(15, 23, 42, 0.08);
}

.currency-form .form-control:focus,
.currency-form .form-select:focus {
    box-shadow: 0 0 0 0.2rem rgba(14, 165, 233, 0.25);
}

.weather-modal-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.weather-day-card {
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    padding: 1.25rem;
    background: rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.weather-day-card--accent {
    background: linear-gradient(150deg, rgba(14, 165, 233, 0.3), rgba(59, 130, 246, 0.25));
    color: #0f172a;
    box-shadow: 0 12px 30px rgba(14, 165, 233, 0.25);
}

.weather-day-card__icon {
    font-size: 2.5rem;
    color: #0ea5e9;
}

.weather-day-card--accent .weather-day-card__icon {
    color: #0f172a;
}

.weather-day-card__temps {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: 1.5rem;
}

.weather-day-card__temp-max {
    font-size: 1.75rem;
}

.weather-day-card__meta {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.weather-day-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.weather-day-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.25);
}

.weather-daily-grid {
    display: grid;
    gap: 1rem;
}

.weather-day {
    border-radius: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    overflow: hidden;
    background-color: rgba(15, 23, 42, 0.35);
}

.weather-day summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.1rem;
    cursor: pointer;
    background: rgba(15, 23, 42, 0.25);
    transition: background 0.2s ease;
}

.weather-day summary::-webkit-details-marker {
    display: none;
}

.weather-day[open] summary {
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(59, 130, 246, 0.15);
}

.weather-day-temps {
    display: flex;
    gap: 0.35rem;
    font-weight: 600;
}

.weather-hourly-table {
    max-height: 260px;
    overflow-y: auto;
}

.weather-hourly-table table {
    color: #0f172a;
    background-color: rgba(248, 250, 252, 0.9);
}

.poi-marker {
    width: 40px;
    height: 52px;
}

.poi-marker__body {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--marker-color, #38bdf8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--marker-icon-color, #0f172a);
    font-size: 1.1rem;
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.35);
}

.poi-marker__body::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px 8px 0 8px;
    border-style: solid;
    border-color: var(--marker-color, #38bdf8) transparent transparent transparent;
    filter: drop-shadow(0 6px 6px rgba(15, 23, 42, 0.2));
}

.poi-marker__body i {
    text-shadow: 0 2px 6px rgba(15, 23, 42, 0.35);
}

.weather-hourly-table thead {
    position: sticky;
    top: 0;
    background-color: rgba(148, 163, 184, 0.18);
}

@media (max-width: 991.98px) {
    #map {
        min-height: 100vh;
    }
}

#loader {
    z-index: 1055;
    background: rgba(17, 24, 39, 0.95);
    transition: opacity 0.4s ease;
}

#loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.leaflet-container {
    font: inherit;
}

.leaflet-control-layers {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.leaflet-control-layers-toggle {
    background-color: rgba(240, 240, 240, 0.95) !important;
    width: 36px;
    height: 36px;
    border-radius: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    opacity: 1 !important;
}

.leaflet-control-layers-toggle:hover {
    background-color: rgba(250, 250, 250, 0.95) !important;
}

.leaflet-control-layers-expanded {
    padding: 0.6rem;
    background: rgba(255, 255, 255, 0.95);
}

.leaflet-control-layers-list {
    margin: 0;
    padding: 0;
}

.leaflet-control-layers-base label {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.poi-control {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    padding: 0.6rem;
    min-width: 180px;
}

.poi-control-toggle {
    display: none;
    cursor: pointer;
    padding: 0.5rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #333;
    background-color: rgba(240, 240, 240, 0.95);
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
}

.poi-control-toggle:hover {
    background-color: rgba(250, 250, 250, 0.95);
}

.poi-control-expanded {
    display: block;
}

.poi-control-expanded label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
    cursor: pointer;
    color: #333;
    font-size: 0.875rem;
}

.poi-control-expanded input[type="checkbox"] {
    accent-color: #0ea5e9;
}

.layers-checkbox-group {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.layers-checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
    cursor: pointer;
    color: #333;
    font-size: 0.875rem;
}

.layers-checkbox-group input[type="checkbox"],
.layers-checkbox-group input[type="radio"] {
    accent-color: #0ea5e9;
}

.leaflet-control-layers label {
    color: #333;
}

.leaflet-control-layers-selector {
    margin-right: 0.5rem;
}

#countryDetails img {
    max-width: 120px;
    max-height: 80px;
    object-fit: contain;
}

#countryDetails .stat-card {
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(14, 116, 144, 0.1), rgba(59, 130, 246, 0.15));
    padding: 1rem;
}

#countryDetails dt {
    font-weight: 600;
    color: #1f2937;
}

#countryDetails dd {
    margin-bottom: 0.5rem;
    color: #111827;
}

.news-item {
    border-radius: 0.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.15);
}

.leaflet-popup-content-wrapper {
    border-radius: 0.75rem;
}

