/* Conference Venues SA - Modern Design System */

/* ===== Custom Properties ===== */
:root {
  --primary: #0f172a;
  --primary-light: #1e293b;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-light: #dbeafe;
  --surface: #f8fafc;
  --surface-alt: #f1f5f9;
  --text: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border: #e2e8f0;
  --white: #ffffff;
  --success: #059669;
  --error: #dc2626;
  --gold: #f59e0b;
  --radius: 0.75rem;
  --radius-lg: 1rem;
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  --transition: all 0.2s ease;
}

/* ===== Base ===== */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-hover); }

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary);
}

/* ===== Navigation ===== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.95);
}

.nav-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
  flex-shrink: 0;
  margin-right: 2rem;
}

.nav-logo span { color: var(--accent); }

.nav-links { display: flex; gap: 2rem; align-items: center; margin-left: auto; flex-shrink: 0; }

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.nav-cta {
  background: var(--accent) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: 0.5rem !important;
  border-bottom: none !important;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--accent-hover) !important;
  color: var(--white) !important;
}

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--primary);
  margin-left: auto;
}

.mobile-nav {
  display: none;
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.mobile-nav a {
  display: block;
  padding: 0.75rem 0;
  color: var(--text);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}

.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav.open { display: block; }

/* Mobile menu (Tailwind toggle variant) */
#mobile-menu {
  background: var(--white);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 0.5rem 0;
}

#mobile-menu a {
  padding: 0.75rem 1.25rem;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }

  /* Pin hamburger to the right edge of the screen */
  #mobile-menu-btn {
    position: fixed;
    right: 1rem;
    top: 0.5rem;
    z-index: 110;
    background: var(--white);
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  }

  /* Dropdown positioned below the nav bar, not overlapping hamburger */
  .site-nav {
    position: relative;
  }

  #mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 105;
    border-top: 1px solid var(--border);
  }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary) 0%, #1e3a5f 50%, var(--accent) 100%);
  padding: 5rem 1.5rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-inner {
  position: relative;
  max-width: 80rem;
  margin: 0 auto;
  text-align: center;
  color: var(--white);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 40rem;
  margin: 0 auto 2rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  color: var(--accent);
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 1.125rem;
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
  color: var(--accent-hover);
}

/* ===== Page Header (for inner pages) ===== */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, #1e3a5f 100%);
  padding: 3rem 1.5rem;
  color: var(--white);
}

.page-header-inner {
  max-width: 80rem;
  margin: 0 auto;
}

.page-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--white);
  margin-bottom: 0.5rem;
}

.page-header p {
  opacity: 0.8;
  font-size: 1.1rem;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  background: var(--surface);
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.breadcrumb-inner {
  max-width: 80rem;
  margin: 0 auto;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.breadcrumb a { color: var(--accent); }
.breadcrumb span.sep { margin: 0 0.5rem; color: var(--text-light); }

/* ===== Sections ===== */
.section {
  padding: 5rem 1.5rem;
}

.section-alt {
  background: var(--surface);
}

.section-inner {
  max-width: 80rem;
  margin: 0 auto;
}

.section-heading {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 0.5rem;
}

.section-subheading {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

/* ===== Cards ===== */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: transparent;
}

.card-img {
  width: 100%;
  height: 12rem;
  object-fit: cover;
}

.card-img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, #1e3a5f 100%);
  color: rgba(255,255,255,0.4);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.card-body { padding: 1.5rem; }

.card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.card-meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.card-meta .badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--surface);
  padding: 0.2rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
}

.card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===== Province Grid ===== */
.province-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.province-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
  text-decoration: none;
  color: var(--text);
}

.province-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  color: var(--accent);
}

.province-card .icon {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--accent-light);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.province-card .label {
  font-weight: 600;
  font-size: 0.9375rem;
}

.province-card .count {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ===== Category Cards ===== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.category-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  transition: var(--transition);
}

.category-card:hover { transform: translateY(-4px); }

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.category-card:hover img { transform: scale(1.05); }

.category-card .overlay {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: var(--white);
}

.category-card .overlay h3 {
  color: var(--white);
  font-size: 1.25rem;
  margin: 0;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--white);
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-secondary:hover {
  background: var(--accent);
  color: var(--white);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.0625rem;
}

/* ===== Forms ===== */
.form-group { margin-bottom: 1.5rem; }

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--white);
  transition: var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-message {
  padding: 1rem;
  border-radius: 0.5rem;
  margin-top: 1rem;
}

.form-message.success {
  background: #ecfdf5;
  color: var(--success);
  border: 1px solid #a7f3d0;
}

.form-message.error {
  background: #fef2f2;
  color: var(--error);
  border: 1px solid #fecaca;
}

/* ===== Stats ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item .stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-item .stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.7);
  padding: 3rem 1.5rem 2rem;
}

.footer-inner {
  max-width: 80rem;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  padding: 0.25rem 0;
  transition: var(--transition);
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
}

/* ===== Content Layout ===== */
.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .content-grid { grid-template-columns: 280px 1fr; }
}

.sidebar {
  position: sticky;
  top: 5rem;
  align-self: start;
}

