/* ═══════════════════════════════════════════════════════════════
   VELOMETEO V2 - Clean CSS matching HTML structure
   ═══════════════════════════════════════════════════════════════ */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #111111;
  --gray-700: #3a3a3a;
  --gray-600: #4f4f4f;
  --gray-500: #5a5a5a;
  --gray-400: #7a7a7a;
  --gray-300: #a3a3a3;
  --gray-200: #d4d4d4;
  --gray-100: #ebebeb;
  --gray-50: #f7f7f7;
  --white: #ffffff;
  --accent: #10b981;
  --warning: #d97706;
  --danger: #dc2626;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--gray-50);
  color: var(--black);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}

.container {
  max-width: 930px;
  margin: 0 auto;
  padding: 12px;
}

/* ═══════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════ */

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding: 8px 0;
  gap: 12px;
}

.logo {
  flex-shrink: 0;
  width: 165px;
}

.logo-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.logo-img {
  width: 100%;
  height: auto;
  display: block;
}

.logo-tagline {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-400);
  white-space: nowrap;
}

.header-right {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
  overflow: hidden;
}

.location-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 0;
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
}

.location-bar:hover {
  border-color: var(--accent);
  background: var(--gray-50);
}

.location-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.location-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.location-name::after {
  content: ' →';
  color: var(--gray-400);
  margin-left: 6px;
}

.settings-btn {
  width: 36px;
  height: 36px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ═══════════════════════════════════════════════════════════════
   TODAY CARD
   ═══════════════════════════════════════════════════════════════ */

.today-card {
  background: var(--white);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.card-header {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
  font-weight: 600;
  margin-bottom: 16px;
}

.card-main {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

/* Weather Column */
.weather-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.temp-display {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.weather-emoji {
  font-size: 2rem;
  line-height: 1;
}

.temp-value {
  font-size: 3rem;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
}

.temp-unit {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--gray-500);
}

.weather-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.condition {
  font-size: 1rem;
  font-weight: 500;
  color: var(--black);
}

.feels-like {
  font-size: 0.8125rem;
  color: var(--gray-500);
}

.ride-summary {
  font-size: 0.8125rem;
  color: var(--accent);
  font-weight: 600;
}

/* Kit Column */
.kit-col {
  background: var(--gray-50);
  border-radius: 12px;
  padding: 12px;
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.kit-col:hover {
  background: var(--gray-100);
}

.kit-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--black);
  text-align: center;
  line-height: 1.2;
  margin-bottom: 4px;
}

.cyclist-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.bike-silhouette {
  display: none;
}

.cyclist-illustration {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.cyclist-illustration svg,
.cyclist-illustration img {
  height: auto;
  max-height: 200px;
  width: auto;
  transition: opacity 0.25s ease;
}

.kit-tap-hint {
  font-size: 0.6875rem;
  color: var(--gray-400);
  text-align: center;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--gray-200);
  font-weight: 500;
}

.kit-details-popup {
  position: absolute;
  top: 0;
  right: calc(100% + 16px);
  width: 280px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateX(8px);
  transition: all 0.2s;
}

.kit-col:hover .kit-details-popup,
.kit-col:focus-within .kit-details-popup {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.kit-details-desc {
  font-size: 0.8125rem;
  color: var(--gray-600);
  line-height: 1.4;
  margin-bottom: 12px;
  font-weight: 500;
}

.kit-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.kit-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--gray-700);
}

.kit-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.kit-dot.essential { background: var(--accent); }
.kit-dot.optional { background: var(--warning); }
.kit-dot.skip { background: var(--gray-300); }

.kit-item.optional { color: var(--gray-500); }
.kit-item.skip { color: var(--gray-400); text-decoration: line-through; }

/* Stats Row - MOBILE: outside card-main, below both columns */
.card-main + .stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--gray-100);
  margin-bottom: 16px;
}

/* Stats row inside weather-col - HIDDEN on mobile */
.weather-col .stats-row {
  display: none;
}

.stat {
  text-align: center;
}

#airStatDesktop,
#airStatMobile {
  transition: opacity 0.4s ease;
}

#airStatDesktop.stale,
#airStatMobile.stale {
  opacity: 0.3;
}

.stat-label {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
  font-weight: 700;
  margin-bottom: 3px;
  display: block;
}

.stat-value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
}

