/* Media Widget */
.media-widget {
  background: var(--color-bg-card);
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid rgba(201,168,76,0.25);
  margin: 2rem 0;
}
.media-tabs { display: flex; border-bottom: 1px solid rgba(201,168,76,0.2); }
.media-tab {
  flex: 1; padding: 0.85rem; background: transparent; border: none;
  color: var(--color-text-muted); font-family: var(--font-ui); font-size: 1rem;
  cursor: pointer; transition: all var(--transition);
}
.media-tab.active, .media-tab:hover { color: var(--color-accent); background: rgba(92,26,43,0.3); }
.media-panel { padding: 0; }
.media-panel[hidden] { display: none; }
.media-player-area { aspect-ratio: 16/9; background: #000; }
.media-player-area iframe { width: 100%; height: 100%; border: 0; }
.media-placeholder { padding: 3rem; text-align: center; color: var(--color-text-muted); }
.audio-player-custom audio { width: 100%; padding: 1.5rem; }
.libretto-panel { padding: 1.5rem; font-style: italic; line-height: 1.9; }
.media-widget-footer {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
  padding: 0.75rem 1rem; font-family: var(--font-ui); font-size: 0.9rem;
  color: var(--color-text-muted); border-top: 1px solid rgba(201,168,76,0.15);
}

/* Banner carousel */
.banner-carousel { position: relative; overflow: hidden; border-radius: var(--radius-card); margin: 2rem 0; }
.banner-slide {
  display: none; min-height: 200px; padding: 2rem;
  background-size: cover; background-position: center;
  align-items: center; gap: 1.5rem;
}
.banner-slide.active { display: flex; }
.banner-slide::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(15,12,10,0.9), rgba(15,12,10,0.4));
}
.banner-content { position: relative; z-index: 1; display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.banner-logo { width: 80px; height: 80px; object-fit: contain; }
.banner-dots { display: flex; justify-content: center; gap: 0.5rem; padding: 0.75rem; }
.banner-dot { width: 8px; height: 8px; border-radius: 50%; border: none; background: var(--color-text-muted); cursor: pointer; }
.banner-dot.active { background: var(--color-accent); }

/* Partner cards & strip */
.partner-strip { display: flex; gap: 2rem; overflow-x: auto; align-items: center; padding: 1.5rem 0; }
.partner-strip img { height: 48px; width: auto; opacity: 0.85; filter: grayscale(30%); transition: filter var(--transition); }
.partner-strip a:hover img { filter: none; opacity: 1; }
.partner-card {
  display: grid; grid-template-columns: auto 1fr; gap: 1rem;
  background: var(--color-bg-card); padding: 1.5rem; border-radius: var(--radius-card);
  border: 1px solid rgba(201,168,76,0.15); position: relative;
}
.partner-card.sponsored { border-color: var(--color-accent); box-shadow: 0 0 0 1px rgba(201,168,76,0.3); }
.sponsor-badge {
  position: absolute; top: 0.75rem; right: 0.75rem;
  font-family: var(--font-ui); font-size: 0.7rem; color: var(--color-accent);
  letter-spacing: 0.1em;
}
.partner-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.75rem; }

/* Season grid */
.season-card {
  background: var(--color-bg-card); border-radius: var(--radius-card);
  overflow: hidden; transition: transform var(--transition), box-shadow var(--transition);
}
.season-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.season-card img { width: 100%; height: 180px; object-fit: cover; }
.season-card-body { padding: 1.25rem; }
.season-card h3 { font-family: var(--font-display); margin: 0 0 0.5rem; font-size: 1.25rem; }
.season-meta { font-family: var(--font-ui); color: var(--color-text-muted); font-size: 0.95rem; }

/* Map */
.map-section { margin: 2rem 0; }
.map-filters { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 0.75rem; font-family: var(--font-ui); }
.map-filters label { cursor: pointer; color: var(--color-text-muted); }
.opera-map { height: 400px; border-radius: var(--radius-card); border: 1px solid rgba(201,168,76,0.2); z-index: 1; }
.leaflet-popup-content { font-family: var(--font-body); font-size: 0.9rem; }
.marker-sponsored { box-shadow: 0 0 0 3px var(--color-accent); border-radius: 50%; }

