/* ═════════════════════════════════════════════════════════════════
   Notre calendrier — Crème + Bordeaux + Or champagne
   ═════════════════════════════════════════════════════════════════ */

:root {
  --cream:        #F5EFE6;
  --cream-soft:   #EFE8DC;
  --cream-deeper: #E8DFCE;
  --paper:        #FAF7F1;
  --ink:          #1F1A18;
  --ink-soft:     #4A413E;
  --ink-mute:     #8A7E78;
  --rule:         #D9CFBC;
  --rule-soft:    #E5DCC9;

  --bordeaux:        #5C1A2B;
  --bordeaux-deep:   #3F1019;
  --bordeaux-soft:   #7A2A3D;
  --champagne:       #B89968;
  --champagne-pale:  #D9C49B;
  --champagne-deep:  #8B6F47;

  --shadow-card:  0 1px 0 rgba(255,255,255,.6) inset, 0 8px 28px rgba(60,30,20,.08);
  --shadow-pop:   0 1px 0 rgba(255,255,255,.6) inset, 0 24px 60px rgba(60,30,20,.18);

  --serif: "Cormorant Garamond", "EB Garamond", Garamond, serif;
  --sans:  "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

#root { min-height: 100vh; }

/* ───── Background texture: subtle paper grain ───── */
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(184,153,104,.05), transparent 60%),
    radial-gradient(ellipse 60% 50% at 100% 100%, rgba(92,26,43,.04), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ───── Layout shell ───── */
.app {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100vh;
}

.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 20px 28px 16px;
  border-bottom: 1px solid var(--rule);
  background: linear-gradient(to bottom, var(--paper), var(--cream));
}
@media (max-width: 1100px) {
  .topbar { grid-template-columns: 1fr auto; gap: 16px 24px; }
  .topbar .search { grid-column: 1 / -1; max-width: none; margin: 0; order: 3; }
}

.brand {
  display: flex; align-items: baseline; gap: 14px;
}
.brand-mark {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: .005em;
  color: var(--bordeaux);
  font-style: italic;
  line-height: 1;
}
.brand-divider {
  width: 1px; height: 22px; background: var(--rule);
}
.brand-sub {
  font-family: var(--sans);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--ink-mute);
  font-weight: 500;
}

/* ───── Search ───── */
.search {
  display: flex; align-items: center; gap: 10px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 7px 16px;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  transition: border-color .2s, box-shadow .2s;
}
.search:focus-within {
  border-color: var(--champagne);
  box-shadow: 0 0 0 3px rgba(184,153,104,.12);
}
.search svg { color: var(--ink-mute); flex-shrink: 0; }
.search input {
  border: 0; background: transparent; outline: 0;
  font: inherit; color: var(--ink);
  width: 100%;
  font-size: 13px;
}
.search input::placeholder { color: var(--ink-mute); font-style: italic; }
.search kbd {
  font-family: var(--mono);
  font-size: 10px;
  background: var(--cream-deeper);
  color: var(--ink-mute);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--rule);
}

/* ───── Topbar right cluster ───── */
.topbar-right {
  display: flex; align-items: center; gap: 10px;
}

/* ───── Dark mode toggle ───── */
.dark-toggle {
  appearance: none;
  border: 1px solid var(--rule);
  background: var(--cream);
  width: 34px; height: 34px;
  border-radius: 8px;
  display: grid; place-items: center;
  cursor: pointer;
  color: var(--ink-soft);
  flex-shrink: 0;
  transition: border-color .15s, color .15s, background .15s;
}
.dark-toggle:hover { border-color: var(--champagne); color: var(--bordeaux); }

/* ───── View switcher ───── */
.view-switch {
  display: flex; align-items: center;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 3px;
}
.view-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: .02em;
  transition: all .2s;
}
.view-switch button:hover { color: var(--ink); }
.view-switch button.active {
  background: var(--bordeaux);
  color: var(--paper);
  box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, 0 2px 8px rgba(92,26,43,.25);
}

/* ───── Sub-bar (date nav + filters) ───── */
.subbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 14px 28px;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
@media (max-width: 1280px) {
  .subbar { grid-template-columns: 1fr; gap: 12px; }
  .subbar .filters { justify-content: flex-start; }
}

