html, body {
  margin: 0;
  padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
  }
  
  h1 {
    text-align: center;
  }
  
  .forecast-container {
    width: 100%;
    margin: 0 auto;
    margin-top: 20px;
    overflow-x: auto;
    position: relative;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  }
  
  table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: white;
    font-size: 0.7em;
  }
  
  th, td {
    padding: 2px;
    text-align: center;
    border: 1px solid #ffffff;
  }
  
  th {
    background-color: #f0f0f0;
  }
  
  .wind-speed, .wind-gusts {
    font-weight: bold;
    transition: background-color 0.3s ease-in-out; /* Smooth transition */
  }
  
  td.wind-direction-cell {
    font-size: 1.2em;
    font-weight: bold;
    text-align: center;
  }
  
  .wind-direction {
    display: inline-block;
    transform: rotate(var(--rotation));
    position: relative;
    width: 2px;
    height: 20px;
  }
  
  .wind-direction::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 8px solid #333;
  }
  
  .wind-direction::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 14px;
    background-color: #333;
  }
  
  .search-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-left: auto; /* Forces alignment to the right */
    max-width: 300px;
    min-width: 120px;
    position: relative;
  }

  /* Search input styling */
  #searchInput {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #DDDDDD;
    border-radius: 24px;
    font-size: 14px;
    line-height: 20px;
    outline: none;
    transition: box-shadow 0.2s ease;
  }

  #searchInput:focus {
    border-color: #222222;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  .spot-search {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
  }

  .search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
  }

  .dropdown-option {
    padding: 10px;
    cursor: pointer;
  }

  .dropdown-option:hover {
    background-color: #f5f5f5;
  }

.spot-container {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
}

.spot-content {
    display: flex;
    flex-direction: row;
}

.spot-name {
    width: 100px;
    flex: 0 0 auto;
    /* width: 120px;
    flex: 0 0 120px; */
    font-size: 14px;
    font-weight: 500;
    position: sticky;
    left: 0;
    background: #f4f4f4;
    z-index: 1;
    padding: 10px;
    align-items: center;
    box-shadow: 5px 0 5px -2px rgba(0, 0, 0, 0.1);
    border-right: 1px solid #ddd;
    display: flex;
    align-items: center;
    padding-right: 30px; /* Make room for remove button */
}

.spot-remove-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    opacity: 0.7;
}

.spot-remove-btn:hover {
    opacity: 1;
    color: #ff4444;
}

.weather-forecast {
    width: 100%;
    cursor: pointer;
    user-select: none;
    display: inline-block;
}

.weather-forecast:hover {
    opacity: 0.9;
}

.weather-forecast.collapsed .collapsible-row {
    display: none;
}
  
  /* #spot-title {
    margin: 1rem 0;
    font-size: 1rem;
    color: #333;
  }
   */
  .recent-item {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .recent-icon {
    color: #666;
    font-style: normal;
    font-size: 0.9em;
  }
  
  .suggestions-list {
    position: absolute;
    top: 37px;
    left: 0px;
    right: 0px;
    z-index: 1000;
    font-size: 14px;
    background-color: rgb(255, 255, 255);
    list-style: none;
    padding: 0px;
    margin: 4px 0px 0px;
    border: 1px solid rgb(204, 204, 204);
    border-radius: 4px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 4px;
    max-height: 150px;
    overflow-y: auto;
    display: block;
}

  .suggestions-list li.recent-item {
    background-color: #f8f8f8;
    
  }
  
  .suggestions-list li.recent-item:hover {
    background-color: #f0f0f0;
  }
  
  /* Mobile-specific adjustments - just handle margins and scrolling */
  @media screen and (max-width: 768px) {
    .forecast-container {
      margin: 10px 0;
      width: 100%;
    }
  }
  
  /* Ensure smooth scrolling on all touch devices */
  @media (hover: none) {
    .forecast-container {
      -webkit-overflow-scrolling: touch;
    }
  }
  
  .all-forecasts {
    padding-top: 10px;
    width: 100%;
    overflow-x: auto;
    position: relative;
    z-index: 1;
  }
  
  td .working-indicator {
    display: inline-block;
  }
  
  td .working-indicator.working {
    /* content: '✅'; */
    font-size: 1.2em;
  }
  
  td .working-indicator.not-working {
    /* content: '⚪️'; */
    font-size: 1.2em;
  }
  
.expand-pill {
  position: sticky;
  left: 50%;
  display: block;
  margin: 8px;
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid #ddd;
  background-color: white;
  color: #666;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  /* width: 160px; */
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transform: translateX(-50%);
}

.expand-pill:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
}

