/* ================================================================
   VOYAGE NEPAL — UNESCO & NATIONAL PARKS INFO PANELS
================================================================ */

/* ── Backdrop ── */
.ip-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 22, 51, 0.55);
  backdrop-filter: blur(3px);
  z-index: 8000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.ip-backdrop.ip-open { opacity: 1; pointer-events: auto; }

/* ── Panel ── */
.ip-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(520px, 100vw);
  height: 100vh;
  background: #fff;
  z-index: 8001;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -8px 0 48px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
}
.ip-panel.ip-open { transform: translateX(0); }

/* ── Header ── */
.ip-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 28px 22px;
}
.ip-header--unesco { background: linear-gradient(135deg, #001e4a 0%, #003366 100%); }
.ip-header--parks  { background: linear-gradient(135deg, #0d3320 0%, #166534 100%); }

.ip-header-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 9px;
}
.ip-header-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1.2;
  color: #fff;
  margin: 0 0 5px;
}
.ip-header-sub {
  font-size: 0.81rem;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
}

.ip-close {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: none;
  color: #fff;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  margin-top: 2px;
}
.ip-close:hover { background: rgba(255, 255, 255, 0.32); }

/* ── Body ── */
.ip-body { padding: 8px 28px 48px; flex: 1; }

/* ── Item ── */
.ip-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
  align-items: flex-start;
}
.ip-item:last-child { border-bottom: none; }

.ip-item-icon {
  font-size: 1.75rem;
  line-height: 1;
  flex-shrink: 0;
  width: 40px;
  text-align: center;
  padding-top: 2px;
}
.ip-item-content { flex: 1; min-width: 0; }

.ip-item-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
  flex-wrap: wrap;
}
.ip-item-badge {
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 999px;
}
.ip-item-badge--cultural { background: #ede9fe; color: #5b21b6; }
.ip-item-badge--natural  { background: #dcfce7; color: #166534; }

.ip-item-year {
  font-size: 0.74rem;
  color: var(--mid-grey);
}

.ip-item-name {
  font-family: var(--font-display);
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 3px;
}
.ip-item-location {
  display: block;
  font-size: 0.77rem;
  color: var(--mid-grey);
  margin-bottom: 5px;
}
.ip-item-desc {
  font-size: 0.83rem;
  color: var(--dark-grey);
  line-height: 1.6;
  margin: 0 0 7px;
}
.ip-item-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ip-item-chip {
  font-size: 0.73rem;
  font-weight: 500;
  background: #f4f6fb;
  color: var(--dark-grey);
  border-radius: 4px;
  padding: 3px 8px;
}

/* ── Stat button (intro strip) ── */
.intro-stat--btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  text-align: center;
  padding: 0;
  position: relative;
}
.intro-stat--btn::after {
  content: '↗';
  position: absolute;
  top: -6px;
  right: -10px;
  font-size: 0.65rem;
  color: var(--red);
  opacity: 0;
  transition: opacity 0.15s;
}
.intro-stat--btn:hover::after { opacity: 1; }
.intro-stat--btn:hover .stat-number { color: var(--red); }

/* ── Mobile ── */
@media (max-width: 600px) {
  .ip-header { padding: 22px 20px 18px; }
  .ip-body   { padding: 6px 20px 36px; }
  .ip-header-title { font-size: 1.2rem; }
}
