*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-radius: 0;
}

:root {
  --bg: #f4f4f2;
  --ink: #0a0a0a;
  --paper: #ffffff;
  --line: #0a0a0a;
  --muted: #5c5c5c;
  --soft: #e8e8e4;
  --font-display: "Syne", sans-serif;
  --font-body: "Outfit", sans-serif;
  --app-max: 430px;
  --tabbar-h: 64px;
}

html,
body {
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
}

body {
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.page-public {
  background:
    linear-gradient(160deg, #f7f7f4 0%, #ebebe6 48%, #f2f2ef 100%);
}

.page-home,
.app--home {
  background: #fafaf8;
}

.app--home {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
}

.coming {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 24px;
  animation: brand-in 0.5s ease both;
}

.coming__logo {
  width: 88px;
  height: auto;
  margin-bottom: 18px;
}

.coming__name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}

.coming__soon {
  margin-top: 18px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
}

.coming__hint {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

img,
svg {
  display: block;
  border-radius: 0;
}

a {
  color: inherit;
}

.app {
  position: relative;
  max-width: var(--app-max);
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--paper);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  overflow-x: hidden;
}

.app--admin {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

/* Brand / topbar */

.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: calc(10px + env(safe-area-inset-top)) 14px 10px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
  animation: brand-in 0.45s ease both;
}

.brand--grow {
  flex: 1;
}

.brand__logo {
  width: 34px;
  height: 38px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

.icon-btn:active {
  background: var(--ink);
  color: var(--paper);
}

.panel__title {
  padding: 14px 16px 4px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.panel__scroll {
  flex: 1;
  overflow-y: auto;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 12px);
}

.panel__scroll:has(#venue-form:not([hidden])),
.panel__scroll:has(#city-form:not([hidden])) {
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
}

/* Hero landing */

.hero {
  padding: 28px 16px 24px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, transparent 0 48%, rgba(0, 0, 0, 0.04) 48% 50%, transparent 50%),
    linear-gradient(0deg, var(--soft), var(--paper));
  animation: hero-in 0.55s ease both;
}

.hero--compact {
  padding: 20px 16px 18px;
}

.hero__eyebrow {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: var(--muted);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(34px, 9vw, 44px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.hero__text {
  margin-top: 12px;
  max-width: 28ch;
  font-size: 15px;
  line-height: 1.45;
  color: var(--muted);
}

.login__body {
  padding: 28px 16px 32px;
}

.form--login {
  margin-top: 20px;
  padding: 0;
  border: none;
}

/* City section headers */

.city {
  padding: 14px 16px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}

h2.city a {
  color: inherit;
  text-decoration: none;
}

.city--sub {
  background: var(--soft);
  color: var(--ink);
}

.check-list {
  border: 1px solid var(--line);
}

.check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.check-item:last-child {
  border-bottom: none;
}

.check-item input {
  width: 18px;
  height: 18px;
  accent-color: var(--ink);
}

/* Venue cards */

.venue {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: 88px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s ease;
}

.list .venue {
  flex-direction: column;
  min-height: 0;
  animation: rise-in 0.45s ease both;
}

.list .venue:nth-child(2) {
  animation-delay: 0.04s;
}
.list .venue:nth-child(3) {
  animation-delay: 0.08s;
}
.list .venue:nth-child(4) {
  animation-delay: 0.12s;
}

.list .venue:active {
  background: var(--soft);
}

.venue__photo {
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  object-fit: cover;
  background: var(--soft);
  border-right: 1px solid var(--line);
}

.list .venue__photo {
  width: 100%;
  height: 220px;
  border-right: none;
  border-bottom: 1px solid var(--line);
}

.venue__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 1;
  padding: 0 16px;
}

.list .venue__body {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  padding: 16px;
}

.venue__name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.list .venue__name {
  font-size: 22px;
}

.venue__address,
.venue__coords {
  font-size: 13px;
  line-height: 1.35;
  color: var(--muted);
}

.venue__coords {
  font-size: 12px;
  letter-spacing: 0.02em;
}

/* City guide */

.page-guide {
  background: #f6f6f3;
}

.app--guide {
  background: #fafaf8;
}

.topbar--guide,
.topbar--plain {
  background: transparent;
  border-bottom-color: transparent;
}

.guide-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(150px, 0.95fr);
  align-items: center;
  gap: 0;
  border-bottom: none;
  background: #fafaf8;
  animation: hero-in 0.55s ease both;
  overflow: hidden;
}

.guide-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 12px;
  background: transparent;
}

.guide-stats__item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  padding: 0;
}

