:root {
  --bg: #fafaf8;
  --surface: #ffffff;
  --surface-soft: #f4f7fb;
  --text: #101828;
  --muted: #667085;
  --border: #e7e5e4;
  --primary: #1769e0;
  --primary-dark: #0f4fb0;
  --accent: #ff6b3d;
  --success: #16a34a;
  --warning: #f59e0b;
  --danger: #dc2626;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.06);
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --app-height: 100dvh;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  height: 100%;
  background:
    radial-gradient(circle at top left, rgba(23, 105, 224, 0.08), transparent 28rem),
    radial-gradient(circle at bottom right, rgba(255, 107, 61, 0.08), transparent 26rem),
    var(--bg);
  overflow: hidden;
}

body {
  height: 100%;
  margin: 0;
  background: transparent;
  color: var(--text);
  overflow: hidden;
}

#app {
  height: 100%;
}

#app,
#app * {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

input,
textarea,
select,
[contenteditable="true"] {
  -webkit-user-select: text;
  user-select: text;
}

body.modal-open {
  overflow: hidden;
  touch-action: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.location-pill,
.icon-button,
.toolbar-button,
.chip,
.nav-item,
.primary-button,
.secondary-button,
.ghost-button,
.quick-action,
.save-button,
.tab-button,
.link-button {
  transition:
    transform 120ms ease,
    box-shadow 140ms ease,
    filter 120ms ease,
    background-color 140ms ease;
}

.location-pill:active,
.icon-button:active,
.toolbar-button:active,
.chip:active,
.nav-item:active,
.primary-button:active,
.secondary-button:active,
.ghost-button:active,
.quick-action:active,
.save-button:active,
.tab-button:active,
.link-button:active {
  transform: translateY(1px) scale(0.985);
  filter: brightness(0.98) saturate(1.04);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

a {
  color: inherit;
}

.phone-shell {
  position: relative;
  height: var(--app-height);
  width: min(100%, 430px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  overflow: hidden;
}

.view {
  height: 100%;
  min-height: 0;
  padding: max(18px, env(safe-area-inset-top)) 22px calc(96px + env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}

.view.compact {
  padding-left: 0;
  padding-right: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 42px;
}

.location-pill,
.icon-button,
.toolbar-button,
.chip,
.nav-item,
.primary-button,
.secondary-button,
.ghost-button {
  border: 0;
  border-radius: 999px;
}

.location-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  background: transparent;
  color: var(--text);
  font-weight: 800;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

.hero-title {
  margin: 22px 0 20px;
  font-size: 31px;
  line-height: 1.03;
  letter-spacing: 0;
}

.hero-title span {
  color: var(--primary);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 58px;
  padding: 0 16px;
  border: 1px solid rgba(231, 229, 228, 0.72);
  border-radius: 17px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.search-box input::placeholder {
  color: #98a2b3;
}

.shortcut-row,
.section-row,
.horizontal-list,
.filter-options {
  scrollbar-width: none;
}

.shortcut-row::-webkit-scrollbar,
.section-row::-webkit-scrollbar,
.horizontal-list::-webkit-scrollbar,
.filter-options::-webkit-scrollbar {
  display: none;
}

.shortcut-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 68px;
  gap: 12px;
  margin: 22px -2px 26px;
  overflow-x: auto;
  padding: 2px 2px 8px;
}

.quick-action {
  display: grid;
  justify-items: center;
  gap: 9px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  transition: color 0.18s ease;
}

.quick-action .quick-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: var(--chip-bg, #eef4ff);
  color: var(--chip-color, var(--primary));
  font-weight: 900;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease,
    border-color 0.18s ease;
}

.quick-action.active {
  color: var(--chip-color, var(--primary));
}

.quick-action.active .quick-icon {
  border-color: var(--chip-color, var(--primary));
  background: var(--chip-color, var(--primary));
  color: #ffffff;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.18);
  transform: translateY(-1px);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0 12px;
}

.section-heading h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1.2;
}

.link-button {
  border: 0;
  background: transparent;
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
}

.horizontal-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 286px;
  gap: 14px;
  margin: 0 -22px 24px;
  overflow-x: auto;
  padding: 0 22px 8px;
}

.horizontal-list.compact-list {
  grid-auto-columns: 196px;
}

.home-view section {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.home-view section + section {
  margin-top: 8px;
}

.home-view .section-heading {
  margin: 12px 0 10px;
}

.home-view .horizontal-list {
  margin-bottom: 18px;
}

.event-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.home-view .event-card {
  display: flex;
  min-height: 256px;
  align-items: flex-end;
  background: var(--photo);
}

.home-view .compact-card {
  display: flex;
  min-height: 226px;
  align-items: flex-end;
  background: var(--photo);
}

.home-view .event-card::before,
.home-view .compact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.08) 28%, rgba(15, 23, 42, 0.78) 100%);
  pointer-events: none;
}