.stat-gust {
  display: block;
  width: 100%;
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--gray-400);
  letter-spacing: 0.02em;
  margin-top: 1px;
}

.wind-arrow {
  display: inline-block;
  font-size: 1rem;
  transform-origin: center;
  transition: transform 0.6s ease;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: inherit;
  font-weight: 400;
  line-height: 1;
}

/* Timeline */
.timeline-section {
  padding-top: 12px;
  border-top: 1px solid var(--gray-100);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.timeline-title {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-500);
  font-weight: 700;
}

.timeline-hint {
  font-size: 0.6875rem;
  color: var(--gray-400);
}

.timeline-scroll-wrap {
  position: relative;
}

.timeline-scroll {
  overflow-x: auto;
  padding: 0 0 10px 0;
  margin-left: -10px;
  margin-right: -10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--gray-300) var(--gray-100);
}

/* Force on mobile to override any caching */
@media (max-width: 768px) {
  .timeline-scroll {
    padding: 0 0 8px 0 !important;
    margin-left: -10px !important;
    margin-right: -10px !important;
  }
}

/* Mobile: thin scrollbar */
.timeline-scroll::-webkit-scrollbar { height: 4px; }
.timeline-scroll::-webkit-scrollbar-track { background: var(--gray-100); }
.timeline-scroll::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 2px; }

/* Desktop: fatter scrollbar */
@media (min-width: 769px) {
  .timeline-scroll::-webkit-scrollbar { height: 8px; }
  .timeline-scroll::-webkit-scrollbar-track { background: var(--gray-100); border-radius: 4px; }
  .timeline-scroll::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 4px; }
  .timeline-scroll::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }
}

/* Arrow buttons — sit in the header row, desktop only */
.timeline-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.timeline-arrow {
  display: none;
}

@media (min-width: 769px) {
  .timeline-hint { display: none; }

  .timeline-arrow {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    font-size: 1.25rem;
    color: var(--gray-500);
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
    line-height: 1;
    padding: 0;
    flex-shrink: 0;
  }

  .timeline-arrow:hover {
    color: var(--black);
    border-color: var(--gray-400);
    background: var(--gray-50);
  }

  .timeline-arrow.hidden {
    opacity: 0.3;
    pointer-events: none;
  }
}

.timeline-track {
  display: flex;
  gap: 6px;
  min-width: max-content;
}

/* Mobile only: padding-right to allow scrolling last tile to the left */
@media (max-width: 768px) {
  .timeline-track {
    padding-right: calc(100vw - 100px);
  }
}

.hour-card {
  min-width: 56px;
  padding: 12px 8px;
  background: var(--gray-50);
  border: 2px solid transparent;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  scroll-snap-align: start;
  flex-shrink: 0;
}

.hour-card:hover {
  background: var(--gray-100);
}

.hour-card.selected {
  background: var(--gray-200);
}

.hour-card.selected * {
  color: var(--gray-800) !important;
}

/* Night group styling - NO BORDER */
.hour-card.night-group {
  background: var(--gray-50);
  color: var(--gray-600);
}

.hour-card.night-group:hover {
  background: var(--gray-100);
}

.hour-card.night-group.selected {
  background: var(--gray-200);
}

.hour-card.night-group.selected * {
  color: var(--gray-800) !important;
}

/* Day separator styling - NO BORDER */
.day-separator {
  min-width: 56px;
  padding: 12px 8px;
  background: var(--gray-50);
  border-radius: 10px;
  text-align: center;
  flex-shrink: 0;
  scroll-snap-align: start;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--gray-600);
  font-weight: 600;
}

.day-separator::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 6px solid var(--gray-50);
}

.day-separator .day-name {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
  font-weight: 700;
}

.day-separator .day-date {
  font-size: 0.625rem;
  opacity: 0.7;
  font-weight: 500;
}

.hour-time {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--gray-500);
  margin-bottom: 6px;
}

.hour-icon {
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 6px;
}

.hour-temp {
  font-size: 1rem;
  font-weight: 600;
  color: var(--black);
}

/* ═══════════════════════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════════════════════ */

.section-title {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-500);
  font-weight: 700;
  margin-bottom: 12px;
  margin-top: 32px;
}

.alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--warning);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 12px;
}

.alert.danger {
  border-left-color: var(--danger);
}

.alert-icon {
  font-size: 1.125rem;
}