.guide-stats__icon {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  flex-shrink: 0;
}

.guide-stats__icon svg {
  width: 15px;
  height: 15px;
}

.guide-stats__icon--logo {
  width: 14px;
  height: 16px;
  object-fit: contain;
}

.guide-stats__value {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.guide-hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px 14px 18px 16px;
  min-width: 0;
}

.guide-hero__banner {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  background: #fafaf8;
  padding: 0;
  margin: 0;
}

.guide-hero__banner img {
  width: 100%;
  height: auto;
  max-height: 210px;
  object-fit: contain;
  object-position: right center;
  display: block;
}

.guide-hero__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 6.2vw, 28px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  max-width: 11ch;
}

.guide-hero__lead {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
  max-width: 16ch;
}

.guide-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 0 10px;
  background: #fafaf8;
}

.guide-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0;
  border: none;
  background: #fafaf8;
}

.guide-switch__btn {
  height: 42px;
  border: none;
  outline: none;
  background: transparent;
  color: var(--ink);
  opacity: 0.35;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.guide-switch__btn svg {
  width: 22px;
  height: 22px;
  display: block;
}

.guide-switch__btn + .guide-switch__btn {
  border-left: none;
}

.guide-switch__btn.is-active {
  background: transparent;
  color: var(--ink);
  opacity: 1;
}

.guide-map {
  width: 100%;
  height: min(70vh, 520px);
  min-height: 360px;
  background: #e8e8e4;
  border-top: none;
  border-bottom: 1px solid var(--line);
}

.guide-map-popup {
  margin: 0;
  padding: 0;
  line-height: 1.15;
}

.gm-style .gm-style-iw-c {
  border-radius: 0 !important;
  padding: 0 !important;
  background: #000 !important;
  box-shadow: none !important;
  border: 1px solid #000 !important;
}

.gm-style .gm-style-iw-d {
  overflow: hidden !important;
  max-height: none !important;
}

.gm-style .gm-style-iw-t::after {
  background: #000 !important;
  box-shadow: none !important;
}

.gm-style .gm-ui-hover-effect {
  top: 0 !important;
  right: 0 !important;
  width: 28px !important;
  height: 28px !important;
  background: #000 !important;
  opacity: 1 !important;
}

.gm-style .gm-ui-hover-effect > span {
  background-color: #fff !important;
  margin: 8px !important;
}

.guide-map-card {
  display: block;
  width: 200px;
  text-decoration: none;
  color: #fff;
  border: 1px solid #000;
  box-sizing: border-box;
}

.guide-map-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #222;
  overflow: hidden;
}

.guide-map-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.guide-map-card__photo--empty {
  background: #333;
}

.guide-map-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 45%,
    rgba(0, 0, 0, 0.78) 100%
  );
  pointer-events: none;
}

.guide-map-card__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 8px 10px 10px;
}

.guide-map-card__name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #fff;
  margin: 0;
}

.guide-map-card__cta {
  display: inline-block;
  margin-top: 5px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-bottom: 1px solid #fff;
  padding-bottom: 1px;
  color: #fff;
}

.guide-spot {
  display: block;
  text-decoration: none;
  color: inherit;
  border-bottom: none;
  animation: rise-in 0.5s ease both;
  animation-delay: calc(var(--i, 0) * 0.06s);
}

.guide-spot__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #e8e8e4;
  overflow: hidden;
}

.guide-spot__media .venue__photo {
  width: 100%;
  height: 100%;
  border: none;
  object-fit: cover;
}

.guide-spot__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.28) 0%,
    transparent 32%,
    transparent 48%,
    rgba(0, 0, 0, 0.72) 100%
  );
  pointer-events: none;
}

.guide-spot__num {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  min-width: 44px;
  padding: 8px 10px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.guide-spot__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 18px 132px 20px 16px;
  color: #fff;
}