.date-nav {
  display: flex; align-items: center; gap: 4px;
}
.date-nav-arrow {
  appearance: none; border: 1px solid var(--rule);
  background: var(--cream);
  width: 32px; height: 32px;
  border-radius: 8px;
  display: grid; place-items: center;
  cursor: pointer;
  color: var(--ink-soft);
  transition: all .15s;
}
.date-nav-arrow:hover { border-color: var(--champagne); color: var(--bordeaux); }
.date-nav-label {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  font-style: italic;
  color: var(--ink);
  margin: 0 14px;
  min-width: 200px;
  text-align: center;
  letter-spacing: .005em;
}
.date-nav-today {
  margin-left: 12px;
  appearance: none; border: 1px solid var(--rule);
  background: transparent;
  font: inherit; font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .15em;
  color: var(--ink-soft);
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .15s;
}
.date-nav-today:hover { border-color: var(--bordeaux); color: var(--bordeaux); }

/* ───── Filter chips ───── */
.filters {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
}
.chip {
  appearance: none; border: 1px solid var(--rule);
  background: var(--cream);
  font: inherit; font-size: 11.5px; font-weight: 500;
  color: var(--ink-soft);
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: all .15s;
  letter-spacing: .01em;
}
.chip:hover { border-color: var(--ink-mute); }
.chip.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.chip-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.price-filter {
  display: flex; align-items: center; gap: 10px;
  padding-left: 12px;
  border-left: 1px solid var(--rule);
  margin-left: 4px;
}
.price-filter-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--ink-mute);
  font-weight: 500;
}
.price-slider {
  width: 110px;
  height: 2px;
  background: var(--rule);
  border-radius: 2px;
  position: relative;
  cursor: pointer;
}
.price-slider-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: var(--bordeaux);
  border-radius: 2px;
}
.price-slider-thumb {
  position: absolute; top: 50%;
  width: 14px; height: 14px;
  background: var(--paper);
  border: 2px solid var(--bordeaux);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.price-slider-value {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink);
  font-weight: 500;
  min-width: 38px;
}

/* ═══════════════════════════════════════════════════════════════
   MONTH VIEW
   ═══════════════════════════════════════════════════════════════ */

.month {
  padding: 24px 28px 80px;
}
.month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--rule-soft);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  gap: 1px;
  box-shadow: var(--shadow-card);
}
.month-dow {
  background: var(--paper);
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--ink-mute);
}
.month-cell {
  background: var(--cream);
  min-height: 150px;
  padding: 10px 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  transition: background .15s;
}
.month-cell.other-month { background: var(--cream-soft); }
.month-cell.is-sunday { background: var(--paper); }
.month-cell.is-today::before {
  content: "";
  position: absolute;
  top: 8px; right: 8px;
  width: 22px; height: 22px;
  background: var(--bordeaux);
  border-radius: 50%;
  z-index: 0;
}
.month-cell.is-today .month-cell-num {
  color: var(--paper);
  position: relative;
  z-index: 1;
  text-align: center;
  width: 22px;
  margin-right: -4px;
}

.month-cell-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 2px;
}
.month-cell-num {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
}
.month-cell.other-month .month-cell-num { color: var(--ink-mute); }

.month-cell-weather {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 10px;
  color: var(--ink-mute);
  font-family: var(--mono);
}

.month-event {
  appearance: none; border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 6px;
  align-items: center;
  padding: 3px 6px 3px 4px;
  border-radius: 3px;
  border-left: 2px solid var(--cat-color, var(--bordeaux));
  font-size: 11px;
  cursor: pointer;
  transition: background .12s;
  color: var(--ink);
  width: 100%;
  line-height: 1.3;
}
.month-event:hover {
  background: rgba(255,255,255,.6);
}
.month-event-time {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--ink-mute);
  font-weight: 500;
}
.month-event-glyph {
  color: var(--cat-color, var(--bordeaux));
  font-size: 9px;
}
.month-event-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}
.month-event-fav {
  color: var(--champagne);
  font-size: 10px;
}

/* ═══════════════════════════════════════════════════════════════
   WEEK VIEW
   ═══════════════════════════════════════════════════════════════ */

.week {
  padding: 24px 36px 80px;
  display: grid;
  grid-template-columns: 60px repeat(7, 1fr);
  gap: 1px;
  background: var(--rule-soft);
  border: 1px solid var(--rule);
  border-radius: 4px;
  margin: 24px 36px 80px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.week-corner {
  background: var(--paper);
  padding: 14px 8px;
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--ink-mute);
  text-align: center;
}
.week-day-head {
  background: var(--paper);
  padding: 12px 10px;
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.week-day-head.is-sunday { background: linear-gradient(to bottom, var(--cream), var(--paper)); }
.week-day-head.is-today .week-day-num {
  color: var(--bordeaux);
}
.week-day-dow {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--ink-mute);
  font-weight: 500;
}
.week-day-num {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
  font-style: italic;
}
.week-day-weather {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-mute);
  margin-top: 2px;
}

