/**
 * OHT Weather Widget - React Version
 * Main stylesheet
 */

.oht-weather-widget {
  font-family: Arial, sans-serif;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2px;
  color: #333;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  background-color: #fff;
  padding-bottom: 43px;
}

.oht-weather-widget.no-border {
  border: none;
  box-shadow: none;
  border-radius: 0;
}

/* Loading State */
.weather-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
  text-align: center;
}

.loading-spinner-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 150px; /* Give it some height so spinner is visible */
  width: 100%;
}

.loading-spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-left-color: #000; /* Black spinner */
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Weather Header */
.weather-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
  margin-top: 5px;
  padding-left: 10px;
  padding-right: 4px;
}

.weather-header-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.location {
  display: flex;
  align-items: center;
}

.location h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
}

.location-pin {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  color: #000000;
  margin-top:-5px;
}

.weather-search form {
  display: flex;
}

.weather-search input {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px 0 0 4px;
  font-size: 14px;
}

.weather-search button {
  padding: 8px 12px;
  background-color: #000000;
  color: white;
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-size: 14px;
}

.weather-search button:hover {
  background-color: rgb(42, 42, 42);
}

/* Current Weather */
.current-weather {
  display: flex; /* Use flex */
  flex-wrap:wrap;
  gap: 20px; /* Gap between columns */
  align-items: flex-start; /* Align items to the top */
  margin-bottom: 20px;
  padding: 20px;
  border-radius: 8px;
}
.weather-content{
  padding:3px;
}
.current-weather-container{
  flex: 1 1 300px;
}

/* Style the top part (icon + temp/condition) */
.current-weather-top {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 28px;
}

/* Larger main weather icon */
.current-weather-top > .weather-icon.large-icon {
  font-size: 84px; /* Make icon larger */
  padding-left: 20px
}

.temp-condition {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Align text left */
  text-align: left;
  margin-left: 41px;
}

/* New style for RIGHT NOW label */
.right-now-label {
  font-size: 12px;
  font-weight: bold;
  color: #666;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.temperature {
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  display: flex; /* Align icon and temp */
  align-items: center;
}

.condition {
  font-size: 18px;
  margin-top: 5px;
  color: #666;
}

.weather-details {
  display: grid; /* Use grid for two columns */
  grid-template-columns: 1fr 1fr; /* Two equal columns */
  gap: 5px 20px; /* Row gap, Column gap */
}

.detail-item {
  display: flex; /* Label and value side-by-side */
  justify-content: space-between; /* Push label and value apart */
  align-items: center;
  min-width: 0; /* Allow shrinking */
  padding-bottom: 5px;
  border-bottom: 1px solid #eee; /* Add border below each item */
}
.detail-item:nth-last-child(-n+2) { /* Remove border from last row */
  border-bottom: none;
}

.detail-label {
  font-size: 14px; /* Slightly smaller label */
  color: #333;
  margin-bottom: 0;
  margin-right: 10px; /* Space between label and value */
  font-weight: bold; /* Make label bold */
}
.today-forecast-box {
  border-radius: 8px;
  padding: 16px;
  margin-top: 5px;
  margin-left: 10px;
  border-left: 1px solid #eee;
  flex: 1 1 300px;
}

.today-forecast-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}

.today-forecast-description {
  font-size: 14px;
  margin-bottom: 16px;
  color: #555;
  line-height: 1.4;
}