.guide-spot__minimap {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  width: 112px;
  height: 112px;
  border: 1px solid #fff;
  outline: 1px solid #000;
  background: #d8d8d4;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.guide-spot__minimap-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.guide-spot__minimap-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 25px;
  transform: translate(-50%, -50%);
  background: none;
  border: none;
  outline: none;
  z-index: 1;
}

.guide-spot__minimap-pin img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 1px #fff) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}

.guide-spot__minimap-dist {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 4px 4px 5px;
  background: #000;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-align: center;
}

.guide-spot__name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #fff;
}

.guide-spot__alt {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
}

.guide-spot__addr {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.82);
}

.guide-spot__cta {
  display: inline-block;
  margin-top: 12px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-bottom: 1px solid #fff;
  padding-bottom: 2px;
  color: #fff;
}

.guide-spot:active .guide-spot__cta {
  opacity: 0.5;
}

.guide-foot {
  padding: 28px 20px calc(28px + env(safe-area-inset-bottom));
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.venue__body--stack {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  padding: 14px 16px;
}

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

.venue__i18n {
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
  word-break: break-all;
}

.venue__meta {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}

.venue--admin {
  text-decoration: none;
}

.venue--admin .venue__photo {
  width: 96px;
  height: 96px;
}

/* Carousel / detail */

.carousel {
  position: relative;
  background: var(--soft);
  border-bottom: none;
}

.carousel__stage {
  position: relative;
  background: #000;
}

.carousel__image,
.carousel__video {
  width: 100%;
  height: 340px;
  object-fit: cover;
  background: #000;
}

.carousel__image {
  cursor: zoom-in;
}

.carousel__btn {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 48px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.carousel__btn--prev {
  left: 0;
}

.carousel__btn--next {
  right: 0;
}

.carousel__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 6px;
  padding: 8px;
  background: #fafaf8;
}

.carousel__thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1px solid transparent;
  outline: 1px solid var(--line);
  background: #e8e8e4;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
}

.carousel__thumb img,
.carousel__thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel__thumb.is-active {
  outline: 2px solid var(--ink);
  border-color: var(--ink);
}

.carousel__thumb-badge {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  color: #fff;
  font-size: 9px;
  line-height: 1;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.96);
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.lightbox__frame {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
}

.lightbox__media {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 0;
}

.lightbox__close {
  position: absolute;
  top: calc(8px + env(safe-area-inset-top));
  right: 8px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 1px solid #fff;
  background: #000;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 1px solid #fff;
  background: #000;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.lightbox__nav--prev {
  left: 8px;
}

.lightbox__nav--next {
  right: 8px;
}

.lightbox__count {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(12px + env(safe-area-inset-bottom));
  text-align: center;
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.page-map {
  width: 100%;
  height: 260px;
  border-bottom: none;
  background: var(--soft);
}

.nearby {
  padding: 18px 0 24px;
  background: #fafaf8;
}

.nearby__title {
  padding: 0 16px 12px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nearby__scroller {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.nearby__scroller::-webkit-scrollbar {
  display: none;
}

.nearby__card {
  flex: 0 0 148px;
  width: 148px;
  text-decoration: none;
  color: inherit;
  scroll-snap-align: start;
}

.nearby__photo {
  width: 148px;
  height: 148px;
  object-fit: cover;
  display: block;
  background: #e8e8e4;
  border: 1px solid var(--line);
}

.nearby__photo--empty {
  background: #ddd;
}

.nearby__name {
  display: block;
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.nearby__dist {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

.info {
  padding: 20px 16px;
  border-bottom: 1px solid var(--line);
}

.info__name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.info--title {
  padding: 14px 16px 12px;
  border-bottom: none;
}

.info__date {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.info--meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top: none;
  border-bottom: none;
}

.info__row {
  min-width: 0;
}

.info__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--muted);
}

.info__icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--ink);
}

.info__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.info__text {
  font-size: 15px;
  line-height: 1.45;
}

.info__coords {
  display: block;
}

.info__coords .info__text {
  margin: 0;
}

.dist-badge {
  flex-shrink: 0;
  margin-left: 2px;
  padding: 4px 7px;
  background: #000;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: none;
  white-space: nowrap;
}

.maps-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.maps-actions__label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.maps-actions__icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  color: var(--ink);
  flex-shrink: 0;
}