/* Chatbot */
.chatbot-widget { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 2000; }
.chatbot-toggle {
  background: var(--color-primary); color: var(--color-text);
  border: 2px solid var(--color-accent); border-radius: 2rem;
  padding: 0.75rem 1.25rem; font-family: var(--font-ui); font-size: 1rem;
  cursor: pointer; box-shadow: var(--shadow-card);
}
.chatbot-drawer {
  position: absolute; bottom: 100%; right: 0; margin-bottom: 0.75rem;
  width: min(380px, calc(100vw - 2rem)); height: 480px;
  background: var(--color-bg-card); border: 1px solid var(--color-accent);
  border-radius: var(--radius-card); display: flex; flex-direction: column;
  box-shadow: var(--shadow-card);
}
.chatbot-drawer[hidden] { display: none; }
.chatbot-header { display: flex; justify-content: space-between; align-items: center; padding: 1rem; border-bottom: 1px solid rgba(201,168,76,0.2); }
.chatbot-header h2 { font-family: var(--font-ui); font-size: 1.1rem; margin: 0; font-weight: 400; }
.chatbot-close { background: none; border: none; color: var(--color-text); font-size: 1.5rem; cursor: pointer; }
.chatbot-messages { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.75rem; }
.chat-msg { padding: 0.75rem 1rem; border-radius: var(--radius-card); max-width: 90%; font-size: 0.95rem; }
.chat-msg.bot { background: rgba(92,26,43,0.4); align-self: flex-start; }
.chat-msg.user { background: rgba(201,168,76,0.2); align-self: flex-end; }
.chatbot-form { display: flex; padding: 0.75rem; gap: 0.5rem; border-top: 1px solid rgba(201,168,76,0.2); }
.chatbot-form input { flex: 1; padding: 0.5rem; background: var(--color-bg); border: 1px solid var(--color-primary); color: var(--color-text); }
.chatbot-faq { padding: 1rem; font-size: 0.9rem; }
.chatbot-faq a { display: block; margin-top: 0.5rem; }

/* Forms */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-family: var(--font-ui); margin-bottom: 0.35rem; color: var(--color-text-muted); }
input[type="text"], input[type="email"], select, textarea {
  width: 100%; padding: 0.75rem; background: var(--color-bg);
  border: 1px solid rgba(201,168,76,0.3); color: var(--color-text);
  font-family: var(--font-body); border-radius: var(--radius-button);
}
.consent-label { font-size: 0.85rem; display: flex; gap: 0.5rem; align-items: flex-start; color: var(--color-text-muted); }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* Cities grid */
.cities-grid { display: grid; gap: 1.5rem; }
.city-grid-card {
  position: relative; min-height: 320px; border-radius: var(--radius-card);
  overflow: hidden; background: var(--color-bg-card);
}
.city-grid-card .card-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  filter: sepia(20%) brightness(0.6);
}
.city-grid-card .card-content { position: relative; z-index: 1; padding: 2rem; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; font-family: var(--font-ui); }
.filter-bar select { width: auto; min-width: 160px; }

/* Program table */
.program-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.program-table th, .program-table td { padding: 0.75rem; text-align: left; border-bottom: 1px solid rgba(201,168,76,0.15); }
.program-table th { font-family: var(--font-ui); color: var(--color-accent); font-weight: 400; }

/* Tier table */
.tier-table { width: 100%; border-collapse: collapse; margin: 2rem 0; }
.tier-table th, .tier-table td { padding: 1rem; border: 1px solid rgba(201,168,76,0.2); }
.tier-table th { background: var(--color-primary); font-family: var(--font-ui); }
.tier-bronze { color: #cd7f32; }
.tier-silver { color: #c0c0c0; }
.tier-gold { color: var(--color-accent); }
.tier-platinum { color: #e5e4e2; }

/* Theater cards */
.theater-card { display: grid; gap: 1rem; background: var(--color-bg-card); padding: 1.5rem; border-radius: var(--radius-card); margin-bottom: 1rem; }
@media (min-width: 600px) { .theater-card { grid-template-columns: 200px 1fr; } }

/* Search results */
.search-results { background: var(--color-bg-card); border: 1px solid var(--color-primary); max-height: 300px; overflow-y: auto; }
.search-results a { display: block; padding: 0.75rem 1rem; color: var(--color-text); border-bottom: 1px solid rgba(201,168,76,0.1); }
.search-results a:hover { background: rgba(92,26,43,0.3); }

/* Filigree divider */
.filigree-divider {
  height: 24px; margin: 2rem 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='24' viewBox='0 0 120 24'%3E%3Cpath fill='%23C9A84C' d='M60 0L70 12H50zm0 24l10-12H50z'/%3E%3C/svg%3E") center repeat-x;
  opacity: 0.6;
}

/* 404 */
.error-page { text-align: center; padding: 6rem 1rem; }
.error-page h1 { font-family: var(--font-display); font-size: 6rem; color: var(--color-accent); margin: 0; }
