/* ============================================================
   venue.css — Venue page
   ============================================================ */

/* Layout: vertical tabs left + panel right */
.venue-layout {
  display: flex;
  gap: 36px;
  align-items: flex-start;
}

/* Vertical Tabs */
.venue-tabs {
  flex: 0 0 220px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: sticky;
  top: 96px;
}

.venue-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-white);
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-mid);
  font-size: 0.9rem;
  font-weight: 600;
}

.venue-tab:hover {
  border-color: var(--primary-light);
  color: var(--primary);
  background: var(--bg-light);
  transform: translateX(4px);
}

.venue-tab.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-md);
  transform: translateX(0);
}

.vtab-icon { font-size: 1.1rem; }

/* Venue Panels */
.venue-panels {
  flex: 1;
  min-width: 0;
}

.venue-panel {
  display: none;
  animation: fadeIn 0.4s ease;
}

.venue-panel.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* Gallery */
.venue-gallery {
  margin-bottom: 32px;
}

.gallery-main {
  width: 100%;
  aspect-ratio: 16/7;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: var(--shadow-md);
}

.venue-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-thumbs {
  display: flex;
  gap: 10px;
}

.gallery-thumb {
  width: 100px;
  height: 64px;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  flex-shrink: 0;
  background: var(--bg-light);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-thumb:hover { border-color: var(--primary-light); }
.gallery-thumb.active { border-color: var(--primary); }

.main-img {
  transition: background 0.35s ease, font-size 0.3s ease;
  cursor: pointer;
}

/* Venue Info */
.venue-info {}

.venue-info h3 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.venue-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.venue-meta span {
  font-size: 0.9rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 4px;
}

.venue-desc {
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 24px;
  font-size: 0.97rem;
}

.venue-features {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 32px;
  padding: 24px;
  background: var(--bg-light);
  border-radius: var(--radius);
}

.venue-features li {
  font-size: 0.9rem;
  color: var(--text-mid);
}

/* Map placeholder */
.map-placeholder {
  background: var(--bg-light);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  color: var(--text-light);
}

.map-placeholder > div { font-size: 3rem; margin-bottom: 12px; }
.map-placeholder p { font-size: 0.9rem; }

#map-main, #map-hall1, #map-hall2, #map-hall3, #map-exhibition {
  width: 100%;
  height: 250px;
  z-index: 1;
}

/* Custom marker styles */
.custom-marker {
  background: transparent !important;
  border: none !important;
}

/* Leaflet Popup Styles */
.leaflet-popup-content-wrapper {
  border-radius: 12px !important;
  box-shadow: 0 8px 32px rgba(0,56,167,0.18) !important;
  border: 1.5px solid rgba(0,56,167,0.15) !important;
  padding: 0 !important;
}

.leaflet-popup-content {
  margin: 14px 16px !important;
  line-height: 1.5;
}

.leaflet-popuptip {
  background: #fff !important;
  box-shadow: none !important;
}

.leaflet-popup-close-button {
  color: var(--text-light) !important;
  font-size: 18px !important;
  padding: 8px !important;
}

.leaflet-popup-close-button:hover {
  color: var(--primary) !important;
}

.leaflet-popup-content .popup-name {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 3px;
  line-height: 1.3;
}

.leaflet-popup-content .popup-meta {
  font-size: 0.73rem;
  color: var(--text-mid);
  line-height: 1.55;
}

/* Responsive */
@media (max-width: 1024px) {
  .venue-tabs { flex: 0 0 180px; }
  .venue-layout { gap: 24px; }
}

@media (max-width: 768px) {
  .venue-layout { flex-direction: column; }
  .venue-tabs {
    flex: none;
    flex-direction: row;
    overflow-x: auto;
    position: static;
    padding-bottom: 4px;
  }
  .venue-tab { white-space: nowrap; flex-shrink: 0; }
  .venue-tab:hover { transform: none; }
  .venue-features { grid-template-columns: 1fr; }
  .gallery-thumbs { flex-wrap: wrap; }
}