.event-card button,
.compact-card button,
.saved-card button {
  position: relative;
  z-index: 3;
}

.event-card .save-button,
.compact-card .save-button,
.saved-card .save-button,
.map-card .save-button {
  position: absolute;
  z-index: 4;
}

.event-card button:not(.save-button),
.compact-card button:not(.save-button),
.saved-card button:not(.save-button) {
  position: relative;
  z-index: 3;
}

.event-card .event-hit,
.compact-card .event-hit,
.map-card .event-hit {
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 0;
  background: transparent;
  color: transparent;
  font-size: 0;
  overflow: hidden;
  white-space: nowrap;
}

.event-photo {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  min-height: 126px;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  background: var(--photo);
  overflow: hidden;
}

.home-view .event-card .event-photo,
.home-view .compact-card .mini-photo {
  position: absolute;
  inset: 0;
  height: 100%;
  min-height: 0;
  border-radius: inherit;
}

.event-photo::after,
.hero-photo::after,
.mini-photo::after,
.map-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.5), transparent 10%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.26));
  mix-blend-mode: screen;
}

.distance-badge,
.save-button,
.category-badge,
.status-badge,
.price-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.distance-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 7px 9px;
  background: rgba(17, 24, 39, 0.66);
  color: #ffffff;
  backdrop-filter: blur(12px);
}