.week-hour-label {
  background: var(--cream);
  padding: 6px 6px 0;
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--ink-mute);
  text-align: right;
  border-right: 1px solid var(--rule-soft);
}

.week-day-col {
  background: var(--cream);
  position: relative;
  min-height: 800px;
}
.week-day-col.is-sunday {
  background: var(--paper);
}
.week-day-col .hour-line {
  position: absolute; left: 0; right: 0;
  height: 1px; background: var(--rule-soft);
}

.week-event {
  position: absolute;
  left: 4px; right: 4px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--cat-color, var(--bordeaux));
  border-radius: 3px;
  padding: 6px 8px;
  cursor: pointer;
  overflow: hidden;
  transition: transform .15s, box-shadow .15s;
  font-size: 11px;
  line-height: 1.35;
  z-index: 3;
}
.week-event:hover {
  transform: translateX(1px);
  box-shadow: 0 4px 14px rgba(0,0,0,.1);
  z-index: 5;
}
.week-hour-col {
  background: var(--paper);
}
.week-event-time {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--ink-mute);
  font-weight: 500;
  letter-spacing: .03em;
}
.week-event-title {
  font-weight: 500;
  color: var(--ink);
  margin-top: 1px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.week-event-cat {
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--cat-color, var(--bordeaux));
  margin-top: 3px;
}

/* ═══════════════════════════════════════════════════════════════
   MAP VIEW
   ═══════════════════════════════════════════════════════════════ */

.map-view {
  display: grid;
  grid-template-columns: 360px 1fr;
  height: calc(100vh - 137px);
  overflow: hidden;
}
.map-list {
  overflow-y: auto;
  border-right: 1px solid var(--rule);
  background: var(--paper);
  padding: 18px 22px;
}
.map-list-head {
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  color: var(--bordeaux);
  margin-bottom: 4px;
}
.map-list-sub {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--ink-mute);
  margin-bottom: 18px;
}
.map-list-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 4px;
  border-bottom: 1px solid var(--rule-soft);
  cursor: pointer;
  transition: background .12s;
}
.map-list-item:hover {
  background: var(--cream-soft);
  margin: 0 -10px;
  padding-left: 14px;
  padding-right: 14px;
  border-radius: 4px;
  border-bottom-color: transparent;
}
.map-list-pin {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--cat-color, var(--bordeaux));
  color: var(--paper);
  display: grid; place-items: center;
  font-size: 12px;
  font-family: var(--mono);
  font-weight: 600;
}
.map-list-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
}
.map-list-meta {
  font-size: 10.5px;
  color: var(--ink-mute);
  font-family: var(--mono);
  margin-top: 3px;
}
.map-list-price {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--bordeaux);
}

.map-canvas {
  position: relative;
  background:
    radial-gradient(ellipse at 40% 50%, var(--cream) 0%, var(--cream-soft) 70%);
  overflow: hidden;
}
.map-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.map-pin {
  position: absolute;
  width: 32px; height: 32px;
  margin: -16px 0 0 -16px;
  border-radius: 50%;
  background: var(--cat-color, var(--bordeaux));
  border: 2px solid var(--paper);
  cursor: pointer;
  display: grid; place-items: center;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
  transition: transform .15s;
  z-index: 2;
}
.map-pin:hover { transform: scale(1.18); z-index: 10; }
.map-pin.selected {
  transform: scale(1.3);
  box-shadow: 0 0 0 4px rgba(184,153,104,.4), 0 6px 18px rgba(0,0,0,.2);
}

