/* =========================================================================
   SIKKIM TOURISM BY EXPERIENCE — partials/homePage/experienceSection
   Sits after "Sikkim Tourism Transportation". Each tab/panel/row sets its own
   accent via the inline --ex-c custom property. Uses --pt-* tokens.
   ========================================================================= */
.ex {
  margin-top: 90px;
}

.ex-head {
  max-width: 880px;
  margin: 0 auto 40px;
}

.ex-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: var(--pt-radius-pill);
  background: rgba(248, 182, 0, 0.12);
  color: var(--pt-gold-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.ex .ex-title {
  display: block;
  margin: 14px 0;
  color: var(--pt-ink);
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.ex-title::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin: 16px auto 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--pt-gold), var(--pt-gold-light));
}

.ex-lead {
  margin: 0;
  color: var(--pt-slate);
  line-height: 1.8;
}

/* ---- Tabs + panel ---- */
.ex-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

.ex-tabs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-radius: 28px;
  background: linear-gradient(160deg, var(--pt-navy-950), var(--pt-navy-800));
  box-shadow: var(--pt-shadow-md);
}

.ex-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  text-align: left;
  cursor: pointer;
  transition: background 0.3s var(--pt-ease), color 0.3s var(--pt-ease);
}

.ex-tab-icon {
  flex: 0 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 16px;
  transition: background 0.3s var(--pt-ease), transform 0.3s var(--pt-ease);
}

.ex-tab-text {
  flex: 1;
  min-width: 0;
}

.ex-tab-text strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
}

.ex-tab-text small {
  display: block;
  overflow: hidden;
  font-size: 11.5px;
  opacity: 0.65;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ex-tab-arrow {
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.3s var(--pt-ease), transform 0.3s var(--pt-ease);
}

.ex-tab:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.ex-tab:focus-visible,
.ex-row-link:focus-visible {
  outline: 2px solid var(--pt-gold);
  outline-offset: 2px;
}

.ex-tab.is-active {
  background: #fff;
  color: var(--pt-ink);
}

.ex-tab.is-active .ex-tab-icon {
  background: var(--ex-c);
  transform: rotate(-6deg);
}

.ex-tab.is-active .ex-tab-arrow {
  opacity: 1;
  transform: none;
  color: var(--ex-c);
}

.ex-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 34px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid rgba(10, 26, 47, 0.07);
  box-shadow: var(--pt-shadow-sm);
}

.ex-panel[hidden] {
  display: none;
}

.ex-panel.is-active {
  animation: exFade 0.45s var(--pt-ease);
}

@keyframes exFade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.ex-panel::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--ex-c) 18%, transparent), transparent 70%);
  pointer-events: none;
}

.ex-panel-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.ex-panel-icon {
  flex: 0 0 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 58px;
  border-radius: 18px;
  background: var(--ex-c);
  color: #fff;
  font-size: 24px;
  box-shadow: 0 12px 26px color-mix(in srgb, var(--ex-c) 35%, transparent);
}

.ex-panel-kicker {
  color: var(--ex-c);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.ex-panel h3 {
  margin: 4px 0 0;
  color: var(--pt-ink);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
}

.ex-panel-intro {
  margin: 0 0 22px;
  color: var(--pt-slate);
  font-size: 15px;
  line-height: 1.8;
}

.ex-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 0 22px;
}

.ex-items > div {
  padding: 16px 18px;
  border-radius: 18px;
  background: #f6f8fb;
  border-left: 3px solid var(--ex-c);
}

.ex-items dt {
  margin-bottom: 4px;
  color: var(--pt-ink);
  font-size: 14px;
  font-weight: 700;
}

.ex-items dd {
  margin: 0;
  color: var(--pt-slate);
  font-size: 13.5px;
  line-height: 1.7;
}

.ex-items .ex-item-warn {
  background: rgba(248, 182, 0, 0.1);
  border-left-color: var(--pt-gold);
}

.ex-item-warn dt i {
  color: var(--pt-gold-dark);
}

.ex-best {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: auto;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--pt-ink);
}

.ex-best-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: var(--pt-radius-pill);
  background: var(--pt-gold);
  color: var(--pt-ink);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.ex-best-text {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

/* ---- Table ---- */
.ex-planner {
  margin-bottom: 26px;
  padding: 28px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid rgba(10, 26, 47, 0.07);
  box-shadow: var(--pt-shadow-sm);
}

.ex .ex-planner-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--pt-ink);
  font-size: 18px;
  font-weight: 800;
}