.save-button {
  position: absolute;
  top: 10px;
  right: 10px;
  left: auto;
  z-index: 4;
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

.event-photo > .save-button,
.mini-photo > .save-button,
.map-photo > .save-button,
.detail-hero > .save-button {
  inset: 10px 10px auto auto;
}

.map-card > .save-button,
.saved-card > .save-button {
  inset: 10px 10px auto auto;
}

.event-card .event-photo .save-button {
  top: 10px !important;
  right: 10px !important;
  left: auto !important;
}

.save-button.saved {
  background: #fff1f2;
  color: #e11d48;
}

.event-body {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 8px;
  padding: 13px 14px 16px;
}

.home-view .event-body {
  width: 100%;
  padding-top: 64px;
  color: #ffffff;
  text-shadow: 0 1px 12px rgba(15, 23, 42, 0.34);
}

.badge-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.category-badge {
  width: fit-content;
  padding: 6px 8px;
  background: color-mix(in srgb, var(--cat-color, var(--primary)) 16%, white);
  color: var(--cat-color, var(--primary));
  text-transform: uppercase;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  background: #fee2e2;
  color: #b91c1c;
}

.live-badge i {
  font-size: 0.8em;
}

.category-badge i {
  flex: 0 0 auto;
  font-size: 0.9em;
}

.home-view .category-badge {
  background: rgba(255, 255, 255, 0.88);
  text-shadow: none;
}

.home-view .live-badge {
  background: rgba(254, 226, 226, 0.92);
  text-shadow: none;
}

.event-title {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 16px;
  line-height: 1.22;
  font-weight: 900;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.home-view .event-title {
  color: #ffffff;
}

.event-meta,
.mini-meta,
.profile-line {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.home-view .event-meta,
.home-view .mini-meta {
  color: rgba(255, 255, 255, 0.88);
}

.event-meta span,
.mini-meta span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.compact-card .mini-photo {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  min-height: 104px;
  border-radius: 14px 14px 0 0;
  background: var(--photo);
  overflow: hidden;
}

.compact-card .save-button {
  width: 34px;
  height: 34px;
}

.compact-card .event-title {
  margin-top: 0;
  font-size: 14px;
  line-height: 1.2;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.compact-card .category-badge {
  margin-bottom: 2px;
  font-size: 10px;
  padding: 5px 7px;
}

.compact-body {
  display: grid;
  gap: 5px;
  padding: 10px 11px 12px;
}

.compact-body .mini-meta {
  font-size: 11px;
}

.bottom-nav {
  position: fixed;
  z-index: 40;
  right: 0;
  bottom: 0;
  left: 0;
  width: min(100%, 430px);
  margin: 0 auto;
  padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(231, 229, 228, 0.8);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.bottom-nav-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 6px 4px;
  background: transparent;
  color: #667085;
}

.nav-item .nav-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: currentColor;
  font-size: 23px;
  font-weight: 900;
}

.nav-item.active {
  color: var(--primary);
}

.map-view {
  position: relative;
  height: 100%;
  min-height: 0;
  padding: max(14px, env(safe-area-inset-top)) 14px calc(92px + env(safe-area-inset-bottom));
  overflow: hidden;
  background:
    linear-gradient(35deg, rgba(34, 197, 94, 0.18), transparent 28%),
    linear-gradient(130deg, transparent 0 44%, rgba(23, 105, 224, 0.1) 45% 48%, transparent 49%),
    linear-gradient(70deg, transparent 0 56%, rgba(148, 163, 184, 0.18) 57% 59%, transparent 60%),
    #edf4f1;
}

.map-view::before {
  content: "Padova";
  position: absolute;
  top: 44%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(15, 23, 42, 0.72);
  font-size: 28px;
  font-weight: 900;
}

.map-view.mapbox-live {
  background: #edf4f1;
}

.map-view.mapbox-live::before {
  display: none;
}

.map-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.mapbox-warning {
  position: absolute;
  z-index: 5;
  top: 108px;
  left: 16px;
  right: 16px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  color: #344054;
  font-size: 12px;
  font-weight: 800;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

.map-toolbar {
  position: relative;
  z-index: 5;
  grid-auto-flow: column;
  grid-auto-columns: 68px;
  gap: 12px;
  margin: 0 0 12px;
  padding: 10px 8px;
  border-radius: 20px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(10px);
  overflow-x: auto;
  overflow-y: hidden;
}

.map-toolbar .quick-action {
  min-width: 0;
  gap: 7px;
  font-size: 11px;
  color: #101828;
}

.map-toolbar .quick-action .quick-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
}

.map-toolbar .quick-action.active {
  font-weight: 900;
}

.map-toolbar .quick-action > span:last-child {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.toolbar-button,
.chip {
  min-height: 42px;
  padding: 0 14px;
  background: var(--surface);
  color: var(--text);
  font-weight: 900;
  box-shadow: var(--shadow-soft);
}

.chip.active,
.toolbar-button.active {
  background: var(--primary);
  color: #ffffff;
}

.map-marker {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.88);
  border-radius: 14px;
  background: var(--cat-color, var(--primary));
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.22);
  transform: translate(-50%, -50%);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.map-marker.selected {
  transform: translate(-50%, -50%) scale(1.12);
  z-index: 6;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.3), 0 0 0 4px rgba(255, 255, 255, 0.9);
  filter: saturate(1.08) contrast(1.05);
}

.mapbox-pin {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.92);
  border-radius: 14px;
  background: var(--cat-color, var(--primary));
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.22);
  transition:
    box-shadow 180ms ease,
    filter 180ms ease;
}

