/* /things-to-do and /things-to-do/{city}. Colours come from the shared tokens in shows-ui.css
   (light and night). Text rules are scoped under .ttd so night-mode.css's global heading and
   paragraph colours don't apply. */

.ttd {
  display: block;
  overflow-x: clip;
  padding-bottom: 56px;
  background: var(--ev-bg);
  color: var(--ev-text);
}

.ttd *,
.ttd *::before,
.ttd *::after {
  box-sizing: border-box;
}

.ttd p {
  margin: 0;
  color: inherit;
  font-size: 16px;
  line-height: 1.7;
}

.ttd h1,
.ttd h2,
.ttd h3 {
  margin: 0;
  color: inherit;
  letter-spacing: normal;
}

.ttd a {
  text-decoration: none;
}

.ttd-container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Hero */
.ttd-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 380px;
  padding: 96px 0 40px;
  overflow: hidden;
  background: #111315;
  color: #fff;
  isolation: isolate;
}

.ttd-hero__image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: ttd-zoom 14s ease-out both;
}

.ttd-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 12, 16, 0.15) 0%, rgba(10, 12, 16, 0.55) 55%, rgba(10, 12, 16, 0.88) 100%);
}

.ttd-hero--hub .ttd-hero__image {
  animation: none;
  opacity: 1;
  transition: opacity 1.2s ease-in-out;
}

.ttd-hero--hub .ttd-hero__image--next {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .ttd-hero--hub .ttd-hero__image { transition: none; }
}

.ttd-hero--hub {
  min-height: 420px;
  align-items: center;
  text-align: center;
}

.ttd-hero--hub::after {
  background: linear-gradient(180deg, rgba(10, 12, 16, 0.55) 0%, rgba(10, 12, 16, 0.75) 100%);
}

.ttd-hero__content {
  position: relative;
}

.ttd .ttd-hero__title {
  max-width: 760px;
  margin: 10px 0 10px;
  color: #fff;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.2;
}

.ttd-hero--hub .ttd-hero__title,
.ttd-hero--hub .ttd .ttd-hero__lead {
  margin-left: auto;
  margin-right: auto;
}

.ttd .ttd-hero__lead {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 17px;
  line-height: 1.55;
}

.ttd-hero--hub .ttd-hero__lead {
  margin: 0 auto;
}

.ttd-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 16px 0 20px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
}

.ttd-hero__meta i {
  margin-right: 6px;
  color: var(--ev-brand);
}

.ttd-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
}

.ttd-hero--hub .ttd-crumbs {
  justify-content: center;
}

.ttd-crumbs a {
  color: rgba(255, 255, 255, 0.9);
}

.ttd-crumbs a:hover,
.ttd-crumbs a:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.ttd-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--ev-brand);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  transition: background-color 0.15s ease;
}

.ttd-btn:hover,
.ttd-btn:focus-visible {
  background: var(--ev-brand-strong);
  color: #fff;
}

@keyframes ttd-zoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

/* Hub search and filters */
.ttd-search-bar {
  position: sticky;
  top: var(--shows-header-height, 73px);
  z-index: 20;
  padding: 12px 0;
  background: var(--ev-surface);
  border-bottom: 1px solid var(--ev-border);
}

.ttd-search {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
}

.ttd-search i {
  position: absolute;
  top: 50%;
  left: 18px;
  color: var(--ev-muted);
  transform: translateY(-50%);
}

