body {
  margin: 0;
}

#lottieLoader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.3s ease;
}

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

.date-time-display {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background:#051b3e;
  color: white;
  padding: 10px 14px;
  border-radius: 8px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  text-align: center;
  min-width: 160px;
  border: 1px solid #e2e8f0;
}

.date-time-display .date {
  font-size: 12px;
  margin-bottom: 3px;
  color: white;
}

.date-time-display .time {
  font-size: 15px;
  font-weight: 600;
  color: white;
  letter-spacing: 0.5px;
}

.leaflet-popup-content-wrapper {
  border-radius: 10px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  border: 1px solid #e2e8f0 !important;
  padding: 0 !important;
}

.leaflet-popup-content {
  margin: 0 !important;
  padding: 0 !important;
  width: 255px !important;
}

.weather-popup {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  padding: 14px;
  min-width: 200px;
}

.weather-popup .city-header {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2e8f0;
}

.weather-popup .weather-icon {
  width: 32px;
  height: 32px;
  margin-right: 8px;
  flex-shrink: 0;
}

.weather-popup .city-name {
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
}

.weather-popup .temp-grid {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.weather-popup .temp-item {
  flex: 1;
  text-align: center;
  padding: 10px 8px;
  background: #f8fafc;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
  min-width: 0;
}

.weather-popup .temp-item:hover {
  background: #f1f5f9;
  transform: translateY(-1px);
}

.weather-popup .temp-label {
  font-size: 11px;
  color: #64748b;
  margin-bottom: 4px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.weather-popup .temp-value {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
}

.weather-popup .current-temp {
  background: #051b3e !important;
  border-color: #051b3e !important;
}

.weather-popup .current-temp .temp-label {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 11px;
}

.weather-popup .current-temp .temp-value {
  color: white !important;
  font-size: 16px;
}

.weather-popup .details-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  row-gap: 8px;
  column-gap: 16px;
  align-items: center;
  margin-bottom: 14px;
}

.weather-popup .detail-label,
.weather-popup .detail-value {
  font-size: 13px;
  color: #1e293b;
  line-height: 1.2;
}

.weather-popup .detail-label {
  font-weight: 600;
}

.weather-popup .detail-value {
  font-weight: 700;
  text-align: right;
}

.weather-popup .details-button-wrap {
  display: flex;
  justify-content: center;
}

.weather-popup .details-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid #334155;
  background: #fff;
  color: #1e293b;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.forecast-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.35);
  z-index: 3000;
}

.forecast-modal.is-open {
  display: flex;
}

.forecast-modal__panel {
  width: min(1480px, 100%);
  max-height: calc(100vh - 48px);
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.24);
  display: flex;
  flex-direction: column;
}

.forecast-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid #e2e8f0;
}

.forecast-modal__title {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
}

.forecast-modal__close {
  border: 0;
  background: transparent;
  color: #1e293b;
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.forecast-modal__content {
  overflow: auto;
  padding: 0 16px 16px;
}

.forecast-section {
  border-bottom: 1px solid #e2e8f0;
}

.forecast-section:last-child {
  border-bottom: 0;
}

.forecast-section__header {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 18px 8px 14px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
}

.forecast-section__chevron {
  font-size: 14px;
  transition: transform 0.2s ease;
}

.forecast-section.is-collapsed .forecast-section__chevron {
  transform: rotate(-90deg);
}

.forecast-section__body {
  padding: 0 0 16px;
}

.forecast-section.is-collapsed .forecast-section__body {
  display: none;
}

.forecast-table-wrap {
  overflow-x: auto;
}

.forecast-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1120px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.forecast-table th,
.forecast-table td {
  padding: 14px 10px;
  text-align: center;
  white-space: nowrap;
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
  color: #334155;
}

.forecast-table th {
  font-weight: 700;
  color: #1e293b;
}

.forecast-table__subhead {
  display: block;
  margin-top: 2px;
  font-size: 8px;
  color: rgb(140, 140, 140);
  font-weight: 400;
  text-transform: none;
}

.forecast-table td:first-child,
.forecast-table th:first-child {
  text-align: left;
}

.forecast-table tr:last-child td {
  border-bottom: 0;
}

.forecast-empty {
  padding: 16px 8px 8px;
  font-size: 14px;
  color: #64748b;
}

@keyframes skeleton-shimmer {
  0% { background-position: -600px 0; }
  100% { background-position: 600px 0; }
}

.forecast-skeleton-wrap {
  overflow-x: auto;
}

.forecast-skeleton {
  width: 100%;
  border-collapse: collapse;
  min-width: 1120px;
}

.forecast-skeleton th,
.forecast-skeleton td {
  padding: 14px 10px;
  text-align: center;
  white-space: nowrap;
  border-bottom: 1px solid #f1f5f9;
}

.forecast-skeleton th:first-child,
.forecast-skeleton td:first-child {
  text-align: left;
}

.forecast-skeleton tr:last-child td {
  border-bottom: 0;
}

.skeleton-cell {
  height: 16px;
  border-radius: 4px;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 600px 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}

.skeleton-cell--head {
  height: 20px;
}

#weeklyForecastSkeleton .skeleton-cell--head {
  height: 30px;
}


