:root {
  --head: 112px;
  --side: clamp(282px, 26vw, 405px);
  --gutter: 16px;
  --shadow: 0 6px 24px #24234818, 0 1px 4px #2423480e;
}
body {
  overflow: hidden;
  background: #f7f7fc;
}
.atlas-head {
  background: #fcfcff;
  position: relative;
  z-index: 4;
  border-bottom: 1px solid #ddddeb;
  box-shadow: 0 3px 15px #2526420b;
}
.mainbar,
.categorybar {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.35vw, 24px);
  padding: 0 clamp(14px, 2.1vw, 36px);
}
.mainbar {
  height: 61px;
  border-bottom: 1px solid #ededf5;
}
.mainbar .brand {
  padding-right: clamp(8px, 1.6vw, 26px);
  border-right: 1px solid var(--line);
  font-size: clamp(23px, 2vw, 31px);
}
.finder {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #f2f1fa;
  border: 1px solid #edeaf7;
  flex: 1;
  min-width: 110px;
  max-width: 590px;
  border-radius: 23px;
  padding: 0 14px;
  height: 39px;
  color: #575076;
}
.finder:focus-within {
  outline: 2px solid #9577f2;
}
.finder input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 0.91rem;
}
.finder input::placeholder {
  color: #67627f;
}
.date-segment {
  display: flex;
  border: 1px solid var(--line);
  padding: 2px;
  border-radius: 12px;
  gap: 1px;
  background: #f7f7fb;
}
.date-segment button {
  background: transparent;
  border: 0;
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 0.83rem;
  white-space: nowrap;
}
.date-segment button.selected {
  background: var(--purple);
  color: white;
}
.datepick {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 12px;
  font-weight: 650;
  font-size: 0.84rem;
}
.datepick input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.datepick input::-webkit-calendar-picker-indicator {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  cursor: pointer;
}
.datepick:focus-within {
  outline: 2px solid var(--purple);
}
.datepick svg:last-of-type,
.city-chip svg:last-child {
  width: 12px;
}
.head-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.head-actions .iconbtn {
  border: 0;
}
.head-actions #nav-saved {
  background: transparent;
}
.head-actions .current {
  color: var(--purple);
}
.publish-link {
  white-space: nowrap;
}
.categorybar {
  height: 50px;
  justify-content: space-between;
  gap: 10px;
}
.cat-scroll {
  display: block;
  overflow: hidden;
  min-width: 0;
  flex: 1;
}
.categorybar > #nav-discover { flex: none; }
.cat-track {
  display: flex;
  align-items: center;
  gap: 9px;
  width: max-content;
  height: 100%;
  will-change: transform;
}
.cat-scroll::-webkit-scrollbar {
  display: none;
}
.cat-scroll {
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.cat-scroll.dragged { cursor: grabbing; }
.cat-scroll .chip { touch-action: pan-y; }
.cat-track .chip { flex: none; }
.cat-scroll .chip:focus-visible {
  outline: 3px solid #7350d8;
  outline-offset: 2px;
}
.chip,
.city-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 22px;
  border: 1px solid #e4e3ef;
  background: #f7f7fb;
  padding: 7px 12px;
  white-space: nowrap;
  font-size: 0.83rem;
  font-weight: 570;
}
.chip svg {
  width: 16px;
  height: 16px;
  color: var(--tone, #7848f2);
}
.chip.selected,
.chip[aria-pressed="true"] {
  background: #eee7ff;
  border-color: #cbb9ff;
  color: #5b25de;
  font-weight: 750;
}
.city-chip {
  padding-inline: 12px;
  color: #343148;
}
.chip#free {
  --tone: #bd28bd;
}
.cat-musica {
  --tone: #7440e8;
  --pastel: #eee8ff;
}
.cat-cultura {
  --tone: #d33b82;
  --pastel: #ffe8f3;
}
.cat-comunidad {
  --tone: #be7400;
  --pastel: #fff2d2;
}
.cat-feria {
  --tone: #ce5a0b;
  --pastel: #ffeddd;
}
.cat-taller {
  --tone: #167d94;
  --pastel: #dcf5fa;
}
.cat-deporte {
  --tone: #208356;
  --pastel: #e0f6e9;
}
.cat-academico {
  --tone: #3469b8;
  --pastel: #e2edff;
}
.workspace {
  height: calc(100dvh - var(--head));
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.atlas,
#map {
  position: absolute;
  inset: 0;
  background: #e2e7ed;
}
.map-tools,
.map-actions {
  position: absolute;
  z-index: 1;
  display: flex;
  gap: 6px;
}
.map-tools {
  top: var(--gutter);
  left: var(--gutter);
}
.has-feature .map-tools,
.refining .map-tools {
  left: calc(var(--side) + 2 * var(--gutter));
}
.map-tools button,
.map-actions button,
#slide-next {
  border: 1px solid #e0deeb;
  border-radius: 12px;
  box-shadow: 0 3px 10px #36305219;
  background: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.map-tools button {
  padding: 8px 12px;
  font-size: 0.82rem;
}
.map-tools button.selected {
  background: #eee7ff;
  color: #5420ce;
}
.map-actions {
  right: 14px;
  top: var(--gutter);
  flex-direction: column;
}
.map-actions button {
  width: 37px;
  height: 37px;
  padding: 0;
}
.map-actions > div {
  display: grid;
  border-radius: 11px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.map-actions > div button {
  border-radius: 0;
  box-shadow: none;
}
.maplibregl-ctrl-attrib {
  font:
    10px/1.25 DM,
    Arial,
    sans-serif !important;
  max-width: 95vw;
}
.atlas .maplibregl-ctrl-bottom-right {
  z-index: 3;
}
.maplibregl-ctrl-scale {
  background: #ffffffa8 !important;
  font:
    11px DM,
    Arial,
    sans-serif !important;
}
.atlas .maplibregl-ctrl-bottom-left {
  left: calc(var(--side) + var(--gutter));
  bottom: 228px;
}
.pin {
  --pin: #7744f0;
  position: relative;
  display: grid;
  place-items: center;
  border: 3px solid white;
  background: var(--pin);
  color: #fff;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  padding: 0;
  box-shadow: 0 2px 8px #44324b48;
  isolation: isolate;
}
.pin:after {
  content: "";
  position: absolute;
  background: white;
  width: 9px;
  height: 9px;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  z-index: -1;
}
.pin:hover,
.pin:focus {
  background: var(--pin);
  outline: 4px solid #7940ef40;
}
.pin svg {
  width: 17px;
  height: 17px;
  stroke-width: 2.3;
}
.pin.focus-pin {
  outline: 6px solid #8144f947;
  z-index: 2;
}
.pin.cluster {
  background: #e8dbff;
  color: #5224bc;
  outline: 5px solid #b29be459;
}
.pin.cluster:after {
  display: none;
}
.pin.promoted {
  width: 42px;
  height: 42px;
}
.pin.cancelled {
  --pin: #777585 !important;
}
#map-error {
  position: absolute;
  top: 60px;
  left: 50%;
  max-width: 300px;
  background: #fff;
  padding: 8px;
  border-radius: 8px;
  font-size: 0.8rem;
}
.feature,
.shelf {
  position: absolute;
  background: #fff;
  border: 1px solid #ffffffd9;
  box-shadow: var(--shadow);
  border-radius: 17px;
  z-index: 2;
}
.feature {
  left: var(--gutter);
  top: var(--gutter);
  width: var(--side);
  max-height: calc(100% - 2 * var(--gutter));
  overflow: auto;
  scrollbar-width: thin;
}
.feature-cover,
.card-art,
.detail-art {
  position: relative;
  display: block;
  isolation: isolate;
  background: #29213b;
  overflow: hidden;
}
.feature-cover {
  aspect-ratio: 1.82;
}
.cover-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.poster-title {
  position: absolute;
  left: 6%;
  bottom: 10%;
  max-width: 64%;
  font-size: clamp(1.8rem, 3vw, 3.6rem);
  line-height: 0.86;
  text-transform: uppercase;
  letter-spacing: -0.055em;
  font-family: Bricolage, DM, sans-serif;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 15px #11082485;
  font-style: italic;
  overflow-wrap: break-word;
  text-align: left;
}
.feature-cover:has(.poster-title):after,
.card-art:has(.poster-title):after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(80deg, #14052e59, transparent 80%);
  z-index: 0;
}
.poster-title,
.cover-tools,
.flag {
  z-index: 1;
}
.cover-tools {
  display: flex;
  gap: 6px;
  position: absolute;
  top: 10px;
  right: 10px;
}
.cover-tools button,
.detail-art > .iconbtn {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: #fffe;
}
.flag {
  display: inline-block;
  border-radius: 6px;
  background: #f4edff;
  color: #4f229d;
  font-size: 0.68rem;
  padding: 3px 7px;
  font-weight: 750;
}
.feature-cover > .flag,
.card-art > .flag {
  position: absolute;
  left: 8px;
  top: 8px;
}
.card-art > .access-note,
.feature-cover > .access-note {
  max-width: calc(100% - 60px);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.feature-cover > .access-note {
  max-width: calc(100% - 96px);
}
.cancelled-label {
  background: #fff0ed;
  color: #8e2f21;
}
.feature-body {
  padding: 17px 18px 13px;
}
.feature-body h2 {
  font-size: clamp(1.48rem, 2vw, 2rem);
}
.feature-org,
.filter-place {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 6px 0 11px;
}
.venue-line,
.feature-date,
.feature-buttons,
.feature-foot {
  display: flex;
  align-items: center;
  gap: 8px;
}
.venue-line {
  font-size: 0.81rem;
  font-weight: 620;
  flex-wrap: wrap;
}
.venue-line svg {
  width: 15px;
}
.venue-line em,
.tag {
  font-style: normal;
  padding: 3px 8px;
  border-radius: 8px;
  background: #f0ebff;
  color: #5c30b8;
  font-size: 0.75rem;
  font-weight: 650;
}
.feature-date {
  border-block: 1px solid var(--line);
  margin: 13px 0;
  padding: 12px 0;
  font-size: 0.85rem;
}
.calendar-stamp {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-width: 47px;
  height: 49px;
  border-radius: 8px;
  background: #f4f3f9;
  font-size: 0.67rem;
  font-weight: 720;
  text-transform: uppercase;
}
.calendar-stamp b {
  font-family: Bricolage;
  font-size: 1.45rem;
  line-height: 1.05;
}
.feature-date strong {
  text-transform: capitalize;
}
.feature-date small,
.feature-foot span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
}
.feature-date svg,
.feature-foot svg,
.tag svg {
  width: 14px;
  height: 14px;
}
.feature-date small {
  font-size: 0.79rem;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--pastel);
  color: var(--tone);
  margin-left: auto;
}
.feature-buttons > * {
  flex: 1;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
}
.feature-buttons button {
  background: #f8f7fd;
}
.feature-text {
  font-size: 0.87rem;
  color: #464459;
  margin: 13px 0 5px;
}
.text-action,
.shelf-heading button,
#clear {
  color: #5728c9;
  background: transparent;
  border: 0;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 4px 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.text-action svg,
