:root {
  --bg: #f4f5fb;
  --surface: rgba(255, 255, 255, 0.88);
  --text: #1e2230;
  --muted: #5e6270;
  --line: rgba(23, 31, 50, 0.11);
  --accent: #8350c8;
  --accent-2: #d74ca0;
  --card-shadow: 0 16px 42px rgba(31, 24, 53, 0.16);
  --radius-lg: 28px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Manrope", sans-serif;
  background: linear-gradient(170deg, #f6f5fb 0%, #eef2fb 100%);
  color: var(--text);
  overflow-x: hidden;
  overflow-anchor: none;
  -webkit-text-size-adjust: 100%;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}

.bg-orb-1 {
  width: 270px;
  height: 270px;
  top: -70px;
  right: -80px;
  background: rgba(131, 80, 200, 0.22);
}

.bg-orb-2 {
  width: 230px;
  height: 230px;
  bottom: -90px;
  left: -70px;
  background: rgba(215, 76, 160, 0.23);
}

.app-shell {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 14px 24px;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.topbar h1 {
  margin: 6px 0 2px;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  font-family: "Sora", sans-serif;
}

.topbar p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.topbar-admin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.79rem;
  font-weight: 800;
  color: #3d2f66;
  border: 1px solid rgba(120, 84, 179, 0.26);
  background: rgba(255, 255, 255, 0.86);
}

.filters {
  position: sticky;
  top: 0;
  z-index: 20;
  overflow-anchor: none;
  padding: 6px 0 8px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(246, 245, 251, 0.95) 0%, rgba(246, 245, 251, 0.78) 100%);
  border-radius: 14px;
}

.filter-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
  touch-action: pan-x;
}

.filter-row-search {
  overflow-x: visible;
  touch-action: manipulation;
}

.filter-main-row {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(260px, 0.95fr) minmax(320px, 1.35fr);
  align-items: stretch;
  gap: 6px;
}

.filter-row::-webkit-scrollbar {
  display: none;
}

.chip {
  border: 1px solid rgba(43, 53, 86, 0.15);
  background: rgba(255, 255, 255, 0.96);
  color: #2e3250;
  border-radius: 999px;
  min-height: 44px;
  padding: 10px 14px;
  font-size: 0.84rem;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 130ms ease, background 130ms ease;
  touch-action: manipulation;
}

.chip.active {
  background: linear-gradient(135deg, #915de0, #7544b7);
  color: #fff;
  border-color: transparent;
}

.chip:active {
  transform: scale(0.97);
}

.search-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  gap: 6px;
  width: 100%;
}

.filter-row-search input {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  border: 1px solid rgba(113, 92, 149, 0.16);
  border-radius: 10px;
  min-height: 40px;
  padding: 9px 14px;
  font-size: 0.86rem;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  appearance: none;
  -webkit-appearance: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 2px 8px rgba(34, 26, 53, 0.035);
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.filter-row-search input:focus,
.filter-row-search input:focus-visible {
  outline: none;
  border-color: rgba(123, 96, 170, 0.3);
  background: rgba(255, 255, 255, 1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 2px 8px rgba(34, 26, 53, 0.035);
}

.nearby-btn {
  grid-column: 2;
  grid-row: 1;
  min-height: 40px;
  min-width: 40px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: #6d7b92;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 120ms ease;
}

.nearby-btn svg {
  width: 17px;
  height: 17px;
  display: block;
  fill: currentColor;
}

.nearby-btn.active {
  background: transparent;
  color: #2f7dff;
}

.nearby-btn.loading {
  opacity: 0.75;
}

.nearby-btn:active {
  transform: scale(0.96);
}

.nearby-btn:focus,
.nearby-btn:focus-visible {
  outline: none;
  box-shadow: none;
}

.radius-filter {
  position: relative;
  min-height: 54px;
  margin: 0;
  padding: 6px 12px 7px;
  border: 1px solid rgba(113, 92, 149, 0.13);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 2px 9px rgba(34, 26, 53, 0.035);
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}

.radius-hit-zone {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 24px;
  height: 34px;
  z-index: 4;
  border-radius: 999px;
  cursor: pointer;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}

.radius-filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 2px;
}

.radius-filter-head label {
  color: #414765;
  font-size: 0.72rem;
  font-weight: 700;
}

.radius-filter-head output {
  flex: 0 0 auto;
  min-width: 62px;
  text-align: right;
  color: #2f3659;
  font-size: 0.76rem;
  font-weight: 700;
}

#radiusSlider {
  display: block;
  width: 100%;
  height: 28px;
  margin: -2px 0 0;
  padding: 8px 0;
  accent-color: #8350c8;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
  touch-action: none;
  pointer-events: none;
}