/* Hide the pill when table is expanded */
.weather-forecast:not(.collapsed) + .expand-pill {
    display: none;
}

/* Add these new styles */
.even-date {
  background-color: #e8e8e8;
}

.odd-date {
  background-color: #ffffff;
}

.working-cell {
  background-color: #5FCF7C;
}

.not-working-cell {
  background-color: #ffffffb7    ;  
};

/* Wind speed classes */
.wind-speed-0-6 { background-color: #EEFDFD; }
.wind-speed-7-9 { background-color: #A6FAF7; }
.wind-speed-10-11 { background-color: #5EF8DD; }
.wind-speed-12-15 { background-color: #23FD04; }
.wind-speed-16 { background-color: #66FF66; }
.wind-speed-17-18 { background-color: #D9F201; }
.wind-speed-19-21 { background-color: #FFD905; }
.wind-speed-22-24 { background-color: #FE8919; }
.wind-speed-25-28 { background-color: #FF294D; }
.wind-speed-29-32 { background-color: #FF0CBD; }
.wind-speed-33-plus { background-color: #993399; }

/* Temperature classes - replacing existing ones */
.temp-freezing { background-color: #F8F8F8; }
.temp-very-cold { background-color: #FFF7E6; }
.temp-cold { background-color: #FFEDA6; }
.temp-mild { background-color: #FFE066; }
.temp-warm { background-color: #FFB366; }
.temp-hot { background-color: #FF8533; }
.temp-very-hot { background-color: #FF5500; }

/* New precipitation classes */
.precip-none { background-color: transparent; }
.precip-very-light { background-color: #F8F8FF; }
.precip-light { background-color: #E6E6FF; }
.precip-medium { background-color: #CCCCFF; }
.precip-heavy { background-color: #9999FF; }
.precip-very-heavy { background-color: #6666FF; }
  
.back-button {
  position: relative;
  display: inline-block;
  padding: 8px 10px;
  background-color: white;
  color: #333;
  text-decoration: none;
  border-radius: 50%;
  border: 1px solid #DDDDDD;
  font-size: 14px;
  transition: all 0.2s ease;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.12);
}

.back-button:hover {
  background-color: #f5f5f5;
  border-color: #ccc;
}
  
/* Favorite button styles matching the main page */
.favorite-button {
    background: none;
    border: none;
    position: absolute;
    right: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.favorite-button:hover {
    transform: scale(1.1);
}

.favorite-button .star-icon {
    fill: #cccccc;
    stroke: #666666;
    stroke-width: 1px;
    transition: fill 0.2s ease;
}

.favorite-button.active .star-icon {
    fill: #FFD700;
    stroke: #FFA500;
}
  
/* Header row styling */
.header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px 10px;
  background-color: #fff;
  z-index: 1000;
  width: 100%;
  box-sizing: border-box;
}

  
/* Hamburger Menu Styles - moved to hamburger-menu.css */

/* Adjust filter row to accommodate hamburger menu */
#filter-row {
  position: sticky;
  top: 0;
  z-index: 1001;
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  width: 100%;
  box-sizing: border-box;
  padding: 14px 10px;
  justify-content: space-between;
}

#find-spot-text {
  font-size: 1.2rem;
  margin-right: 20px;
  white-space: nowrap;
}

/* Banner Container */
.banner-container {
    width: calc(100% + 28px);
    margin: 16px -14px -14px -14px;
}

/* Banner container in side panel (has 16px padding instead of 14px) */
.spot-side-panel .banner-container {
    width: calc(100% + 32px);
    margin: 16px -16px -16px -16px;
}

/* Spot Banner Styling */
.spot-banner {
    display: block;
    margin: 0;
    padding: 14px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 0;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
    width: 100%;
    box-sizing: border-box;
}

.spot-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.2);
    opacity: 0.95;
}
  