/* Explore map venue sheet — atmosphere → tonight → one primary CTA */

/*
 * Viewport-fit panel. --app-height is set by explore.js (visualViewport-aware).
 * Desktop / tablet (≥1024) clear a small bottom gap (no explore bottom nav).
 * Mobile map card (≤1099, not list-embedded) overlays the bottom nav — see
 * @media (max-width: 1099px) below; do not reserve --fn-bottom-nav-h there.
 */
.venue-info-panel {
  --fn-venue-panel-top-chrome: 3.55rem;
  --fn-venue-panel-top: calc(
    env(safe-area-inset-top, 0px) + var(--fn-venue-panel-top-chrome)
  );
  --fn-venue-panel-bottom-gap: calc(
    var(--fn-bottom-nav-h, 60px) + env(safe-area-inset-bottom, 0px) + 0.5rem
  );
  --fn-venue-panel-max-h: calc(
    var(--app-height, 100dvh) - var(--fn-venue-panel-top) - var(--fn-venue-panel-bottom-gap)
  );
  width: min(420px, calc(100% - 1rem));
  /* Grow with content, but never taller than the visible map area. */
  height: auto;
  max-height: max(12rem, var(--fn-venue-panel-max-h));
  display: flex;
  flex-direction: column;
  border-radius: var(--fn-radius-control, 6px);
  overflow: hidden;
  padding: 0;
}

/*
 * Mobile map sheet: extend over fixed .fn-bottom-nav (panel z-index 750 > nav 50).
 * List-embedded cards keep their own shell layout (sidebar / list sheet).
 */
@media (max-width: 1099px) {
  .venue-info-panel:not(.is-list-embedded) {
    --fn-venue-panel-bottom-gap: calc(0.35rem + env(safe-area-inset-bottom, 0px));
  }

  /* Keep photo / video in the media slot on short phone viewports. */
  .venue-info-panel:not(.is-list-embedded)
    .venue-info-panel-body.has-media-layout
    .explore-venue-media-wrap,
  .venue-info-panel:not(.is-list-embedded)
    .venue-info-panel-body.has-photo-layout
    .explore-venue-media-wrap,
  .venue-info-panel:not(.is-list-embedded)
    .venue-info-panel-body.has-video-layout
    .explore-venue-media-wrap {
    display: block;
  }
}

.venue-info-panel-accent {
  display: none;
}

.venue-info-panel-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding: 0;
}

.venue-info-panel-body.has-video-layout,
.venue-info-panel-body.has-media-layout {
  --venue-video-col: auto;
  padding: 0;
}

.explore-venue-card-shell {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.explore-venue-name-link {
  color: inherit;
  text-decoration: none;
}

.explore-venue-name-link:hover {
  color: var(--fn-orange, #ff8a00);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.explore-venue-media-wrap {
  position: relative;
  flex-shrink: 0;
}

.explore-venue-media {
  position: relative;
  aspect-ratio: 16 / 10;
  min-height: 6.5rem;
  max-height: min(28vh, 12.5rem);
  background: #0b0d10;
}

.explore-venue-media iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

.explore-venue-media-gradient {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent 0%, rgba(5, 5, 8, 0.72) 100%);
  pointer-events: none;
  z-index: 2;
}

.explore-venue-media-overlay {
  position: absolute;
  left: 0.7rem;
  bottom: 0.7rem;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  pointer-events: none;
}

.explore-venue-media-fallback {
  display: block;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--venue-media-type-color, #ff8a00) 28%, transparent) 0%, transparent 62%),
    linear-gradient(165deg, #151820 0%, #0b0d10 55%, #08090c 100%);
}

.explore-venue-media-fallback[hidden] {
  display: none !important;
}

.explore-venue-media-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0b0d10;
}

.explore-venue-media-photo[hidden] {
  display: none !important;
}

.explore-venue-media-photo img {
  position: absolute;
  inset: 0;
  margin: auto;
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  pointer-events: none;
  user-select: none;
}

.explore-venue-media-controls {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.explore-venue-media-controls[hidden] {
  display: none !important;
}

.explore-venue-media-nav {
  pointer-events: auto;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: var(--fn-radius-control, 6px);
  background: rgba(8, 9, 12, 0.55);
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.35rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.explore-venue-media-nav.is-prev {
  left: 0.55rem;
}

.explore-venue-media-nav.is-next {
  right: 0.55rem;
}

.explore-venue-media-nav:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 2px;
}

.explore-venue-media-dots {
  pointer-events: auto;
  position: absolute;
  left: 50%;
  bottom: 0.55rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.35rem;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.4rem;
  border-radius: var(--fn-radius-round, 999px);
  background: rgba(8, 9, 12, 0.35);
}

.explore-venue-media-dot {
  width: 0.42rem;
  height: 0.42rem;
  border: 0;
  border-radius: var(--fn-radius-round, 999px);
  padding: 0;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
}

.explore-venue-media-dot.is-active {
  background: rgba(255, 255, 255, 0.95);
  width: 0.7rem;
}

.venue-info-panel-body.has-media-layout .explore-venue-media-photo:not([hidden]),
.venue-info-panel-body.has-photo-layout .explore-venue-media-photo:not([hidden]) {
  display: flex;
  align-items: center;
  justify-content: center;
}

.explore-venue-media-fallback-wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 13, 16, 0.15) 0%, rgba(11, 13, 16, 0.55) 100%);
  pointer-events: none;
}