.alert-content {
  flex: 1;
}

.alert-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 3px;
}

.alert-text {
  font-size: 0.8125rem;
  color: var(--gray-600);
  line-height: 1.5;
}

/* Week Grid */
.week-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}

.day-card {
  background: var(--white);
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.day-card:hover {
  transform: translateY(-2px);
}

.day-card.active {
  border-color: var(--black);
}

.day-name {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-500);
  margin-bottom: 4px;
}

.day-date {
  font-size: 0.625rem;
  color: var(--gray-400);
  font-weight: 500;
  margin-bottom: 8px;
}

.day-icon {
  font-size: 1.875rem;
  line-height: 1;
  margin-bottom: 8px;
}

.day-temps {
  display: flex;
  justify-content: center;
  gap: 6px;
  align-items: baseline;
}

.day-hi {
  font-size: 1.125rem;
  font-weight: 700;
}

.day-lo {
  font-size: 0.8125rem;
  color: var(--gray-400);
  font-weight: 500;
}

.day-rain {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-top: 8px;
  text-align: center;
}

/* Hourly Card */
.hourly-card {
  background: var(--white);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.hourly-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-100);
}

.hourly-title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-600);
}

.best-window {
  font-size: 0.6875rem;
  color: var(--accent);
  background: rgba(16, 185, 129, 0.1);
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 700;
}

.hourly-rows {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--gray-100);
}

.hourly-row {
  display: grid;
  grid-template-columns: 40px 60px 1fr 60px 100px;
  gap: 12px;
  align-items: center;
  padding: 10px 16px;
  background: transparent;
  font-size: 0.8125rem;
  transition: background 0.2s;
  border-bottom: 1px solid var(--gray-100);
}

.hourly-row:last-child {
  border-bottom: none;
}

.hourly-row:hover {
  background: var(--gray-50);
}

.hourly-divider {
  padding: 12px 16px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--gray-500);
  font-weight: 600;
}

.sunrise-marker,
.sunset-marker {
  display: inline-block;
  padding: 4px 12px;
  background: var(--white);
  border-radius: 20px;
  font-size: 0.7rem;
}

/* Conditions Grid */
.conditions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}

.condition-card {
  background: var(--white);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.condition-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
  font-weight: 700;
  margin-bottom: 8px;
}

.condition-value {
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
  margin-bottom: 4px;
}

.condition-sublabel {
  font-size: 0.8125rem;
  color: var(--gray-500);
  font-weight: 500;
}

/* Detail Grid */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 32px;
}

.detail-card {
  background: var(--white);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.detail-title {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
  font-weight: 700;
  margin-bottom: 12px;
}

.wind-display {
  display: flex;
  align-items: center;
  gap: 16px;
}

.wind-compass {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.wind-stats {
  flex: 1;
}

.wind-stat {
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin-bottom: 5px;
}

.wind-stat strong {
  color: var(--black);
  font-weight: 600;
}

.sun-progress {
  height: 8px;
  background: var(--gray-100);
  border-radius: 4px;
  margin-bottom: 12px;
}

.sun-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--warning), #fbbf24);
  border-radius: 4px;
}