.shelf-heading svg {
  width: 14px;
}
.feature-foot {
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
}
.feature-foot small {
  color: #646179;
  font-size: 0.7rem;
}
.shelf {
  left: var(--gutter);
  right: var(--gutter);
  bottom: 18px;
  padding: 12px 14px;
  max-height: 55%;
  overflow: auto;
  scrollbar-width: thin;
}
.has-feature .shelf {
  left: calc(var(--side) + 2 * var(--gutter));
}
.shelf-heading,
.shelf-toolbar,
.shelf-tabs {
  display: flex;
  align-items: center;
}
.shelf-heading {
  justify-content: space-between;
  gap: 7px;
}
.shelf-heading h2 {
  font-size: 1.28rem;
}
.shelf-heading p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.71rem;
  text-transform: capitalize;
}
.shelf-toolbar {
  gap: 9px;
  border-bottom: 1px solid var(--line);
  margin: 4px 0 8px;
  justify-content: space-between;
}
.shelf-tabs {
  gap: 12px;
}
.shelf-tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: none;
  padding: 5px 2px;
  font-size: 0.75rem;
  font-weight: 570;
  color: var(--muted);
}
.shelf-tabs .selected {
  border-bottom-color: var(--purple);
  color: #5325c6;
  font-weight: 740;
}
#count {
  font-size: 0.72rem;
  color: var(--muted);
  margin-left: auto;
}
#clear {
  font-size: 0.72rem;
}
.card-wrap {
  position: relative;
}
#cards {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  padding: 2px 2px 4px;
}
.event-card {
  position: relative;
  flex: 0 0 clamp(154px, 13.3vw, 235px);
  border: 1px solid #e0dfec;
  background: white;
  border-radius: 11px;
  overflow: hidden;
  box-shadow: 0 2px 5px #251d460e;
  scroll-snap-align: start;
}
.event-card.chosen {
  border-color: var(--purple);
  box-shadow: 0 0 0 1px var(--purple);
}
.card-main {
  background: none;
  border: 0;
  border-radius: 0;
  display: block;
  width: 100%;
  height: 100%;
  text-align: left;
  padding: 0;
}
.card-main:hover {
  background: #faf8ff;
}
.card-art {
  height: clamp(70px, 6.5vw, 105px);
}
.card-art .poster-title {
  font-size: clamp(0.96rem, 1.38vw, 1.55rem);
}
.card-copy {
  display: block;
  padding: 8px 27px 8px 10px;
}
.card-copy strong {
  font-size: 0.84rem;
  line-height: 1.14;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}