.ttd-search input {
  width: 100%;
  height: 54px;
  padding: 0 20px 0 46px;
  border: 1px solid var(--ev-border);
  border-radius: 999px;
  background: var(--ev-surface);
  color: var(--ev-text);
  font-size: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.ttd-search input:focus {
  outline: 3px solid var(--ev-brand);
  outline-offset: 2px;
}

.ttd-regions {
  display: flex;
  gap: 8px;
  margin: 24px 0 20px;
  padding-bottom: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.ttd-regions::-webkit-scrollbar {
  display: none;
}

.ttd-region {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--ev-border);
  border-radius: 999px;
  background: var(--ev-surface);
  color: var(--ev-text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.ttd-region:hover,
.ttd-region:focus-visible {
  border-color: var(--ev-brand);
}

.ttd-region.is-active {
  border-color: var(--ev-brand);
  background: var(--ev-brand);
  color: #fff;
}

html.night-mode .ttd-region.is-active {
  color: #111315;
}

/* City cards */
.ttd-cities {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ttd-city[hidden] {
  display: none;
}

.ttd-city__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--ev-border);
  border-radius: var(--ev-radius);
  background: var(--ev-surface);
  color: var(--ev-text);
  box-shadow: var(--ev-shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.ttd-city__link:hover,
.ttd-city__link:focus-visible {
  border-color: var(--ev-brand);
  color: var(--ev-text);
  transform: translateY(-3px);
}

.ttd-city__media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ev-surface-muted);
}

.ttd-city__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.ttd-city__link:hover .ttd-city__media img {
  transform: scale(1.05);
}

.ttd-city__body {
  display: grid;
  gap: 4px;
  padding: 14px 16px 16px;
}

.ttd-city__name {
  font-size: 17px;
  font-weight: 600;
}

.ttd-city__state {
  color: var(--ev-muted);
  font-size: 13px;
  font-weight: 500;
}

.ttd-city__tagline {
  margin-top: 4px;
  color: var(--ev-text);
  font-size: 14px;
  line-height: 1.5;
}

.ttd-cities--compact {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.ttd-directory-title,
.ttd-empty {
  scroll-margin-top: 90px;
}

.ttd-empty {
  padding: 32px 0;
  color: var(--ev-muted);
  text-align: center;
}

/* Hub events band */
.ttd-band {
  margin-top: 40px;
  padding: 24px;
  border: 1px solid var(--ev-border);
  border-radius: var(--ev-radius);
  background: var(--ev-surface-soft);
}

.ttd .ttd-band__title {
  margin-bottom: 14px;
  font-size: 18px;
  font-weight: 600;
}

.ttd-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ttd-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--ev-border);
  border-radius: 999px;
  background: var(--ev-surface);
  color: var(--ev-text);
  font-size: 14px;
  font-weight: 500;
}

.ttd-chip:hover,
.ttd-chip:focus-visible {
  border-color: var(--ev-brand);
  color: var(--ev-brand);
}

/* City guide layout */
.ttd-layout {
  display: grid;
  gap: 32px;
  padding-top: 32px;
}

.ttd-main {
  display: grid;
  gap: 40px;
  min-width: 0;
}

.ttd-intro {
  display: grid;
  gap: 14px;
}

.ttd-intro p:first-child {
  font-size: 18px;
  line-height: 1.65;
}

.ttd-section {
  scroll-margin-top: 80px;
}

.ttd .ttd-section__title {
  margin-bottom: 16px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.ttd-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 16px;
  margin-bottom: 16px;
}

.ttd-section__head .ttd-section__title {
  margin-bottom: 0;
}

.ttd-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ev-brand);
  font-size: 15px;
  font-weight: 500;
}

.ttd-more:hover,
.ttd-more:focus-visible {
  color: var(--ev-brand-strong);
  text-decoration: underline;
}

/* Top things to do */
.ttd-highlights {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.ttd-highlight {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--ev-border);
  border-radius: var(--ev-radius);
  background: var(--ev-surface);
}

.ttd-highlight__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--ev-brand-soft);
  color: var(--ev-brand);
  font-size: 18px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.ttd .ttd-highlight__title {
  margin: 8px 0 6px;
  font-size: 17px;
  font-weight: 600;
}

.ttd-highlight p {
  color: var(--ev-text);
  font-size: 15px;
}

/* Upcoming events */
.ttd-events {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ttd-event {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--ev-border);
  border-radius: var(--ev-radius-sm);
  background: var(--ev-surface);
  color: var(--ev-text);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.ttd-event:hover,
.ttd-event:focus-visible {
  border-color: var(--ev-brand);
  color: var(--ev-text);
  transform: translateY(-2px);
}

.ttd-event__media {
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--ev-surface-muted);
}

.ttd-event__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ttd-event__body {
  display: grid;
  gap: 4px;
  padding: 12px 14px 14px;
}

.ttd-event__date {
  color: var(--ev-brand);
  font-size: 13px;
  font-weight: 500;
}

.ttd-event__name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.ttd-event__place {
  color: var(--ev-muted);
  font-size: 13px;
}

.ttd-event__place i {
  margin-right: 6px;
}

.ttd-event__price {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 500;
}

.ttd-note {
  padding: 18px 20px;
  border: 1px dashed var(--ev-border);
  border-radius: var(--ev-radius-sm);
  color: var(--ev-muted);
}