.sidebar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.sidebar-card h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.sidebar-link {
  display: block;
  padding: 0.5rem 0.75rem;
  margin: 0.25rem 0;
  border-radius: 0.375rem;
  color: var(--text);
  font-size: 0.875rem;
  transition: var(--transition);
}

.sidebar-link:hover {
  background: var(--accent-light);
  color: var(--accent);
}

/* ===== Venue Grid ===== */
.venue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.venue-province-heading,
.venue-grid {
  grid-column: 1 / -1;
}

.venue-province-heading {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  padding: 0.75rem 1rem;
  background: var(--accent-light);
  border-radius: 0.5rem;
  border-left: 4px solid var(--accent);
  margin-top: 1rem;
}

/* ===== FAQ Section ===== */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}

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

.faq-question {
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.faq-question::before {
  content: 'Q';
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
}

.faq-answer {
  color: var(--text-muted);
  line-height: 1.7;
  padding-left: 2.5rem;
}

/* ===== CTA Banner ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  padding: 3rem 1.5rem;
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--white);
}

.cta-banner h2 { color: var(--white); font-size: 1.75rem; margin-bottom: 0.75rem; }
.cta-banner p { opacity: 0.9; margin-bottom: 1.5rem; max-width: 40rem; margin-left: auto; margin-right: auto; }

.cta-banner .btn {
  background: var(--white);
  color: var(--accent);
}

.cta-banner .btn:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-2px);
}

/* ===== Utilities ===== */
.container { max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; }
.text-center { text-align: center; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .section { padding: 3rem 1rem; }
  .hero { padding: 3rem 1rem; }
}

/* ===== Prose content ===== */
.prose { max-width: 65ch; }
.prose p { margin-bottom: 1rem; color: var(--text-muted); line-height: 1.8; }
.prose h2 { font-size: 1.5rem; margin: 2rem 0 1rem; }
.prose h3 { font-size: 1.25rem; margin: 1.5rem 0 0.75rem; }
.prose ul, .prose ol { margin-bottom: 1rem; padding-left: 1.5rem; color: var(--text-muted); }
.prose li { margin-bottom: 0.5rem; line-height: 1.7; }

/* ===== Venue Detail Modal ===== */
.venue-card-clickable {
  cursor: pointer;
}

.venue-card-clickable:hover {
  border-color: var(--accent);
}

#venue-detail-modal,
#email-gate-modal {
  -webkit-overflow-scrolling: touch;
}

/* Badge container for venue cards */
.badge-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--surface);
  padding: 0.2rem 0.6rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ===== Search Filter Bar ===== */
.search-filter-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: end;
}

@media (min-width: 640px) {
  .search-filter-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .search-filter-grid { grid-template-columns: repeat(5, 1fr); }
}

/* ===== Modal Overlays ===== */
/* These classes aren't in our static Tailwind build, so we define them here */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 200;
}

.modal-overlay.hidden { display: none; }

.modal-backdrop {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.modal-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 1rem;
  position: relative;
}

.modal-scroll-container {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 100%;
  padding: 1rem;
  padding-top: 2rem;
  overflow-y: auto;
  position: relative;
  -webkit-overflow-scrolling: touch;
}

.modal-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  max-width: 28rem;
  width: 100%;
  z-index: 10;
  padding: 2rem;
}

.modal-card-lg {
  max-width: 42rem;
  padding: 0;
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-muted);
  border: none;
  cursor: pointer;
  font-size: 1.25rem;
  z-index: 20;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--border);
  color: var(--text);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeInUp 0.5s ease forwards;
}

/* Staggered delays */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ===== Venue Gallery ===== */

.venue-gallery {
  max-width: 80rem;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 0;
}

/* Shared cell styles */
.gallery-cell {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--primary-light);
}

.gallery-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-cell:hover img {
  transform: scale(1.04);
}

/* --- Grid: 5-cell Airbnb layout (5+ images) --- */
/* aspect-ratio set inline from primary image dimensions, clamped 1.5–2.5 */
.venue-gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.375rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-height: 520px;
}

.venue-gallery-grid .gallery-cell:first-child {
  grid-row: 1 / -1;
}

/* "View all" overlay on last cell */
.gallery-cell-more::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.2);
  transition: background 0.25s ease;
  pointer-events: none;
}

.gallery-cell-more:hover::after {
  background: rgba(0,0,0,0.08);
}

.gallery-view-all {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: var(--white);
  color: var(--primary);
  padding: 0.5rem 0.875rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  z-index: 2;
  box-shadow: var(--shadow);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  pointer-events: none;
}

@media (max-width: 640px) {
  .venue-gallery { padding: 0.75rem 1rem 0; }

  .venue-gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    aspect-ratio: auto;
  }

  .venue-gallery-grid .gallery-cell:first-child {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 180px;
    max-height: 300px;
  }

  .venue-gallery-grid .gallery-cell:nth-child(n+2) {
    min-height: 100px;
    max-height: 180px;
  }

  .venue-gallery-grid .gallery-cell:nth-child(3),
  .venue-gallery-grid .gallery-cell:nth-child(4) {
    display: none;
  }

  .gallery-view-all {
    bottom: 0.5rem;
    right: 0.5rem;
    font-size: 0.75rem;
    padding: 0.375rem 0.625rem;
  }
}