.mini-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.69rem;
  font-weight: 500;
  color: #55536e;
  line-height: 1.5;
}
.mini-meta svg {
  width: 12px;
  height: 12px;
}
.mini-cat {
  position: absolute;
  right: 6px;
  bottom: 9px;
  color: var(--tone);
  background: var(--pastel);
  padding: 3px;
  border-radius: 6px;
  pointer-events: none;
}
.mini-cat svg {
  width: 13px;
  height: 13px;
}
.save-bubble {
  position: absolute;
  right: 5px;
  top: 5px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  padding: 0;
  color: white;
  background: #211832b8;
  border: 1px solid #fffa;
}
.save-bubble svg {
  height: 15px;
  width: 15px;
}
.save-bubble:hover,
.save-bubble.is-saved {
  background: #6731dd;
  color: white;
}
.is-saved svg {
  fill: currentColor;
}
.mobile-card-actions,
.mobile-nav,
#sheet-handle {
  display: none;
}
#slide-next {
  position: absolute;
  right: -4px;
  top: 40%;
  border-radius: 50%;
  width: 29px;
  height: 29px;
  padding: 0;
}
.empty {
  width: 100%;
}
.recommendation {
  flex: 0 0 120px;
  align-self: center;
  font-size: 0.85rem;
  color: #5225a9;
  background: #f0eaff;
}
.list-mode .atlas,
.list-mode .feature {
  display: none;
}
.list-mode .shelf {
  position: absolute;
  inset: 14px;
  max-height: none;
}
.list-mode #cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  overflow: visible;
}
.list-mode .card-art {
  height: 130px;
}
.list-mode #slide-next {
  display: none;
}
.list-mode .shelf-heading h2 {
  font-size: 1.65rem;
}
#filters .primary {
  width: 100%;
  margin-top: 14px;
}
#filters h3 {
  font-size: 1.15rem;
  margin: 13px 0 7px;
}
#week-strip {
  display: flex;
  gap: 5px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 11px;
}
#week-strip button {
  flex: 1;
  padding: 5px 0;
  border: 0;
  background: #f6f5fb;
  font-size: 0.7rem;
  text-transform: uppercase;
}
#week-strip b {
  display: block;
  font-size: 1.03rem;
}
#week-strip .selected {
  background: #e8deff;
  color: #5c2ac4;
}
#details {
  padding: 0;
}
.detail-art {
  height: 160px;
}
.detail-art > .iconbtn {
  position: absolute;
  right: 10px;
  top: 10px;
}
.detail-body {
  padding: 18px;
}
.detail-body h2 {
  font-size: 1.7rem;
}
.detail-body p,
.detail-body details {
  font-size: 0.91rem;
}
.info-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 8px 0;
  font-size: 0.88rem;
}
.info-row small,
.source small {
  display: block;
  color: var(--muted);
}
.source {
  border-block: 1px solid var(--line);
  padding: 12px 0;
}
.source svg {
  width: 13px;
}
summary {
  cursor: pointer;
  font-weight: 650;
  margin-top: 11px;
}
.key {
  display: flex;
  align-items: center;
  gap: 8px;
}
.key svg {
  background: var(--pastel);
  color: var(--tone);
  width: 25px;
  height: 25px;
  padding: 4px;
  border-radius: 5px;
}
#details > .dialog-head,
#detail-inner > .dialog-head {
  padding: 16px;
}
@media (min-width: 1050px) {
  body:has(.refining) #filters[open] {
    position: fixed;
    left: var(--gutter);
    top: calc(var(--head) + var(--gutter));
    bottom: auto;
    margin: 0;
    width: var(--side);
    max-height: calc(100dvh - var(--head) - 30px);
    z-index: 5;
  }
  .refining .feature {
    display: none;
  }
  .refining .shelf {
    left: auto;
    top: var(--gutter);
    right: var(--gutter);
    bottom: 18px;
    width: clamp(290px, 28vw, 430px);
    max-height: none;
  }
  .refining #cards {
    flex-direction: column;
    overflow: visible;
  }
  .refining .event-card {
    flex: 0 0 auto;
    min-height: 88px;
  }
  .refining .card-main {
    display: flex;
    align-items: center;
  }
  .refining .card-art {
    height: 90px;
    width: 30%;
    flex: none;
  }
  .refining .card-art .poster-title {
    display: none;
  }
  .refining .save-bubble {
    background: #fff;
    color: var(--purple);
    right: 3px;
  }
  .refining .mini-cat {
    display: none;
  }
  .refining #slide-next {
    display: none;
  }
  .refining .map-actions {
    right: calc(clamp(290px, 28vw, 430px) + 2 * var(--gutter));
  }
}
@media (max-width: 1049px) {
  .date-segment button {
    padding: 7px 8px;
  }
  .publish-link {
    font-size: 0;
    gap: 0;
  }
  .head-actions {
    gap: 4px;
  }
  .mainbar {
    gap: 8px;
  }
  .feature-body {
    padding: 12px;
  }
  .chip {
    padding: 6px 10px;
  }
  .cat-scroll {
    gap: 5px;
  }
  .map-tools {
    gap: 4px;
  }
}
@media (max-width: 760px) {
  :root {
    --head: 151px;
    --gutter: 9px;
  }
  .mainbar {
    height: 105px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 46px 45px;
    gap: 3px 8px;
    padding: 3px 13px 5px;
  }
  .mainbar .brand {
    grid-column: 1;
    grid-row: 1;
    border: 0;
    font-size: 26px;
    justify-self: start;
  }
  .brand img {
    width: 24px;
    height: 27px;
  }
  .head-actions {
    grid-column: 2;
    grid-row: 1;
  }
  .head-actions .publish-link {
    font-size: 0.8rem;
    gap: 3px;
  }
  .finder {
    grid-column: 1;
    grid-row: 2;
    height: 37px;
    min-width: 0;
    padding: 0 9px;
  }
  .finder input {
    font-size: 0.8rem;
  }
  .datepick {
    grid-column: 2;
    grid-row: 2;
    font-size: 0.74rem;
    padding: 7px;
    max-width: 118px;
    justify-self: end;
  }
  .datepick svg {
    width: 15px;
  }
  .date-segment {
    display: none;
  }
  .categorybar {
    height: 46px;
    padding: 0 9px;
    gap: 5px;
  }
  .categorybar .city-chip {
    display: none;
  }
  .chip {
    font-size: 0.77rem;
  }
  .mainbar,
  .categorybar {
    background: #fcfbff;
  }
  .workspace {
    height: calc(100dvh - var(--head) - 55px);
    min-height: 0;
  }
  .feature {
    display: none;
  }
  .has-feature .map-tools,
  .refining .map-tools,
  .map-tools {
    left: 9px;
    top: 9px;
  }
  .map-tools button {
    padding: 6px 9px;
    font-size: 0.75rem;
  }
  .map-tools svg {
    width: 14px;
  }
  .map-actions {
    right: 8px;
    top: 8px;
    gap: 5px;
  }
  .map-actions button {
    width: 31px;
    height: 31px;
  }
  .map-actions #reset-map {
    display: none;
  }
  .atlas .maplibregl-ctrl-bottom-left {
    left: 0;
    bottom: 16px;
  }
  .atlas .maplibregl-ctrl-bottom-right {
    bottom: 13px;
  }
  .atlas .maplibregl-ctrl-attrib {
    font-size: 8px !important;
  }
  .shelf,
  .has-feature .shelf {
    left: 0;
    right: 0;
    bottom: 0;
    max-height: none;
    height: 45%;
    min-height: 190px;
    padding: 5px 11px 6px;
    border: 0;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -5px 22px #2c294218;
    overflow: auto;
  }
  #sheet-handle {
    display: grid;
    place-items: center;
    height: 12px;
    width: 100%;
    background: transparent;
    padding: 0;
    border: 0;
    touch-action: none;
  }
  #sheet-handle span {
    width: 38px;
    height: 4px;
    border-radius: 3px;
    background: #c7c4d7;
  }
  .shelf-heading {
    margin-top: 1px;
  }
  .shelf-heading h2 {
    font-size: 1.17rem;
  }
  .shelf-heading p {
    display: block;
    font-size: 0.65rem;
    margin: 1px 0;
  }
  .shelf-heading button {
    font-size: 0.75rem;
  }
  .shelf-toolbar {
    margin: 0 0 5px;
  }
  .shelf-tabs {
    gap: 13px;
  }
  .shelf-tabs button {
    font-size: 0.72rem;
  }
  .shelf #count {
    font-size: 0.65rem;
  }
  .event-card {
    flex-basis: 75%;
    max-width: 330px;
  }
  .card-art {
    height: clamp(64px, 10.8dvh, 125px);
  }
  .card-art .poster-title {
    font-size: 1.45rem;
    max-width: 65%;
  }
  .card-main {
    height: auto;
  }
  .card-copy {
    padding: 6px 22px 6px 9px;
  }
  .card-copy strong {
    font-size: 0.91rem;
    white-space: nowrap;
    text-overflow: ellipsis;
    display: block;
  }
  .mini-meta {
    font-size: 0.7rem;
  }
  .mobile-card-actions {
    display: flex;
    gap: 5px;
    padding: 0 8px 6px;
  }
  .mobile-card-actions > * {
    flex: 1;
    font-size: 0.7rem;
    padding: 5px 6px;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
  }
  .mobile-card-actions svg {
    width: 12px;
    height: 12px;
  }
  .mini-cat {
    bottom: 40px;
  }
  .mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 55px;
    padding: 3px 4px env(safe-area-inset-bottom, 0);
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 4;
    background: #fcfbff;
  }
  .mobile-nav > * {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 0.65rem;
    color: #59536e;
    font-weight: 630;
    background: none;
    border: 0;
    text-decoration: none;
    padding: 5px 8px;
    border-radius: 13px;
  }
  .mobile-nav .selected {
    background: #eee5ff;
    color: #5d25d9;
  }
  .mobile-nav svg {
    width: 19px;
    height: 19px;
  }
  .list-mode #cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  }
  .list-mode .event-card {
    max-width: none;
  }
  .list-mode #sheet-handle {
    display: none;
  }
  .toast,
  .messages {
    bottom: 63px;
  }
  #slide-next {
    display: none;
  }
}
@media (max-width: 360px) {
  .shelf-tabs {
    gap: 7px;
  }
  .shelf .card-copy strong {
    font-size: 0.82rem;
  }
  .shelf-heading h2 {
    font-size: 1.04rem;
  }
  .mainbar .brand {
    font-size: 23px;
  }
  .head-actions .publish-link {
    font-size: 0;
    gap: 0;
  }
  .mobile-nav > * {
    padding: 4px 5px;
  }
}
#list-filters {
  display: none;
}
.list-mode #list-filters {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.art-credit {
  position: absolute;
  bottom: 4px;
  right: 5px;
  padding: 2px 4px;
  background: #201b35d9;
  border-radius: 4px;
  color: white;
  font: 500 9px/1.2 system-ui;
}
.card-art .poster-title {
  max-width: 88%;
  overflow-wrap: normal;
}
.card-art .art-credit {
  opacity: 0;
}
.card-main:focus-visible .art-credit,
.card-main:hover .art-credit {
  opacity: 1;
}
@media (max-width: 760px) {
  .card-art .art-credit {
    opacity: 1;
  }
  .card-art {
    height: clamp(69px, 12dvh, 130px);
  }
}