.today-forecast-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tonight-forecast,
.tomorrow-forecast {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.forecast-period {
  font-weight: 600;
  font-size: 15px;
  color: #444;
}

.forecast-text {
  font-size: 14px;
  color: #555;
  line-height: 1.4;
}
.detail-value {
  font-size: 14px; /* Match label size */
  font-weight: normal; 
  text-align: right; /* Align value to the right */
  white-space: nowrap; /* Prevent wrapping */
}

/* Weather Tabs */
.weather-tabs {
  margin-top: 20px;
}

.tab-buttons {
  display: flex;
  border-bottom: 1px solid #ddd;
  margin-bottom: 15px;
}

.tab-buttons button {
  padding: 10px 20px;
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s, border-bottom 0.2s;
  color: #000;
}

.tab-buttons button.active {
  opacity: 1;
  border-bottom: 3px solid #0066cc;
  font-weight: 600;
}

.tab-buttons button:hover {
  opacity: 0.9;
}

.tab-content {
  animation: fadeIn 0.3s ease-in;
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Hourly Forecast */
.hourly-heading {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 18px;
  font-weight: normal;
}

.hourly-forecast-table {
  width: 100%;
  border-collapse: collapse;
}

.hourly-forecast-table th {
  text-align: left;
  padding: 10px;
  font-size: 12px;
  font-weight: bold;
  color: #000;
  border-bottom: 1px solid #eee;
  text-transform: uppercase;
}
.hourly-forecast-table tr {
  border-bottom: 1px solid #eee;
}
.hourly-forecast-table td {
  padding: 12px 10px;
}
.hourly-forecast-table tr:hover {
  background-color: #f5f9ff;
}

.detail-btn {
  text-align: right;
}å
.detail-circle i{
    color: #000;
}
.detail-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color:#000;
  border: none;
  background-color: #f5f5f5;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.detail-circle:hover {
  background-color: #e5e5e5;
}

/* 7 Day Forecast */
.seven-day-forecast-table {
  width: 100%;
  border-collapse: collapse;
}


.seven-day-forecast-table th {
  text-align: center;
  padding: 10px;
  font-size: 12px;
  font-weight: bold;
  color: #000;
  border-bottom: 1px solid #eee;
}

.seven-day-forecast-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #eee;
}
.seven-day-forecast-table tr:hover {
  background-color: #f5f9ff;
}

.seven-day-forecast-table td.day-name {
  width: 60px; /* Narrower day column */
  white-space: nowrap;
}

.seven-day-forecast-table td.temp-range {
  width: auto; /* Allow temp column to take remaining space */
}

.seven-day-forecast-table td.detail-btn {
  width: 1%; /* Make last column narrow */
  white-space: nowrap;
  text-align: right; /* Align button to the right */
}

.seven-day-forecast-table td.precip {
  width: 100px; /* Narrower precip and icon columns */
  text-align: center; /* Center content */
}
.seven-day-forecast-table td.weather-icon {
  width: 150px; /* Narrower precip and icon columns */
  text-align: center; /* Center content */
  font-size: 24px;
}
.day-name {
  font-weight: 600;
}

.weather-icon {
  text-align: center;
}

.icon-container {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}


.precip i {
    margin-right: 5px;
}
.temp-bar {
  display: flex;       /* Use flex for alignment */
  align-items: center; 
  justify-content: center; /* Center the slider */
  gap: 5px;            /* Add small gap between elements */
  position: relative;  
  width: 100%; /* Ensure bar takes full width of cell */
}