#radiusSlider:focus,
#radiusSlider:focus-visible {
  outline: none;
}

#radiusSlider::-webkit-slider-runnable-track {
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, #8350c8, #d74ca0);
}

#radiusSlider::-webkit-slider-thumb {
  width: 26px;
  height: 26px;
  margin-top: -9.5px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #8350c8;
  box-shadow: 0 3px 12px rgba(54, 42, 88, 0.24);
  appearance: none;
  -webkit-appearance: none;
}

#radiusSlider::-moz-range-track {
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, #8350c8, #d74ca0);
}

#radiusSlider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #8350c8;
  box-shadow: 0 3px 12px rgba(54, 42, 88, 0.24);
}

.radius-context {
  min-height: 15px;
  margin-top: 0;
  color: #646a82;
  font-size: 0.72rem;
  line-height: 1.25;
}

.radius-filter.is-active .radius-context {
  color: #3f4567;
  font-weight: 700;
}

.filter-feedback-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4px 10px;
  align-items: start;
  margin-top: 4px;
}

.location-hint {
  min-width: 0;
  min-height: 16px;
  color: #5b5f79;
  font-size: 0.74rem;
  line-height: 1.3;
  padding: 0 2px 3px;
  grid-column: 2;
  grid-row: 1;
  text-align: right;
  overflow-wrap: anywhere;
}

.location-help {
  display: none !important;
  margin: 0 2px 8px;
  padding: 8px 9px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(113, 92, 149, 0.17);
}

.location-help p {
  margin: 0 0 6px;
  font-size: 0.74rem;
  color: #5a4e72;
}

.location-help-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.location-help-actions[hidden] {
  display: none !important;
}

.location-help-actions button {
  min-height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(122, 86, 182, 0.24);
  background: #fff;
  color: #3f3260;
  font-size: 0.75rem;
  font-weight: 700;
}

.filter-row-actions {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 6px;
  overflow: visible;
  padding-bottom: 0;
  touch-action: manipulation;
  order: 1;
}

.filters-clear {
  order: 1;
}

.filters-toggle {
  order: 2;
}

.filter-main-row .filter-row {
  padding-bottom: 0;
}

.filter-main-row .radius-filter {
  order: 2;
}

.filter-main-row .filter-row-search {
  order: 3;
}

.filters-toggle,
.filters-clear {
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(23, 31, 50, 0.09);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  touch-action: manipulation;
}

@media (max-width: 980px) {
  .filter-main-row {
    grid-template-columns: 1fr;
  }

  .filter-feedback-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .location-hint,
  .filter-summary {
    text-align: left;
  }

  .filter-summary,
  .location-hint {
    width: 100%;
  }
}