.ttd-note a {
  color: var(--ev-brand);
  font-weight: 500;
}

/* Festivals, food, best time, getting around */
.ttd-info {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  padding: 22px;
  border-radius: var(--ev-radius);
  background: var(--ev-surface-soft);
}

.ttd-info .ttd-section__title {
  margin-bottom: 8px;
}

.ttd-info__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--ev-surface);
  color: var(--ev-brand);
  font-size: 20px;
}

/* FAQ */
.ttd-faqs {
  display: grid;
  gap: 10px;
}

.ttd-faq {
  border: 1px solid var(--ev-border);
  border-radius: var(--ev-radius-sm);
  background: var(--ev-surface);
}

.ttd-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.ttd-faq summary::-webkit-details-marker {
  display: none;
}

.ttd-faq summary::after {
  content: "\f078";
  flex: 0 0 auto;
  color: var(--ev-muted);
  font-family: "Font Awesome 6 Free";
  font-size: 13px;
  font-weight: 900;
  transition: transform 0.2s ease;
}

.ttd-faq[open] summary::after {
  transform: rotate(180deg);
}

.ttd-faq p {
  padding: 0 18px 16px;
  font-size: 15px;
}

/* Aside */
.ttd-aside {
  display: grid;
  gap: 16px;
  align-content: start;
}

.ttd-panel {
  padding: 18px;
  border: 1px solid var(--ev-border);
  border-radius: var(--ev-radius);
  background: var(--ev-surface);
}

.ttd .ttd-panel__title {
  margin-bottom: 10px;
  color: var(--ev-muted);
  font-size: 13px;
  font-weight: 500;
}

.ttd-toc ul {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ttd-toc a {
  display: block;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--ev-text);
  font-size: 14px;
}

.ttd-toc a:hover,
.ttd-toc a:focus-visible {
  background: var(--ev-brand-soft);
  color: var(--ev-text);
}

.ttd-nearby {
  margin-top: 48px;
}

@media (max-width: 991.98px) {
  .ttd-toc {
    display: none;
  }
}

@media (min-width: 768px) {
  .ttd-hero {
    min-height: 460px;
    padding-bottom: 56px;
  }

  .ttd-hero--hub {
    min-height: 480px;
  }

  .ttd .ttd-hero__title {
    font-size: 36px;
  }

  .ttd .ttd-section__title {
    font-size: 22px;
  }
}

@media (min-width: 992px) {
  .ttd-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 40px;
    padding-top: 40px;
  }

  .ttd-aside {
    position: sticky;
    top: 80px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ttd-hero__image { animation: none; }
  .ttd-city__link,
  .ttd-city__media img,
  .ttd-event,
  .ttd-faq summary::after { transition: none; }
}

/* Hub: featured guides */
.ttd-featured-wrap {
  margin-top: 40px;
}

.ttd-featured {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 180px;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ttd-featured li:first-child {
  grid-column: 1 / -1;
  grid-row: span 1;
}

.ttd-feature {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 100%;
  overflow: hidden;
  border-radius: var(--ev-radius);
  background: #111315;
  color: #fff;
  isolation: isolate;
}

.ttd-feature img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.ttd-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 12, 16, 0) 35%, rgba(10, 12, 16, 0.85) 100%);
}

.ttd-feature:hover,
.ttd-feature:focus-visible {
  color: #fff;
}

.ttd-feature:hover img,
.ttd-feature:focus-visible img {
  transform: scale(1.06);
}

.ttd-feature__body {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
}

.ttd-feature__name {
  font-size: 20px;
  font-weight: 600;
}

.ttd-feature__tagline {
  display: -webkit-box;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ttd-directory-title {
  margin-top: 48px;
}

.ttd-directory-title + .ttd-regions {
  margin-top: 0;
}

.ttd-region {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ttd-region__count {
  color: var(--ev-muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.ttd-region.is-active .ttd-region__count {
  color: inherit;
  opacity: 0.85;
}

@media (min-width: 768px) {
  .ttd-featured {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 200px;
    gap: 16px;
  }

  .ttd-featured li:first-child {
    grid-column: span 2;
    grid-row: span 2;
  }

  .ttd-featured li:first-child .ttd-feature__name {
    font-size: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ttd-feature img { transition: none; }
}