.maps-actions__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.maps-actions__btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.maps-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.maps-btn__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: inline-flex;
}

.maps-btn__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.maps-btn:active {
  background: var(--ink);
  color: #fff;
}

/* Admin stats */

.stat {
  display: block;
  width: 100%;
  padding: 24px 16px;
  border: none;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  font: inherit;
  transition: background 0.15s ease;
}

.stat:active {
  background: var(--soft);
}

.stat__label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

.stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: 68px;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  margin: 10px 0 8px;
}

.stat__hint {
  display: block;
  font-size: 13px;
  color: var(--muted);
}

.stat-row {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border: none;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  text-align: left;
}

.bar {
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

/* Forms */

.form {
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.form__title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.field {
  display: block;
  margin-bottom: 16px;
}

.field__label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--muted);
}

.field__hint {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
  word-break: break-all;
}

.coords {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.coords__item {
  min-width: 0;
}

.field__input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  appearance: none;
  border-radius: 0;
}

.field__file {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  font: inherit;
  font-size: 14px;
}

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

.media-tile {
  position: relative;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  background: var(--soft);
  overflow: hidden;
}

.media-tile img,
.media-tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-tile__badge {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 4px 6px;
  background: var(--ink);
  color: var(--paper);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.media-tile__del {
  position: absolute;
  top: 0;
  right: 0;
  width: 28px;
  height: 28px;
  border: none;
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.map-wrap {
  position: relative;
}

.map {
  width: 100%;
  height: 260px;
  border: 1px solid var(--line);
  background: var(--soft);
}

.map-pin {
  width: 14px;
  height: 14px;
  background: var(--ink);
  border: 2px solid #fff;
  outline: 1px solid var(--ink);
  border-radius: 0 !important;
}

.map-pin-logo {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.map-locate-bar {
  margin: 10px;
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  background: #fff;
}

.map-locate-bar .map-locate {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--ink);
  border: none;
  border-radius: 0;
  padding: 0;
  cursor: pointer;
}

.map-locate-bar .map-locate svg {
  width: 18px;
  height: 18px;
  display: block;
}

.map-locate-bar.is-loading .map-locate {
  opacity: 0.45;
}

.map-locate-bar .map-locate:active {
  background: var(--ink);
  color: #fff;
}

.gm-style .gm-style-mtc,
.gm-style .gm-style-mtc button,
.gm-style .gm-control-active,
.gm-bundled-control .gmnoprint > div,
.gm-style button {
  border-radius: 0 !important;
}

/* Buttons */

.btn,
a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.btn--ghost {
  background: var(--paper);
  color: var(--ink);
}

.btn--full {
  width: 100%;
  margin-top: 8px;
}

.btn--small {
  width: auto;
  height: 32px;
  padding: 0 10px;
  font-size: 11px;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

.name-langs {
  border: 1px solid var(--line);
}

.name-lang {
  display: grid;
  grid-template-columns: 44px 1fr;
  border-bottom: 1px solid var(--line);
}

.name-lang:last-child {
  border-bottom: none;
}

.name-lang__code {
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.name-lang__text {
  padding: 12px;
  font-size: 16px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.name-langs--empty .name-lang__text {
  font-size: 14px;
  letter-spacing: 0;
  color: var(--muted);
}

.form__error {
  margin-bottom: 12px;
  font-size: 13px;
  color: #8b0000;
}

.empty {
  padding: 24px 16px;
  font-size: 14px;
  color: var(--muted);
}

/* Admin tab bar */

.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(100%, var(--app-max));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: var(--paper);
  z-index: 30;
}

.tabbar.is-hidden {
  display: none;
}

.tabbar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.tabbar__item svg {
  width: 22px;
  height: 22px;
}

.tabbar__item.is-active {
  color: var(--ink);
  font-weight: 600;
}

.panel {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

[hidden] {
  display: none !important;
}

@keyframes brand-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 431px) {
  body.page-public {
    background:
      radial-gradient(circle at 20% 10%, #ffffff 0, transparent 42%),
      linear-gradient(160deg, #f0f0ec, #e4e4de);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