@media (min-width: 981px) {
  .filter-main-row .radius-context {
    display: none;
  }

  .filter-main-row .radius-filter {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

.filters-toggle {
  background: linear-gradient(135deg, #8a63d4, #724fb8);
  color: #fff;
  border-color: transparent;
}

.filters-clear {
  background: rgba(255, 255, 255, 0.72);
  color: #2d3350;
}

.filter-summary {
  min-width: 0;
  margin-top: 0;
  color: #4f5270;
  font-size: 0.77rem;
  line-height: 1.35;
  padding: 0 2px;
  min-height: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  grid-column: 1;
  grid-row: 1;
}

.grid-wrap {
  padding-top: 12px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 16px);
  overflow-anchor: none;
}

.empty-state {
  grid-column: 1 / -1;
  border-radius: 16px;
  border: 1px solid rgba(117, 68, 183, 0.2);
  background: rgba(255, 255, 255, 0.86);
  padding: 20px 14px;
  text-align: center;
  color: #363c54;
}

.empty-state h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.empty-state p {
  margin: 0;
  font-size: 0.86rem;
  color: #5e647d;
}

.business-card {
  --card-frame: #8a55cc;
  --card-surface: #5a2a78;
  --card-background: #241335;
  --card-text: #fff7ff;
  --card-accent: #c99af0;
  --card-radius: 22px;
  --card-border-width: 0px;
  --card-shadow: 0 14px 30px rgba(43, 22, 71, 0.24);
  --card-frame-background: linear-gradient(180deg, var(--card-frame), var(--card-background));
  position: relative;
  border: var(--card-border-width) solid var(--card-accent);
  border-radius: var(--card-radius);
  overflow: hidden;
  background: var(--card-frame-background);
  box-shadow: var(--card-shadow);
  cursor: pointer;
  transform: translateY(0);
  opacity: 1;
  animation: rise 350ms ease both;
  transition: transform 380ms cubic-bezier(0.2, 0.7, 0.15, 1), box-shadow 320ms ease, filter 320ms ease;
  will-change: transform, opacity;
  isolation: isolate;
  background-clip: padding-box;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.business-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(180deg, rgba(57, 27, 84, 0) 0%, rgba(45, 21, 68, 0.32) 66%, rgba(45, 21, 68, 0.45) 100%);
  pointer-events: none;
  z-index: 1;
}

.business-card.is-mounted {
  animation-delay: var(--card-enter-delay, 0ms);
}

@media (hover: hover) and (pointer: fine) {
  .business-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 38px rgba(37, 17, 60, 0.29);
    filter: saturate(1.03);
  }
}

.business-card:active {
  transform: translateY(-1px) scale(0.997);
}

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

.mini-cover-wrap {
  position: relative;
  overflow: visible;
  background: linear-gradient(145deg, rgba(232, 221, 247, 0.62), rgba(210, 183, 236, 0.5));
}

.mini-cover-wrap::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 20px;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0.08) 15%, rgba(255, 255, 255, 0.34) 35%, rgba(255, 255, 255, 0.08) 55%);
  background-size: 220% 100%;
  animation: shimmer 1.5s linear infinite;
  opacity: 1;
  transition: opacity 360ms ease;
  z-index: 3;
  pointer-events: none;
}

.mini-cover-wrap.asset-loaded::before {
  opacity: 0;
}

.mini-cover-wrap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 62%;
  background: linear-gradient(180deg, rgba(34, 16, 54, 0) 0%, rgba(34, 16, 54, 0.18) 60%, rgba(34, 16, 54, 0.38) 100%);
  z-index: 2;
  pointer-events: none;
}

.business-card .mini-cover {
  position: relative;
  z-index: 1;
  width: 100%;
  height: clamp(108px, 12.4vw, 146px);
  object-fit: cover;
  display: block;
  opacity: 0;
  transform: translate3d(var(--media-x, 0), var(--media-y, 0), 0) scale(calc(1.025 * var(--media-scale, 1)));
  transform-origin: center;
  transition: opacity 380ms ease, transform 620ms cubic-bezier(0.18, 0.72, 0.16, 1);
  will-change: opacity, transform;
}

.business-card .mini-cover.is-loaded {
  opacity: 1;
  transform: translate3d(var(--media-x, 0), var(--media-y, 0), 0) scale(var(--media-scale, 1));
}

.business-card.priority-cover .mini-cover {
  opacity: 1;
  transform: translate3d(var(--media-x, 0), var(--media-y, 0), 0) scale(var(--media-scale, 1));
}

.mini-avatar-wrap {
  position: absolute;
  left: 50%;
  bottom: -24px;
  transform: translateX(-50%);
  z-index: 5;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--card-surface);
  padding: 2px;
  box-shadow: 0 6px 14px rgba(39, 18, 64, 0.32);
}

.mini-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--card-accent);
  background: var(--card-surface);
  opacity: 1;
  transform: scale(1);
}

.mini-avatar.is-loaded {
  transform: scale(1);
}

.mini-top-tags {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  z-index: 4;
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  pointer-events: none;
}

.mini-tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(33, 21, 49, 0.4);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  color: #fef5ff;
  font-size: 0.62rem;
  font-weight: 800;
  white-space: nowrap;
  max-width: 62%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-tag-price {
  max-width: 34%;
}