.sun-times {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.sun-time-value {
  font-size: 1.0625rem;
  font-weight: 700;
}

.sun-time-label {
  font-size: 0.625rem;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.daylight-info {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--gray-500);
  padding-top: 12px;
  border-top: 1px solid var(--gray-100);
}

.daylight-info strong {
  color: var(--black);
  font-weight: 700;
}

footer {
  text-align: center;
  padding: 24px 0;
  font-size: 0.8125rem;
  color: var(--gray-400);
}

/* ═══════════════════════════════════════════════════════════════
   DESKTOP
   ═══════════════════════════════════════════════════════════════ */

@media (min-width: 769px) {
  .container { padding: 24px; }
  .logo-tagline { font-size: 0.625rem; }
  .today-card { padding: 32px; }
  .card-header { font-size: 0.75rem; margin-bottom: 24px; }
  
  /* Better proportions: 2.5fr weather | 1fr kit */
  .card-main { 
    grid-template-columns: 2.5fr 1fr; 
    gap: 48px;
    align-items: start;
  }
  
  /* Weather column - larger, more spacious */
  .weather-col {
    gap: 20px;
  }
  
  .weather-emoji { font-size: 3.5rem; }
  .temp-value { font-size: 5rem; }
  .temp-unit { font-size: 2rem; }
  .condition { font-size: 1.5rem; font-weight: 500; }
  .feels-like { font-size: 1rem; }
  .ride-summary { font-size: 1rem; font-weight: 600; }
  
  /* Stats row - DESKTOP: inside weather-col */
  .card-main + .stats-row {
    display: none; /* Hide the outside one */
  }
  
  .weather-col .stats-row {
    display: grid; /* Show the inside one */
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 16px 0 0 0;
    border-top: 1px solid var(--gray-100);
    margin: 0;
  }
  
  .stat-label { 
    font-size: 0.625rem;
    margin-bottom: 4px;
  }
  
  .stat-value { 
    font-size: 1.25rem;
  }
  
  /* Kit column - compact, centered, elegant */
  .kit-col { 
    padding: 20px; 
    cursor: default;
    gap: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
  }
  
  .kit-name { 
    font-size: 1.0625rem; 
    text-align: center;
    margin-bottom: 4px;
    order: 1;
    font-weight: 700;
  }
  
  /* Cyclist centered and smaller to reduce card height */
  .cyclist-wrap { 
    order: 2;
    height: 140px;
    min-height: 140px;
    margin: 2px 0;
  }
  
  .cyclist-illustration svg,
  .cyclist-illustration img { 
    height: 140px;
    max-height: 140px;
    transition: opacity 0.25s ease;
  }
  
  .kit-tap-hint { display: none; }
  
  /* Kit details - HIDDEN by default on desktop, shown on hover */
  .weather-col .stats-row {
    display: grid; /* Show stats in weather col */
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 16px 0 0 0;
    border-top: 1px solid var(--gray-100);
    margin: 0;
  }
  
  .kit-details-desc {
    font-size: 0.875rem;
    margin-bottom: 12px;
    text-align: left;
    line-height: 1.5;
    color: var(--gray-600);
    font-weight: 500;
  }
  
  .kit-items {
    gap: 6px;
    align-items: flex-start;
  }
  
  .kit-item {
    font-size: 0.8125rem;
    width: 100%;
  }
  
  .kit-dot {
    width: 6px;
    height: 6px;
  }
}

@media (max-width: 640px) {
  .week-grid { grid-template-columns: repeat(4, 1fr); }
  .conditions-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
  
  /* Tighter hourly spacing for mobile */
  .hourly-row {
    grid-template-columns: 28px 50px 1fr 50px 90px;
    gap: 8px;
    padding: 9px 12px;
    font-size: 0.75rem;
  }
  
  /* Kit popup on left, narrower on mobile to avoid overflow */
  .kit-details-popup {
    width: 180px;
    padding: 12px;
    font-size: 0.8125rem;
  }
}

/* Mobile accordion for 7-day forecast */
@media (max-width: 768px) {
  .week-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  
  .day-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: none;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: box-shadow 0.2s;
    outline: none;
    touch-action: pan-y;
  }
  
  .day-card:focus {
    outline: none;
  }
  
  .day-card:hover {
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  }
  
  .day-card.active {
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  }
  
  .day-card-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    gap: 10px;
  }
  
  .day-name-mobile {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--black);
    min-width: 75px;
  }
  
  .day-name-mobile .date-part {
    color: var(--gray-400);
    font-weight: 500;
  }
  
  .day-icon-mobile {
    font-size: 1.5rem;
    line-height: 1;
  }
  
  .day-temps-mobile {
    display: flex;
    gap: 8px;
    align-items: baseline;
    margin-left: auto;
  }
  
  .day-hi-mobile {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--black);
  }
  
  .day-lo-mobile {
    font-size: 0.875rem;
    color: var(--gray-400);
    font-weight: 500;
  }
  
  .day-expand-icon {
    font-size: 1rem;
    color: var(--gray-400);
    transition: transform 0.2s;
    margin-left: 8px;
  }
  
  .day-card.expanded .day-expand-icon {
    transform: rotate(180deg);
  }
  
  /* Hourly details for expanded day - WHITE background */
  .day-hourly-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--white);
    width: 100%;
  }
  
  .day-hourly-details.expanded {
    max-height: 2000px;
  }
  
  .day-hourly-content {
    padding: 0 14px 10px 14px;
    border-top: 1px solid var(--gray-100);
    width: 100%;
  }
  
  /* Make hourly rows more compact */
  .day-hourly-content .hourly-row {
    display: grid;
    grid-template-columns: 45px 28px 45px 50px 1fr;
    gap: 6px;
    padding: 6px 0;
    align-items: center;
    border-bottom: 1px solid var(--gray-50);
    font-size: 0.8125rem;
    width: 100%;
  }
  
  .day-hourly-content .hourly-row:last-child {
    border-bottom: none;
  }
  
  .day-hourly-content .hourly-time {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: var(--gray-600);
    font-size: 0.8125rem;
  }
  
  .day-hourly-content .hourly-icon {
    font-size: 1.125rem;
    text-align: center;
  }
  
  .day-hourly-content .hourly-temp {
    font-weight: 700;
    color: var(--black);
    font-size: 0.875rem;
  }
  
  .day-hourly-content .hourly-rain {
    color: var(--gray-500);
    font-size: 0.75rem;
  }
  
  .day-hourly-content .hourly-wind {
    color: var(--gray-500);
    font-size: 0.75rem;
    text-align: right;
  }
  
  /* Hide desktop hourly section on mobile */
  .hourly-card {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════════════
   MODALS
   ═══════════════════════════════════════════════════════════════ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-box {
  background: var(--white);
  border-radius: 16px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-100);
}

