@font-face {
  font-family: 'Funnel Display';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/funnel-display-v2-latin-300.woff2') format('woff2');
}

@font-face {
  font-family: 'Funnel Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/funnel-display-v2-latin-regular.woff2') format('woff2');
}

:root {
    --primary-dark: #5A827E;
    --primary-medium: #84AE92;
    --primary-light: #B9D4AA;
    --accent: #FAFFCA;
    --text-color: #333;
}

body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Funnel Display', sans-serif;
    font-weight: 300;
    background-color: var(--primary-light);
}

#pre-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid var(--primary-dark);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#map {
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    visibility: hidden; /* Hide map until loaded */
}

#country-selector-container {
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 0.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

#country-selector-container .form-select {
    min-width: 250px;
}

/* Modal and Card Styling */
.modal-header, .card-header {
    background-color: var(--primary-medium);
    color: var(--accent);
    border-bottom: 1px solid var(--primary-light);
}

.modal-header h5, .card-header h5 {
    font-weight: 400;
}

.info-group {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-bottom: 1px solid #dee2e6;
}

.info-group:last-child {
    border-bottom: none;
}

.info-group i {
    font-size: 1.5rem; /* Larger icons */
    margin-right: 15px;
    color: var(--primary-dark);
    flex-shrink: 0;
    width: 30px; /* Fixed width for alignment */
    text-align: center;
}

.info-label {
    font-weight: 400;
    color: var(--primary-dark);
    margin-right: auto;
}

.info-value {
    text-align: right;
    font-weight: 400;
    color: var(--text-color);
}

 
.current-weather-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    text-align: center;
}

.current-weather-summary #current-weather-icon {
    font-size: 4rem;
    color: var(--primary-dark);
}
.current-weather-summary #current-weather-temp {
    font-weight: 400;
    color: var(--text-color);
}

.current-weather-summary #current-weather-desc {
    text-transform: capitalize;
    font-size: 1.1rem;
    color: #6c757d;
}

#country-flag-general {
    height: 24px;
    border: 1px solid #dee2e6;
    border-radius: 3px;
    display: none;
}

#weather-forecast-container .fs-4 {
    font-size: 1.5rem !important;
    color: var(--primary-dark);
    padding: 0.25rem 0;
}

#weather-forecast-container .fs-4 {
    font-size: 1.5rem !important;
    color: var(--primary-dark);
    padding: 0.25rem 0;
}

.airport-icon {
    color: #007bff;
    font-size: 1.5rem;
}

/* Currency Converter */
.currency-converter .input-group-text {
    width: 60px;
    font-weight: bold;
    justify-content: center;
}
.currency-converter .bi-arrow-down-up {
    font-size: 1.5rem;
    color: var(--primary-medium);
}

/* News List */
#news-list .list-group-item, #cities-list .list-group-item, #places-of-interest-list .list-group-item {
    border: none;
    padding-left: 0;
    padding-right: 0;
    border-bottom: 1px solid #eee;
}
#news-list .list-group-item:last-child, #cities-list .list-group-item:last-child, #places-of-interest-list .list-group-item:last-child {
    border-bottom: none;
}

#news-list a, #cities-list a, #places-of-interest-list a {
    text-decoration: none;
    color: var(--text-color);
}
#news-list a:hover, #cities-list a:hover, #places-of-interest-list a:hover {
    color: var(--primary-dark);
}
#news-list .news-title {
    font-weight: 400;
    display: block;
}
#news-list .news-source {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Leaflet Easy Button Customizations */
.leaflet-bar button, .leaflet-bar button:hover {
    background-color: white !important;
    color: #333 !important;
    border-bottom: 1px solid #ccc !important;
}

.leaflet-bar button .bi {
    font-size: 16px;
}

/* Custom Popup Styling */
.leaflet-popup-content-wrapper {
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    background-color: rgba(255, 255, 255, 0.95);
}

.leaflet-popup-content {
    font-family: 'Funnel Display', sans-serif;
    font-weight: 300;
    margin: 13px 19px;
    line-height: 1.4;
}

.leaflet-popup-tip-container {
    display: none;
}

/* Marker Cluster Styling */
.marker-cluster {
    color: var(--text-color);
    border-radius: 50%;
    font-weight: 400;
    transition: background-color 0.2s ease-in-out;
    font-family: 'Funnel Display', sans-serif;
    background-color: rgba(185, 212, 170, 0.6); 
}

/* Custom styles for the news modal list */
.list-group-item a {
    text-decoration: none;
    color: inherit;
}

.list-group-item a:hover .news-title {
    color: #0d6efd; /* Bootstrap's primary blue color */
}

.news-title {
    display: block;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.25rem;
    transition: color 0.2s ease-in-out;
}

.news-source {
    display: block;
    font-size: 0.85em;
    color: #6c757d;
}
.news-date {
    font-size: 0.75em;
    color: #adb5bd;
}