/* ══ IMB — Event detail slide panel ══
   Shared by index.html (calendar card) and calendar.html (full list).
   One copy: js/events.js renders the same markup for both. */

.detail-overlay {
  position: fixed; inset: 0;
  background: rgba(10,5,25,.45);
  backdrop-filter: blur(2px);
  z-index: 900;
  transition: opacity .25s;
}
.detail-overlay.hidden { display: none; }

.detail-panel {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(420px, 100vw);
  background: var(--page-bg);
  border-left: 1px solid var(--glass-border);
  box-shadow: -4px 0 40px rgba(0,0,0,.18);
  z-index: 901;
  overflow-y: auto;
  padding: 0 0 48px;
  transform: translateX(0);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  scrollbar-width: none;
}
.detail-panel::-webkit-scrollbar { width: 0; }
.detail-panel.hidden { display: none; }

/* Custom always-visible scrollbar — OS "auto-hide scrollbar" settings
   otherwise hide the native one even when there's more content below. */
.detail-scrollbar-track {
  position: fixed; top: 0; bottom: 0; right: 4px;
  width: 8px; z-index: 902; pointer-events: none;
  display: none; cursor: pointer;
}
.detail-scrollbar-track.has-overflow { pointer-events: auto; }
.detail-panel:not(.hidden) ~ .detail-scrollbar-track.has-overflow { display: block; }
.detail-scrollbar-track::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(0,0,0,.1); border-radius: 4px;
}
.detail-scrollbar-thumb {
  position: absolute; left: 0; width: 100%;
  background: #fff; border: 1px solid rgba(0,0,0,.15);
  border-radius: 4px;
  min-height: 32px; cursor: grab; pointer-events: auto;
}
.detail-scrollbar-thumb:active { cursor: grabbing; background: #f0f0f0; }

.detail-close {
  position: fixed; top: 14px; right: 14px;
  background: var(--glass); border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
  width: 44px; height: 44px; border-radius: 50%;
  font-size: 1rem; cursor: pointer; color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
  z-index: 1001;
}
.detail-close:hover { background: var(--active); color: var(--ink); }

.detail-date-box {
  background: #3B1F6E;
  color: #fff;
  padding: 36px 32px 28px;
  text-align: center;
}
.detail-date-box .d-weekday {
  font-size: .78rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; opacity: .8;
}
.detail-date-box .d-month { font-size: 1rem; font-weight: 600; margin-top: 4px; }
.detail-date-box .d-day {
  font-family: var(--font-display);
  font-size: 4rem; font-weight: 900; line-height: 1; margin-top: 4px;
  color: #E8B54A;
}

.detail-body { padding: 28px 32px; display: flex; flex-direction: column; gap: 20px; }
.detail-title {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 700; color: var(--ink); line-height: 1.3;
}
.detail-row {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: .92rem; color: var(--ink-dim);
}
.detail-row-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.detail-row-text { line-height: 1.5; }
.detail-row-text strong { color: var(--ink); display: block; }
.detail-desc {
  font-size: .92rem; color: var(--ink-dim); line-height: 1.65;
  white-space: pre-line;
  border-top: 1px solid var(--rule);
  padding-top: 16px;
}
.detail-desc a { text-decoration: underline; }
.detail-pills { display: flex; flex-wrap: wrap; gap: 8px; }

.detail-admission { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--rule); padding-top: 16px; }
.adm-row { display: flex; justify-content: space-between; font-size: .92rem; color: var(--ink-dim); }
.adm-price { font-weight: 700; color: var(--ink); }
.adm-note { font-size: .8rem; color: var(--ink-dim); margin-top: 4px; }

.detail-map-section { display: flex; flex-direction: column; gap: 8px; }
.detail-map-label {
  font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-light);
}
.detail-map-frame { border-radius: var(--radius-sm); overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.1); }

.detail-actions { display: flex; flex-direction: column; gap: 10px; padding-top: 8px; }
.detail-btn {
  display: block; text-align: center;
  padding: 13px 20px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: .9rem; text-decoration: none;
  transition: all .15s;
}
.detail-btn-live { background: #C0392B; color: #fff; }
.detail-btn-live:hover { background: #96281b; }
.detail-btn-info {
  background: var(--active); color: var(--ink);
  border: 2px solid var(--rule);
}
.detail-btn-info:hover { background: var(--hover); }
.detail-btn-map { background: #E8F5E9; color: #1B5E20; border: 2px solid #1B5E20; }
.detail-btn-map:hover { background: #1B5E20; color: #fff; }