.modal-header h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--black);
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: var(--gray-50);
  color: var(--gray-700);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: var(--gray-100);
}

.modal-body {
  padding: 24px;
}

.gps-btn {
  width: 100%;
  padding: 14px 20px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.gps-btn:hover {
  background: #0ea070;
}

.modal-divider {
  text-align: center;
  margin: 20px 0;
  position: relative;
}

.modal-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gray-200);
}

.modal-divider span {
  position: relative;
  background: var(--white);
  padding: 0 12px;
  font-size: 0.75rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.city-search-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  font-size: 0.9375rem;
  outline: none;
}

.city-search-input:focus {
  border-color: var(--accent);
}

.city-search-results {
  margin-top: 12px;
  max-height: 300px;
  overflow-y: auto;
}

.city-result {
  padding: 12px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.city-result:hover {
  background: var(--gray-50);
}

.city-result-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 2px;
}

.city-result-country {
  font-size: 0.8125rem;
  color: var(--gray-500);
}

.setting-group {
  margin-bottom: 24px;
}

.setting-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-500);
  margin-bottom: 12px;
}

.thermo-wrap {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 16px;
}

.thermo-track {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.thermo-emoji {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.slider-container {
  flex: 1;
}

.thermo-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  background: linear-gradient(90deg, #74b9ff 0%, #4ecdc4 25%, #f5c842 50%, #ff8c42 75%, #ff6b35 100%);
}

.thermo-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  cursor: grab;
}

.thermo-slider::-webkit-slider-thumb:active {
  cursor: grabbing;
}

.thermo-label {
  text-align: center;
  font-size: 0.875rem;
  color: var(--gray-700);
  font-weight: 500;
}

.cyclist-choice {
  display: flex;
  gap: 12px;
}

.cyclist-option {
  flex: 1;
  padding: 16px;
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  background: var(--white);
}

.cyclist-option:hover {
  border-color: var(--accent);
  background: var(--gray-50);
}

.cyclist-option.active {
  border-color: var(--accent);
  background: rgba(245, 200, 66, 0.1);
}

.cyclist-icon {
  font-size: 2rem;
  margin-bottom: 8px;
  line-height: 1;
}

.cyclist-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
}

.unit-toggle {
  display: flex;
  gap: 8px;
}

.unit-btn {
  flex: 1;
  padding: 12px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  background: var(--white);
  color: var(--gray-700);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.unit-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

/* ═══════════════════════════════════════════════════════════════
   CITY CARDS
   ═══════════════════════════════════════════════════════════════ */

.city-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 16px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  text-decoration: none;
  color: var(--black);
  transition: all 0.2s ease;
  cursor: pointer;
}

.city-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.city-icon {
  font-size: 32px;
  line-height: 1;
}

.city-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--black);
  text-align: center;
}

.city-country {
  font-size: 0.75rem;
  color: var(--gray-500);
  text-align: center;
}

@media (max-width: 640px) {
  .city-card {
    padding: 16px 12px;
  }
  
  .city-icon {
    font-size: 28px;
  }
}