.temp-slider {
  /* No flex needed */
  height: 28px;
  background: linear-gradient(to right, #d9e7f3, #5a8db6);
  position: relative;  /* Position relative for absolute children */
  border-radius: 11px;
  margin: 0 auto; /* Center the slider within the bar */
}

.low-temp, .high-temp {
  font-size: 14px;
  font-weight: 600;
  position: absolute;  /* Absolute positioning */
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  z-index: 1;
}

.low-temp {
  left: 8px;
  color:#042743;       /* Dark blue text */
}

.high-temp {
  right: 8px;
  color: #fff;         /* White text */
}

/* Mobile-specific temp display - hidden by default */
.temp-range-mobile {
  display: none; /* Hide this cell by default */
}

.temp-text-mobile {
  display: none; /* Hide text by default */
  font-size: 14px;
  font-weight: 600;
  color: #042743;
  text-align: center;
  white-space: nowrap;
}

/* Weather Map */
.map-tab {
  position: relative;
}

.radar-controls {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.radar-locations button, 
.radar-layers button {
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.radar-locations button:hover,
.radar-layers button:hover {
  background-color: #f5f5f5;
}

.radar-layers {
  display: flex;
  gap: 5px;
}

.weather-map {
  width: 100%;
  background-color: #f0f0f0;
  border-radius: 4px;
  position: relative;
}

.map-loading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  color: #666;
}

.map-timestamp {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 12px;
  color: #888;
}

.map-legend {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.legend-scale {
  width: 100px;
  height: 10px;
  background: linear-gradient(to right, #0066ff, #00ff00, #ffff00, #ff9900, #ff0000);
  border-radius: 2px;
}

.legend-labels {
  width: 100px;
  display: flex;
  justify-content: space-between;
}

/* Weather Detail Modal */
.weather-detail-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-header {
  padding: 16px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin: 0;
  color: #333;
  font-size: 18px;
}

.close-button {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}

.close-button:hover {
  color: #000;
}

.modal-body {
  padding: 16px;
}

.detail-overview {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.detail-summary {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.detail-temps {
  font-size: 16px;
  margin-bottom: 8px;
}

.detail-temps .high {
  color: #d9534f;
  font-weight: bold;
}

.detail-temps .low {
  color: #5bc0de;
  font-weight: bold;
  margin-top: 4px;
}

.detail-condition {
  flex: 1;
  min-width: 200px;
}

.detail-condition h4 {
  margin: 0 0 8px 0;
  color: #333;
}

.detail-condition p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

.detail-sections {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-section {
  background-color: #f9f9f9;
  border-radius: 6px;
  padding: 12px;
}

.detail-section h4 {
  margin: 0 0 8px 0;
  font-size: 16px;
  color: #444;
  border-bottom: 1px solid #eee;
  padding-bottom: 4px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 14px;
}

.detail-row .label {
  color: #666;
}

.detail-row .value {
  font-weight: 500;
  color: #333;
}

.detail-day-night {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.detail-day-night .day,
.detail-day-night .night {
  flex: 1;
  min-width: 200px;
}

.detail-day-night .day h4 {
  color: #f0ad4e;
}

.detail-day-night .night h4 {
  color: #5bc0de;
}

.detail-section.astro .detail-row {
  margin-bottom: 8px;
}

@media (max-width: 600px) {
  .modal-content {
    width: 95%;
  }
  
  .detail-summary {
    flex-direction: column;
  }
  
  .detail-day-night {
    flex-direction: column;
    gap: 8px;
  }
  
  .detail-row {
    font-size: 13px;
  }
}

/* Responsive Styles */
@media (max-width: 768px) {
  .oht-weather-widget {
    padding: 11px;
  }
  
  .current-weather {
    gap: 20px;
  }
  
  .weather-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .weather-search form {
    width: 100%;
  }
  
  .weather-search input {
    flex: 1;
  }
  
  .today-forecast-details {
    flex-direction: column;
    gap: 15px;
  }
  
  .tonight-forecast, .tomorrow-forecast {
    width: 100%;
  }
  
  .tab-buttons button {
    padding: 8px 12px;
    font-size: 14px;
  }
  
  .detail-row {
    flex-direction: column;
    gap: 8px;
  }
  
  .detail-item {
    flex-direction: row;
    justify-content: space-between;
    min-width: auto;
  }

  /* Show mobile temp text, hide temp bar */
  .seven-day-forecast-table td.temp-range {
    display: none; /* Hide original temp bar column */
  }
  .seven-day-forecast-table td.temp-range-mobile {
    display: table-cell; /* Show mobile temp text column */
  }
  .seven-day-forecast-table .temp-text-mobile {
    display: block; /* Show the mobile text */
  }
  .today-forecast-box{
    margin-left: 0px;
    border-left: unset;
    padding: 0px;
  }
}

/* 7 Day Forecast Expandable Rows */
.seven-day-forecast-table tr.expanded-row {
  background-color: #f5f9ff;
}

.seven-day-forecast-table .detail-circle.expanded svg {
  transform: rotate(90deg);
}

.seven-day-forecast-table .detail-circle svg {
  transition: transform 0.3s ease;
}

.details-row {
  background-color: #f5f9ff;
}

.day-details {
  padding: 15px;
  animation: slideDown 0.3s ease-in-out;
  overflow: hidden;
}

@keyframes slideDown {
  from { max-height: 0; opacity: 0; }
  to { max-height: 1000px; opacity: 1; }
}

.day-details-header {
  margin-bottom: 10px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 5px;
  display: flex;
  justify-content: space-between;
}

.day-details-header h3 {
  margin: 0;
  font-size: 16px;
  color: #444;
}

.forecast-narrative {
  margin: 5px 0;
  font-size: 14px;
  font-style: italic;
  color: #666;
  line-height: 1.4;
}

.day-details-content {
  display: flex;
  flex-direction: column;
  gap: 0px;
}

/* New grid layout for weather stats */
.weather-stats-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 15px;
}

.stat-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex: 1;
  min-width: 250px;
}

.stat-box {
  display: flex;
  flex-direction: column;
  min-width: 100px;
  padding: 8px 12px;
  background-color: #f8f9fa;
  border-radius: 5px;
  border-left: 3px solid #4dabf7;
}

.stat-box:nth-child(2) {
  border-left-color: #fd7e14;
}

.stat-box:nth-child(3) {
  border-left-color: #20c997;
}

.stat-box:nth-child(4) {
  border-left-color: #7950f264;
}

.stat-label {
  font-size: 12px;
  color: #6c757d;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 15px;
  font-weight: 500;
  color: #343a40;
}

.high-value {
  color: #e03131;
}

.low-value {
  color: #1971c2;
}

/* Day/Night section */
.day-night-container {
  margin-top: 10px;
  background-color: white;
  border-radius: 6px;
  padding: 15px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.section-title {
  margin: 0 0 12px 0;
  font-size: 15px;
  color: #495057;
  padding-bottom: 8px;
  border-bottom: 1px solid #e9ecef;
}

.day-night-columns {
  display: flex;
  gap: 20px;
}

.time-column {
  flex: 1;
  padding: 10px 15px;
  border-radius: 5px;
  background-color: #f8f9fa;
}

.day-column {
  border-left: 3px solid #fd7e14;
}

.night-column {
  border-left: 3px solid #1971c2;
}

.time-column h5 {
  margin: 0 0 10px 0;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.day-column h5 {
  color: #fd7e14;
}

.night-column h5 {
  color: #1971c2;
}

.time-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.time-detail {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.detail-temp {
  font-size: 24px;
  font-weight: 600;
}

.detail-condition {
  font-size: 13px;
  color: #495057;
}

.mini-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 5px;
}

.mini-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background-color: white;
  padding: 5px 8px;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  min-width: 70px;
}

.mini-label {
  font-size: 11px;
  color: #6c757d;
}

.mini-value {
  font-size: 13px;
  font-weight: 500;
  color: #343a40;
}

/* Responsive design */
@media (max-width: 600px) {
  .weather-stats-grid {
    flex-direction: column;
    gap: 10px;
  }
  
  .day-night-columns {
    flex-direction: column;
    gap: 15px;
  }
}

/* Condensed weather stats for 7-day forecast */
.weather-stats-condensed {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid #eee;
  padding-bottom: 16px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  min-width: 100px;
}

.stat-label {
  font-size: 12px;
  color: #666;
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.mini-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.mini-stat {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  color: #555;
}

/* New detailed day layout */
.day-details-grid {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.day-summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.day-icon {
  margin-bottom: 5px;
}

.large-icon {
  font-size: 48px;
}

.day-temps {
  display: flex;
  align-items: center;
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 10px;
}

.day-high-temp {
  color: #000;
}

.day-low-temp {
  color: #666;
  font-size: 28px;
}

.day-narrative {
  font-size: 14px;
  color: #555;
  line-height: 1.4;
  margin-top: 10px;
}

.weather-details-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
}

.detail-item-label {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.detail-item-value {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.night-forecast-section {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 5px;
}

.night-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.night-description {
  font-size: 14px;
  line-height: 1.5;
  color: #444;
}

@media (max-width: 650px) {
  .day-details-grid {
    grid-template-columns: 1fr;
  }
  
  .day-summary {
    margin-bottom: 20px;
  }
}

/* Two-column layout for weather details */
.details-two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.details-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (max-width: 450px) {
  .details-two-column {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* Hourly forecast styling update */
.hourly-temp {
  display: flex;
  align-items: center;
  white-space: nowrap;
  font-size: 20px;
}
thead{
  background-color: ghostwhite;

}

.hourly-icon {
  font-size: 22px;
  margin-right: 5px;
}

.hourly-wind {
  text-align: left;
  white-space: nowrap;
}

.hourly-wind i {
  font-size: 22px;
  color: #555;
  margin-right: 5px;
}

.hourly-precip {
  white-space: nowrap;
}

.hourly-precip i {
  margin-right: 5px;
}

/* Hourly Forecast Expandable Details */
.hourly-forecast-table tr.expanded-row {
  background-color: #f5f9ff;
}

.hourly-forecast-table .detail-circle.expanded i {
  transform: rotate(90deg);
}

.hourly-forecast-table .detail-circle i {
  transition: transform 0.3s ease;
  color: #000;
}

.details-row {
  background-color: #f9f9fa;
}

.hourly-details {
  padding: 15px;
  animation: slideDown 0.3s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: space-evenly;

}

.hourly-time-temp {
  text-align: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.hourly-time {
  font-size: 18px;
  font-weight: 600;
}

.hourly-temp-detail {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 32px;
}

.hourly-condition-name {
  font-size: 16px;
  color: #666;
}

.hourly-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 15px;
  background-color: #f8f9fa;
  border-radius: 4px;
  /* border: 1px solid #eee; */
  overflow: hidden;
}

.hourly-detail-left, 
.hourly-detail-right {
  padding: 10px 15px;
}
.hourly-details-right-section {
  margin-left: 10px;
  border-left: 1px solid #eee;
}
.hourly-detail-left {
  border-right: 1px solid #eee;
}

.hourly-detail-left .detail-item-row,
.hourly-detail-right .detail-item-row {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border:unset;
  /* border-bottom: 1px solid #eee; */
}

.hourly-detail-left .detail-item-row:last-child,
.hourly-detail-right .detail-item-row:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.detail-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
  margin-bottom: 8px;
}

.detail-item-row.uv-row {
  max-width: 250px;
  margin: 5px auto;
  padding: 8px 15px;
  border: 1px solid #eee;
  border-radius: 4px;
  background-color: #f8f9fa;
}

.detail-item-label {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.detail-item-value {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
}

@media (max-width: 600px) {
  .hourly-details-grid {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  
  .hourly-details-columns {
    flex-direction: column;
  }
  
  .hourly-detail-left {
    border-right: none;
    border-bottom: 1px solid #eee;
  }
}

/* Wind icon styling */
.wi-wind {
  font-size: 22px;
  display: inline-block;
}

.towards-0-deg {
  transform: rotate(0deg);
} 

.leaflet-attribution-flag{
  display: none !important;
}

/* Weather Alerts Styles */
.weather-alerts-container {
  margin-bottom: 15px;
  width: 100%;
}

/* Alert banner styling to match the red warning banner in the screenshot */
.weather-alert {
  background-color: #ffffff;
  border-radius: 4px;
  margin-bottom: 5px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.weather-alert:first-child {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.weather-alert:last-child {
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  margin-bottom: 0;
}

.weather-alert .alert-header {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  cursor: pointer;
  position: relative;
}

.weather-alert:first-child .alert-header {
  background-color: #c41e3a;
  color: white;
}

.weather-alert:first-child .alert-headline {
  color: white;
  font-weight: 700;
}

.weather-alert .alert-icon {
  margin-right: 12px;
  font-size: 20px;
  flex-shrink: 0;
}

.weather-alert .alert-headline {
  flex-grow: 1;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.weather-alert .alert-toggle {
  margin-left: 8px;
  font-size: 12px;
  color: inherit;
  opacity: 0.7;
}

.weather-alert .alert-details {
  padding: 0 16px 16px;
  background-color: #f8f9fa;
  font-size: 14px;
  line-height: 1.5;
  border-top: 1px solid #eee;
}

.weather-alert .alert-meta {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  font-size: 13px;
  color: #666;
}

.weather-alert .alert-instructions h4,
.weather-alert .alert-description h4 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
}

.weather-alert .alert-instructions p,
.weather-alert .alert-description p {
  margin: 0 0 16px;
  white-space: pre-line;
}

.weather-alert .alert-timing {
  font-size: 12px;
  color: #666;
  padding-top: 12px;
  border-top: 1px solid #eee;
}

.weather-alert .alert-timing p {
  margin: 4px 0;
}

/* Animation for expanded alert */
.weather-alert.expanded {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Winter storm watch specific styling to match screenshot */
.weather-alert[data-alert-type="winter-storm-watch"] .alert-header {
  background-color: #c41e3a;
  color: white;
}
.oht-sidebar .oht-weather-widget .oht-weather-container.in-widget .weather-content{
  padding: 0;
}

/* .oht-sidebar .oht-weather-widget .hourly-forecast-table th:last-child,
.oht-sidebar .oht-weather-widget .hourly-forecast-table td:last-child{
  display: none;
} */
/* hide wind icon column .hourly-forecasttable*/
.oht-sidebar .oht-weather-widget .hourly-forecast-table th:nth-child(3),
.oht-sidebar .oht-weather-widget .hourly-forecast-table td:nth-child(3){
  display: none;
}

/* for 7 day hide precip column */
.oht-sidebar .oht-weather-widget .seven-day-forecast-table th:nth-child(3),
.oht-sidebar .oht-weather-widget .seven-day-forecast-table td:nth-child(3){
  display: none;
}
.oht-sidebar .details-row .hourly-details, .oht-sidebar .details-row .day-details-content{
  display:grid;
}
.oht-sidebar .detail-circle{
  width:0px;
}
.oht-sidebar .hourly-details{
  padding: 0px;
  justify-content: unset;
}
.oht-sidebar .hourly-detail-left{
  border:unset;
  padding:0px;
}
.oht-sidebar .hourly-detail-right{
  padding:0px;
  border:unset;
}
.oht-sidebar .hourly-details-right-section{
  border:unset;
  margin-right:10px;
}
.oht-sidebar .details-row .hourly-details-grid, .oht-sidebar .details-row .day-details-grid{
  grid-template-columns: 1fr;
  border:unset;
  gap:0px;
}
/* for 7 day hide last column
.oht-sidebar .oht-weather-widget .seven-day-forecast-table th:last-child,
.oht-sidebar .oht-weather-widget .seven-day-forecast-table td:last-child{
  display: none;
} */
.oht-sidebar .today-forecast-box {
  border-radius: 8px;
  padding: 0px;
  margin:0px;
  border:unset;
}
.oht-sidebar .details-two-column{
  grid-template-columns: 1fr;
}
/* Show mobile temp text, hide temp bar in .oht-sidebar */
.oht-sidebar .seven-day-forecast-table td.temp-range {
  display: none; 
}
.oht-sidebar .seven-day-forecast-table td.temp-range-mobile {
  display: table-cell; 
}
.oht-sidebar .seven-day-forecast-table .temp-text-mobile {
  display: block; 
}
.oht-sidebar .current-weather{
  padding: 2px;
}
.oht-sidebar .weather-details{
  gap: 5px 12px;
}
.oht-sidebar .oht-weather-widget {
  padding-bottom: 10px;
  margin-bottom: 10px;
}
.wi {
  font-weight: bold!important;
}

/* Ensure tab content allows centering */
.tab-content.hourly-tab,
.tab-content.forecast-tab {
  position: relative; /* Needed for absolute centering of spinner if used directly */
  /* Add padding or min-height if needed */
  padding: 20px;
}

/* Hide timeline controls on small screens */
@media (max-width: 500px) {
  /* Hide only the slider, keep the time display */
  .time-slider {
    display: none;
  }
  .timeline-container {
    /* Adjust layout now that slider is gone */
    flex-grow: 1; /* Allow it to take space */
    justify-content: center; /* Center the time display */
  }
  .time-display {
    width: auto; /* Allow time display to size naturally */
    text-align: center;
  }
  /* Optional: Adjust spacing of remaining controls if needed */
  .radar-controls.bottom-bar .timeline-controls {
    margin: 0 auto; /* Center play/prev/next buttons */
  }
  /* Hide only the text in the layers button */
  .layers-btn-text {
    display: none;
  }
  /* Adjust button padding if icon looks lonely */
  .radar-controls.bottom-bar .layers-btn {
    padding: 6px 8px; /* Reduce padding */
  }
  .tab-content.hourly-tab, .tab-content.forecast-tab {
    padding: 0px;
  }
  .tab-content.map-tab {
    margin-bottom: 42px;
  }
}