.explore-venue-media-fallback-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.explore-venue-media-fallback-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 18px;
  background: color-mix(in srgb, var(--venue-media-type-color, #ff8a00) 18%, rgba(255, 255, 255, 0.04));
  border: 1px solid color-mix(in srgb, var(--venue-media-type-color, #ff8a00) 35%, rgba(255, 255, 255, 0.08));
  color: rgba(255, 255, 255, 0.82);
  opacity: 0.9;
}

.explore-venue-media-fallback-icon .fn-icon,
.explore-venue-media-fallback-icon svg {
  width: 1.55rem;
  height: 1.55rem;
}

.venue-info-panel-body.has-media-layout .explore-venue-card-top .venue-info-toolbar,
.venue-info-panel-body.has-video-layout .explore-venue-card-top .venue-info-toolbar {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 6;
}

.venue-info-panel-body:not(.has-media-layout):not(.has-video-layout) .explore-venue-media-wrap {
  display: none;
}

.venue-info-panel-body:not(.has-media-layout):not(.has-video-layout) .explore-venue-card-top .venue-info-toolbar {
  position: relative;
  top: auto;
  right: auto;
  z-index: 6;
  display: flex;
  justify-content: flex-end;
  padding: 0.5rem 0.55rem 0;
}

.venue-info-panel-body.has-video-layout .venue-info-video-preview:not([hidden]),
.venue-info-panel-body.has-media-layout .venue-info-video-preview:not([hidden]) {
  display: block;
  width: 100%;
  max-width: none;
  aspect-ratio: 16 / 10;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

.venue-info-close {
  min-width: 2.75rem;
  min-height: 2.75rem;
  background: rgba(8, 8, 14, 0.55);
  border-color: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

/* ── Identity header ──
   Shared across all tabs (Info, Live Rating, taxi, …). With media/video (or
   Live Rating in the photo slot), pull it up over the seam so transparent→opaque
   is visible against media — not restyled per tab. */
.explore-venue-card-header {
  flex: 0 1 auto;
  flex-shrink: 1;
  min-width: 0;
  min-height: 0;
  /* Tall event headers shrink/scroll so the Create Social Night CTA stays on-screen. */
  max-height: min(42%, 15rem);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  position: relative;
  z-index: 3;
  border-bottom: 1px solid rgba(255, 154, 46, 0.1);
  background:
    linear-gradient(180deg, rgba(8, 6, 16, 0.28) 0%, rgba(8, 6, 16, 0.72) 100%);
}

.venue-info-panel-body.has-media-layout .explore-venue-card-header,
.venue-info-panel-body.has-video-layout .explore-venue-card-header {
  /* Overlap the media seam so transparent top reveals photo / live-rating media
     (not panel chrome). Same treatment on every tab that uses the media slot. */
  margin-top: -1.65rem;
  padding-top: 0.95rem;
  background:
    linear-gradient(
      180deg,
      transparent 0%,
      rgba(8, 6, 16, 0.42) 36%,
      rgba(8, 6, 16, 0.88) 70%,
      rgba(8, 6, 16, 0.97) 100%
    );
}

.venue-info-content {
  padding: 0;
}

.explore-venue-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  overflow: visible;
  padding: 0.85rem 0.95rem 0.75rem;
}

.explore-venue-card-head {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  min-width: 0;
}

.explore-venue-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.55rem;
}

.explore-venue-name {
  font-size: clamp(1.15rem, 2.8vw, 1.35rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: #fff;
  font-weight: 750;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.explore-venue-hours-row {
  display: flex;
  align-items: center;
  min-height: 1.25rem;
}

.explore-venue-hours-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.explore-venue-hours-status.is-open {
  color: #8dffb8;
}

.explore-venue-hours-status.is-closed {
  color: rgba(255, 255, 255, 0.55);
}

.explore-venue-hours-dot {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: var(--fn-radius-round, 999px);
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.55);
}

.explore-venue-meta {
  display: block;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.74rem;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.explore-venue-address {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 0.78rem;
  line-height: 1.35;
  color: rgba(180, 176, 200, 0.82);
}

.explore-venue-tags-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.28rem 0.4rem;
  margin-top: 0.15rem;
  color: rgba(232, 215, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 550;
  line-height: 1.3;
}

.explore-venue-tag-sep {
  color: rgba(255, 255, 255, 0.28);
}

.explore-venue-tag-more {
  color: rgba(255, 255, 255, 0.45);
  font-weight: 600;
}

/* legacy pill tags (details / other surfaces) */
.explore-venue-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.explore-venue-tag {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  padding: 0.12rem 0.55rem;
  border-radius: var(--fn-radius-control, 6px);
  background: rgba(255, 138, 0, 0.12);
  border: 1px solid rgba(255, 154, 46, 0.28);
  color: #ffd7a8;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}

/* ── Scroll: tonight first ── */
.explore-venue-card-scroll:not([hidden]) {
  display: flex;
  flex-direction: column;
}

.explore-venue-card-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  border-top: 1px solid rgba(255, 154, 46, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 138, 0, 0.04) 0%, rgba(255, 138, 0, 0.015) 100%);
  /* Keep CTAs visible: middle section scrolls first on short screens. */
  max-height: 100%;
}

.explore-venue-card-scroll.is-photos-tab {
  overflow: hidden;
}

.explore-venue-card-scroll[hidden] {
  display: none;
}

.explore-venue-details-host {
  padding: 0;
}

.explore-venue-details-host:not([hidden]) {
  display: block;
}

.venue-info-panel-body:not(.has-video-layout) .venue-info-details-host:not([hidden]),
.venue-info-panel-body:not(.has-media-layout) .venue-info-details-host:not([hidden]) {
  display: block !important;
}

.explore-venue-details-host .venue-popup-details:not([hidden]) {
  display: grid;
  gap: 0.55rem;
  padding: 0.75rem 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.12);
}

.explore-venue-reviews-host {
  padding: 0.55rem 0.95rem 0.75rem;
}

.explore-venue-reviews-host:not([hidden]) {
  display: block;
}

.explore-venue-taxi-host {
  padding: 0.75rem 0.95rem 1rem;
}

.explore-venue-taxi-host:not([hidden]) {
  display: block;
}

.venue-info-panel-body:not(.has-video-layout) .venue-info-taxi-host:not([hidden]),
.venue-info-panel-body:not(.has-media-layout) .venue-info-taxi-host:not([hidden]) {
  display: block !important;
}

.explore-venue-main-host {
  padding: 0.8rem 0.95rem 1rem;
  order: -1;
}

.explore-venue-main-host:not([hidden]) {
  display: block;
}

.venue-info-panel-body:not(.has-video-layout) .venue-info-main-host:not([hidden]),
.venue-info-panel-body:not(.has-media-layout) .venue-info-main-host:not([hidden]) {
  display: block !important;
}

.venue-main-panel {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-width: 0;
}

.venue-main-kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.venue-main-tonight-hint {
  margin: -0.25rem 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
  line-height: 1.35;
}

.venue-main-vibe {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 3.1rem;
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 154, 46, 0.22);
  background: rgba(255, 138, 0, 0.14);
  box-sizing: border-box;
}

.venue-main-vibe.is-empty {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.venue-main-vibe-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 2rem;
  width: 2rem;
  height: 2rem;
  border-radius: var(--fn-radius-round, 999px);
  background: rgba(255, 138, 0, 0.18);
  color: #ffd7a8;
}

.venue-main-vibe.is-empty .venue-main-vibe-icon {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.45);
}

.venue-main-vibe-label {
  min-width: 0;
  color: #fff4e8;
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.3;
}

.venue-main-vibe.is-empty .venue-main-vibe-label {
  color: rgba(255, 255, 255, 0.52);
  font-weight: 500;
  font-size: 0.84rem;
}

.venue-main-empty {
  margin: 0;
  padding: 0.35rem 0.1rem 0.15rem;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.82rem;
  line-height: 1.35;
}

.venue-main-events,
.venue-main-meetups,
.venue-main-tours {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}

.venue-main-events-list,
.venue-main-meetups-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}