.mapbox-pin.selected {
  transform: scale(1.15);
  border-color: #ffffff;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.3), 0 0 0 4px rgba(255, 255, 255, 0.9);
  filter: saturate(1.08) contrast(1.05);
}

.mapbox-user-dot {
  width: 22px;
  height: 22px;
  border: 5px solid #ffffff;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 8px rgba(23, 105, 224, 0.15);
}

.user-dot {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 22px;
  border: 5px solid #ffffff;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 8px rgba(23, 105, 224, 0.15);
}

.recenter {
  position: absolute;
  right: 22px;
  bottom: calc(86px + env(safe-area-inset-bottom));
  z-index: 6;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 17px;
  background: var(--surface);
  color: var(--primary);
  font-weight: 900;
  box-shadow: var(--shadow);
}

.recenter.hidden {
  display: none;
}

.mapboxgl-ctrl-group {
  display: none !important;
}

.event-sheet {
  position: fixed;
  z-index: 30;
  right: 0;
  bottom: calc(74px + env(safe-area-inset-bottom));
  left: 0;
  width: min(100% - 28px, 400px);
  margin: 0 auto;
  padding: 14px 16px 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.sheet-handle {
  width: 52px;
  height: 5px;
  margin: 0 auto 14px;
  border-radius: 99px;
  background: #d0d5dd;
}

.map-card {
  position: relative;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: center;
  padding-right: 34px;
}

.map-photo {
  position: relative;
  width: 92px;
  height: 92px;
  border-radius: 15px;
  background: var(--photo);
  overflow: hidden;
}

.map-card-body {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.map-open-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 2px 0 0;
  color: #475467;
  font-size: 11px;
  font-weight: 800;
}

.map-open-hint svg {
  font-size: 10px;
  color: #2563eb;
}

.detail-view {
  height: 100%;
  min-height: 0;
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
  background: var(--bg);
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}

.detail-hero {
  position: relative;
  min-height: 368px;
  padding: max(16px, env(safe-area-inset-top)) 16px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--photo);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  overflow: hidden;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 16%, rgba(255, 255, 255, 0.22), transparent 32%),
    linear-gradient(180deg, rgba(5, 8, 20, 0.14) 0%, rgba(5, 8, 20, 0.68) 74%, rgba(5, 8, 20, 0.82) 100%);
}

.detail-actions,
.detail-title-block {
  position: relative;
  z-index: 2;
}

.detail-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.detail-back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
}

.detail-back-button span {
  font-size: 14px;
}

.detail-action-group {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.detail-action-group .save-button,
.detail-icon-button {
  position: static;
  inset: auto;
  width: 40px;
  height: 40px;
  margin: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
}

.detail-action-group .save-button.saved {
  background: #fff0f4;
  color: #e11d48;
}

.detail-title-block {
  color: #ffffff;
  padding-bottom: 18px;
}

.detail-title-block .category-badge {
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.22);
}

.detail-title-block h1 {
  margin: 10px 0 0;
  font-size: 42px;
  line-height: 1.02;
  text-wrap: balance;
  letter-spacing: -0.02em;
}