.ex-planner-title i {
  color: var(--pt-gold-dark);
}

.ex-table-scroll {
  overflow-x: auto;
}

.ex-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.ex-table thead th {
  padding: 10px 12px;
  border-bottom: 2px solid rgba(10, 26, 47, 0.08);
  color: var(--pt-slate);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-align: left;
  text-transform: uppercase;
}

.ex-table tbody th,
.ex-table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(10, 26, 47, 0.06);
  color: var(--pt-slate);
  font-size: 14px;
  vertical-align: middle;
}

.ex-table tbody tr:last-child > * {
  border-bottom: 0;
}

.ex-table tbody tr:hover > * {
  background: #f8fafc;
}

.ex-row-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--pt-ink);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.ex-row-link:hover {
  color: var(--ex-c);
}

.ex-row-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--ex-c) 13%, transparent);
  color: var(--ex-c);
  font-size: 14px;
}

.ex-time {
  display: inline-block;
  padding: 4px 11px;
  border-radius: var(--pt-radius-pill);
  background: rgba(248, 182, 0, 0.14);
  color: #7a5400;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}

.ex-col-bar {
  width: 260px;
}

.ex-bar {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 3px;
}

.ex-bar span {
  height: 10px;
  border-radius: 3px;
  background: rgba(10, 26, 47, 0.07);
}

.ex-bar span.on {
  background: var(--ex-c);
}

.ex-table thead .ex-bar-head span {
  height: auto;
  background: none;
  color: var(--pt-slate);
  font-size: 10.5px;
  text-align: center;
}

/* ---- Note ---- */
.ex-note {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-radius: 20px;
  background: rgba(47, 143, 216, 0.07);
  border: 1px solid rgba(47, 143, 216, 0.3);
}

.ex-note-icon {
  flex: 0 0 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  border-radius: 14px;
  background: #2f8fd8;
  color: #fff;
  font-size: 18px;
}

.ex-note p {
  flex: 1;
  margin: 0;
  color: var(--pt-slate);
  font-size: 14px;
  line-height: 1.7;
}

.ex-note strong {
  color: var(--pt-ink);
}

.ex .ex-note-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--pt-radius-pill);
  background: var(--pt-ink);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.3s var(--pt-ease), transform 0.3s var(--pt-ease);
}

.ex .ex-note-btn:hover,
.ex .ex-note-btn:focus {
  background: var(--pt-navy-700);
  color: #fff;
  transform: translateY(-2px);
}

/* ---- Responsive ---- */
@media (max-width: 1199px) {
  .ex-layout {
    grid-template-columns: 240px 1fr;
  }

  .ex-items {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991px) {
  .ex-layout {
    grid-template-columns: 1fr;
  }

  /* vertical menu → horizontal scrolling chips */
  .ex-tabs {
    flex-direction: row;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .ex-tabs::-webkit-scrollbar {
    display: none;
  }

  .ex-tab {
    flex: 0 0 auto;
    width: auto;
    padding: 8px 14px 8px 8px;
  }

  .ex-tab-icon {
    flex-basis: 34px;
    height: 34px;
  }

  .ex-tab-text small,
  .ex-tab-arrow {
    display: none;
  }

  .ex-note {
    flex-wrap: wrap;
  }
}

@media (max-width: 767px) {
  .ex {
    margin-top: 60px;
  }

  .ex .ex-title {
    font-size: 28px;
  }

  .ex-panel {
    padding: 22px 18px;
    border-radius: 24px;
  }

  .ex-panel h3 {
    font-size: 21px;
  }

  .ex-panel-icon {
    flex-basis: 48px;
    height: 48px;
    font-size: 20px;
  }

  .ex-planner {
    padding: 20px 16px;
  }

  /* table → stacked rows on phones */
  .ex-table,
  .ex-table tbody,
  .ex-table tr,
  .ex-table th,
  .ex-table td {
    display: block;
    min-width: 0;
    width: auto;
  }

  .ex-table thead {
    display: none;
  }

  .ex-table tbody tr {
    padding: 12px 0;
    border-bottom: 1px solid rgba(10, 26, 47, 0.08);
  }

  .ex-table tbody tr:last-child {
    border-bottom: 0;
  }

  .ex-table tbody th,
  .ex-table tbody td {
    padding: 4px 0 4px 44px;
    border: 0;
    background: none !important;
  }

  .ex-table tbody th {
    padding-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ex-panel.is-active {
    animation: none;
  }

  .ex-tab,
  .ex-tab-icon,
  .ex-tab-arrow {
    transition: none;
  }
}