.mini-open-status {
  margin-left: auto;
  max-width: 48%;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0;
  padding-left: 0;
  padding-right: 0;
  font-size: 0.62rem;
  font-family: "Outfit", sans-serif;
  font-weight: 300;
  letter-spacing: 0.035em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 1px rgba(30, 14, 48, 0.1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.mini-open-status.is-open {
  color: #58b47b;
}

.mini-open-status.is-closed {
  color: #cf6a78;
}

.mini-open-status.is-siesta {
  color: #c878a5;
  text-shadow: 0 2px 8px rgba(200, 120, 165, 0.16);
}

.mini-panel {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--card-text);
  background: var(--card-surface);
  padding: 34px 10px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.94;
  transform: translateY(8px);
  transition: opacity 380ms ease, transform 420ms cubic-bezier(0.2, 0.7, 0.15, 1);
  transition-delay: calc(var(--card-enter-delay, 0ms) + 40ms);
}

.business-card.is-mounted .mini-panel {
  opacity: 1;
  transform: translateY(0);
}

.mini-panel h3 {
  margin: 0;
  font-size: clamp(0.9rem, 1.45vw, 1.06rem);
  line-height: 1.15;
  font-family: "Sora", sans-serif;
  letter-spacing: -0.015em;
  display: block;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  line-height: 1;
  pointer-events: none;
  filter: drop-shadow(0 2px 5px rgba(17, 79, 173, 0.32));
}

.verified-badge img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.verified-badge-mini-avatar {
  position: absolute;
  right: 0;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translate(50%, -50%);
  z-index: 7;
}

.verified-badge-detail-avatar {
  position: absolute;
  right: 0;
  top: 50%;
  width: 28px;
  height: 28px;
  transform: translate(50%, -50%);
  z-index: 8;
}

.mini-desc {
  margin: 0;
  min-height: 28px;
  max-width: 96%;
  color: color-mix(in srgb, var(--card-text) 86%, transparent);
  font-size: 0.72rem;
  line-height: 1.26;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mini-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  margin-top: 1px;
}

.mini-meta-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  font-size: 0.67rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-distance {
  color: color-mix(in srgb, var(--card-text) 92%, transparent);
}

.mini-rating {
  color: color-mix(in srgb, var(--card-text) 92%, transparent);
  overflow: visible;
}

.rating-stars {
  position: relative;
  display: inline-block;
  white-space: nowrap;
  width: 5.3em;
  writing-mode: horizontal-tb;
  direction: ltr;
  line-height: 1;
  letter-spacing: 1px;
  font-weight: 800;
}

.rating-stars .stars-base,
.rating-stars .stars-fill {
  display: block;
  line-height: 1;
  letter-spacing: inherit;
}

.rating-stars .stars-base {
  color: #f7cd3b;
}

.rating-stars .stars-fill {
  position: absolute;
  left: 0;
  top: 0;
  color: #f7cd3b;
  width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.rating-stars-mini {
  font-size: 12px;
}

.rating-stars-detail {
  font-size: 14px;
}

.meta-list strong .rating-stars {
  justify-content: center;
}

#detailRating {
  display: flex;
  align-items: center;
  justify-content: center;
}

#detailRating .rating-stars {
  display: inline-block !important;
  white-space: nowrap !important;
}

.load-hint {
  position: relative;
  text-align: center;
  color: #5c6070;
  font-size: 0.82rem;
  padding: 14px 0 6px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 240ms ease, transform 280ms ease;
}

.load-hint.visible {
  opacity: 1;
  transform: translateY(0);
}

.load-hint::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  margin: 10px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(194, 139, 226, 0.12) 0%, rgba(194, 139, 226, 0.75) 50%, rgba(194, 139, 226, 0.12) 100%);
  background-size: 180% 100%;
  animation: shimmer 1.4s linear infinite;
  opacity: 0;
  transition: opacity 220ms ease;
}

.load-hint.visible::after {
  opacity: 1;
}

@keyframes shimmer {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -20% 0;
  }
}

.view-detail {
  min-height: calc(100vh - 24px);
  min-height: calc(100svh - 24px);
  padding: clamp(6px, 1.8vh, 18px) 0;
  touch-action: pan-y;
}

.view-detail.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.swipe-card {
  --card-frame: #8a55cc;
  --card-surface: #5a2a78;
  --card-background: #241335;
  --card-text: #fff7ff;
  --card-accent: #c99af0;
  --card-radius: 24px;
  --card-border-width: 0px;
  --card-shadow: 0 22px 44px rgba(34, 17, 62, 0.3);
  --card-frame-background: linear-gradient(180deg, var(--card-frame), var(--card-background));
  position: relative;
  width: min(450px, 100%);
  min-height: calc(100vh - 14px);
  min-height: calc(100svh - 14px);
  max-height: calc(100vh - 14px);
  max-height: calc(100svh - 14px);
  margin: 0 auto;
  border-radius: var(--card-radius);
  border: var(--card-border-width) solid var(--card-accent);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  touch-action: pan-y;
  user-select: none;
  transition: transform 250ms ease, opacity 250ms ease;
  transform-origin: center bottom;
  background: var(--card-frame-background);
}