.detail-panel {
  position: relative;
  z-index: 3;
  margin: -26px 0 0;
  padding: 24px 22px 110px;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.info-tile,
.preference-card,
.admin-card,
.empty-state,
.form-card {
  border: 1px solid rgba(231, 229, 228, 0.78);
  border-radius: 15px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.info-tile {
  min-height: 82px;
  padding: 10px 11px;
  background: #f8fbff;
  border-color: #dbe5f2;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
}

.info-tile .info-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #475467;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.info-tile .info-label svg {
  font-size: 11px;
}

.info-tile strong {
  display: -webkit-box;
  margin: 5px 0 1px;
  font-size: 15px;
  line-height: 1.12;
  color: #0f172a;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-wrap: balance;
}

.info-tile .info-note {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.info-tile-when {
  background: linear-gradient(180deg, #f2f7ff 0%, #eef4ff 100%);
  border-color: #cfdcf6;
}

.info-tile-where {
  background: linear-gradient(180deg, #ecfaf6 0%, #e7f8f5 100%);
  border-color: #c8eadf;
}

.info-tile-price {
  background: linear-gradient(180deg, #fff5e7 0%, #fff1de 100%);
  border-color: #f4dac0;
}

.detail-section {
  margin: 20px 0;
}

.detail-section h2 {
  margin: 0 0 12px;
  font-size: 17px;
}

.tag-row,
.service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #dbe2ec;
  background: #f8fafd;
  color: #344054;
  font-size: 12px;
  font-weight: 800;
}

.detail-chip {
  gap: 7px;
  border-color: color-mix(in srgb, var(--chip-color, #334155) 24%, #dbe2ec);
  background: var(--chip-bg, #edf2f7);
  color: var(--chip-color, #334155);
}

.detail-chip .chip-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: inherit;
  font-size: 10px;
}

.sticky-actions {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 35;
  width: min(100%, 430px);
  margin: 0 auto;
  padding: 12px 22px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  width: 100%;
  padding: 0 18px;
  font-weight: 900;
}

.primary-button {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(23, 105, 224, 0.24);
}

.primary-button:hover {
  background: var(--primary-dark);
}

.secondary-button {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.ghost-button {
  background: #f2f4f7;
  color: var(--text);
}

.button-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.filter-sheet {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(15, 23, 42, 0.26);
  will-change: opacity;
}

.directions-sheet {
  position: fixed;
  inset: 0;
  z-index: 66;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.directions-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.32);
}

.directions-panel {
  position: relative;
  width: min(100%, 430px);
  max-height: 86vh;
  overflow: auto;
  padding: 14px 16px calc(18px + env(safe-area-inset-bottom));
  border-radius: 24px 24px 0 0;
  background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
  box-shadow: var(--shadow);
}

.directions-panel h3 {
  margin: 4px 0 6px;
  font-size: 20px;
}

.directions-panel p {
  margin: 0 0 12px;
  color: #475467;
  font-size: 13px;
}

.directions-list {
  display: grid;
  gap: 8px;
}

.direction-option {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 60px;
  padding: 10px 12px;
  border: 1px solid #dbe2ec;
  border-radius: 14px;
  background: #ffffff;
  text-align: left;
}

.direction-option-primary {
  border-color: #cfdcf6;
  background: #eef4ff;
}

.direction-option strong {
  display: block;
  font-size: 14px;
  color: #0f172a;
}

.direction-option small {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.direction-option-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #f1f5f9;
  color: #1e293b;
}

.direction-cancel {
  display: block;
  width: 100%;
  margin-top: 10px;
  text-align: center;
  font-weight: 800;
}

.filter-panel {
  width: min(100%, 430px);
  max-height: 92vh;
  overflow: auto;
  padding: 18px 18px calc(108px + env(safe-area-inset-bottom));
  border-radius: 24px 24px 0 0;
  background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
  box-shadow: var(--shadow);
  will-change: transform, opacity;
}

.filter-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 10px;
}

.filter-kicker {
  margin: 0 0 4px;
  color: #2563eb;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.filter-subtitle {
  margin: 0 0 16px;
  color: #475569;
  font-size: 12px;
  line-height: 1.35;
}

.filter-group {
  margin: 14px 0;
  padding: 10px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.filter-group h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 10px;
  font-size: 14px;
}

.filter-group h3 span {
  color: #3b82f6;
  font-size: 11px;
  font-weight: 900;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-options .chip {
  min-height: 36px;
  border: 1px solid #dbe2ec;
  border-radius: 12px;
  box-shadow: none;
  font-size: 12px;
  font-weight: 800;
}

.filter-options .chip.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  color: var(--chip-color, #334155);
  background: var(--chip-bg, #edf2f7);
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.filter-options .chip.filter-chip .chip-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  color: inherit;
  font-size: 10px;
}

.filter-options .chip.filter-chip.active {
  border-color: var(--chip-color, #2563eb);
  box-shadow: 0 7px 16px rgba(37, 99, 235, 0.22);
  transform: translateY(-1px);
}

.filter-options .chip.filter-chip.active .chip-icon {
  background: #ffffff;
}

.filter-cta {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 65;
  width: min(100%, 430px);
  margin: 0 auto;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  background: rgba(248, 250, 252, 0.96);
  backdrop-filter: blur(16px);
}

.filter-cta .primary-button {
  min-height: 52px;
  font-size: 17px;
}

.filter-footer-note {
  margin: 8px 0 0;
  text-align: center;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.filter-close-link {
  display: block;
  width: 100%;
  margin-top: 10px;
  text-align: center;
  font-weight: 800;
  color: #475569;
}

.section-sheet {
  position: fixed;
  inset: 0;
  z-index: 62;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(15, 23, 42, 0.26);
  will-change: opacity;
}

.section-panel {
  width: min(100%, 430px);
  max-height: 92vh;
  overflow: auto;
  padding: 0 16px calc(22px + env(safe-area-inset-bottom));
  border-radius: 24px 24px 0 0;
  background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
  box-shadow: var(--shadow);
  will-change: transform, opacity;
}

.section-header {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 -16px 12px;
  padding: 16px;
  border-radius: 24px 24px 0 0;
  background: #ffffff;
  backdrop-filter: none;
  border-bottom: 1px solid #e8edf5;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.section-header h2 {
  margin: 0;
  font-size: 20px;
}

.section-list {
  display: grid;
  gap: 12px;
}

.section-list .compact-card {
  display: flex;
  min-height: 188px;
  align-items: flex-end;
  border: 0;
  border-radius: 20px;
  background: var(--photo);
  box-shadow: var(--shadow-soft);
}

.section-list .compact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.08) 28%, rgba(15, 23, 42, 0.78) 100%);
  pointer-events: none;
}

.section-list .compact-card .mini-photo {
  position: absolute;
  inset: 0;
  height: 100%;
  min-height: 0;
  border-radius: inherit;
}

.section-list .compact-card .compact-body {
  width: 100%;
  padding-top: 48px;
  color: #ffffff;
  text-shadow: 0 1px 12px rgba(15, 23, 42, 0.34);
}

.section-list .compact-card .category-badge {
  background: rgba(255, 255, 255, 0.88);
  text-shadow: none;
}

.section-list .compact-card .live-badge {
  background: rgba(254, 226, 226, 0.92);
  text-shadow: none;
}

.section-list .compact-card .event-title {
  color: #ffffff;
}

.section-list .compact-card .mini-meta {
  color: rgba(255, 255, 255, 0.88);
}

.saved-list {
  display: grid;
  gap: 14px;
}

.saved-view .tabs {
  margin-bottom: 12px;
}

.saved-toolbar {
  margin: 0 -2px 16px;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 18px -22px 18px;
  border-bottom: 1px solid var(--border);
}

.tab-button {
  min-height: 46px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--text);
  font-weight: 900;
}

.tab-button.active {
  border-color: var(--primary);
  color: var(--primary);
}

.saved-card {
  position: relative;
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 12px;
  align-items: stretch;
  padding: 12px;
  border: 1px solid rgba(231, 229, 228, 0.78);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

.saved-card .mini-photo {
  position: relative;
  height: 108px;
  border-radius: 14px;
  background: var(--photo);
  overflow: hidden;
}

.saved-body {
  display: grid;
  align-content: center;
  gap: 5px;
  min-width: 0;
  padding-right: 28px;
}

.saved-card .category-badge {
  margin-bottom: 2px;
  font-size: 10px;
  padding: 5px 8px;
}

.saved-card .event-title {
  margin-top: 0;
  font-size: 18px;
  line-height: 1.18;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.saved-card .event-meta {
  font-size: 13px;
}

.profile-header {
  text-align: center;
  margin: 22px 0 18px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  margin: 0 auto 12px;
  border: 4px solid #ffffff;
  border-radius: 50%;
  background: linear-gradient(135deg, #111827, #64748b);
  color: #ffffff;
  font-size: 28px;
  font-weight: 900;
  box-shadow: var(--shadow);
}

.profile-header h1 {
  margin: 0;
  font-size: 22px;
}

.preference-card {
  padding: 16px;
}

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

.preference-list {
  display: grid;
  gap: 14px;
}

.preference-row,
.menu-row {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 10px;
  align-items: center;
}

.preference-row strong,
.menu-row strong {
  display: block;
  font-size: 13px;
}

.preference-row span,
.menu-row span {
  color: var(--muted);
  font-size: 12px;
}

.menu-list {
  display: grid;
  gap: 2px;
  margin-top: 18px;
}

.menu-row {
  min-height: 54px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  text-align: left;
}

.admin-layout {
  width: min(100%, 1180px);
  height: var(--app-height);
  margin: 0 auto;
  padding: 24px;
  overflow: auto;
  overscroll-behavior-y: contain;
}

.admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.admin-top h1 {
  margin: 0;
  font-size: 30px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.admin-card {
  padding: 16px;
}

.admin-card small {
  color: var(--muted);
  font-weight: 800;
}

.admin-card strong {
  display: block;
  margin-top: 8px;
  font-size: 26px;
}

.admin-main {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 18px;
  align-items: start;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.admin-table th,
.admin-table td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

.admin-table th {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.status-badge {
  padding: 6px 9px;
  background: #f2f4f7;
  color: #344054;
}

.status-badge.published {
  background: #dcfce7;
  color: #166534;
}

.status-badge.pending_review {
  background: #fef3c7;
  color: #92400e;
}

.status-badge.rejected,
.status-badge.cancelled {
  background: #fee2e2;
  color: #991b1b;
}

.form-card {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.form-card h2 {
  margin: 0 0 4px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: 0;
  background: #ffffff;
}

.field textarea {
  min-height: 88px;
  resize: vertical;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.empty-state {
  display: grid;
  gap: 8px;
  padding: 24px;
  text-align: center;
}

.empty-state h2,
.empty-state p {
  margin: 0;
}

.empty-state p {
  color: var(--muted);
}

.toast {
  position: fixed;
  z-index: 90;
  right: 16px;
  bottom: calc(88px + env(safe-area-inset-bottom));
  left: 16px;
  width: min(calc(100% - 32px), 398px);
  margin: 0 auto;
  padding: 14px 16px;
  border-radius: 15px;
  background: #111827;
  color: #ffffff;
  box-shadow: var(--shadow);
  font-weight: 800;
}

.skeleton {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  background: #eaecf0;
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.58), transparent);
  animation: shimmer 1.35s infinite;
}

.skeleton.line {
  height: 18px;
  margin-top: 10px;
}

.skeleton.w-40 {
  width: 40%;
}

.skeleton.title {
  width: 72%;
  height: 72px;
  margin: 26px 0 18px;
}

.skeleton.search {
  height: 58px;
}

.skeleton.card {
  height: 250px;
  margin-top: 34px;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

@media (min-width: 900px) {
  .phone-shell {
    height: calc(var(--app-height) - 32px);
    margin-top: 16px;
    margin-bottom: 16px;
    border: 1px solid rgba(231, 229, 228, 0.78);
    border-radius: 32px;
    box-shadow: var(--shadow);
  }

  .bottom-nav,
  .sticky-actions,
  .filter-cta {
    border-radius: 20px 20px 0 0;
  }

  .event-sheet {
    border-radius: 20px;
  }

  .phone-shell:has(.event-sheet) .recenter {
    display: none;
  }
}

@supports not (height: 100dvh) {
  :root {
    --app-height: 100vh;
  }
}

@media (max-width: 760px) {
  .admin-layout {
    padding: 18px;
  }

  .admin-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-grid,
  .admin-main,
  .two-col {
    grid-template-columns: 1fr;
  }

  .admin-table {
    display: block;
    overflow-x: auto;
  }
}