/* --- Featured: main + thumb strip (2-4 images) --- */
/* --- 2 images: side by side on desktop, stacked on mobile --- */
.venue-gallery-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.375rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.gallery-duo-cell {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  cursor: pointer;
  border-radius: 0.5rem;
  background: var(--primary-light);
}

.gallery-duo-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-duo-cell:hover img {
  transform: scale(1.02);
}

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

  .gallery-duo-cell {
    max-height: 250px;
  }
}

.venue-gallery-featured {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* aspect-ratio set inline from image dimensions, clamped 3:4–21:9 */
.gallery-featured-main {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--primary-light);
  border-radius: var(--radius-lg);
  max-height: 520px;
}

.gallery-featured-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-featured-main:hover img {
  transform: scale(1.02);
}

/* Click hint on hover */
.gallery-featured-main::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background 0.25s ease;
  pointer-events: none;
}

.gallery-featured-main:hover::after {
  background: rgba(0,0,0,0.04);
}

.gallery-featured-thumbs {
  display: flex;
  gap: 0.375rem;
  margin-top: 0.375rem;
}

.gallery-featured-thumbs .gallery-cell {
  flex: 1;
  aspect-ratio: 3 / 2;
  border-radius: 0.5rem;
}

@media (max-width: 640px) {
  .gallery-featured-main {
    max-height: 300px;
  }

  .gallery-featured-thumbs .gallery-cell {
    aspect-ratio: 1;
  }
}

/* --- Single image: constrain width so portrait images don't stretch full-width --- */
.venue-gallery-single .gallery-featured-main {
  max-width: 720px;
}

/* --- No-image: Branded Hero --- */
.venue-gallery-placeholder {
  background: linear-gradient(135deg, var(--primary) 0%, #1e3a5f 50%, var(--accent) 100%);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.venue-gallery-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.venue-hero-branded {
  display: flex;
  align-items: flex-end;
  padding: 3rem 2.5rem;
  min-height: 280px;
}

.venue-hero-content {
  position: relative;
  z-index: 1;
  max-width: 44rem;
}

.venue-hero-type {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.12);
  padding: 0.3rem 0.75rem;
  border-radius: 0.375rem;
  margin-bottom: 0.875rem;
}

.venue-hero-name {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  overflow-wrap: break-word;
  word-break: break-word;
}

.venue-hero-location {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

.venue-hero-location svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.venue-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.venue-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--white);
  background: rgba(255,255,255,0.15);
  padding: 0.35rem 0.75rem;
  border-radius: 0.375rem;
}

@media (max-width: 640px) {
  .venue-hero-branded {
    padding: 2rem 1.25rem;
    min-height: 220px;
  }
}

/* --- Venue Header (below gallery) --- */
.venue-header {
  max-width: 80rem;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 0;
}

.venue-title {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.venue-location {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-top: 0.25rem;
}

.venue-location svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .venue-header { padding: 1rem 1rem 0; }
}

/* ===== Venue Quick Facts ===== */
.venue-facts {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.venue-fact {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: 0.875rem;
}

.venue-fact dt {
  color: var(--text-muted);
  flex-shrink: 0;
}

.venue-fact dd {
  font-weight: 500;
  color: var(--primary);
  text-align: right;
  overflow-wrap: break-word;
  word-break: break-word;
  min-width: 0;
}

/* Full-width fact (address) — stacks label above value */
.venue-fact-full {
  flex-direction: column;
  gap: 0.25rem;
}

.venue-fact-full dd {
  text-align: left;
  line-height: 1.5;
}

.venue-stars {
  color: var(--gold);
  letter-spacing: 0.05em;
}

/* ===== Venue Page Robustness ===== */

/* Long venue names in h1 */
.venue-title {
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

/* Long descriptions */
.prose p {
  overflow-wrap: break-word;
}

/* Badge row — ensure wrapping on mobile */
.venue-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ===== Venue Lightbox ===== */
.venue-lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0,0,0,0.93);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.venue-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.85);
  border: none;
  cursor: pointer;
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10;
  line-height: 1;
}

.venue-lightbox-close:hover {
  background: rgba(255,255,255,0.25);
}

.venue-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.85);
  border: none;
  cursor: pointer;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10;
  line-height: 1;
}

.venue-lightbox-nav:hover {
  background: rgba(255,255,255,0.25);
}

.venue-lightbox-prev { left: 1rem; }
.venue-lightbox-next { right: 1rem; }

.venue-lightbox-stage {
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.venue-lightbox-stage img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 0.25rem;
  user-select: none;
  -webkit-user-select: none;
}

.venue-lightbox-counter {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  margin-top: 1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

@media (max-width: 640px) {
  .venue-lightbox-nav {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.5rem;
  }

  .venue-lightbox-prev { left: 0.5rem; }
  .venue-lightbox-next { right: 0.5rem; }

  .venue-lightbox-close {
    top: 0.5rem;
    right: 0.5rem;
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1.5rem;
  }
}
