/* =========================================================================
   THINGS TO DO IN SIKKIM — partials/homePage/thingsToDoSection
   Sits between the Places tabs and "Sikkim Tourism By Region".
   Uses the --pt-* tokens from premium-theme.css.
   ========================================================================= */
.td {
  --td-nature: #1fa36b;
  --td-culture: #b0452d;
  --td-adventure: #2f8fd8;
  --td-city: #d99500;
  margin-top: 90px;
}

.td-cat-nature    { --td-c: var(--td-nature); }
.td-cat-culture   { --td-c: var(--td-culture); }
.td-cat-adventure { --td-c: var(--td-adventure); }
.td-cat-city      { --td-c: var(--td-city); }

.td-head {
  max-width: 880px;
  margin: 0 auto 34px;
}

.td-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;
}

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

.td-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));
}

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

/* ---- Filters ---- */
.td-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}

.td-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid rgba(10, 26, 47, 0.1);
  border-radius: var(--pt-radius-pill);
  background: #fff;
  color: var(--pt-slate);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s var(--pt-ease), color 0.25s var(--pt-ease), border-color 0.25s var(--pt-ease), box-shadow 0.25s var(--pt-ease);
}

.td-filter span {
  min-width: 22px;
  padding: 1px 7px;
  border-radius: var(--pt-radius-pill);
  background: rgba(10, 26, 47, 0.06);
  font-size: 11.5px;
  font-weight: 700;
  text-align: center;
}

.td-filter:hover {
  border-color: rgba(10, 26, 47, 0.25);
  color: var(--pt-ink);
}

.td-filter:focus-visible {
  outline: 2px solid var(--pt-gold);
  outline-offset: 2px;
}

.td-filter.is-active {
  background: var(--pt-ink);
  border-color: var(--pt-ink);
  color: #fff;
  box-shadow: var(--pt-shadow-sm);
}

.td-filter.is-active span {
  background: var(--pt-gold);
  color: var(--pt-ink);
}

/* ---- Cards ---- */
.td-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 50px;
}

.td-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px 22px;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(10, 26, 47, 0.07);
  box-shadow: var(--pt-shadow-sm);
  animation: tdIn 0.45s var(--pt-ease);
  transition: transform 0.4s var(--pt-ease), box-shadow 0.4s var(--pt-ease), border-color 0.4s var(--pt-ease);
}

.td-card[hidden] {
  display: none;
}

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

.td-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--td-c);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--pt-ease);
}

.td-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--td-c) 35%, transparent);
  box-shadow: var(--pt-shadow-md);
}

.td-card:hover::before {
  transform: scaleX(1);
}

.td-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.td-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: color-mix(in srgb, var(--td-c) 13%, transparent);
  color: var(--td-c);
  font-size: 20px;
  transition: background 0.35s var(--pt-ease), color 0.35s var(--pt-ease), transform 0.35s var(--pt-ease);
}

.td-card:hover .td-card-icon {
  background: var(--td-c);
  color: #fff;
  transform: rotate(-8deg);
}

.td-card-num {
  color: rgba(10, 26, 47, 0.08);
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
}

.td-card-cat {
  color: var(--td-c);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.td-card h3 {
  margin: 6px 0 10px;
  color: var(--pt-ink);
  font-size: 17.5px;
  font-weight: 800;
  line-height: 1.3;
}

.td-card p {
  margin: 0 0 14px;
  color: var(--pt-slate);
  font-size: 13.5px;
  line-height: 1.7;
}

.td-card .td-card-detail {
  display: flex;
  gap: 10px;
  margin: auto 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f5f8fb;
  color: var(--pt-ink);
  font-size: 13px;
  line-height: 1.65;
}

.td-card-detail i {
  margin-top: 3px;
  color: var(--td-c);
}

/* ---- Planner table ---- */
.td-planner {
  margin-bottom: 26px;
  padding: 32px;
  border-radius: 32px;
  background: linear-gradient(160deg, var(--pt-navy-950), var(--pt-navy-800));
  box-shadow: var(--pt-shadow-lg);
  overflow-x: auto;
}

.td-planner-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.td-planner-head h3 {
  margin: 0;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
}

.td-table thead .td-bar-head span {
  height: auto;
  background: none;
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
  text-align: center;
}

.td-table {
  width: 100%;
  min-width: 720px;
  border-collapse: separate;
  border-spacing: 0 8px;
}

.td-table thead th {
  padding: 0 16px 4px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-align: left;
  text-transform: uppercase;
}

.td-table tbody th,
.td-table tbody td {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  vertical-align: middle;
}

.td-table tbody tr > :first-child {
  border-radius: 16px 0 0 16px;
}

.td-table tbody tr > :last-child {
  border-radius: 0 16px 16px 0;
}

.td-table tbody tr:hover > * {
  background: rgba(255, 255, 255, 0.09);
}

.td-table tbody th {
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}

.td-exp-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-right: 12px;
  border-radius: 10px;
  background: rgba(248, 182, 0, 0.16);
  color: var(--pt-gold-light);
  font-size: 14px;
}

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

.td-col-bar {
  width: 300px;
}

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

.td-bar span {
  height: 10px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
}

.td-bar span.on {
  background: linear-gradient(90deg, var(--pt-gold), var(--pt-gold-light));
  box-shadow: 0 0 10px rgba(248, 182, 0, 0.35);
}

.td-bar-varies {
  display: block;
  padding: 3px 0;
  border-radius: 6px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 6px, transparent 6px 12px);
  text-align: center;
}

.td-bar-varies em {
  color: rgba(255, 255, 255, 0.6);
  font-size: 11.5px;
}

/* ---- Note ---- */
.td-note {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-radius: 20px;
  background: rgba(248, 182, 0, 0.1);
  border: 1px solid rgba(248, 182, 0, 0.4);
}

.td-note > i {
  color: var(--pt-gold-dark);
  font-size: 24px;
}

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

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

.td .td-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);
}

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

/* ---- Responsive ---- */
@media (max-width: 1199px) {
  .td-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 991px) {
  .td-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

  .td-filters {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .td-filters::-webkit-scrollbar {
    display: none;
  }

  .td-filter {
    flex: 0 0 auto;
  }

  .td-planner {
    padding: 22px 14px;
    border-radius: 24px;
  }

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

  .td-table thead {
    display: none;
  }

  .td-table tbody tr {
    margin-bottom: 10px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
  }

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

  .td-table tbody td:nth-of-type(1) {
    padding-left: 44px;
    font-size: 13px;
  }

  .td-table tbody td:nth-of-type(2) {
    padding: 6px 0 8px 44px;
  }

  .td-table .td-col-bar {
    padding-left: 44px;
  }
}

@media (max-width: 575px) {
  .td-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .td-card,
  .td-card::before,
  .td-card-icon {
    animation: none;
    transition: none;
  }
}