.map-legend {
  position: absolute;
  bottom: 20px; left: 20px;
  background: rgba(250, 247, 241, .92);
  backdrop-filter: blur(12px);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 10.5px;
  z-index: 5;
}
.map-legend-row { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.map-legend-dot { width: 9px; height: 9px; border-radius: 50%; }

/* ═══════════════════════════════════════════════════════════════
   DETAIL DRAWER
   ═══════════════════════════════════════════════════════════════ */

.drawer-backdrop {
  position: fixed; inset: 0;
  background: rgba(31, 26, 24, .25);
  backdrop-filter: blur(2px);
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 460px;
  background: var(--paper);
  z-index: 50;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
  box-shadow: -10px 0 40px rgba(60,30,20,.18);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.drawer.open { transform: translateX(0); }

.drawer-hero {
  background: linear-gradient(135deg, var(--bordeaux) 0%, var(--bordeaux-deep) 100%);
  color: var(--paper);
  padding: 24px 28px 22px;
  position: relative;
}
.drawer-close {
  position: absolute; top: 16px; right: 16px;
  appearance: none; border: 0; background: rgba(255,255,255,.12);
  color: var(--paper);
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: grid; place-items: center;
  transition: background .15s;
}
.drawer-close:hover { background: rgba(255,255,255,.22); }
.drawer-cat-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--champagne-pale);
  margin-bottom: 14px;
}
.drawer-cat-tag::before {
  content: "";
  width: 18px; height: 1px;
  background: var(--champagne);
}
.drawer-title {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: .002em;
}
.drawer-meta-row {
  display: flex; gap: 18px;
  margin-top: 18px;
  font-size: 12px;
  color: var(--champagne-pale);
}
.drawer-meta-row b { color: var(--paper); font-weight: 500; }

.drawer-body {
  padding: 24px 28px;
  flex: 1;
  overflow-y: auto;
  background: var(--paper);
}

.drawer-section {
  margin-bottom: 20px;
}
.drawer-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .25em;
  color: var(--ink-mute);
  font-weight: 600;
  margin-bottom: 8px;
}
.drawer-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.drawer-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}
.drawer-info-item dt {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--ink-mute);
  margin-bottom: 3px;
}
.drawer-info-item dd {
  margin: 0;
  font-size: 13px;
  color: var(--ink);
}

.drawer-foot {
  border-top: 1px solid var(--rule);
  padding: 16px 28px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  background: var(--cream);
}
.btn-primary {
  appearance: none; border: 0;
  background: var(--bordeaux);
  color: var(--paper);
  font: inherit; font-size: 12px; font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 14px 22px;
  border-radius: 4px;
  cursor: pointer;
  transition: background .15s;
}
.btn-primary:hover { background: var(--bordeaux-deep); }
.btn-ghost {
  appearance: none;
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--ink);
  font: inherit; font-size: 12px; font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 14px 18px;
  border-radius: 4px;
  cursor: pointer;
  transition: all .15s;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost.fav-on { color: var(--bordeaux); border-color: var(--bordeaux); background: var(--cream-soft); }

/* ═══════════════════════════════════════════════════════════════
   DAY DRAWER (full day agenda)
   ═══════════════════════════════════════════════════════════════ */
.drawer.day-drawer { width: 480px; }
.drawer.day-drawer .drawer-body { padding: 0; }

.day-item {
  appearance: none; background: transparent; border: 0; border-bottom: 1px solid var(--rule-soft);
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 14px;
  padding: 16px 22px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
  transition: background .12s;
  border-left: 3px solid transparent;
}
.day-item:hover {
  background: var(--cream-soft);
  border-left-color: var(--cat-color, var(--bordeaux));
}
.day-item-time {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
}
.day-item-hh {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--bordeaux);
  letter-spacing: .02em;
}
.day-item-dur {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-mute);
}
.day-item-body { min-width: 0; }
.day-item-cat {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--cat-color, var(--ink-mute));
  font-weight: 500;
  margin-bottom: 4px;
}
.day-item-cat .chip-dot { width: 7px; height: 7px; border-radius: 50%; }
.day-item-title {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 4px;
}
.day-item-meta {
  font-size: 11.5px;
  color: var(--ink-mute);
}
.day-item-price {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--bordeaux);
  align-self: center;
}
.empty-day {
  padding: 60px 24px;
  text-align: center;
  color: var(--ink-mute);
  font-style: italic;
  font-size: 13px;
}

/* Make day numbers in calendar cells look clickable */
.month-cell-num.is-clickable,
.week-day-num.is-clickable {
  cursor: pointer;
  transition: color .12s;
}
.month-cell-num.is-clickable:hover,
.week-day-num.is-clickable:hover {
  color: var(--bordeaux);
}

/* ═══════════════════════════════════════════════════════════════
   FAVORITES VIEW
   ═══════════════════════════════════════════════════════════════ */