.category-options {
  padding: 6px 0 12px;
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
}
.category-options legend {
  font-size: 0.86rem;
  font-weight: 700;
}
.category-options div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.category-options button,
#weekend-option {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #dedce9;
  border-radius: 8px;
  background: #fff;
  padding: 6px 8px;
  font-size: 0.74rem;
}
.category-options button svg {
  width: 15px;
  height: 15px;
  color: var(--cat, #7433e4);
}
.category-options button.selected,
#weekend-option[aria-pressed="true"] {
  background: #eee6ff;
  color: #5224bc;
  border-color: #b59aec;
}
#weekend-option {
  margin-top: 8px;
}
#filters label[hidden] {
  display: none;
}
@media (min-width: 1050px) {
  #weekend-option {
    display: none;
  }
}
.pin.maplibregl-marker {
  position: absolute;
}

#share-agenda{margin-left:auto;padding:6px;border:1px solid var(--line);border-radius:8px}#share-agenda svg{width:16px;height:16px}

.finder { position: relative; }
#venue-results:not([hidden]) {
  position: absolute; z-index: 12; top: calc(100% + 5px); left: 0;
  width: min(365px, 86vw); max-height: 34dvh; overflow: auto;
  background: white; color: var(--ink); border: 1px solid var(--line);
  border-radius: 14px; padding: .65rem; box-shadow: 0 8px 24px #302b4328;
}
#venue-results strong { padding: .35rem .5rem; font-size: .8rem; }
#venue-results button, .venue-dialog .group-item {
  display: block; background: white; color: inherit; text-align: left;
  width: 100%; min-height: 44px; padding: .5rem; border: none; border-radius: 8px;
}
#venue-results button:hover, .venue-dialog .group-item:hover { background: #f4f0ff; }
#venue-results small, .venue-dialog button small { display: block; color: var(--muted); }
.venue-dialog { padding: 16px; }
.venue-dialog h3 { margin: 1rem 0 .25rem; }
.venue-dialog p { margin: .25rem 0 .6rem; }
.venue-dialog .group-item { border: 1px solid var(--line); margin-bottom: .3rem; }
.pin, .pin.promoted, .pin.cluster {
  width: 44px; height: 44px; border: 6px solid transparent; background-clip: padding-box;
  box-shadow: none; outline: none; color: white;
}
.pin:before { content:""; position:absolute; inset:-1px; border-radius:50%; box-shadow:0 0 0 2px white,0 2px 6px 2px #402c4e42; pointer-events:none; }
.pin:after { bottom:-3px; }
.pin.cluster { color:#482c7b; background-color:#eee5ff; }
.pin.focus-pin:before, .pin:focus-visible:before { box-shadow:0 0 0 2px white,0 0 0 5px #7a46dc88; }
.pin.promoted:before { box-shadow:0 0 0 2px #fff,0 0 0 4px #6234be; }
.pin.promoted svg { fill:#fff; }
.sponsor-label { background:#f4e7ff; color:#472271; }
.card-art > .sponsor-label, .feature-cover > .sponsor-label { top:auto; bottom:6px; left:6px; max-width:calc(100% - 12px); }
.card-art:has(.sponsor-label) .art-credit { bottom:27px; }
.shelf .empty a { display:inline-flex; margin: .2rem; }
@media (max-width:760px) {
  #sheet-handle { height:24px; }
  .map-only #sheet-handle { height:24px; }
  .map-actions button { width:39px; height:39px; }
  .finder:focus-within { z-index:12; }
}

#day-options:not([hidden]) { display:flex; flex-wrap:wrap; align-items:center; gap:.7rem; padding:.25rem 0; }
.map-only #day-options { display:none; }
@media (max-width:760px) {
  .head-actions .publish-link { display:none; }
  .mainbar { grid-template-columns:minmax(0,1fr) auto; }
  .finder input { font-size:16px; }
}

/* Keep the media frame in place while thumbnails load or fail. */
.cover-category {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--pastel, #eee8fa);
  color: var(--tone, #584187);
  font-weight: 700;
}
.cover-category:has(+ .cover-photo) { visibility: hidden; }
.card-art .art-credit { opacity: 1; }
.card-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1px 10px;
}
.card-copy .price-label {
  white-space: normal;
  display: block;
  margin-top: 4px;
  color: #452e70;
  font-weight: 700;
}
#near-empty {
  position: static; max-width: none; margin: 0; padding: 8px 0; color: #302040;
  font-size: .88rem;
}
#near-empty button { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: #5827ac; }
#near-empty[hidden] { display: none; }
#location-intro {
  position:absolute; left:12px; bottom:42px; z-index:2;
  max-width:min(280px, calc(100% - 76px)); padding:8px 40px 12px 14px;
  background:white; color:#352746; border-radius:14px; box-shadow:0 2px 12px #20163824;
}
#location-intro span { display:block; font-size:.84rem; }
#center-me, #skip-location { min-height:44px; color:#5827ac; font-weight:700; }
#skip-location { position:absolute;right:0;top:0;width:42px;border:0;background:none;font-size:1.2rem; }
@media (min-width:761px) {
  .workspace.map-only .feature, .workspace.map-only .shelf > :not(#sheet-handle,.sheet-status) { display:none; }
  .workspace.map-only .shelf { left:50%; right:auto; transform:translateX(-50%); width:auto; padding:0 20px; }
  .workspace.map-only #sheet-handle { display:grid; place-items:center; min-height:44px; width:160px; cursor:pointer; background:transparent; border:0; }
  .workspace.map-only #sheet-handle b { display:block; color:#54348c; }
}
#query:focus-visible, .atlas button:focus-visible { outline: 3px solid #5729af; outline-offset: 2px; }
@media (min-width: 761px) {
  .atlas .maplibregl-ctrl-bottom-right {
    bottom: auto;
    top: 0;
    right: 0;
  }
  .atlas .maplibregl-ctrl-bottom-left {
    bottom: auto;
    top: 20px;
    left: auto;
    right: 64px;
  }
  .refining .atlas .maplibregl-ctrl-bottom-right,
  .refining .atlas .maplibregl-ctrl-bottom-left {
    right: calc(clamp(290px, 28vw, 430px) + 70px);
  }
}
@media (max-width: 760px) {
  body:has(.workspace) {
    height: 100dvh;
    display: flex;
    flex-direction: column;
  }
  .atlas-head {
    flex: none;
    padding-top: env(safe-area-inset-top, 0px);
  }
  .mobile-nav {
    flex: none;
    position: relative;
    height: calc(55px + env(safe-area-inset-bottom, 0px));
    padding-inline: max(4px, env(safe-area-inset-left)) max(4px, env(safe-area-inset-right));
  }
  .workspace {
    flex: 1;
    height: auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .workspace .atlas {
    position: relative;
    inset: auto;
    overflow: hidden;
    isolation: isolate;
    flex: 1;
    min-height: 0;
  }
  .atlas .maplibregl-ctrl-bottom-right { bottom: 0; }
  .atlas .maplibregl-ctrl-bottom-left { bottom: 10px; }
  .workspace .shelf {
    position: relative;
    inset: auto;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
    max-height: 70%;
    flex: none;
    overflow: hidden;
    padding: 0 max(11px, env(safe-area-inset-right)) 6px max(11px, env(safe-area-inset-left));
    border-radius: 16px 16px 0 0;
  }
  .shelf > :not(.shelf-results) { flex: none; }
  .shelf-results {
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
  #sheet-handle { height: 22px; cursor: ns-resize; }
  .shelf .shelf-tabs { gap: clamp(5px, 1.8vw, 12px); }
  .shelf-toolbar { gap: 6px; flex-wrap: wrap; }
  #cards { align-items: flex-start; scroll-padding-inline: 2px; }
  .event-card { flex-basis: min(90%, 365px); max-width: none; }
  .card-art { height: clamp(65px, 9dvh, 88px); }
  .shelf .card-copy { padding: 7px 11px 8px; }
  .shelf .card-copy strong {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    white-space: normal;
    font-size: .98rem;
    line-height: 1.2;
  }
  .shelf .mini-meta { font-size: .73rem; }
  .shelf .mini-cat { display: none; }
  .card-art .art-credit { font-size: 9px; }
  .event-card .save-bubble {
    width: 36px; height: 36px;
    top: 3px; right: 3px;
  }
  .event-card .save-bubble::after { content: ""; position: absolute; inset: -4px; }
  .mobile-card-actions { padding: 0 9px 7px; }
  .mobile-card-actions > * { min-height: 32px; }
  .workspace.sheet-expanded .shelf {
    height: calc(100% - clamp(110px, 23dvh, 210px));
    max-height: none;
  }
  .sheet-expanded #cards, .list-mode #cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    overflow: visible;
    gap: 10px;
  }
  .workspace.map-only .shelf-results, .map-only .shelf-toolbar { display: none; }
  .workspace.list-mode .atlas { display: block; visibility: hidden; }
  .workspace.list-mode .shelf {
    position: absolute;
    inset: 0;
    max-height: none;
    padding-top: 10px;
    border-radius: 0;
  }
  .workspace.sheet-expanded .map-actions { flex-direction: row; top: auto; bottom: 17px; }
  .sheet-expanded .map-actions > div { display: flex; }
}
@media (max-width: 760px) and (max-height: 690px) {
  .workspace:not(.list-mode) .map-actions { flex-direction: row; top: auto; bottom: 17px; }
  .workspace:not(.list-mode) .map-actions > div { display: flex; }
  .shelf .card-art { height: 54px; }
  .shelf .shelf-heading h2 { font-size: 1.05rem; }
}
@media (min-width: 761px) {
  .card-main { height: auto; }
  .card-copy strong { -webkit-line-clamp: 3; }
}
#sheet-handle b { display: none; }
#sheet-handle > * { pointer-events: none; }
.map-tools { flex-wrap: wrap; max-width: calc(100% - 85px); }
#locate[aria-pressed=true] { background: #ece4ff; color: #5123b0; border-color: #ac8fec; }
@media (max-width: 760px) {
  .map-tools { max-width: calc(100% - 59px); gap: 4px; }
  .workspace.map-only .shelf { padding-bottom: 0; }
  .workspace.map-only .shelf-heading { display:none; }
  .workspace.map-only #sheet-handle { height: 44px; gap: 2px; align-content: center; }
  .map-only #sheet-handle b { display:block; color: #54348c; font-size:.76rem; }
  .shelf-heading { touch-action: pan-x; }
}

.agenda-context {
  display: flex; align-items: center; gap: 7px; min-height: 28px;
  padding-inline: clamp(12px, 2vw, 36px); font-size: .8rem; color: #443655;
  background: #f8f6fc; border-top: 1px solid #ece7f4;
}
.agenda-context svg { width: 15px; height: 15px; }
#active-period { font-weight: 700; }
#active-radius { border-left: 1px solid #cfc6dc; padding-left: 8px; }
.other-session { margin-top: 1rem; padding-top: .75rem; border-top: 1px solid #d1c9dc; }
@media (min-width:761px) {
  body:has(.workspace) { height:100dvh; display:flex; flex-direction:column; }
  .atlas-head { flex:none; }
  .workspace { flex:1; height:auto; min-height:0; }
}

/* A device location is independent of the cluster index and event focus. */
.user-position { width:17px; height:17px; border:3px solid #fff; border-radius:50%; background:#1674ef; box-shadow:0 0 0 6px #338afb42,0 1px 5px #0b448b88; z-index:1; pointer-events:none; }
.user-position::after { content:"Estás aquí"; position:absolute; left:50%; bottom:calc(100% + 7px); transform:translateX(-50%); white-space:nowrap; color:#0b468b; background:white; border:1px solid #bad5f4; border-radius:10px; padding:2px 6px; font:650 11px/1.4 system-ui,sans-serif; }
#location-intro { display:grid; grid-template-columns:1fr auto; gap:2px 12px; padding:8px 14px 12px; }
#location-intro[hidden] { display:none; }
#location-intro span { grid-column:1/-1; grid-row:2; }
#skip-location { position:static; width:auto; font-size:.84rem; grid-column:2; grid-row:1; }
#center-me { text-align:left; }
#details { margin: auto 12px auto auto; width:min(480px,calc(100vw - 24px)); max-height:calc(100dvh - 36px); }
#details::backdrop { background:#21173755; }
#pick-date { font:inherit; font-size:.86rem; }
#date[hidden], #filters select[hidden] { display:none; }
#choice-panel { position:fixed; inset:auto; margin:0; width:min(334px,calc(100vw - 16px)); padding:17px; overflow:auto; max-height:calc(100dvh - 16px); border:1px solid #ddd6eb; border-radius:18px; }
#choice-panel::backdrop { background:#21183222; }
.choice-head, .calendar-month, .quick-dates { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.choice-head h2 { font-size:1.18rem; margin:0; }
.choice-close { min-height:38px; min-width:38px; }
.quick-dates { justify-content:flex-start; padding:10px 0; }
.quick-dates button, .calendar-month button, .calendar-days button, .choice-options button { font:inherit; color:inherit; background:white; border:0; }
.quick-dates button { border:1px solid #dbd1ed; border-radius:24px; padding:8px 18px; color:#572799; font-weight:650; }
.calendar-month { padding:2px 0 8px; text-transform:capitalize; }
.calendar-month button { width:38px; height:38px; border-radius:12px; background:#f5f2fb; display:grid; place-items:center; }
.calendar-month svg { width:18px; }
.calendar-days { display:grid; grid-template-columns:repeat(7,1fr); text-align:center; gap:2px; }
.calendar-days span { font-size:.78rem; color:#61596c; padding:5px 0; }
.calendar-days button { border-radius:11px; min-height:40px; font-variant-numeric:tabular-nums; }
.calendar-days button[aria-current=date] { box-shadow:inset 0 0 0 1px #7954b9; }
.calendar-days button[aria-pressed=true], .choice-options button[aria-pressed=true] { color:#fff; background:#6130bb; font-weight:700; }
.calendar-days button:disabled, .calendar-month button:disabled { color:#827c89; background:#f6f5f8; }
.choice-trigger { width:100%; text-align:left; display:flex; align-items:center; justify-content:space-between; margin-top:4px; border-radius:12px; padding:10px 13px; border:1px solid #d8d0e5; background:white; color:#332343; font:inherit; min-height:44px; }
.choice-trigger::after { content:"⌄"; color:#6d449d; }
.choice-options { display:grid; gap:4px; max-height: min(42dvh,320px); overflow:auto; padding:5px 3px; }
.choice-options button { text-align:left; min-height:44px; padding:9px 12px; border-radius:10px; }
.choice-options button[aria-pressed=true]::after { content:"✓"; float:right; }
.choice-content input { width:100%; font:inherit; padding:10px 12px; margin:8px 0; border:1px solid #bcb1ce; border-radius:12px; }
#choice-panel :focus-visible,.choice-trigger:focus-visible,#pick-date:focus-visible { outline:3px solid #693abb; outline-offset:1px; }
.photo-attribution { font-size:.83rem; color:#5e5269; }
@media (min-width:1050px) {
  .workspace.refining.map-only .shelf { top:auto; bottom:var(--gutter); height:auto; }
}
.calendar-month { text-transform:none; }
.calendar-month strong::first-letter { text-transform:uppercase; }
@media (max-width:760px) {
  #details, #filters[open], #choice-panel { position:fixed; inset:auto 0 0!important; margin:0; width:100%; max-width:none; max-height:88dvh; border-radius:22px 22px 0 0; padding-bottom:max(16px,env(safe-area-inset-bottom)); }
  #choice-panel { padding:16px max(18px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom)); }
  #choice-panel::backdrop { background:#21173760; }
  .calendar-days button { min-height:44px; }
}
@media (prefers-reduced-motion:no-preference) {
  .feature:not([hidden]) { animation:feature-in .17s ease-out; }
  @keyframes feature-in { from { opacity:0; translate:-16px 0; } }
}

#details #notice { position:sticky; bottom:10px; left:auto; z-index:20; width:max-content; max-width:calc(100% - 24px); margin:8px auto; transform:none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Calendario y guardados compartidos (sin cuenta). */
.calendar-add{position:relative}
.calendar-add>summary{list-style:none;cursor:pointer}
.calendar-add>summary::-webkit-details-marker{display:none}
.calendar-add[open]>div{display:grid;gap:8px;margin-top:8px;padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--paper);min-width:min(300px,80vw)}
.calendar-add a{font-weight:650;min-height:44px;display:flex;align-items:center}
.calendar-add small{color:var(--muted)}
.plans-banner{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:0 0 10px;padding:10px 12px;border:1px solid var(--line);border-left:4px solid var(--purple);border-radius:10px;background:var(--tint)}
.plans-banner p{margin:0;flex:1 1 220px}
.plans-banner .primary,.plans-banner .text-action{min-height:44px}
#share-saved{margin:0 0 8px;min-height:44px}
.freshness{display:flex;align-items:center;gap:6px;margin:0 0 6px;font-size:.78rem;line-height:1.3;color:var(--muted);white-space:nowrap;overflow:hidden}
.freshness>span[aria-hidden]{overflow:hidden;text-overflow:ellipsis}
.freshness.offline{color:#7a2e00;font-weight:650}
.freshness svg{width:16px;height:16px}
.workspace.map-only #freshness, .workspace.map-only #share-saved { display: none; }

#expand-venue { display:none; }
@media(max-width:760px) {
  #expand-venue { display:inline-flex; min-height:44px; align-items:center; }
  #details:has(.venue-dialog):not(.venue-expanded) { max-height:56dvh; }
}

/* Text-first cards keep the category and access status readable without a poster. */
.card-art:not(:has(.cover-photo)), .feature-cover:not(:has(.cover-photo)) {
  min-height:46px; height:auto; aspect-ratio:auto; background:#faf8ff; color:#443561;
}
.card-art:not(:has(.cover-photo)) .cover-category,
.feature-cover:not(:has(.cover-photo)) .cover-category {
  position:static; display:block; padding:12px 52px 10px 12px;
  font-size:.8rem; font-weight:650; letter-spacing:.02em; text-align:left;
  background:transparent; color:inherit;
}
.card-art:not(:has(.cover-photo)) .flag,
.feature-cover:not(:has(.cover-photo)) .flag { position:static; display:inline-flex; margin:0 8px 6px; }

#area[hidden], #active-radius[hidden] {display:none !important}

.quick-dates { display:flex; flex-wrap:wrap; gap:6px; }

#feature-save[aria-pressed="true"] svg, #bookmark-detail[aria-pressed="true"] svg { fill:#7031db; color:#7031db; }

#week-strip[hidden], #weekend-option[hidden] {display:none !important}
#filters button[value="apply"] {position:sticky; bottom:0; z-index:1}

@media (prefers-reduced-motion:no-preference) {
  #choice-panel, #filters {
    opacity:0; transform:translateY(8px);
    transition:opacity 140ms ease, transform 140ms ease, display 140ms allow-discrete, overlay 140ms allow-discrete;
  }
  #choice-panel[open], #filters[open] {opacity:1; transform:translateY(0)}
  @starting-style {
    #choice-panel[open], #filters[open] {opacity:0; transform:translateY(8px)}
  }
}

@media (max-width:760px) {
  .datepick { max-width:48vw; padding-inline:12px; gap:6px; min-height:44px; }
  .datepick svg { flex-shrink:0; }
  #date-label { overflow:hidden; text-overflow:ellipsis; }
}

/* The calendar owns the date. Counts belong to the full list. */
.agenda-context, .date-segment, .shelf .shelf-tabs, .shelf #period,
.workspace:not(.list-mode) .shelf-toolbar, #freshness[hidden],
.map-actions #recenter-me, .map-actions #legend-more { display:none; }
.map-actions button { width:36px; height:36px; min-width:36px; min-height:36px; }
.map-actions button svg { width:17px; height:17px; }
#now { position:relative; display:inline-grid; place-items:center; width:44px; height:44px;
  background:#fff3f4; border:1px solid #facbd2; border-radius:50%; color:#b40930; cursor:pointer; }
#now.selected { color:white; background:#b40930; }
@media(prefers-reduced-motion:no-preference) {
  #now .live-face small { animation: live-word 8s infinite; }
  #now .live-face svg { animation: live-signal 8s infinite; }
  @keyframes live-word { 0%,65%,94%,100% {opacity:0} 72%,87% {opacity:1} }
  @keyframes live-signal { 0%,65%,94%,100% {opacity:1} 72%,87% {opacity:0} }
}
.shelf-heading { margin-bottom:5px; }
.amigos-panel { margin:12px 0 18px; padding:16px; border:1px solid #e2d9f4; border-radius:16px; background:#faf8ff; }
.amigos-panel h3 { margin:0 0 6px; font-size:1.1rem; }
.amigos-panel p { margin:6px 0; line-height:1.45; }
.amigos-note { color:#5b5148; font-size:.9rem; }
.amigos-options { display:grid; gap:6px; margin:12px 0; }
.amigos-option { display:flex; align-items:flex-start; gap:10px; padding:10px; border:1px solid #e4ddef; border-radius:10px; cursor:pointer; }
.amigos-option input { flex:0 0 auto; width:18px; height:18px; margin:1px 0 0; accent-color:#6631cc; }
.amigos-option span { min-width:0; font-weight:650; }
.amigos-option small { display:block; margin-top:3px; color:#655a76; font-size:.82rem; font-weight:400; }
.amigos-panel button:disabled { opacity:.55; cursor:not-allowed; }
.amigos-send { display:inline-flex; margin-top:12px; text-decoration:none; }
.amigos-results { margin-top:14px !important; padding-top:10px; border-top:1px solid #eadfd2; font-weight:650; }
.card-art .cover-photo { object-position:center 12%; }
@media(max-width:760px) {
  .workspace:not(.list-mode,.sheet-expanded,.map-only) #cards {height:var(--visible-card-height,auto); box-sizing:content-box;}
  .workspace:not(.list-mode,.sheet-expanded) .shelf { padding-bottom:2px; }
}

/* Keep the tap target generous while centering the compact live indicator. */
/* Both symbols share one visual size and a separate 44px touch target. */
.head-actions #now, .head-actions #nav-saved {
  width:44px;height:44px;display:grid;place-items:center;padding:0;border:0;background:transparent;
}
#now .live-face {
  display:grid;place-items:center;width:21px;height:21px;box-sizing:border-box;
  border:1px solid #e7a5b1;border-radius:50%;background:#fff0f2;color:#b40930;
}
#now.selected .live-face {background:#ac1031;color:white;border-color:#ac1031}
#now .live-face > * {grid-area:1/1}
#now .live-face svg {width:15px;height:15px}
#now .live-face small {font:700 6.3px/1 sans-serif;opacity:0}
.head-actions #nav-saved svg {width:24px;height:24px}
.shelf #near-empty {position:static;max-width:none;box-shadow:none;padding:2px 0;color:var(--muted);font-size:.78rem}
.saved-transfer {display:inline-flex;align-items:center;gap:2px;margin-left:auto}
.saved-transfer button {width:38px;height:42px;min-width:0;padding:6px}
.saved-transfer svg {width:18px;height:18px}
.saved-page .shelf-heading #share-agenda,.saved-page .shelf-heading #map-view,.saved-page .shelf-heading #list-filters {display:none}
#free-time {overflow:auto;color:var(--ink)}
.free-time-page {position:absolute;inset:0;overflow:auto;background:var(--paper);padding:clamp(18px,5vw,42px)}
.free-time-inner {width:min(620px,100%);margin:0 auto;padding:clamp(18px,4vw,32px);border:1px solid var(--line);border-radius:18px;background:white}
.free-time-inner h2 {font-size:clamp(1.6rem,5vw,2.3rem)}
.free-time-page[hidden] {display:none!important}
.workspace.rato-mode .atlas,.workspace.rato-mode .shelf,.workspace.rato-mode .feature {display:none}
.time-fields {display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}
.time-fields label {display:grid;gap:4px;font-weight:650;font-size:.8rem}
.time-fields input {min-height:44px;padding:5px;border:1px solid var(--line);border-radius:8px;color:inherit;background:white}
#free-results a {display:grid;gap:5px;padding:12px 0;border-top:1px solid var(--line);text-decoration:none;color:var(--ink)}
#free-results small {color:var(--muted)}
.time-desktop {
  display:inline-flex; align-items:center; gap:6px; padding:4px 6px;
  min-height:36px; border:0; border-radius:8px; background:transparent;
  font:inherit; font-size:.85rem; font-weight:650; color:var(--ink);
}
.time-desktop svg {width:16px; height:16px; color:#6946aa}
.time-desktop:hover, body:has(.rato-mode) .time-desktop {background:#f1edfa; color:#593197}
@media(max-width:760px) {
 .time-desktop{display:none}
 .mobile-nav {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));justify-items:stretch}
 .mobile-nav > * {min-width:0;width:100%;padding-inline:1px}
 .workspace:not(.list-mode,.sheet-expanded,.map-only) #cards {--compact-card:clamp(190px,27dvh,228px);height:var(--compact-card);align-items:stretch}
 .workspace:not(.list-mode,.sheet-expanded) .event-card {display:flex;flex-direction:column;height:100%;box-sizing:border-box}
 .workspace:not(.list-mode,.sheet-expanded) .card-main {flex:1;min-height:0;overflow:hidden;display:flex;flex-direction:column}
 .workspace:not(.list-mode,.sheet-expanded) .card-art {width:100%;height:clamp(52px,8dvh,76px);flex:none}
 .workspace:not(.list-mode,.sheet-expanded) .price-label {display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
 .workspace:not(.list-mode,.sheet-expanded) .mobile-card-actions {flex:none}
 .workspace.rato-mode .free-time-page {position:relative;flex:1;min-height:0}
 .free-time-page {padding:14px; padding-bottom:max(14px,env(safe-area-inset-bottom))}
 .free-time-inner {padding:18px}
}

#filters .start-area {display:flex;align-items:center;gap:8px;font-size:.85rem;font-weight:500;}
#filters .start-area input {width:18px;height:18px;min-height:0;accent-color:var(--purple)}

@media(max-width:760px){
 .workspace:not(.list-mode,.sheet-expanded,.map-only) .shelf-results {height:calc(clamp(190px,27dvh,228px) + 6px);flex:none}
 .shelf-results:has(#near-empty:not([hidden])) .card-wrap:has(#cards:empty) {display:none}
 .workspace:not(.list-mode,.sheet-expanded) .shelf-heading h2 {white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
}

.amigos-options {max-height:min(36dvh,320px);overflow:auto;overscroll-behavior:contain;}
.amigos-option:has(input:checked) {background:#f4edff;border-color:#9b78dc;}

/* Keep the fold control on the heading line and the horizontal agenda at its natural height. */
.workspace:not(.list-mode,.map-only) #sheet-handle {
  position:absolute; right:10px; top:5px; display:grid; place-items:center;
  width:40px; height:40px; margin:0; padding:0; border:0; border-radius:50%;
  background:transparent; color:#65577e; cursor:pointer; z-index:1;
}
.workspace:not(.list-mode,.map-only) #sheet-handle:hover {background:#f4f0fa}
#sheet-handle svg {width:17px; height:17px}
.workspace.map-only #sheet-handle {display:flex; align-items:center; justify-content:center; gap:6px}
.workspace.map-only #sheet-handle svg {transform:rotate(180deg)}
.workspace:not(.list-mode,.map-only) .shelf-heading {
  min-height:39px; padding-right:40px; margin:0 0 3px; justify-content:flex-start;
}
.workspace:not(.list-mode,.map-only) .shelf-heading > div:first-child {min-width:0; flex:1}
.workspace:not(.list-mode,.sheet-expanded,.map-only,.refining) #cards {
  overflow-x:auto; overflow-y:hidden; scrollbar-width:thin; scrollbar-color:#bbaace #f4f1f7;
}
@media(min-width:761px) {
  .workspace:not(.list-mode,.sheet-expanded,.map-only,.refining) .shelf {
    max-height:none; overflow:visible; padding:5px 12px 7px;
  }
  .workspace:not(.list-mode,.refining) .event-card {display:flex; flex-direction:column}
  .workspace:not(.list-mode,.refining) .card-main {
    display:flex; flex-direction:column; align-items:stretch; height:auto; flex:1;
  }
  .workspace:not(.list-mode,.refining) .card-copy {padding-right:12px}
  .workspace:not(.list-mode,.refining) .price-label {
    display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden;
  }
  .feature {
    border:1px solid #d6cde4; border-radius:18px; background:white;
    box-shadow:0 6px 24px #30214624, 0 1px 3px #30214612;
    scrollbar-color:#a99abf #f3f0f7; scrollbar-gutter:stable; overscroll-behavior:contain;
  }
  @supports selector(::-webkit-scrollbar) {
    .feature {scrollbar-width:auto; scrollbar-color:auto}
    .feature::-webkit-scrollbar {width:9px}
    .feature::-webkit-scrollbar-track {margin-block:12px; background:#f5f2f8; border-radius:9px}
    .feature::-webkit-scrollbar-thumb {background:#ab99bf; border:2px solid #f5f2f8; border-radius:9px}
  }
  .workspace:not(.list-mode,.map-only) #sheet-handle b {display:none}
}
@media(max-width:760px) {
  .workspace:not(.list-mode,.sheet-expanded,.map-only) .shelf {max-height:none}
  .workspace:not(.list-mode,.sheet-expanded,.map-only) .shelf-results {height:auto; overflow:visible}
  .workspace:not(.list-mode,.map-only) #sheet-handle {top:0; right:4px; width:40px; height:40px}
  .workspace:not(.list-mode,.map-only) .shelf-heading {padding-right:31px; margin-bottom:0}
  .workspace:not(.list-mode,.sheet-expanded,.map-only) #cards {scrollbar-width:none}
}

.sheet-status {min-width:0}
.sheet-status [hidden] {display:none!important}
.sheet-status #notice, .sheet-status #pwa-connection:not([hidden]), .sheet-status #map-error,
.sheet-status #location-intro {
  position:static; inset:auto; z-index:auto; transform:none; width:auto;max-width:none;
  box-shadow:none;border:0;background:transparent;color:var(--muted);
  margin:0;padding:3px 0;font-size:.8rem;line-height:1.35;text-align:left;
}
.sheet-status #location-intro {display:flex;align-items:center;flex-wrap:wrap;gap:2px 10px}
.sheet-status #location-intro span {flex:1;min-width:11ch}
.sheet-status #skip-location {position:static;width:auto;font-size:.78rem}
.sheet-status #near-empty span {display:block}
.workspace.map-only .shelf > .sheet-status {display:block;text-align:center}
.map-only .sheet-status #near-empty button,.map-only #location-intro span,.map-only .sheet-status > :not([hidden]) ~ :not([hidden]) {display:none}
.map-only .sheet-status #near-empty,.map-only .sheet-status #location-intro,.map-only .sheet-status #notice,
.map-only .sheet-status #map-error,.map-only .sheet-status #pwa-connection:not([hidden]) {
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;font-size:.75rem;
}
.map-only .sheet-status #location-intro {justify-content:center;flex-wrap:nowrap}
#sheet-handle .sheet-grip {display:none}
@media(max-width:760px) {
  .workspace:not(.list-mode) #sheet-handle, .workspace.map-only #sheet-handle {
    position:relative;inset:auto;display:flex;flex-direction:column;justify-content:center;
    align-items:center;gap:2px;width:100%;height:18px;min-height:18px;margin:0;
    border:0;background:transparent;
  }
  .workspace:not(.list-mode) #sheet-handle .sheet-grip {
    display:block;width:36px;height:4px;background:#bcb9cc;border-radius:99px;
  }
  .workspace:not(.list-mode) #sheet-handle svg {display:none}
  .workspace.map-only #sheet-handle {height:34px;min-height:34px}
  .workspace:not(.list-mode,.map-only) .shelf-heading {min-height:30px;margin:0;padding-right:0}
  .map-only .sheet-status:has(> :not([hidden])) {padding-bottom:4px}
}