.profile-cover-wrap {
  position: relative;
}

.profile-cover {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: cover;
  opacity: 0;
  transform: translate3d(var(--media-x, 0), var(--media-y, 0), 0) scale(var(--media-scale, 1));
  transform-origin: center;
  transition: opacity 240ms ease;
}

.profile-cover.is-ready {
  opacity: 1;
}

.profile-avatar-wrap {
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--card-surface);
  padding: 5px;
  box-shadow: 0 10px 24px rgba(39, 18, 64, 0.32);
}

.profile-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--card-accent);
  background: var(--card-surface);
  opacity: 0;
  transition: opacity 220ms ease;
}

.profile-avatar.is-ready {
  opacity: 1;
}

.profile-panel {
  position: relative;
  text-align: center;
  color: var(--card-text);
  background: var(--card-surface);
  padding: 30px 16px 18px;
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.profile-panel::-webkit-scrollbar {
  width: 6px;
}

.profile-panel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.28);
  border-radius: 999px;
}

.profile-panel h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 1.64rem;
  letter-spacing: -0.02em;
  display: block;
  line-height: 1.1;
}

.detail-open-status {
  margin: 4px 0 6px;
  min-height: 22px;
  font-size: 0.88rem;
  font-family: "Outfit", sans-serif;
  font-weight: 400;
  letter-spacing: 0.025em;
  line-height: 1.15;
  color: rgba(248, 240, 255, 0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  text-shadow: 0 1px 2px rgba(24, 12, 37, 0.12);
}

.detail-open-status.is-open {
  color: #58b47b;
}

.detail-open-status.is-closed {
  color: #cf6a78;
}

.detail-open-status.is-siesta {
  color: #c878a5;
}

.detail-open-status-sep {
  color: rgba(248, 240, 255, 0.56);
  margin: 0 0.22rem;
}

.detail-open-status-next.is-closed {
  color: #58b47b;
}

.detail-open-status-next.is-open {
  color: #cf6a78;
}

.detail-open-status-timer {
  font-variant-numeric: tabular-nums;
}

.detail-open-status-timer.is-open {
  color: #cf6a78;
  text-shadow: 0 2px 10px rgba(207, 106, 120, 0.14);
}

.detail-open-status-timer.is-closed {
  color: #58b47b;
  text-shadow: 0 2px 10px rgba(88, 180, 123, 0.14);
}

.detail-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.video-block {
  margin: 2px 0 10px;
}

.video-toggle {
  width: 100%;
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(127, 92, 187, 0.24);
  background: rgba(248, 243, 255, 0.96);
  color: #34285a;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
}

.video-section {
  margin-top: 8px;
}

.video-section[hidden] {
  display: none !important;
}

.promo-video {
  width: 100%;
  display: block;
  border-radius: 14px;
  background: rgba(20, 11, 36, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.2);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.intro-section {
  margin-top: 8px;
}

.intro-section[hidden] {
  display: none !important;
}

.intro-surface {
  width: 100%;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(252, 237, 255, 0.22);
  background: rgba(251, 245, 255, 0.14);
  touch-action: pan-y;
}

.intro-track {
  display: flex;
  width: 100%;
  transform: translate3d(0, 0, 0);
  transition: transform 220ms ease;
}

.intro-slide {
  flex: 0 0 100%;
  min-width: 0;
  padding: 12px;
}

.intro-slide-gallery {
  padding: 4px;
}

.intro-slide h3 {
  margin: 0 0 7px;
  color: rgba(252, 241, 255, 0.94);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.intro-slide p {
  margin: 0;
  color: rgba(248, 234, 255, 0.95);
  font-size: 0.88rem;
  line-height: 1.5;
}

.intro-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.intro-gallery img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 9px;
  border: 1px solid rgba(253, 240, 255, 0.3);
  background: rgba(255, 255, 255, 0.18);
  display: block;
}

.intro-hint {
  margin: 7px 2px 0;
  color: rgba(246, 228, 255, 0.84);
  font-size: 0.72rem;
}

.link-pill {
  border: 1px solid rgba(131, 80, 200, 0.17);
  background: #f5f2f8;
  color: #2b2d35;
  width: 100%;
  border-radius: 16px;
  min-height: 52px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.link-icon {
  display: inline-flex;
  width: 22px;
  height: 22px;
  color: #4a3c71;
}

.link-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.map-pill .link-icon {
  color: #3d2f66;
}

.profile-desc {
  min-height: 24px;
  margin: 1px 0 9px;
  color: rgba(247, 236, 255, 0.95);
  font-size: 0.96rem;
  font-weight: 700;
}

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

.meta-list div {
  background: rgba(251, 245, 255, 0.16);
  border: 1px solid rgba(252, 237, 255, 0.22);
  border-radius: var(--radius-sm);
  padding: 7px;
  text-align: center;
}

.meta-list span {
  display: block;
  color: rgba(252, 241, 255, 0.8);
  font-size: 0.73rem;
}

.meta-list strong {
  font-size: 0.84rem;
}

.detail-tip {
  margin-top: 10px;
  color: rgba(248, 230, 255, 0.88);
  font-size: 0.72rem;
}

.wave-overlay {
  margin-top: 8px;
  height: 46px;
  border-radius: 90px 90px 0 0;
  background:
    radial-gradient(58px 46px at 18% 10%, rgba(255, 98, 182, 0.65) 0 70%, transparent 72%),
    radial-gradient(78px 68px at 52% 30%, rgba(226, 77, 163, 0.72) 0 70%, transparent 72%),
    radial-gradient(62px 44px at 83% 14%, rgba(248, 109, 192, 0.66) 0 70%, transparent 72%);
}

.map-picker {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  align-items: end;
  pointer-events: none;
}

.map-picker.open {
  pointer-events: auto;
}

.map-picker[hidden] {
  display: none !important;
}

.map-picker-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(14, 11, 22, 0.34);
}

.map-picker-sheet {
  position: relative;
  width: min(450px, 100%);
  margin: 0 auto;
  border-radius: 18px 18px 0 0;
  background: rgba(252, 250, 255, 0.98);
  padding: 10px 12px 12px;
  transform: translateY(100%);
  transition: transform 180ms ease;
}

.map-picker.open .map-picker-sheet {
  transform: translateY(0);
}

.map-picker-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.map-picker-actions button,
.map-picker-cancel {
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(121, 95, 173, 0.24);
  background: #fff;
  color: #3f3560;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.map-picker-cancel {
  width: 46px;
  min-width: 46px;
  margin: 8px auto 0;
  border-radius: 999px;
}

.map-icon {
  display: inline-flex;
  width: 22px;
  height: 22px;
  color: #4a3c71;
}

.map-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.map-close-icon {
  font-size: 1.15rem;
  line-height: 1;
  color: #4a3c71;
  font-weight: 700;
}

@media (max-width: 360px) {
  .detail-links {
    gap: 8px;
  }

  .link-pill {
    min-height: 48px;
  }

  .map-picker-actions button,
  .map-picker-cancel {
    min-height: 42px;
  }

  .map-picker-cancel {
    width: 42px;
    min-width: 42px;
    margin-top: 6px;
  }
}

@media (min-width: 700px) {
  .detail-links {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
  }

  .link-pill {
    min-height: 48px;
  }

  .map-picker-actions {
    gap: 10px;
  }

  .map-picker-actions button {
    min-height: 48px;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

.filter-sheet {
  position: relative;
  margin-top: 8px;
  pointer-events: auto;
}

.sheet-backdrop {
  display: none;
}

.sheet-panel {
  position: relative;
  max-height: 0;
  overflow-y: auto;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  padding: 0 12px;
  border: 0;
  box-shadow: none;
  opacity: 0;
  pointer-events: none;
  transition: max-height 220ms ease, padding 220ms ease, margin-top 220ms ease;
  margin-top: 0;
}

.filter-sheet.open {
  margin-top: 8px;
}

.filter-sheet.open .sheet-panel {
  max-height: 60vh;
  padding: 12px;
  border: 1px solid rgba(29, 40, 71, 0.11);
  box-shadow: 0 10px 22px rgba(28, 36, 63, 0.1);
  opacity: 1;
  pointer-events: auto;
}

.sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.sheet-head h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 0.95rem;
}

.sheet-close {
  min-width: 40px;
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(114, 74, 175, 0.28);
  background: rgba(250, 251, 255, 1);
  font-size: 1rem;
  color: #47396a;
}

.sheet-group {
  margin-bottom: 12px;
}

.sheet-group h4 {
  margin: 0 0 6px;
  font-size: 0.82rem;
  color: #504970;
  letter-spacing: 0.01em;
}

.location-input-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-bottom: 8px;
}

.sheet-search-input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(56, 67, 104, 0.2);
  border-radius: 10px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.98);
  font-size: 0.84rem;
  color: #2e3250;
}