.favs {
  max-width: 820px;
  margin: 0 auto;
  padding: 32px 28px 80px;
}
.favs-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 12px;
  margin-bottom: 24px;
}
.favs-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 28px;
  color: var(--bordeaux);
  margin: 0;
  letter-spacing: .005em;
}
.favs-sub {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: .05em;
}
.favs-group {
  margin-bottom: 28px;
}
.favs-day-head {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 10px;
  padding-bottom: 4px;
  border-bottom: 1px dashed var(--rule-soft);
}
.favs-item {
  display: grid;
  grid-template-columns: 1fr auto;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--cat-color, var(--bordeaux));
  border-radius: 6px;
  margin-bottom: 8px;
  overflow: hidden;
  transition: box-shadow .12s, transform .12s;
}
.favs-item:hover {
  box-shadow: 0 4px 14px rgba(60,30,20,.08);
  transform: translateY(-1px);
}
.favs-item.is-past {
  opacity: .5;
  border-left-color: var(--ink-mute);
}
.favs-item-main {
  appearance: none;
  background: transparent;
  border: 0;
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 14px;
  padding: 14px 16px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
  align-items: center;
}
.favs-item-time {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.favs-item-body { min-width: 0; }
.favs-item-rm {
  appearance: none;
  background: transparent;
  border: 0;
  border-left: 1px solid var(--rule);
  width: 50px;
  cursor: pointer;
  color: var(--bordeaux);
  display: grid;
  place-items: center;
  transition: background .12s, color .12s;
}
.favs-item-rm:hover {
  background: var(--cream-soft);
  color: var(--bordeaux-deep);
}
.favs-empty {
  text-align: center;
  padding: 80px 24px;
  color: var(--ink-mute);
  max-width: 460px;
  margin: 0 auto;
}
.favs-empty-glyph {
  font-size: 56px;
  color: var(--champagne);
  margin-bottom: 18px;
  font-family: var(--serif);
}
.favs-empty h2 {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--ink);
  margin: 0 0 10px;
  font-weight: 500;
}
.favs-empty p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
}
@media (max-width: 768px) {
  .favs { padding: 18px 14px 60px; }
  .favs-title { font-size: 22px; }
  .favs-item-main { grid-template-columns: 60px 1fr auto; padding: 12px; gap: 10px; }
  .favs-item-rm { width: 42px; }
}

/* ═══════════════════════════════════════════════════════════════
   WEATHER ICONS
   ═══════════════════════════════════════════════════════════════ */
.wx { width: 12px; height: 12px; display: inline-block; }

/* ═══════════════════════════════════════════════════════════════
   FOOTER ribbon — Sunday focus
   ═══════════════════════════════════════════════════════════════ */
.sunday-ribbon {
  background: var(--ink);
  color: var(--cream);
  padding: 10px 36px;
  font-size: 11px;
  display: flex; align-items: center; gap: 24px;
  font-family: var(--sans);
  letter-spacing: .03em;
}
.sunday-ribbon-label {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .25em;
  color: var(--champagne-pale);
}
.sunday-ribbon-item { color: var(--cream); opacity: .85; }
.sunday-ribbon-item b { color: var(--paper); font-weight: 600; opacity: 1; }

/* ═══════════════════════════════════════════════════════════════
   Density variants
   ═══════════════════════════════════════════════════════════════ */
body[data-density="aere"] .month-cell { min-height: 170px; padding: 12px; gap: 7px; }
body[data-density="aere"] .month-event { padding: 5px 8px; font-size: 11.5px; }
body[data-density="dense"] .month-cell { min-height: 140px; padding: 8px 8px 6px; gap: 3px; }
body[data-density="dense"] .month-event { padding: 2px 5px; font-size: 10.5px; gap: 5px; }

