/* Venue info modal — one layout for guest + staff (full-height, hero + logo overlay) */
@import url('./header-chrome.css');
@import url('./fullsheet-modal.css');

.overlay[data-venue-info-overlay] {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.overlay[data-venue-info-overlay].open { opacity: 1; pointer-events: auto; }
html[data-theme="light"] .overlay[data-venue-info-overlay] {
  background: rgba(20, 18, 14, 0.52);
}

.sheet.info-modal[data-venue-info-modal] {
  position: fixed;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 100%;
  max-width: min(520px, 100%);
  height: 100dvh;
  max-height: 100dvh;
  background: var(--surface, #1f1f1f);
  border-radius: 0;
  z-index: 10001;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}
.sheet.info-modal[data-venue-info-modal].open { transform: translateX(-50%) translateY(0); }

.sheet.info-modal[data-venue-info-modal] .sheet-body {
  padding: 0;
}

/* Hero + logo overlay header */
.sheet.info-modal[data-venue-info-modal] .info-modal-hero-wrap {
  position: relative;
  flex-shrink: 0;
}
.sheet.info-modal[data-venue-info-modal] .info-modal-hero-img {
  display: block;
  width: 100%;
  height: min(48vh, 400px);
  max-height: min(48vh, 400px);
  object-fit: cover;
  object-position: center;
  margin: 0;
  border-radius: 0;
}
.sheet.info-modal[data-venue-info-modal] .info-modal-hero-wrap--plain {
  min-height: calc(var(--header-chrome-pad-y-safe, 12px) + var(--header-chrome-logo-row-h, 28px) + 24px);
  background: var(--surface-light, #2a2a2a);
}
.sheet.info-modal[data-venue-info-modal] .info-modal-hero-shade-top {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(31, 31, 31, 0.94) 0%, transparent 58%);
}
html[data-theme="light"] .sheet.info-modal[data-venue-info-modal] .info-modal-hero-shade-top {
  background: linear-gradient(to bottom, rgba(20, 18, 14, 0.88) 0%, transparent 58%);
}
.sheet.info-modal[data-venue-info-modal] .info-modal-hero-wrap--plain .info-modal-hero-shade-top {
  background: linear-gradient(to bottom, var(--surface-light, #2a2a2a) 0%, transparent 70%);
}
.sheet.info-modal[data-venue-info-modal] .info-modal-brand-overlay {
  position: absolute;
  top: var(--header-chrome-pad-y-safe, 12px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  pointer-events: none;
}

.sheet.info-modal[data-venue-info-modal] .info-modal-scroll-content {
  padding: 12px 20px calc(24px + env(safe-area-inset-bottom, 0px));
}
.sheet.info-modal[data-venue-info-modal] .info-modal-scroll-content .info-hero {
  display: none;
}

.info-tagline {
  font-family: var(--font-brand, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  color: var(--accent, #C5A059);
  font-size: 0.85rem;
  margin-bottom: 8px;
}
.info-about {
  color: var(--muted, #aaa);
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.info-section-title {
  font-family: var(--font-brand, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  font-size: 1.05rem;
  margin: 20px 0 12px;
}
.info-notice {
  background: rgba(231, 76, 60, 0.12);
  border: 1px solid rgba(231, 76, 60, 0.35);
  border-radius: var(--radius, 12px);
  padding: 12px 14px;
  font-size: 0.88rem;
  margin-bottom: 14px;
}

.info-venue-card {
  background: var(--surface-light, #2a2a2a);
  border: 1px solid var(--border, #333);
  border-radius: var(--radius, 12px);
  padding: 14px 16px;
  margin-bottom: 10px;
}
.info-venue-card.current {
  border-color: rgba(197, 160, 89, 0.55);
  box-shadow: 0 0 0 1px rgba(197, 160, 89, 0.12);
}
.info-venue-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.info-venue-name { font-weight: 700; font-size: 0.92rem; }
.info-venue-badge {
  flex-shrink: 0;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
}
.info-venue-badge:hover { filter: brightness(1.1); }
.info-venue-badge.open {
  background: rgba(39, 174, 96, 0.15);
  color: var(--success, #27ae60);
  border: 1px solid rgba(39, 174, 96, 0.35);
}
.info-venue-badge.closed {
  background: rgba(231, 76, 60, 0.12);
  color: var(--danger, #e74c3c);
  border: 1px solid rgba(231, 76, 60, 0.35);
}
.info-venue-here {
  font-size: 0.68rem;
  color: var(--accent, #C5A059);
  margin-bottom: 6px;
  font-weight: 600;
}
.info-venue-address {
  font-size: 0.86rem;
  color: var(--muted, #aaa);
  margin-bottom: 8px;
}
.info-venue-google { margin-bottom: 8px; font-size: 0.86rem; }
.info-venue-rating-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.info-venue-rating-link:hover .info-venue-rating { filter: brightness(1.12); }
.info-venue-rating { font-weight: 700; color: var(--accent, #C5A059); }
.info-venue-rating-star { color: #f5b301; }
.info-venue-hours {
  font-size: 0.84rem;
  color: var(--text, #fff);
  margin-bottom: 12px;
}
.info-venue-hours-label {
  color: var(--muted, #aaa);
  font-weight: 600;
}
.info-venue-hours-row {
  font-size: 0.84rem;
  color: var(--text, #fff);
  line-height: 1.4;
}
.info-venue-hours-row--tz { margin-top: 4px; }
.info-venue-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.info-venue-actions a {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 20px;
  border: 1px solid var(--border, #333);
  background: var(--surface, #1f1f1f);
  color: var(--text, #fff);
  font-size: 0.76rem;
  font-weight: 600;
  text-decoration: none;
}
.info-venue-actions a.primary {
  border-color: rgba(197, 160, 89, 0.45);
  color: var(--accent, #C5A059);
}

.info-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.info-gallery-item {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--surface-light, #2a2a2a);
  border: none;
  padding: 0;
  cursor: pointer;
}
.info-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.info-social-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  padding: 16px 0 8px;
}
.info-social-row a {
  display: inline-flex;
  width: 44px;
  height: 44px;
  text-decoration: none;
}
.info-social-row svg { width: 44px; height: 44px; display: block; }
html[data-theme="light"] .info-social-row svg path { fill: #111111; }

/* Staff compact zoom (0.8): taller units — scoped to zoomed staff pages only */
@media (max-width: 399px) {
  body.staff-page-cashier .overlay[data-venue-info-overlay],
  body.staff-page-admin .overlay[data-venue-info-overlay],
  body.staff-page-qr .overlay[data-venue-info-overlay],
  body.staff-page-chef .overlay[data-venue-info-overlay] {
    width: 125vw;
    height: 125dvh;
    min-height: 125dvh;
  }
  body.staff-page-cashier .sheet.info-modal[data-venue-info-modal],
  body.staff-page-admin .sheet.info-modal[data-venue-info-modal],
  body.staff-page-qr .sheet.info-modal[data-venue-info-modal],
  body.staff-page-chef .sheet.info-modal[data-venue-info-modal] {
    height: 125dvh;
    max-height: 125dvh;
  }
}
