/* CentroMeteo App — app.css */

:root {
  --sky: #0ea5e9;
  --sky-deep: #0369a1;
  --accent: #38bdf8;
  --warm: #fb923c;
  --cold: #818cf8;
  --bg: #070f1a;
  --surface: rgba(14,165,233,0.06);
  --surface2: rgba(14,165,233,0.12);
  --border: rgba(14,165,233,0.15);
  --text: #e2e8f0;
  --text-dim: #64748b;
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(14,165,233,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 10%, rgba(56,189,248,0.07) 0%, transparent 50%),
    radial-gradient(ellipse 100% 60% at 50% 100%, rgba(3,105,161,0.15) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

#app { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; min-height: 100vh; }

@media (min-width: 600px) {
  .bottom-nav { max-width: 900px; }
  .bottom-sheet { max-width: 600px; }
  .current-card { margin: 0 8px 16px; }
  .hourly-scroll { padding: 0 8px 20px; }
  .section-label { padding: 4px 12px 10px; }
  .daily-list { padding: 0 8px 20px; }
  .chart-card { margin: 0 8px 16px; }
}

@media (min-width: 900px) {
  body { overflow: hidden; }
  #app { max-width: 100%; display: grid; grid-template-columns: var(--sidebar-w, 320px) 5px 1fr; grid-template-rows: auto 1fr; height: 100vh; }
  .header { grid-column: 1 / -1; }
  .sidebar { position: fixed; top: 57px; left: 0; width: var(--sidebar-w, 320px); grid-column: 1; grid-row: 2; overflow-y: auto; border-right: none; height: calc(100vh - 57px); scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
  .main-content { margin-left: 0; }
  .sidebar-resizer { grid-column: 2; grid-row: 2; border-right: 1px solid var(--border); border-left: 1px solid var(--border); }
  .main-content { grid-column: 3; grid-row: 2; overflow-y: auto; height: calc(100vh - 57px); padding-bottom: 100px; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
  .bottom-nav { display: none; }
  .current-card { margin: 16px 16px 16px; }
  .hourly-scroll { padding: 0 16px 20px; }
  .daily-list { padding: 0 16px 20px; }
  .chart-card { margin: 0 16px 16px; }
  .scroll-content { padding-bottom: 100px; }
}

/* HEADER */
.header {
  display: grid; grid-template-columns: 48px 1fr 48px;
  align-items: center; gap: 10px; padding: 10px 14px;
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(20px);
  background: rgba(7,15,26,0.88);
  border-bottom: 1px solid var(--border);
}
.logo-circle {
  width: 40px; height: 40px; border-radius: 50%; overflow: hidden;
  border: 2px solid rgba(56,189,248,0.3); flex-shrink: 0;
  box-shadow: 0 0 12px rgba(14,165,233,0.3);
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0ea5e9, #0369a1);
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 13px; color: white;
}
.logo-circle img { width: 40px; height: 40px; object-fit: cover; }
.header-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 7px 14px; cursor: pointer;
  transition: all 0.2s; min-width: 0;
}
.header-search:hover { border-color: var(--accent); background: var(--surface2); }
.header-search-icon { font-size: 14px; color: var(--text-dim); flex-shrink: 0; }
.header-search-text { font-size: 14px; color: var(--text); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header-search-region { font-size: 11px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header-actions { display: flex; gap: 8px; justify-content: flex-end; }
.btn-icon {
  width: 38px; height: 38px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; transition: all 0.2s; flex-shrink: 0;
}
.btn-icon:hover { background: var(--surface2); border-color: var(--accent); }
.btn-icon.active { background: var(--sky); color: white; border-color: var(--sky); }

#current-card-mobile { display: none; }
@media (max-width: 899px) {
  #current-card { display: none; }
  #current-card-mobile { display: block; margin: 8px 16px 16px; }
}
@media (min-width: 900px) {
  #current-card-mobile { display: none !important; }
}

/* CURRENT CARD */
.current-card {
  margin: 0 16px 16px; border-radius: 24px;
  background: linear-gradient(135deg, rgba(14,165,233,0.15) 0%, rgba(3,105,161,0.08) 100%);
  border: 1px solid var(--border); overflow: hidden; position: relative;
  animation: fadeIn 0.5s ease both;
}
.current-card::before {
  content: ''; position: absolute; top: -40px; right: -40px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(14,165,233,0.12) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.current-main { padding: 24px 24px 16px; display: flex; align-items: flex-start; justify-content: space-between; }
.current-temp { font-family: 'Oswald', sans-serif; font-size: 96px; font-weight: 200; line-height: 1; color: var(--text); letter-spacing: -1px; }
.current-temp sup { font-size: 32px; vertical-align: super; opacity: 0.6; font-weight: 200; }
.current-info { text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.current-icon img { width: 100px; height: 100px; object-fit: contain; filter: drop-shadow(0 6px 20px rgba(14,165,233,0.45)); }
.current-desc { font-size: 13px; color: var(--accent); font-weight: 500; margin-top: 8px; }
.current-period {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 20px; padding: 4px 12px;
  font-size: 12px; color: var(--accent); font-weight: 500; margin-top: 10px;
}
.current-minmax { display: flex; gap: 10px; margin-top: 4px; }
.temp-min-val { font-family: 'Oswald', sans-serif; font-size: 15px; font-weight: 400; color: #64B5F6; }
.temp-max-val { font-family: 'Oswald', sans-serif; font-size: 15px; font-weight: 400; color: #EF5350; }

/* Resize handle sidebar (solo desktop ≥900px) */
.sidebar-resizer {
  display: none;
}
@media (min-width: 900px) {
  .sidebar-resizer {
    display: block;
    grid-column: 1; grid-row: 2;
    width: 5px;
    cursor: col-resize;
    background: var(--border);
    transition: background 0.2s;
    z-index: 10;
    justify-self: end;
    align-self: stretch;
  }
  .sidebar-resizer:hover, .sidebar-resizer.dragging { background: var(--accent); }
}
.current-stats { display: grid; grid-template-columns: repeat(4, 1fr); padding: 16px 20px 20px; gap: 8px; border-top: 1px solid var(--border); }
.stat-cell { text-align: center; }
.stat-icon { font-size: 18px; margin-bottom: 4px; }
.stat-val { font-family: 'Oswald', sans-serif; font-size: 15px; font-weight: 400; color: var(--text); }
.stat-lbl { font-size: 10px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }

/* SECTION LABEL */
.section-label { padding: 16px 20px 10px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.2px; color: var(--text-dim); }

/* DAILY LIST */
.daily-list { padding: 0 16px 20px; animation: fadeIn 0.5s 0.3s ease both; }
.daily-item { border-radius: 16px; background: var(--surface); border: 1px solid var(--border); margin-bottom: 6px; overflow: hidden; }
.daily-row { display: flex; align-items: center; gap: 8px; padding: 12px 16px; cursor: pointer; transition: background 0.15s; }
.daily-row:hover { background: var(--surface2); }
.daily-day { font-family: 'Syne', sans-serif; font-size: 14px; font-weight: 700; color: var(--text); min-width: 62px; }
.daily-day small { display: block; font-family: 'DM Sans', sans-serif; font-size: 10px; font-weight: 400; color: var(--text-dim); }
.daily-icon img { width: 34px; height: 34px; object-fit: contain; }
.daily-desc { flex: 1; font-size: 12px; color: var(--text-dim); min-width: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; line-height: 1.3; }
.daily-item.open .daily-desc { -webkit-line-clamp: 4; }
.daily-temps { display: flex; gap: 6px; font-family: 'Oswald', sans-serif; font-size: 15px; font-weight: 400; }
.temp-max { color: #f97316; }
.temp-min { color: #818cf8; }
.daily-chevron { color: var(--text-dim); font-size: 10px; transition: transform 0.2s; }
.daily-item.open .daily-chevron { transform: rotate(180deg); }
.daily-detail { display: none; border-top: 1px solid var(--border); }
.daily-item.open .daily-detail { display: block; }
.detail-periods { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--border); }
.period-cell { padding: 10px 8px; text-align: center; border-right: 1px solid var(--border); transition: background 0.15s; cursor: pointer; }
.period-cell:hover { background: var(--surface2); }
.period-cell:last-child { border-right: none; }
.period-name { font-size: 10px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.period-icon img { width: 26px; height: 26px; object-fit: contain; }
.period-temp { font-family: 'Oswald', sans-serif; font-size: 16px; font-weight: 400; color: var(--text); margin: 4px 0; }
.period-prec { font-size: 10px; color: var(--text-dim); min-height: 14px; }

/* PREC BADGE */
.prec-badge { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; font-size: 9px; font-weight: 700; flex-shrink: 0; }
.p-0   { background: rgba(229,57,53,0.25);   color: #E53935; border: 1px solid rgba(229,57,53,0.5); }
.p-20  { background: rgba(251,140,0,0.25);   color: #FB8C00; border: 1px solid rgba(251,140,0,0.5); }
.p-40  { background: rgba(253,216,53,0.25);  color: #FDD835; border: 1px solid rgba(253,216,53,0.5); }
.p-60  { background: rgba(41,182,246,0.25);  color: #29B6F6; border: 1px solid rgba(41,182,246,0.5); }
.p-80  { background: rgba(102,187,106,0.25); color: #66BB6A; border: 1px solid rgba(102,187,106,0.5); }
.p-none { display: none; }

/* HOURLY */
.hourly-scroll { padding: 0 16px 20px; animation: fadeIn 0.5s 0.1s ease both; overflow: hidden; }
.hourly-track { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.hourly-track::-webkit-scrollbar { display: none; }
.hourly-item { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 8px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); cursor: pointer; transition: all 0.2s; min-width: 58px; }
.hourly-item:hover { background: var(--surface2); }
.hourly-item.active { background: var(--surface2); border-color: var(--sky); }
.hourly-time { font-size: 11px; color: var(--text-dim); font-weight: 500; }
.hourly-icon img { width: 30px; height: 30px; object-fit: contain; }
.hourly-temp { font-family: 'Oswald', sans-serif; font-size: 16px; font-weight: 400; }
.hourly-prec { font-size: 10px; min-height: 13px; }
.hourly-prec.rain { color: #38bdf8; }
.hourly-prec.snow { color: #a5b4fc; }

/* HOURLY DETAIL PANEL */
.hourly-detail-panel { display: none; margin: 0 16px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 12px 16px; }
.hourly-detail-panel.visible { display: block; }
.hourly-detail-title { font-size: 12px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 10px; }
.hourly-detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (min-width: 400px) { .hourly-detail-grid { grid-template-columns: repeat(5, 1fr); } }
.detail-cell { text-align: center; padding: 8px 4px; }
.detail-cell-icon { font-size: 18px; margin-bottom: 4px; }
.detail-cell-val { font-family: 'Oswald', sans-serif; font-size: 14px; font-weight: 400; color: var(--text); }
.detail-cell-lbl { font-size: 10px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }
.wind-arrow { display: inline-block; font-size: 18px; }

/* HEX HOURLY EXPAND */
.hex-hourly-expand { display: none; padding: 8px 12px 10px; }
.hex-hourly-track { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.hex-hourly-track::-webkit-scrollbar { display: none; }
.hex-hour-cell { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 6px; border-radius: 12px; background: var(--surface2); min-width: 48px; }
.hex-hour-time { font-size: 10px; color: var(--text-dim); }
.hex-hour-icon img { width: 20px; height: 20px; object-fit: contain; }
.hex-hour-temp { font-family: 'Oswald', sans-serif; font-size: 13px; font-weight: 400; }
.hex-hour-prec { font-size: 9px; min-height: 12px; }
.hex-hour-prec.rain { color: #38bdf8; }
.hex-hour-prec.snow { color: #a5b4fc; }

/* CHART */
.chart-card { margin: 0 16px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 16px; animation: fadeIn 0.5s 0.2s ease both; }
.chart-tabs { display: flex; gap: 6px; margin-bottom: 14px; overflow-x: auto; scrollbar-width: none; flex-wrap: wrap; }
.chart-tab { padding: 5px 12px; border-radius: 20px; border: 1px solid var(--border); background: none; color: var(--text-dim); font-size: 12px; font-family: 'DM Sans', sans-serif; cursor: pointer; white-space: nowrap; transition: all 0.2s; }
.chart-tab:hover { border-color: var(--accent); color: var(--text); }
.chart-tab.active { background: var(--sky); color: white; border-color: var(--sky); }
.chart-wrap { height: 140px; position: relative; }

/* AQI */
.aqi-card { margin: 0 16px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 16px; }
.aqi-bar-wrap { position: relative; margin: 12px 0 4px; padding-bottom: 16px; }
.aqi-bar-bg { height: 6px; border-radius: 3px; background: linear-gradient(to right, #22c55e, #84cc16, #eab308, #f97316, #ef4444); }
.aqi-marker { position: absolute; top: -4px; font-size: 14px; transform: translateX(-50%); transition: left 0.5s ease; width: 14px; height: 14px; border-radius: 50%; background: white; border: 2px solid currentColor; box-shadow: 0 1px 4px rgba(0,0,0,0.4); }
.aqi-labels { display: flex; justify-content: space-between; font-size: 9px; color: var(--text-dim); }
.aqi-pollutants { display: flex; gap: 12px; flex-wrap: wrap; }
.aqi-poll-cell { text-align: center; min-width: 44px; }
.aqi-poll-name { font-size: 10px; color: var(--text-dim); }
.aqi-poll-val { font-family: 'Oswald', sans-serif; font-size: 13px; font-weight: 500; color: var(--text); margin-top: 2px; }
.aqi-poll-unit { font-size: 9px; color: var(--text-dim); }

/* CLIMA */
.clima-card { margin: 0 16px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.clima-card-title { padding: 12px 14px 8px; font-size: 12px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.8px; border-bottom: 1px solid var(--border); }
.clima-loading { padding: 12px 14px; font-size: 12px; color: var(--text-dim); font-style: italic; }
.clima-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.clima-table th { padding: 8px 10px; text-align: center; font-size: 10px; font-weight: 600; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid var(--border); }
.clima-table th:first-child { text-align: left; }
.clima-table td { padding: 7px 10px; text-align: center; color: var(--text); border-bottom: 1px solid rgba(14,165,233,0.05); }
.clima-table td:first-child { text-align: left; color: var(--text-dim); font-size: 11px; }
.clima-table tr:last-child td { border-bottom: none; }
.clima-delta-pos { color: #f97316; font-weight: 600; }
.clima-delta-neg { color: #38bdf8; font-weight: 600; }
.clima-delta-neu { color: var(--text-dim); }
.clima-source { padding: 6px 14px 8px; font-size: 10px; color: var(--text-dim); text-align: right; border-top: 1px solid var(--border); }

/* EFFEMERIDI */
.ephem-card { margin: 0 16px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; }
.ephem-row { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--border); }
.ephem-row:last-child { border-bottom: none; }
.ephem-body { padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.ephem-body:first-child { border-right: 1px solid var(--border); }
.ephem-icon { font-size: 26px; flex-shrink: 0; }
.ephem-label { font-size: 10px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.8px; }
.ephem-time { font-family: 'Oswald', sans-serif; font-size: 22px; font-weight: 300; color: var(--text); margin-top: 1px; }
.moon-phase-row { padding: 12px 16px; display: flex; align-items: center; gap: 14px; border-top: 1px solid var(--border); }
.moon-phase-name { font-size: 13px; font-weight: 500; color: var(--text); }
.moon-phase-sub { font-size: 11px; color: var(--text-dim); margin-top: 2px; }
.moon-illum { margin-left: auto; font-family: 'Oswald', sans-serif; font-size: 20px; font-weight: 300; color: #c8d8f0; }
.daylight-bar-wrap { padding: 10px 16px 14px; border-top: 1px solid var(--border); }
.daylight-bar-label { display: flex; justify-content: space-between; font-size: 10px; color: var(--text-dim); margin-bottom: 5px; }
.daylight-bar-bg { height: 6px; background: var(--surface2); border-radius: 3px; position: relative; overflow: hidden; }
.daylight-bar-fill { position: absolute; top: 0; bottom: 0; background: linear-gradient(to right, #fb923c, #fcd34d, #fb923c); border-radius: 3px; }
.daylight-duration { text-align: center; font-size: 11px; color: var(--text-dim); margin-top: 5px; }

/* LOCALITY */
.locality-card { margin: 0 16px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; }
.locality-grid { display: grid; grid-template-columns: 1fr 1fr; }
.locality-cell { padding: 14px 16px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.locality-cell:nth-child(2n) { border-right: none; }
.locality-cell:nth-last-child(-n+2) { border-bottom: none; }
.locality-cell-label { font-size: 10px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 4px; }
.locality-cell-val { font-family: 'Oswald', sans-serif; font-size: 20px; font-weight: 300; color: var(--text); }
.locality-cell-val small { font-family: 'DM Sans', sans-serif; font-size: 11px; color: var(--text-dim); font-weight: 400; }
.locality-map-link { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-top: 1px solid var(--border); font-size: 13px; color: var(--accent); text-decoration: none; font-weight: 500; transition: background 0.15s; }
.locality-map-link:hover { background: var(--surface2); }

/* TEMP COLORS */
.temp-hot  { color: #f97316; }
.temp-warm { color: #fbbf24; }
.temp-mild { color: #a3e635; }
.temp-cool { color: #38bdf8; }
.temp-cold { color: #818cf8; }

/* BOTTOM NAV */
.bottom-nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 900px; background: rgba(7,15,26,0.95); backdrop-filter: blur(20px); border-top: 1px solid var(--border); display: flex; z-index: 100; padding: 6px 0 env(safe-area-inset-bottom, 6px); }
.nav-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; cursor: pointer; transition: all 0.2s; }
.nav-icon { font-size: 20px; transition: transform 0.2s; }
.nav-label { font-size: 10px; color: var(--text-dim); font-weight: 500; }
.nav-item.active .nav-label { color: var(--sky); }
.nav-item.active .nav-icon { transform: translateY(-2px); }
.nav-item:hover .nav-icon { transform: translateY(-2px); }
.scroll-content { padding-bottom: 80px; }

/* BOTTOM SHEET */
.sheet-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 200; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.sheet-overlay.open { opacity: 1; pointer-events: all; }
.bottom-sheet { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%) translateY(100%); width: 100%; max-width: 430px; background: #0d1f35; border-radius: 24px 24px 0 0; border: 1px solid var(--border); border-bottom: none; z-index: 201; transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1); max-height: 85vh; overflow-y: auto; }
.bottom-sheet.open { transform: translateX(-50%) translateY(0); }
.sheet-handle { width: 36px; height: 4px; background: var(--border); border-radius: 2px; margin: 12px auto 16px; }
.sheet-title { font-family: 'Syne', sans-serif; font-size: 18px; font-weight: 700; padding: 0 20px 16px; color: var(--text); }
.search-input-wrap { margin: 0 20px 16px; position: relative; }
.search-input { width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 16px 12px 42px; color: var(--text); font-size: 15px; font-family: 'DM Sans', sans-serif; outline: none; transition: border-color 0.2s; }
.search-input:focus { border-color: var(--accent); }
.search-input::placeholder { color: var(--text-dim); }
.search-icon-in { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-dim); font-size: 16px; pointer-events: none; }
.search-results { padding: 0 16px 16px; }
.search-result-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; cursor: pointer; transition: background 0.15s; }
.search-result-item:hover { background: var(--surface); }
.result-icon { font-size: 20px; width: 36px; text-align: center; }
.result-name { font-size: 15px; font-weight: 500; color: var(--text); }
.result-region { font-size: 12px; color: var(--text-dim); }
.result-fav { margin-left: auto; font-size: 18px; cursor: pointer; transition: transform 0.2s; }
.result-fav:hover { transform: scale(1.2); }
.favorites-section { padding: 0 20px 20px; }
.favorites-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); margin-bottom: 10px; }
.fav-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fav-chip { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 6px 14px; font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 6px; }
.fav-chip:hover { border-color: var(--accent); background: var(--surface2); }
.fav-chip .remove { color: var(--text-dim); font-size: 12px; }

/* ANIMATIONS */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }


/* ── BLOCCO ORARIE INLINE DENTRO IL GIORNO (solo sotto 900px) ────────────────── */
.day-inline-hourly { display: none; }

@media (min-width: 900px) {
  /* Su desktop: il blocco inline dentro il giorno non si vede mai */
  .day-inline-hourly { display: none !important; }
  /* Su desktop: main-content sempre visibile */
  #app.day-open .main-content .hourly-scroll,
  #app.day-open .main-content .hourly-detail-panel,
  #app.day-open #chart-section-label,
  #app.day-open .main-content > .chart-card { display: block; }
}

@media (max-width: 899px) {
  .main-content { display: flex; flex-direction: column; }
  #main-top { order: 1; }
  #sidebar { order: 2; margin: 0; padding: 0; }
  #main-bottom { order: 3; padding-bottom: 80px; }
  /* Su mobile con giorno aperto: nascondi orarie/grafico in main-top */
  #app.day-open #main-top .section-label:first-of-type,
  #app.day-open #main-top .hourly-scroll,
  #app.day-open #main-top .hourly-detail-panel,
  #app.day-open #main-top #chart-section-label,
  #app.day-open #main-top .chart-card { display: none; }
}