/* ═══════════════════════════════════════════════════════════════
   Animations
   ═══════════════════════════════════════════════════════════════ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp .35s cubic-bezier(.2,.8,.2,1) both; }

::selection { background: var(--bordeaux); color: var(--paper); }

/* ═══════════════════════════════════════════════════════════════
   MOBILE / TABLET (≤ 768px)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Topbar — stack everything */
  .topbar {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px 14px 12px;
  }
  .brand-mark { font-size: 22px; }
  .brand-sub { font-size: 9px; letter-spacing: .15em; }
  .search { max-width: none; padding: 6px 12px; }
  .search kbd { display: none; }
  .topbar-right { width: 100%; }
  .topbar-right .view-switch { flex: 1; }
  .view-switch button { flex: 1; padding: 8px 12px; }

  /* Sub-bar — stack */
  .subbar {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px 14px;
  }
  .date-nav { justify-content: center; }
  .date-nav-label { font-size: 18px; min-width: auto; margin: 0 8px; }
  .date-nav-today { padding: 5px 10px; font-size: 10px; }
  .filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 -14px;
    padding: 0 14px;
  }
  .filters::-webkit-scrollbar { display: none; }
  .chip { white-space: nowrap; flex-shrink: 0; }
  .price-filter {
    width: 100%;
    border-left: 0;
    border-top: 1px solid var(--rule);
    padding-left: 0;
    padding-top: 10px;
    margin-left: 0;
  }
  .price-slider { flex: 1; width: auto; }

  /* Sunday ribbon — stack */
  .sunday-ribbon {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 10px 14px;
  }
  .sunday-ribbon-item:last-child { margin-left: 0; }

  /* Month grid — compact, hide event details, keep colored dots only */
  .month { padding: 14px 10px 60px; }
  .month-grid { gap: 1px; }
  .month-dow { padding: 6px 2px; font-size: 9px; letter-spacing: .1em; }
  .month-cell {
    min-height: 64px !important;
    padding: 4px 3px !important;
    gap: 2px;
  }
  body[data-density="aere"] .month-cell,
  body[data-density="dense"] .month-cell {
    min-height: 64px !important;
    padding: 4px 3px !important;
  }
  .month-cell-head { gap: 2px; margin-bottom: 0; }
  .month-cell-num { font-size: 14px; }
  .month-cell-weather { font-size: 8px; }
  .month-cell-weather svg { display: none; }
  .month-cell.is-today::before {
    width: 18px; height: 18px; top: 4px; right: 4px;
  }
  .month-cell.is-today .month-cell-num {
    width: 18px; font-size: 12px; margin-right: -2px;
  }

  /* Hide individual event rows; show colored dots + count instead */
  .month-event {
    padding: 0 !important;
    border-left: 0 !important;
    background: transparent;
    height: 4px;
    border-radius: 999px;
    grid-template-columns: none;
  }
  .month-event-time, .month-event-glyph,
  .month-event-title, .month-event-fav { display: none; }
  .month-event { background: var(--cat-color, var(--bordeaux)); }
  .month-event.month-event-more {
    background: transparent;
    height: auto;
  }
  .month-event-more .month-event-title {
    display: block !important;
    font-size: 9px;
    color: var(--ink-mute) !important;
    text-align: center;
  }

  /* Drawers — full width */
  .drawer, .drawer.day-drawer { width: 100%; max-width: 100vw; }
  .drawer-hero { padding: 18px 18px 16px; }
  .drawer-title { font-size: 22px; }
  .drawer-body { padding: 18px; }
  .drawer-info-grid { grid-template-columns: 1fr; gap: 8px; }
  .drawer-foot { padding: 12px 18px; grid-template-columns: 1fr; gap: 8px; }

  /* Day-drawer items — tighter */
  .day-item { grid-template-columns: 56px 1fr auto; gap: 10px; padding: 12px 14px; }
  .day-item-hh { font-size: 14px; }
  .day-item-title { font-size: 14px; }
  .day-item-meta { font-size: 11px; }

  /* Map view — vertical stack */
  .map-view {
    grid-template-columns: 1fr;
    grid-template-rows: 50vh 50vh;
    height: calc(100vh - 200px);
  }
  .map-list { border-right: 0; border-bottom: 1px solid var(--rule); padding: 14px; }
  .map-canvas { min-height: 280px; }
  .map-pin { width: 26px; height: 26px; font-size: 10px; }
}

/* Extra-narrow screens (≤ 380px) — push compactness further */
@media (max-width: 380px) {
  .month-cell { min-height: 54px !important; }
  .month-cell-num { font-size: 12px; }
  .month-dow { font-size: 8px; padding: 5px 1px; }
  .brand-mark { font-size: 19px; }
  .month { padding: 10px 6px 60px; }
}

/* Scrollbars */
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--rule); border-radius: 10px; border: 2px solid var(--paper); }
*::-webkit-scrollbar-thumb:hover { background: var(--ink-mute); }

/* ═══════════════════════════════════════════════════════════════
   DARK MODE — overrides for values that can't use CSS variables
   ═══════════════════════════════════════════════════════════════ */
[data-dark] .map-legend {
  background: rgba(28, 23, 20, .92);
}
[data-dark] .month-event:hover {
  background: rgba(255,255,255,.07);
}
[data-dark] .drawer-backdrop {
  background: rgba(0, 0, 0, .55);
}