.venue-main-event,
.venue-main-meetup {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 154, 46, 0.18);
  background: rgba(12, 8, 24, 0.72);
  box-sizing: border-box;
}

.venue-main-meetup.is-link[data-href] {
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.venue-main-meetup.is-link[data-href]:hover {
  border-color: rgba(255, 154, 46, 0.42);
  background: rgba(22, 14, 36, 0.88);
}

a.venue-main-event.is-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

a.venue-main-event.is-link:hover,
a.venue-main-event.is-link:focus-visible {
  border-color: rgba(255, 154, 46, 0.42);
  background: rgba(22, 14, 36, 0.88);
  outline: none;
}

a.venue-main-event.is-link::after {
  content: "";
  flex: 0 0 auto;
  width: 0.45rem;
  height: 0.45rem;
  margin-left: 0.25rem;
  border-right: 2px solid rgba(255, 215, 168, 0.75);
  border-top: 2px solid rgba(255, 215, 168, 0.75);
  transform: rotate(45deg);
  opacity: 0.7;
}

.venue-main-event-copy,
.venue-main-meetup-copy {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

a.venue-main-meetup-copy {
  text-decoration: none;
  color: inherit;
}

.venue-main-event-title,
.venue-main-meetup-head {
  color: #fff;
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.venue-main-meetup-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.55rem;
  min-width: 0;
}

.venue-main-meetup-kind {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.45rem;
  border-radius: 6px;
  background: rgba(255, 138, 0, 0.2);
  color: #ffd7a8;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.venue-main-meetup-kind.is-one {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
}

.venue-main-event-when,
.venue-main-meetup-when {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
}

.venue-main-event-meta,
.venue-main-meetup-meta {
  margin: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.74rem;
  line-height: 1.3;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.venue-main-meetup-cta {
  flex: 0 0 auto;
  max-width: 42%;
  min-height: 2.5rem;
  padding: 0.45rem 0.75rem;
  border: 0;
  border-radius: var(--fn-radius-control, 6px);
  background: var(--fn-orange, #ff8a00);
  color: #1a0f08;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
}

.venue-main-meetup-cta:disabled {
  opacity: 0.55;
  cursor: default;
}

.venue-main-meetup-cta:active:not(:disabled) {
  transform: scale(0.98);
}

.venue-main-meetup-leave {
  flex: 0 0 auto;
  max-width: 42%;
  min-height: 2.5rem;
  padding: 0.4rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 650;
  cursor: pointer;
}

.venue-main-meetup-state {
  flex: 0 0 auto;
  max-width: 42%;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: right;
}

.venue-main-tours-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.55rem;
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  padding: 0.1rem 0 0.25rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
}

.venue-main-tours-row::-webkit-scrollbar {
  display: none;
}

.venue-main-tour-chip {
  display: flex;
  flex: 0 0 auto;
  align-items: stretch;
  gap: 0.55rem;
  width: 11.5rem;
  max-width: 70vw;
  min-height: 3.35rem;
  padding: 0.35rem 0.5rem 0.35rem 0.35rem;
  border: 1px solid rgba(255, 154, 46, 0.22);
  border-radius: var(--fn-radius-control, 6px);
  background: rgba(12, 8, 24, 0.72);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
}

.venue-main-tour-chip:active {
  transform: scale(0.985);
}

.venue-main-tour-cover {
  flex: 0 0 2.65rem;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 8px;
  object-fit: cover;
  background: rgba(255, 138, 0, 0.28);
}

.venue-main-tour-cover.is-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 215, 168, 0.85);
}

.venue-main-tour-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.12rem;
  min-width: 0;
}

