/* ============================================
   Venue Page Styles
   ============================================ */

/* ── Hero ──────────────────────────────────── */
.venue-hero {
  background: var(--black);
  padding: 48px 0 32px;
  border-bottom: 3px solid var(--orange);
}
.venue-hero .section-eyebrow { color: var(--orange); }
.venue-hero .section-title   { color: var(--white); margin-bottom: 12px; }
.venue-hero .section-intro   { color: rgba(255,255,255,0.7); margin-bottom: 0; }

/* ── Filter bar ────────────────────────────── */
.venue-filter-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 28px;
  padding-bottom: 8px;
  flex-wrap: wrap;
}
.venue-count-label {
  font-size: 13px;
  color: var(--gray-mid);
  white-space: nowrap;
  margin-left: auto;
}

/* ── Island badge ──────────────────────────── */
.venue-island {
  display: inline-block;
  background: var(--orange-light);
  color: var(--orange-dark);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 100px;
  white-space: nowrap;
}

/* ── Map button ────────────────────────────── */
.venue-map-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1.5px solid var(--orange);
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.venue-map-btn:hover {
  background: var(--orange);
  color: var(--white);
}

/* ── Venue table ───────────────────────────── */
.venue-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  background: var(--white);
}
.venue-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--white);
  table-layout: fixed;
}

/* Column widths */
.venue-table colgroup col:nth-child(1) { width: 140px; }
.venue-table colgroup col:nth-child(2) { width: 28%;   }
.venue-table colgroup col:nth-child(3) { width: 18%;   }
.venue-table colgroup col:nth-child(4) { width: 22%;   }
.venue-table colgroup col:nth-child(5) { width: 90px;  }

.venue-table thead tr {
  background: #1A1A1A;
  color: var(--white);
}
.venue-table thead th {
  padding: 14px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  white-space: nowrap;
  border: none;
}
.venue-table thead th.sortable {
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
}
.venue-table thead th.sortable:hover { background: rgba(255,255,255,0.1); }

.venue-row {
  cursor: pointer;
  transition: background 0.12s;
  border-bottom: 1px solid var(--border);
}
.venue-row:last-child { border-bottom: none; }
.venue-row:hover { background: var(--orange-light); }
.venue-row:focus { outline: 2px solid var(--orange); outline-offset: -2px; }
.venue-row:nth-child(even) { background: #FAFAF9; }
.venue-row:nth-child(even):hover { background: var(--orange-light); }

.venue-table tbody td {
  padding: 13px 16px;
  vertical-align: middle;
  color: var(--text-body);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.venue-row-name {
  font-weight: 600;
  color: var(--black) !important;
}
.venue-table tbody td:first-child {
  white-space: nowrap;
  overflow: visible;
}

/* ── Empty / loading state ─────────────────── */
.venue-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 64px 24px;
  color: var(--gray-mid);
  text-align: center;
}
.venue-placeholder svg { opacity: 0.35; }
.venue-placeholder p { font-size: 15px; max-width: 400px; }

/* ── Venue detail modal ────────────────────── */
.venue-modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 520px;
  width: 100%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}
.venue-modal-box .modal-close {
  position: absolute;
  top: 12px; right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--gray-mid);
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}
.venue-modal-box .modal-close:hover {
  color: var(--black);
  background: var(--gray-light);
}

.venue-modal-header {
  margin-bottom: 20px;
  padding-right: 32px;
}
.venue-modal-header .venue-island {
  margin-bottom: 8px;
  display: inline-block;
}
.venue-modal-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--black);
  margin: 8px 0 0;
  line-height: 1.25;
}

.venue-modal-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-bottom: 20px;
}
.venue-modal-row {
  display: flex;
  gap: 12px;
  font-size: 14px;
  line-height: 1.5;
}
.venue-modal-label {
  font-weight: 600;
  color: var(--gray-mid);
  min-width: 90px;
  flex-shrink: 0;
}
.venue-modal-value {
  color: var(--black);
}
.venue-modal-notes {
  font-size: 13px;
  color: var(--gray-mid);
  background: var(--gray-light);
  border-radius: var(--radius);
  padding: 10px 14px;
  line-height: 1.5;
  margin-top: 4px;
}

.venue-modal-footer {
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.venue-map-btn-lg {
  padding: 10px 20px;
  font-size: 14px;
  border-radius: var(--radius);
  justify-content: center;
  display: inline-flex;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 600px) {
  .venue-modal-box {
    padding: 24px 20px;
    margin: 16px;
    max-height: calc(100vh - 32px);
  }
}

/* ── Mobile improvements ───────────────────── */
@media (max-width: 600px) {
  .venue-hero { padding: 24px 0 20px; }
  .venue-hero .section-title { font-size: 1.6rem; }
  .venue-hero .section-intro { font-size: 13px; }
  .venue-filter-bar { padding-top: 16px; gap: 8px; flex-direction: column; align-items: flex-start; }
  .venue-filter-bar .schedule-filter { width: 100%; }
  .venue-filter-bar .schedule-search { width: 100%; max-width: 100% !important; }
  .venue-count-label { margin-left: 0; font-size: 12px; }

  /* Table — horizontal scroll on mobile, no card conversion */
  .venue-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  }
  .venue-table { min-width: 520px; font-size: 12px; }
  .venue-table thead th { padding: 11px 10px; font-size: 10px; }
  .venue-table tbody td { padding: 10px 10px; font-size: 12px; }
  .venue-island { font-size: 9px; padding: 2px 7px; }
  .venue-map-btn { font-size: 11px; padding: 3px 8px; }

  /* Modal slides up from bottom */
  #venue-modal.modal-overlay { padding: 0; align-items: flex-end; }
  .venue-modal-box {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    max-height: 85vh;
    padding: 24px 18px 32px;
    margin: 0;
    width: 100%;
  }
  .venue-modal-title { font-size: 18px; }
  .venue-modal-row { font-size: 13px; }
  .venue-modal-label { min-width: 76px; }
  .venue-map-btn-lg { padding: 12px 16px; font-size: 14px; }
}

/* ── Pagination ─────────────────────────────── */
.venue-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px 0 8px;
}
.vpag-btn {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--black);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.vpag-btn:hover:not(:disabled) {
  border-color: var(--orange);
  color: var(--orange-dark);
  background: var(--orange-light);
}
.vpag-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.vpag-info {
  font-size: 13px;
  color: var(--gray-mid);
  white-space: nowrap;
}
@media (max-width: 600px) {
  .venue-pagination { gap: 10px; }
  .vpag-btn { padding: 8px 14px; font-size: 13px; }
  .vpag-info { font-size: 12px; }
}