.leaflet-container a.leaflet-popup-close-button {
  font-size: 22px !important;
  padding: 8px 10px;
  color: #64748b;
}

@media screen and (max-width: 768px) {
  .weather-popup {
    min-width: 180px;
    padding: 12px;
  }

  .weather-popup .city-header {
    margin-bottom: 10px;
    padding-bottom: 8px;
  }

  .weather-popup .weather-icon {
    width: 28px;
    height: 28px;
  }

  .weather-popup .city-name {
    font-size: 14px;
  }

  .weather-popup .temp-grid {
    gap: 6px;
    margin-bottom: 10px;
  }

  .weather-popup .temp-item {
    padding: 8px 6px;
  }

  .weather-popup .temp-label {
    font-size: 10px; 
  }

  .weather-popup .temp-value {
    font-size: 15px; 
  }

  .weather-popup .current-temp .temp-label {
    font-size: 10px;
  }

  .weather-popup .current-temp .temp-value {
    font-size: 15px;
  }

  .weather-popup .detail-label,
  .weather-popup .detail-value {
    font-size: 12px;
  }

  .date-time-display {
    bottom: 15px;
    right: 15px;
    padding: 8px 12px;
    min-width: 140px;
    font-size: 12px;
    background-color: #051b3e;
  }

  .date-time-display .date {
    font-size: 11px;
    color: #e2e8f0;
  }

  .date-time-display .time {
    font-size: 14px;
    color: #e2e8f0;
  }
}

@media screen and (max-width: 480px) {
  .weather-popup {
    min-width: 160px;
    padding: 10px;
  }

  .weather-popup .temp-grid {
    gap: 5px;
    margin-bottom: 10px;
  }

  .weather-popup .temp-item {
    padding: 7px 5px;
  }

  .weather-popup .temp-label {
    font-size: 9px;
  }

  .weather-popup .temp-value {
    font-size: 14px;
  }

  .weather-popup .current-temp .temp-label {
    font-size: 9px;
  }

  .weather-popup .current-temp .temp-value {
    font-size: 14px;
  }

  .weather-popup .details-button {
    min-width: 84px;
    padding: 7px 12px;
    font-size: 12px;
  }

  .weather-popup .detail-label,
  .weather-popup .detail-value {
    font-size: 11px;
  }

  .forecast-modal {
    padding: 12px;
  }

  .forecast-modal__panel {
    max-height: calc(100vh - 24px);
  }

  .forecast-modal__header {
    padding: 14px 16px;
  }

  .forecast-modal__title {
    font-size: 16px;
  }

  .forecast-table th,
  .forecast-table td {
    font-size: 13px;
    padding: 12px 8px;
  }

  .date-time-display {
    bottom: 10px;
    right: 10px;
    padding: 6px 10px;
    min-width: 120px;
    font-size: 11px;
  }

  .date-time-display .time {
    font-size: 13px;
  }
}