.venue-main-tour-title {
  overflow: hidden;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.venue-main-tour-price {
  color: var(--fn-orange, #ff8a00);
  font-size: 0.72rem;
  font-weight: 700;
}

.venue-main-tour-status {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
  font-weight: 700;
}

.venue-main-tour-status.is-yours {
  color: var(--fn-orange, #ff8a00);
}

.venue-taxi-panel {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
}

.venue-taxi-kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.venue-taxi-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 100%;
  min-height: 3.35rem;
  padding: 0.7rem 0.85rem;
  border: 0;
  border-radius: var(--fn-radius-control, 6px);
  box-sizing: border-box;
  font: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
}

.venue-taxi-cta:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.venue-taxi-cta.is-yandex {
  background: #ffcc00;
  color: #111;
}

.venue-taxi-cta.is-uber {
  background: #000;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.venue-taxi-cta:not(:disabled):active {
  transform: scale(0.985);
}

.venue-taxi-logo {
  flex: 0 0 2.5rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 8px;
  overflow: hidden;
}

.venue-taxi-cta.is-yandex .venue-taxi-logo {
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.venue-taxi-cta.is-uber .venue-taxi-logo {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.venue-taxi-logo-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.venue-taxi-cta-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.venue-taxi-cta-title {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1.02rem;
  font-weight: 750;
  line-height: 1.2;
}

.venue-taxi-cta-chevron {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  opacity: 0.78;
}

.venue-taxi-cta-chevron .fn-icon,
.venue-taxi-cta-chevron .venue-action-glyph {
  width: 1.15rem;
  height: 1.15rem;
}

.explore-venue-card-scroll .venue-info-reviews-host:not([hidden]) {
  margin-top: 0;
  border-top: none;
  border-radius: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  padding: 0.55rem 0.95rem 0.75rem;
}

.explore-venue-card-scroll .venue-info-reviews-panel {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  padding: 0;
}

.explore-venue-card-scroll .venue-reviews-dock-expanded {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.explore-venue-card-scroll .venue-reviews-dock-head {
  flex: 0 0 auto;
}

.explore-venue-card-scroll .venue-info-reviews-panel-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

.explore-venue-card-scroll .venue-info-reviews-panel.is-tab-reviews .venue-info-reviews-panel-body {
  max-height: none;
  overflow-y: auto;
}

.explore-venue-card-scroll .venue-info-reviews-panel.is-tab-photos .venue-info-reviews-panel-body {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.explore-venue-card-scroll .venue-info-reviews-panel.is-tab-photos .venue-reviews-photo-gallery {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  gap: 0.4rem;
}

.explore-venue-card-scroll .venue-info-reviews-panel.is-tab-photos .venue-reviews-photo-hero {
  flex: 1 1 auto;
  min-height: 0;
  aspect-ratio: auto;
  max-height: 100%;
}

.explore-venue-card-scroll .venue-info-reviews-panel.is-tab-photos .venue-reviews-photo-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.explore-venue-card-scroll .venue-info-reviews-panel.is-tab-photos .venue-reviews-photo-thumbs {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: nowrap;
  max-height: none;
  overflow-x: auto;
  overflow-y: hidden;
  touch-action: pan-x;
  overscroll-behavior: contain;
}

.explore-venue-card-scroll .venue-info-reviews-panel.is-tab-photos .venue-reviews-photo-gallery.is-single .venue-reviews-photo-hero {
  aspect-ratio: auto;
}

/* ── Sticky footer: primary + secondary ── */
.explore-venue-card-footer {
  position: relative;
  flex: 0 0 auto;
  z-index: 4;
  padding: 0.65rem 0.85rem calc(0.7rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(255, 154, 46, 0.16);
  background:
    linear-gradient(180deg, rgba(14, 12, 22, 0.92) 0%, rgba(8, 8, 14, 0.98) 100%);
  box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.28);
}

.explore-venue-card-footer[hidden] {
  display: none !important;
}

.explore-venue-footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
}

.explore-venue-footer-toolbar {
  width: 100%;
}

.explore-venue-footer-engagement {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  min-width: 0;
}

.explore-venue-footer-engagement .explore-venue-secondary-ratings {
  flex: 1 1 auto;
  min-width: 0;
}

.explore-venue-footer-engagement .explore-venue-secondary-info,
.explore-venue-footer-engagement .explore-venue-secondary-taxi,
.explore-venue-footer-engagement .venue-engage-bookmark {
  flex: 0 0 auto;
}

.explore-venue-footer-toolbar.is-busy {
  opacity: 0.62;
  pointer-events: none;
}

.explore-venue-primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.85rem;
  padding: 0.7rem 1rem;
  border: 0;
  border-radius: var(--fn-radius-control, 6px);
  background: var(--fn-orange, #ff8a00);
  color: #1a0f08;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  outline: none;
  transition:
    transform 0.15s ease,
    filter 0.15s ease,
    box-shadow 0.15s ease;
  box-shadow: 0 0 0 1px rgba(255, 138, 0, 0.2), 0 6px 18px rgba(255, 138, 0, 0.18);
}

.explore-venue-primary-cta:hover:not(:disabled) {
  filter: brightness(1.05);
}

.explore-venue-primary-cta:active:not(:disabled) {
  transform: scale(0.985);
}

.explore-venue-primary-cta:focus:not(:focus-visible) {
  outline: none;
  box-shadow: 0 0 0 1px rgba(255, 138, 0, 0.2), 0 6px 18px rgba(255, 138, 0, 0.18);
}

.explore-venue-primary-cta:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.92);
  outline-offset: 3px;
}

.explore-venue-primary-cta:disabled {
  opacity: 0.55;
  cursor: default;
}

.explore-venue-secondary {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.explore-venue-secondary-ratings {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.explore-venue-secondary-ratings[hidden] {
  display: none !important;
}

.explore-venue-secondary-ratings::-webkit-scrollbar {
  display: none;
}

.explore-venue-secondary-ratings .venue-rating-sources {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: nowrap;
}

.explore-venue-secondary-btn,
.explore-venue-secondary .venue-engage-btn,
.explore-venue-secondary-ratings .venue-engage-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0 0.55rem;
  border-radius: var(--fn-radius-control, 6px);
  border: 1px solid rgba(255, 154, 46, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  outline: none;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.12s ease,
    box-shadow 0.18s ease;
}

.explore-venue-secondary-btn .fn-icon,
.explore-venue-secondary-btn .venue-action-glyph {
  width: 1.15rem;
  height: 1.15rem;
}

.explore-venue-secondary-btn:focus:not(:focus-visible),
.explore-venue-secondary .venue-engage-btn:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}

.explore-venue-secondary-btn:focus-visible,
.explore-venue-secondary .venue-engage-btn:focus-visible {
  outline: 2px solid rgba(255, 138, 0, 0.85);
  outline-offset: 2px;
}

.explore-venue-secondary-btn:active:not(:disabled),
.explore-venue-secondary .venue-engage-btn:active:not(:disabled) {
  transform: scale(0.96);
}

.explore-venue-secondary-btn.is-active,
.explore-venue-secondary .venue-engage-btn.is-active,
.explore-venue-secondary-ratings .venue-engage-btn.is-active {
  background: rgba(255, 138, 0, 0.2);
  border-color: rgba(255, 154, 46, 0.48);
  color: #fff;
}

.explore-venue-secondary-save.is-animating,
.explore-venue-footer-engagement .venue-engage-bookmark.is-animating {
  animation: explore-venue-save-pop 0.4s cubic-bezier(0.34, 1.45, 0.64, 1);
}

@keyframes explore-venue-save-pop {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.12);
  }
  100% {
    transform: scale(1);
  }
}

.explore-venue-secondary-more {
  margin-left: auto;
}

.explore-venue-more-glyph {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
}

.explore-venue-more-menu {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  padding: 0.15rem 0 0;
  overflow: hidden;
}

.explore-venue-more-menu:not([hidden]) {
  animation: fn-enter-soft 220ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.explore-venue-more-menu[hidden] {
  display: none !important;
}

.explore-venue-more-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.45rem 0.65rem;
  border-radius: var(--fn-radius-control, 6px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.88);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  outline: none;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.12s ease;
}

.explore-venue-more-item:active:not(:disabled) {
  transform: scale(0.98);
}

.explore-venue-more-item:focus-visible {
  outline: 2px solid rgba(255, 138, 0, 0.85);
  outline-offset: 2px;
}

.explore-venue-more-item .fn-icon,
.explore-venue-more-item .venue-action-glyph,
.explore-venue-more-item .venue-engage-glyph {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}

.explore-venue-more-item span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.explore-venue-more-item.is-active {
  background: rgba(255, 138, 0, 0.16);
  border-color: rgba(255, 154, 46, 0.4);
}

/* ── Neutralize legacy explore.css video-grid when using card shell ── */
.venue-info-panel-body.has-media-layout,
.venue-info-panel-body.has-video-layout {
  padding: 0 !important;
}

.venue-info-panel-body.has-media-layout .venue-info-content,
.venue-info-panel-body.has-video-layout .venue-info-content {
  display: block !important;
  padding: 0 !important;
}

.venue-info-panel-body.has-media-layout .venue-popup,
.venue-info-panel-body.has-video-layout .venue-popup {
  display: flex !important;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.venue-info-panel-body.has-media-layout .venue-info-video-preview:not([hidden]),
.venue-info-panel-body.has-video-layout .venue-info-video-preview:not([hidden]) {
  grid-column: auto !important;
  grid-row: auto !important;
  width: 100% !important;
  max-width: none !important;
  aspect-ratio: 16 / 10 !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

.venue-info-panel-body.has-media-layout .explore-venue-card-top .venue-info-toolbar,
.venue-info-panel-body.has-video-layout .explore-venue-card-top .venue-info-toolbar {
  position: absolute !important;
  top: 0.55rem;
  right: 0.55rem;
  grid-column: auto !important;
  grid-row: auto !important;
}

.venue-info-panel-body.has-media-layout:not(.has-video-layout) .venue-info-details-host:not([hidden]),
.venue-info-panel-body.has-media-layout:not(.has-video-layout) .venue-info-taxi-host:not([hidden]),
.venue-info-panel-body.has-media-layout:not(.has-video-layout) .venue-info-main-host:not([hidden]),
.venue-info-panel-body.has-media-layout:not(.has-video-layout) .venue-info-reviews-host:not([hidden]) {
  display: block !important;
}

.venue-info-panel-body.has-media-layout:not(.has-video-layout) .explore-venue-card-scroll .venue-info-reviews-host:not([hidden]) {
  display: flex !important;
}

.venue-rating-source-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.explore-venue-card .venue-popup-status {
  margin: 0.55rem 0 0;
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  font-size: 0.78rem;
  color: rgba(180, 176, 200, 0.88);
  background: rgba(255, 138, 0, 0.06);
  border: 1px dashed rgba(255, 154, 46, 0.22);
  text-align: center;
}

.explore-venue-card .venue-popup-badge-verified {
  background: rgba(255, 138, 0, 0.16);
  border-color: rgba(255, 154, 46, 0.38);
  color: #ffd7a8;
  font-size: 0.68rem;
}

.explore-venue-section-title {
  margin: 0 0 0.55rem;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.explore-venue-about {
  margin-top: 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.explore-venue-description {
  margin: 0;
  display: block;
  overflow: visible;
  padding: 0.58rem 0.74rem;
  border-radius: 14px;
  border-bottom-left-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.84rem;
  line-height: 1.48;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ── Wider map / tablet+: no bottom nav on explore ≥1100px (see shell) ── */
@media (min-width: 1024px) {
  .venue-info-panel:not(.is-list-embedded) {
    --fn-venue-panel-bottom-gap: 1rem;
    width: min(420px, calc(100% - 2rem));
    max-height: max(14rem, var(--fn-venue-panel-max-h));
  }

  .explore-venue-media {
    max-height: min(24vh, 11rem);
  }

  .explore-venue-card {
    padding: 0.95rem 1rem 0.8rem;
  }

  .explore-venue-card-footer {
    padding: 0.75rem 1rem 0.9rem;
  }

  .explore-venue-more-menu {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .venue-info-panel:not(.is-list-embedded) {
    /* Bottom nav hidden on explore desktop shell. */
    --fn-venue-panel-bottom-gap: 1rem;
    --fn-venue-panel-top-chrome: 4.25rem;
  }
}

/* Short / laptop / 22″ 1080p with browser chrome — shrink hero, keep footer CTAs */
@media (max-height: 900px) {
  .venue-info-panel:not(.is-list-embedded) {
    --fn-venue-panel-top-chrome: 3.25rem;
  }

  .explore-venue-media {
    aspect-ratio: 16 / 9;
    min-height: 5.25rem;
    max-height: min(22vh, 9.5rem);
  }

  .explore-venue-card {
    padding: 0.7rem 0.85rem 0.6rem;
  }

  .explore-venue-main-host,
  .explore-venue-taxi-host,
  .explore-venue-reviews-host {
    padding-top: 0.55rem;
    padding-bottom: 0.65rem;
  }

  .explore-venue-card-footer {
    padding: 0.5rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom, 0px));
  }

  .explore-venue-primary-cta {
    min-height: 2.75rem;
  }
}

@media (max-height: 740px) {
  .explore-venue-card-header {
    max-height: min(36%, 11rem);
  }

  .explore-venue-media {
    min-height: 4.25rem;
    max-height: min(18vh, 7.25rem);
  }

  .explore-venue-name {
    font-size: 1.05rem;
  }

  .venue-main-meetup,
  .venue-main-tour-chip {
    min-height: 2.5rem;
  }

  .explore-venue-card-footer {
    padding: 0.45rem 0.7rem calc(0.45rem + env(safe-area-inset-bottom, 0px));
  }
}

/*
 * Hide media only on short *desktop* windows. Mobile map cards must keep
 * photo / live-rating (often visualViewport < 600px with browser chrome).
 */
@media (max-height: 600px) and (min-width: 1100px) {
  .venue-info-panel:not(.is-list-embedded) .explore-venue-media-wrap {
    display: none;
  }

  .venue-info-panel:not(.is-list-embedded)
    .explore-venue-card-top:has(.explore-venue-media-wrap)
    .explore-venue-card-head {
    padding-top: 0.35rem;
  }
}

@media (max-width: 430px) {
  .venue-info-panel:not(.is-list-embedded) {
    width: calc(100% - 0.75rem);
  }

  .explore-venue-media {
    aspect-ratio: 16 / 9;
    min-height: 6rem;
  }

  .explore-venue-reviews-host {
    padding: 0.5rem 0.8rem 0.65rem;
  }

  .explore-venue-taxi-host,
  .explore-venue-main-host {
    padding: 0.7rem 0.8rem 0.85rem;
  }

  .explore-venue-card {
    padding: 0.75rem 0.8rem 0.7rem;
  }

  .explore-venue-name {
    font-size: 1.12rem;
  }

  .explore-venue-card-footer {
    padding: 0.6rem 0.75rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
  }

  .explore-venue-primary-cta {
    min-height: 3rem;
  }

  .explore-venue-secondary-btn,
  .explore-venue-secondary .venue-engage-btn {
    min-width: 2.75rem;
    min-height: 2.75rem;
  }

  .explore-venue-more-menu {
    grid-template-columns: 1fr 1fr;
  }
}

.explore-venue-card-footer .venue-popup-engagement {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

@media (prefers-reduced-motion: reduce) {
  .explore-venue-primary-cta,
.venue-main-meetup-cta,
.venue-main-tour-chip,
.venue-taxi-cta {
    transition: none;
  }

  .explore-venue-primary-cta:active:not(:disabled),
  .venue-taxi-cta:not(:disabled):active,
  .venue-main-meetup-cta:active:not(:disabled),
  .venue-main-tour-chip:active {
    transform: none;
  }
}
