/* Collapsible venue cards and operational sections */
.venue-collapsible {
  min-width: 0;
}

.venue-collapsible > .panel-header,
.venue-collapse-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.venue-collapse-header {
  grid-column: 1 / -1;
  min-height: 34px;
  margin: -2px 0 2px;
}

.venue-collapse-title {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.venue-section-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: 0 0 auto;
  min-height: 32px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease;
}

.venue-section-toggle:hover,
.venue-section-toggle:focus-visible {
  border-color: #9fdce9;
  background: #f1fbfd;
}

.venue-section-toggle:focus-visible,
.venue-section-visibility-toolbar button:focus-visible {
  outline: 3px solid rgba(2, 184, 232, 0.18);
  outline-offset: 1px;
}

.venue-section-toggle-chevron {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
  transition: transform 140ms ease;
}

.venue-collapsible.is-collapsed .venue-section-toggle-chevron {
  transform: translateY(2px) rotate(225deg);
}

.venue-collapse-content[hidden] {
  display: none !important;
}

.venue-collapsible.is-collapsed.panel {
  padding-block: 12px;
}

.venue-collapsible.is-collapsed.panel > .panel-header {
  margin-bottom: 0;
}

.venue-collapsible.is-collapsed.metric-grid {
  display: block;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 8px 22px rgba(7, 26, 44, 0.05);
}

.venue-collapsible.is-collapsed.metric-grid .venue-collapse-header {
  margin: 0;
}

.venue-collapse-content {
  min-width: 0;
}

.metric-grid > .venue-collapse-content {
  display: contents;
}

.venue-collapsible.is-collapsed.metric-grid > .venue-collapse-content {
  display: none;
}

.venue-section-visibility-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-height: 36px;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.venue-section-visibility-toolbar > span {
  margin-right: 2px;
  font-weight: 800;
}

.venue-section-visibility-toolbar button {
  min-height: 30px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.venue-section-visibility-toolbar button:hover {
  border-color: #9fdce9;
  background: #f1fbfd;
}

@media (max-width: 600px) {
  .venue-section-visibility-toolbar {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .venue-section-toggle span:first-child {
    display: none;
  }

  .venue-section-toggle {
    width: 32px;
    padding-inline: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .venue-section-toggle-chevron,
  .venue-section-toggle {
    transition: none;
  }
}