.sheet-search-input:focus {
  outline: 2px solid rgba(145, 93, 224, 0.22);
  border-color: rgba(145, 93, 224, 0.34);
}

#citySearchInput {
  margin-bottom: 8px;
}

.ip-country-btn {
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(145, 93, 224, 0.3);
  background: rgba(255, 255, 255, 0.98);
  color: #4a3970;
  padding: 0 12px;
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap;
}

.ip-country-btn:disabled {
  opacity: 0.55;
}

.ip-country-btn.active {
  border-color: transparent;
  background: linear-gradient(135deg, #915de0, #7544b7);
  color: #fff;
}

.choice-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  overflow-x: visible;
  padding-bottom: 2px;
  scrollbar-width: none;
  touch-action: manipulation;
}

.choice-wrap::-webkit-scrollbar {
  display: none;
}

.choice-chip {
  min-height: 42px;
  border: 1px solid rgba(77, 52, 128, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.98);
  color: #372e56;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 9px 14px;
  white-space: nowrap;
  touch-action: manipulation;
}

.choice-chip.active {
  background: linear-gradient(135deg, #915de0, #7544b7);
  color: #fff;
  border-color: transparent;
}

.sheet-actions {
  position: static;
  background: transparent;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-top: 10px;
}

.sheet-reset,
.sheet-done {
  min-height: 46px;
  border-radius: 12px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.sheet-reset {
  border: 1px solid rgba(82, 54, 136, 0.26);
  background: #fff;
  color: #362d56;
}

.sheet-done {
  border: 0;
  background: linear-gradient(135deg, #915de0, #7544b7);
  color: #fff;
}

@media (max-width: 360px) {
  .app-shell {
    padding-left: 10px;
    padding-right: 10px;
  }

  .cards-grid {
    gap: 9px;
  }

  .business-card .mini-cover {
    height: 104px;
  }

  .mini-avatar-wrap {
    width: 52px;
    height: 52px;
    bottom: -24px;
  }

  .mini-panel {
    padding: 32px 8px 10px;
  }

  .mini-panel h3 {
    font-size: 0.82rem;
  }

  .mini-desc {
    min-height: 24px;
    font-size: 0.68rem;
  }

  .mini-meta-pill {
    min-height: 22px;
    font-size: 0.62rem;
  }

  .rating-stars-mini {
    font-size: 11px;
  }

  .mini-tag {
    min-height: 20px;
    font-size: 0.58rem;
    padding: 0 7px;
  }

  .swipe-card {
    min-height: calc(100vh - 20px);
    min-height: calc(100svh - 20px);
    max-height: calc(100vh - 20px);
    max-height: calc(100svh - 20px);
  }

  .profile-panel h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 640px) {
  .view-detail {
    padding: 4px 0 8px;
  }

  .view-detail.active {
    align-items: flex-start;
  }

  .sheet-close {
    min-width: 34px;
    min-height: 34px;
    font-size: 0.88rem;
  }

  .sheet-search-input {
    min-height: 38px;
    font-size: 0.8rem;
    padding: 0 10px;
  }

  .ip-country-btn {
    min-height: 38px;
    font-size: 0.7rem;
    padding: 0 10px;
  }

  .choice-chip {
    min-height: 36px;
    font-size: 0.76rem;
    padding: 7px 10px;
  }

  .sheet-reset,
  .sheet-done {
    min-height: 40px;
    font-size: 0.8rem;
  }
}

@supports (-webkit-touch-callout: none) {
  .filter-row-search input,
  .sheet-search-input {
    font-size: 16px;
  }
}

@media (min-width: 480px) {
  .cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .cards-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }

  .topbar h1 {
    font-size: 1.7rem;
  }
}

@media (min-width: 1280px) {
  .cards-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
