/* ============================
   Location Pages — shared styles
   Extends theme.css
   ============================ */

/* LOCATION HERO */
.loc-hero {
  padding: 140px 60px 80px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.loc-hero::before {
  content: '';
  position: absolute;
  top: 60px;
  left: -80px;
  width: 60%;
  height: 70%;
  background: radial-gradient(ellipse at center, var(--accent-dim) 0%, transparent 65%);
  pointer-events: none;
}

.loc-hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.loc-eyebrow-tag {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

.loc-eyebrow-sep {
  width: 40px;
  height: 1px;
  background: var(--border);
}

.loc-hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--fg);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.loc-hero-title em {
  font-style: italic;
  color: var(--accent);
}

.loc-hero-tagline {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--fg-muted);
  max-width: 500px;
  margin-bottom: 40px;
}

.loc-hero-meta {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.loc-meta-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.loc-meta-stat .stat-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}

.loc-meta-stat .stat-label {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* LOCATION NAV BACK */
.loc-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
  position: relative;
  z-index: 1;
}

.loc-back {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.loc-back:hover {
  color: var(--fg);
}

.loc-back svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* BODY GRID */
.loc-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px 100px;
}

.loc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 80px;
}

/* HOURS */
.loc-hours {
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 40px;
}

.loc-hours-title {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 32px;
}

.hours-day-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.hours-day-row:last-child {
  border-bottom: none;
}

.hours-day {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.hours-time {
  font-size: 0.85rem;
  color: var(--fg);
}

.hours-closed {
  color: var(--fg-dim);
}

.loc-special-note {
  margin-top: 24px;
  font-size: 0.78rem;
  color: var(--fg-muted);
  font-style: italic;
  line-height: 1.6;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* DIRECTIONS */
.loc-directions {
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 40px;
}

.loc-directions-title {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 32px;
}

.loc-address-block {
  margin-bottom: 32px;
}

.loc-address-label {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 8px;
}

.loc-address-text {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--fg);
  line-height: 1.2;
  margin-bottom: 8px;
}

.loc-address-sub {
  font-size: 0.8rem;
  color: var(--fg-muted);
}

.loc-map-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  border: 1px solid var(--border);
  padding: 10px 18px;
  transition: background 0.2s, color 0.2s;
}

.loc-map-link:hover {
  background: var(--accent-dim);
}

.loc-map-link svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.loc-transit {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.loc-transit-title {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 12px;
}

.loc-transit-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.loc-transit-item {
  font-size: 0.8rem;
  color: var(--fg-muted);
}

/* EVENTS */
.loc-events-section {
  border-top: 1px solid var(--border);
  padding-top: 80px;
}

.loc-events-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 48px;
}

.loc-events-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--fg);
}

.loc-events-subtitle {
  font-size: 0.75rem;
  color: var(--fg-dim);
  letter-spacing: 0.08em;
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.event-row {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 24px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.event-row:first-child {
  border-top: 1px solid var(--border);
}

.event-date-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.event-month {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.event-day {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--fg);
  line-height: 1;
}

.event-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.event-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.2;
}

.event-time {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  text-transform: uppercase;
}

.event-desc {
  font-size: 0.82rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

.event-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid var(--border);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  white-space: nowrap;
  align-self: start;
  margin-top: 4px;
}

/* LOYALTY CTA */
.loc-loyalty-cta {
  margin-top: 80px;
  padding: 60px;
  border: 1px solid var(--border);
  background: var(--accent-glow);
  text-align: center;
}

.loc-loyalty-cta-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--fg);
  margin-bottom: 16px;
}

.loc-loyalty-cta-body {
  font-size: 0.9rem;
  color: var(--fg-muted);
  max-width: 480px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 28px;
  transition: opacity 0.2s;
}

.btn-primary:hover {
  opacity: 0.85;
}

/* MAP EMBED */
.loc-map-embed {
  width: 100%;
  margin-top: 24px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.loc-map-embed iframe {
  width: 100%;
  height: 220px;
  display: block;
  border: 0;
}

/* GET DIRECTIONS CTA */
.loc-directions-cta {
  margin-top: 16px;
}

/* ============================
   PHOTO GALLERY
   ============================ */
.loc-gallery-section {
  border-top: 1px solid var(--border);
  padding-top: 80px;
  margin-top: 80px;
}

.loc-gallery-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 48px;
}

.loc-gallery-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--fg);
}

.loc-gallery-subtitle {
  font-size: 0.75rem;
  color: var(--fg-dim);
  letter-spacing: 0.08em;
}

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

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.gallery-item:nth-child(1) {
  grid-column: span 2;
  aspect-ratio: 2/1;
}

.gallery-item:nth-child(4) {
  grid-column: span 2;
  aspect-ratio: 2/1;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, filter 0.3s ease;
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  color: var(--fg-dim);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery-placeholder svg {
  width: 28px;
  height: 28px;
  stroke: var(--fg-dim);
  fill: none;
  stroke-width: 1.5;
  opacity: 0.6;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.03);
  filter: brightness(1.08);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  pointer-events: none;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-overlay span {
  font-size: 0.7rem;
  color: rgba(245, 230, 200, 0.9);
  letter-spacing: 0.06em;
}

/* LIGHTBOX */
#gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 12, 12, 0.96);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#gallery-lightbox.is-open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  display: block;
  border: 1px solid var(--border);
}

#lightbox-caption {
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--fg-muted);
  letter-spacing: 0.06em;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: -48px;
  right: 0;
  background: none;
  border: none;
  color: var(--fg-muted);
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.lightbox-close:hover { color: var(--fg); }

.lightbox-close svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 1px solid var(--border);
  color: var(--fg-muted);
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.lightbox-nav:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--fg);
}

.lightbox-nav svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

#lightbox-prev { left: -60px; }
#lightbox-next { right: -60px; }

.lightbox-counter {
  margin-top: 10px;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--fg-dim);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .loc-hero {
    padding: 120px 32px 60px;
  }

  .loc-body {
    padding: 0 32px 80px;
  }

  .loc-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .loc-events-header {
    flex-direction: column;
    gap: 8px;
  }

  .event-row {
    grid-template-columns: 80px 1fr;
  }

  .event-badge {
    grid-column: 2;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item:nth-child(1),
  .gallery-item:nth-child(4) {
    grid-column: span 1;
    aspect-ratio: 1;
  }

  #lightbox-prev { left: 8px; }
  #lightbox-next { right: 8px; }
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item:nth-child(1),
  .gallery-item:nth-child(4) {
    grid-column: span 1;
    aspect-ratio: 1;
  }
}