/* ==========================================================================
   TamilUnity · Places 2.0
   Design system: modern editorial discovery with subtle Tamil heritage.
   Prefix: .tp- (Tamil Places). Scoped to the Places module only; it never
   overrides core theme classes.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
.tp-scope,
.tp-shell {
  --tp-ink: #172d38;
  --tp-ink-soft: #33505c;
  --tp-ink-muted: rgba(23, 45, 56, 0.62);
  --tp-ivory: #faf7f0;
  --tp-ivory-deep: #f2ece0;
  --tp-paper: #ffffff;
  --tp-coral: #d36555;
  --tp-coral-dark: #b04d3f;
  --tp-coral-soft: rgba(211, 101, 85, 0.12);
  --tp-gold: #c79b54;
  --tp-gold-soft: rgba(199, 155, 84, 0.16);
  --tp-teal: #287a74;
  --tp-teal-soft: rgba(40, 122, 116, 0.12);
  --tp-line: rgba(23, 45, 56, 0.12);
  --tp-line-strong: rgba(23, 45, 56, 0.2);
  --tp-shadow-sm: 0 1px 2px rgba(23, 45, 56, 0.06), 0 8px 24px -18px rgba(23, 45, 56, 0.35);
  --tp-shadow-md: 0 2px 6px rgba(23, 45, 56, 0.06), 0 22px 48px -32px rgba(23, 45, 56, 0.45);
  --tp-shadow-lg: 0 32px 70px -46px rgba(23, 45, 56, 0.55);
  --tp-radius-sm: 12px;
  --tp-radius: 18px;
  --tp-radius-lg: 26px;
  --tp-radius-xl: 34px;
  --tp-gutter: clamp(1rem, 4vw, 3.25rem);
  --tp-max: 1320px;
  --tp-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  color: var(--tp-ink);
  font-variant-ligatures: common-ligatures;
}

.tp-shell {
  background: var(--tp-ivory);
  padding-bottom: 5rem;
}

.tp-container {
  width: 100%;
  max-width: var(--tp-max);
  margin-inline: auto;
  padding-inline: var(--tp-gutter);
}

.tp-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Inline icon system (see templates/places.__icons.tpl) */
.tp-sprite {
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

.tp-i {
  width: 1.05em;
  height: 1.05em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.15em;
}

/* Shared focus treatment: visible, calm, never removed. */
.tp-shell a:focus-visible,
.tp-shell button:focus-visible,
.tp-shell input:focus-visible,
.tp-shell select:focus-visible,
.tp-shell textarea:focus-visible,
.tp-shell [tabindex]:focus-visible {
  outline: 2px solid var(--tp-teal);
  outline-offset: 3px;
  border-radius: 6px;
}

/* --------------------------------------------------------------------------
   2. Typography and shared atoms
   -------------------------------------------------------------------------- */
.tp-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tp-gold);
}

.tp-kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.tp-tamil-line {
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  color: var(--tp-coral);
  letter-spacing: 0.01em;
}

.tp-display {
  font-size: clamp(2.15rem, 5vw, 3.9rem);
  line-height: 1.03;
  letter-spacing: -0.025em;
  font-weight: 800;
  color: var(--tp-ink);
  margin: 0;
}

.tp-display em {
  font-style: italic;
  color: var(--tp-coral);
  font-weight: 700;
}

.tp-lede {
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.65;
  color: var(--tp-ink-muted);
  max-width: 46ch;
  margin: 0;
}

.tp-section {
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
}

.tp-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
  flex-wrap: wrap;
}

.tp-section__head h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0.15rem 0 0;
}

.tp-section__head p {
  margin: 0.35rem 0 0;
  color: var(--tp-ink-muted);
  font-size: 0.95rem;
}

.tp-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 650;
  font-size: 0.92rem;
  color: var(--tp-coral-dark);
  text-decoration: none;
  white-space: nowrap;
}

.tp-link-arrow svg,
.tp-link-arrow .icon {
  transition: transform 0.25s var(--tp-ease);
}

.tp-link-arrow:hover .icon,
.tp-link-arrow:hover svg {
  transform: translateX(3px);
}

.tp-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 26px;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.2;
  color: var(--tp-ink-soft);
  background: rgba(23, 45, 56, 0.06);
  white-space: nowrap;
}

.tp-pill--verified {
  background: var(--tp-teal-soft);
  color: #1d5f5a;
}

.tp-pill--community {
  background: var(--tp-gold-soft);
  color: #8b6827;
}

.tp-pill--pending {
  background: rgba(23, 45, 56, 0.07);
  color: var(--tp-ink-muted);
}

.tp-pill--open {
  background: var(--tp-teal-soft);
  color: #1d5f5a;
}

.tp-pill--closed {
  background: rgba(211, 101, 85, 0.14);
  color: var(--tp-coral-dark);
}

.tp-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

/* Buttons */
.tp-btn {
  --_bg: var(--tp-ink);
  --_fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--_bg);
  color: var(--_fg);
  font-weight: 650;
  font-size: 0.94rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--tp-ease), background 0.2s var(--tp-ease), box-shadow 0.2s var(--tp-ease), color 0.2s var(--tp-ease);
}

.tp-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--tp-shadow-sm);
}

.tp-btn:active {
  transform: translateY(0);
}

.tp-btn--primary {
  --_bg: var(--tp-coral);
}

.tp-btn--primary:hover {
  --_bg: var(--tp-coral-dark);
}

.tp-btn--teal {
  --_bg: var(--tp-teal);
}

.tp-btn--ghost {
  --_bg: transparent;
  --_fg: var(--tp-ink);
  border-color: var(--tp-line-strong);
}

.tp-btn--ghost:hover {
  --_bg: rgba(23, 45, 56, 0.05);
}

.tp-btn--light {
  --_bg: #fff;
  --_fg: var(--tp-ink);
}

.tp-btn--sm {
  min-height: 38px;
  padding: 0.45rem 0.9rem;
  font-size: 0.86rem;
}

.tp-btn--icon {
  min-height: 44px;
  width: 44px;
  padding: 0;
  border-radius: 50%;
}

/* --------------------------------------------------------------------------
   3. Hero
   -------------------------------------------------------------------------- */
.tp-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(1.5rem, 3vw, 2.75rem) clamp(2rem, 4vw, 3.25rem);
}

/* Kolam-inspired dot lattice, purely decorative. */
.tp-hero::before {
  content: "";
  position: absolute;
  inset: -10% -5% auto -5%;
  height: 70%;
  background-image: radial-gradient(circle at center, rgba(199, 155, 84, 0.28) 1.1px, transparent 1.2px);
  background-size: 22px 22px;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse at 18% 20%, #000 0%, transparent 62%);
  pointer-events: none;
}

.tp-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
}

.tp-hero__copy {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  max-width: 40rem;
}

.tp-hero__rule {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--tp-gold);
}

.tp-hero__rule span:last-child {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, currentColor, transparent);
  opacity: 0.55;
}

.tp-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.4rem;
  margin-top: 0.4rem;
}

.tp-hero__stat {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.tp-hero__stat strong {
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.tp-hero__stat span {
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tp-ink-muted);
}

.tp-hero__trust {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: var(--tp-ink-muted);
}

/* Collage: five real TamilUnity images arranged like an editorial spread. */
.tp-collage {
  position: relative;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  aspect-ratio: 5 / 4;
  min-height: 320px;
}

.tp-collage__tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--tp-radius);
  background: var(--tp-ivory-deep);
  box-shadow: var(--tp-shadow-md);
}

.tp-collage__tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.01);
  transition: transform 0.7s var(--tp-ease);
}

.tp-collage__tile:hover img {
  transform: scale(1.06);
}

.tp-collage__tile--lead {
  grid-row: span 2;
  border-radius: var(--tp-radius-lg);
}

.tp-collage__tile--lead::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(to top, rgba(23, 45, 56, 0.62), transparent);
}

.tp-collage__caption {
  position: absolute;
  inset: auto 1rem 1rem 1rem;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.tp-collage__badge {
  position: absolute;
  inset: 0.85rem 0.85rem auto auto;
  background: rgba(255, 255, 255, 0.92);
  color: var(--tp-ink);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  backdrop-filter: blur(6px);
}

/* --------------------------------------------------------------------------
   4. Search
   -------------------------------------------------------------------------- */
.tp-search {
  position: relative;
  z-index: 2;
  margin-top: -1.25rem;
}

.tp-search__card {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.85fr) auto;
  align-items: center;
  gap: 0.25rem;
  background: var(--tp-paper);
  border: 1px solid var(--tp-line);
  border-radius: 999px;
  padding: 0.45rem 0.45rem 0.45rem 0.9rem;
  box-shadow: var(--tp-shadow-md);
}

.tp-search__field {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.85rem;
  min-height: 48px;
  border-radius: 999px;
}

.tp-search__field + .tp-search__field {
  border-inline-start: 1px solid var(--tp-line);
}

.tp-search__field .icon {
  color: var(--tp-ink-muted);
  flex: none;
}

.tp-search__field input,
.tp-search__field select {
  width: 100%;
  border: 0;
  background: transparent;
  font-size: 0.98rem;
  color: var(--tp-ink);
  padding: 0;
  min-height: 28px;
}

.tp-search__field input::placeholder {
  color: rgba(23, 45, 56, 0.45);
}

.tp-search__field input:focus,
.tp-search__field select:focus {
  outline: none;
}

.tp-search__submit {
  min-height: 52px;
  padding-inline: 1.5rem;
  border-radius: 999px;
}

.tp-search__hint {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.65rem 0.2rem 0;
  font-size: 0.78rem;
  color: var(--tp-ink-muted);
}

.tp-search__suggestions {
  position: absolute;
  inset: calc(100% + 0.4rem) 0 auto 0;
  background: var(--tp-paper);
  border: 1px solid var(--tp-line);
  border-radius: var(--tp-radius);
  box-shadow: var(--tp-shadow-md);
  padding: 0.4rem;
  display: none;
  z-index: 30;
  max-height: 320px;
  overflow-y: auto;
}

.tp-search__suggestions[data-open="true"] {
  display: block;
}

.tp-search__suggestion {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.6rem 0.7rem;
  border-radius: 10px;
  border: 0;
  background: transparent;
  text-align: start;
  font-size: 0.9rem;
  color: var(--tp-ink);
  cursor: pointer;
}

.tp-search__suggestion:hover,
.tp-search__suggestion:focus-visible {
  background: rgba(23, 45, 56, 0.05);
}

.tp-search__suggestion small {
  color: var(--tp-ink-muted);
  font-size: 0.78rem;
}

/* Category chips under the search */
.tp-chips {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.9rem 0.2rem 0.2rem;
  scrollbar-width: none;
}

.tp-chips::-webkit-scrollbar {
  display: none;
}

.tp-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 40px;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--tp-line);
  background: var(--tp-paper);
  color: var(--tp-ink);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.2s var(--tp-ease), background 0.2s var(--tp-ease), transform 0.2s var(--tp-ease);
}

.tp-chip:hover {
  transform: translateY(-1px);
  border-color: var(--tp-line-strong);
}

.tp-chip[aria-current="true"],
.tp-chip.is-active {
  background: var(--tp-ink);
  border-color: var(--tp-ink);
  color: #fff;
}

.tp-chip__count {
  font-size: 0.72rem;
  opacity: 0.7;
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   5. Category rail (visual quick access)
   -------------------------------------------------------------------------- */
.tp-cat-rail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
  gap: 0.75rem;
}

.tp-cat {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1rem 0.9rem;
  border-radius: var(--tp-radius);
  border: 1px solid var(--tp-line);
  background: var(--tp-paper);
  text-decoration: none;
  color: var(--tp-ink);
  transition: transform 0.22s var(--tp-ease), border-color 0.22s var(--tp-ease), box-shadow 0.22s var(--tp-ease);
}

.tp-cat:hover {
  transform: translateY(-3px);
  border-color: transparent;
  box-shadow: var(--tp-shadow-md);
}

.tp-cat__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--tp-gold-soft);
  color: #8b6827;
  font-size: 1.05rem;
}

.tp-cat[data-tone="teal"] .tp-cat__icon {
  background: var(--tp-teal-soft);
  color: #1d5f5a;
}

.tp-cat[data-tone="coral"] .tp-cat__icon {
  background: var(--tp-coral-soft);
  color: var(--tp-coral-dark);
}

.tp-cat__title {
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.25;
}

.tp-cat__meta {
  font-size: 0.76rem;
  color: var(--tp-ink-muted);
}

/* --------------------------------------------------------------------------
   6. Place cards
   -------------------------------------------------------------------------- */
.tp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 264px), 1fr));
  gap: clamp(0.9rem, 1.6vw, 1.35rem);
}

.tp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--tp-paper);
  border: 1px solid var(--tp-line);
  border-radius: var(--tp-radius-lg);
  overflow: hidden;
  transition: transform 0.25s var(--tp-ease), box-shadow 0.25s var(--tp-ease), border-color 0.25s var(--tp-ease);
}

.tp-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--tp-shadow-md);
  border-color: transparent;
}

.tp-card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--tp-ivory-deep);
}

.tp-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--tp-ease);
}

.tp-card:hover .tp-card__media img {
  transform: scale(1.05);
}

.tp-card__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(to top, rgba(23, 45, 56, 0.42), transparent);
  pointer-events: none;
}

.tp-card__badges {
  position: absolute;
  inset: 0.7rem auto auto 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  z-index: 2;
}

.tp-card__save {
  position: absolute;
  inset: 0.6rem 0.6rem auto auto;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  color: var(--tp-ink);
  cursor: pointer;
  transition: background 0.2s var(--tp-ease), color 0.2s var(--tp-ease), transform 0.2s var(--tp-ease);
}

.tp-card__save:hover {
  transform: scale(1.05);
}

.tp-card__save[aria-pressed="true"] {
  background: var(--tp-coral);
  color: #fff;
}

.tp-card__media-label {
  position: absolute;
  inset: auto 0.75rem 0.7rem 0.75rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.tp-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.9rem 1rem 1.05rem;
}

.tp-card__title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.tp-card__title a {
  color: inherit;
  text-decoration: none;
}

/* Stretched link keeps the whole card clickable without nesting buttons. */
.tp-card__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.tp-card__meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: var(--tp-ink-muted);
  min-height: 20px;
}

.tp-card__meta .icon {
  flex: none;
  opacity: 0.75;
}

.tp-card__rating {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font-weight: 700;
  font-size: 0.84rem;
  color: var(--tp-ink);
}

.tp-card__rating .icon {
  color: var(--tp-gold);
}

.tp-card__summary {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--tp-ink-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tp-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: 0.35rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--tp-line);
  font-size: 0.8rem;
}

.tp-card__category {
  color: var(--tp-ink-muted);
  font-weight: 600;
}

.tp-card__operator {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--tp-teal);
  font-weight: 650;
}

/* Compact horizontal card for list results and nearby sections. */
.tp-card--row {
  flex-direction: row;
  align-items: stretch;
}

.tp-card--row .tp-card__media {
  width: 40%;
  min-width: 128px;
  aspect-ratio: auto;
}

.tp-card--row .tp-card__body {
  flex: 1;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   7. Cities and dark editorial bands
   -------------------------------------------------------------------------- */
.tp-cities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
}

.tp-city {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--tp-radius);
  overflow: hidden;
  background: var(--tp-ink);
  text-decoration: none;
  color: #fff;
}

.tp-city img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--tp-ease);
}

.tp-city:hover img {
  transform: scale(1.06);
}

.tp-city::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(23, 45, 56, 0.82) 8%, rgba(23, 45, 56, 0.15) 55%, transparent);
}

.tp-city__body {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 0.9rem 1rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
}

.tp-city__name {
  font-weight: 750;
  font-size: 1rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.tp-city__count {
  font-size: 0.76rem;
  opacity: 0.82;
}

.tp-city__arrow {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
  flex: none;
  transition: background 0.2s var(--tp-ease), transform 0.2s var(--tp-ease);
}

.tp-city:hover .tp-city__arrow {
  background: var(--tp-coral);
  transform: translateX(2px);
}

/* Typographic city tiles: no invented city photography, only real flags. */
.tp-city--text {
  background: linear-gradient(150deg, #1d3a46 0%, #172d38 55%, #24424e 100%);
}

.tp-city--text::after {
  background: linear-gradient(to top, rgba(10, 22, 28, 0.9), rgba(10, 22, 28, 0.15) 70%, transparent);
}

.tp-city--text .tp-city__wash {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at center, rgba(199, 155, 84, 0.35) 1px, transparent 1.1px);
  background-size: 18px 18px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse at 80% 10%, #000, transparent 70%);
}

.tp-city__flag {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.tp-band {
  position: relative;
  overflow: hidden;
  background: var(--tp-ink);
  color: #fff;
  border-radius: var(--tp-radius-xl);
  padding: clamp(1.6rem, 4vw, 3rem);
}

.tp-band::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 55%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(40, 122, 116, 0.55), transparent 65%);
  pointer-events: none;
}

.tp-band .tp-kicker {
  color: var(--tp-gold);
}

.tp-band .tp-section__head h2 {
  color: #fff;
}

.tp-band .tp-section__head p {
  color: rgba(255, 255, 255, 0.66);
}

.tp-band .tp-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.tp-band .tp-card__meta,
.tp-band .tp-card__category,
.tp-band .tp-card__summary,
.tp-band .tp-card__rating {
  color: rgba(255, 255, 255, 0.72);
}

.tp-band .tp-card__title,
.tp-band .tp-card__rating {
  color: #fff;
}

.tp-band .tp-card__foot {
  border-color: rgba(255, 255, 255, 0.14);
}

/* Map teaser */
.tp-map-teaser {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.tp-map-teaser__visual {
  position: relative;
  border-radius: var(--tp-radius-lg);
  overflow: hidden;
  min-height: 240px;
  background: radial-gradient(circle at 30% 40%, rgba(40, 122, 116, 0.5), transparent 60%), #12232c;
}

.tp-map-teaser__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  mix-blend-mode: screen;
}

.tp-map-teaser__pin {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--tp-coral);
  box-shadow: 0 0 0 6px rgba(211, 101, 85, 0.22);
  animation: tp-pulse 3.4s var(--tp-ease) infinite;
}

@keyframes tp-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(211, 101, 85, 0.2); }
  50% { box-shadow: 0 0 0 10px rgba(211, 101, 85, 0.06); }
}

/* CTA band */
.tp-cta {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
  padding: clamp(1.4rem, 3vw, 2.2rem) clamp(1.4rem, 3vw, 2.6rem);
  border-radius: var(--tp-radius-xl);
  background:
    radial-gradient(circle at 88% 20%, rgba(199, 155, 84, 0.26), transparent 55%),
    linear-gradient(120deg, #f7efe1, #fbf8f2 60%);
  border: 1px solid rgba(199, 155, 84, 0.35);
}

.tp-cta h2 {
  margin: 0.2rem 0 0.35rem;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.tp-cta p {
  margin: 0;
  color: var(--tp-ink-muted);
  font-size: 0.94rem;
}

/* Lightbox */
.tp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(10, 20, 25, 0.92);
  backdrop-filter: blur(6px);
}

.tp-lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--tp-radius);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
}

.tp-lightbox__close {
  position: absolute;
  inset: 1rem 1rem auto auto;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.tp-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.24);
}

/* --------------------------------------------------------------------------
   8. Empty states
   -------------------------------------------------------------------------- */.tp-empty {
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  text-align: center;
  padding: clamp(2rem, 5vw, 3.5rem) 1.5rem;
  border: 1px dashed var(--tp-line-strong);
  border-radius: var(--tp-radius-lg);
  background: rgba(255, 255, 255, 0.55);
}

.tp-empty .icon {
  color: var(--tp-gold);
}

.tp-empty h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 750;
}

.tp-empty p {
  margin: 0;
  max-width: 46ch;
  color: var(--tp-ink-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   9. Map + list discovery
   -------------------------------------------------------------------------- */
.tp-explore {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 1.25rem;
  align-items: start;
}

.tp-explore__list {
  min-width: 0;
}

.tp-explore__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}

.tp-explore__count {
  font-size: 0.88rem;
  color: var(--tp-ink-muted);
}

.tp-explore__count strong {
  color: var(--tp-ink);
}

.tp-results {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tp-results .tp-card.is-selected {
  border-color: var(--tp-teal);
  box-shadow: 0 0 0 3px var(--tp-teal-soft), var(--tp-shadow-md);
}

.tp-map {
  position: sticky;
  top: 84px;
  border-radius: var(--tp-radius-lg);
  overflow: hidden;
  border: 1px solid var(--tp-line);
  background: var(--tp-ivory-deep);
  height: min(76vh, 780px);
  min-height: 420px;
}

.tp-map__canvas {
  width: 100%;
  height: 100%;
}

.tp-map__overlay {
  position: absolute;
  inset: 0.85rem auto auto 0.85rem;
  z-index: 500;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  max-width: calc(100% - 1.7rem);
}

.tp-map__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 36px;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--tp-line);
  background: rgba(255, 255, 255, 0.96);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--tp-ink);
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.tp-map__chip:hover {
  background: #fff;
}

.tp-map__attribution-note {
  margin: 0.5rem 0 0;
  font-size: 0.72rem;
  color: var(--tp-ink-muted);
}

.tp-mobile-toggle {
  display: none;
  gap: 0.4rem;
  padding: 0.3rem;
  border-radius: 999px;
  background: rgba(23, 45, 56, 0.06);
  margin-bottom: 0.8rem;
}

.tp-mobile-toggle button {
  flex: 1;
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-weight: 650;
  font-size: 0.9rem;
  color: var(--tp-ink-muted);
  cursor: pointer;
}

.tp-mobile-toggle button[aria-pressed="true"] {
  background: #fff;
  color: var(--tp-ink);
  box-shadow: var(--tp-shadow-sm);
}

/* --------------------------------------------------------------------------
   10. Filters
   -------------------------------------------------------------------------- */
.tp-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--tp-line);
  margin-bottom: 1rem;
}

.tp-filters details {
  position: relative;
}

.tp-filters summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 38px;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 650;
  border: 1px solid var(--tp-line);
  background: #fff;
  white-space: nowrap;
}

.tp-filters summary::-webkit-details-marker {
  display: none;
}

.tp-filters summary[data-active="true"] {
  border-color: var(--tp-teal);
  color: var(--tp-teal);
  background: var(--tp-teal-soft);
}

.tp-filters__panel {
  position: absolute;
  inset: calc(100% + 0.5rem) auto auto 0;
  z-index: 40;
  min-width: 240px;
  max-height: 320px;
  overflow-y: auto;
  padding: 0.7rem;
  border-radius: var(--tp-radius);
  background: #fff;
  border: 1px solid var(--tp-line);
  box-shadow: var(--tp-shadow-md);
}

.tp-filters__option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.4rem;
  border-radius: 8px;
  font-size: 0.87rem;
  cursor: pointer;
}

.tp-filters__option:hover {
  background: rgba(23, 45, 56, 0.05);
}

.tp-filters__option input {
  accent-color: var(--tp-teal);
  width: 16px;
  height: 16px;
}

.tp-filters__apply {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--tp-line);
}

.tp-filters__reset {
  margin-inline-start: auto;
  font-size: 0.82rem;
  color: var(--tp-coral-dark);
  font-weight: 650;
  text-decoration: none;
}

.tp-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}

.tp-active-filters a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--tp-teal-soft);
  color: #1d5f5a;
  font-size: 0.78rem;
  font-weight: 650;
  text-decoration: none;
}

/* Leaflet theming */
.tp-map .leaflet-container {
  font: inherit;
  background: #dfe6e3;
}

.tp-map .leaflet-bar a {
  border-radius: 8px;
  color: var(--tp-ink);
}

.tp-map .leaflet-popup-content-wrapper {
  border-radius: 14px;
  box-shadow: var(--tp-shadow-md);
}

.tp-map .leaflet-popup-content {
  margin: 0.7rem 0.8rem;
  font-size: 0.86rem;
  line-height: 1.4;
}

.tp-pop__title {
  font-weight: 750;
  font-size: 0.94rem;
  margin: 0 0 0.15rem;
}

.tp-pop__meta {
  color: var(--tp-ink-muted);
  font-size: 0.78rem;
  margin: 0 0 0.4rem;
}

.tp-pop__link {
  font-weight: 650;
  color: var(--tp-coral-dark);
  text-decoration: none;
}

.tp-marker {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50% 50% 50% 4px;
  transform: rotate(-45deg);
  background: var(--tp-coral);
  border: 2px solid #fff;
  box-shadow: 0 4px 12px rgba(23, 45, 56, 0.35);
}

.tp-marker span {
  transform: rotate(45deg);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}

.tp-marker[data-tone="teal"] { background: var(--tp-teal); }
.tp-marker[data-tone="gold"] { background: var(--tp-gold); }
.tp-marker[data-tone="ink"] { background: var(--tp-ink); }

/* --------------------------------------------------------------------------
   11. Place profile
   -------------------------------------------------------------------------- */
.tp-profile {
  padding-top: clamp(1rem, 2vw, 1.6rem);
}

.tp-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--tp-ink-muted);
  margin-bottom: 0.9rem;
}

.tp-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.tp-breadcrumb a:hover {
  color: var(--tp-ink);
}

.tp-gallery {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  border-radius: var(--tp-radius-lg);
  overflow: hidden;
  aspect-ratio: 21 / 9;
  min-height: 300px;
}

.tp-gallery__item {
  position: relative;
  overflow: hidden;
  background: var(--tp-ivory-deep);
}

.tp-gallery__item:first-child {
  grid-row: span 2;
}

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

.tp-gallery__action {
  position: absolute;
  inset: auto 0.75rem 0.75rem auto;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 38px;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 0;
  background: rgba(23, 45, 56, 0.72);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.tp-gallery__single {
  grid-column: span 2;
  grid-row: span 2;
  border-radius: var(--tp-radius-lg);
  overflow: hidden;
}

.tp-profile__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: start;
  padding-block: clamp(1.1rem, 2vw, 1.6rem);
}

.tp-profile__title {
  margin: 0.35rem 0 0.35rem;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 800;
}

.tp-profile__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.9rem;
  font-size: 0.9rem;
  color: var(--tp-ink-muted);
}

.tp-profile__meta .icon {
  opacity: 0.7;
}

.tp-profile__rating {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  color: var(--tp-ink);
}

.tp-profile__rating .icon {
  color: var(--tp-gold);
}

.tp-profile__summary {
  margin: 0.75rem 0 0;
  max-width: 62ch;
  color: var(--tp-ink-soft);
  line-height: 1.65;
  font-size: 1rem;
}

.tp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.tp-tabs {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  border-bottom: 1px solid var(--tp-line);
  scrollbar-width: none;
  margin-top: 0.5rem;
}

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

.tp-tab {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--tp-ink-muted);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}

.tp-tab[aria-selected="true"],
.tp-tab.is-active {
  color: var(--tp-ink);
  border-bottom-color: var(--tp-coral);
}

.tp-profile__body {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.25rem);
  padding-block: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
}

.tp-panel {
  background: var(--tp-paper);
  border: 1px solid var(--tp-line);
  border-radius: var(--tp-radius-lg);
  padding: clamp(1rem, 2vw, 1.5rem);
}

.tp-panel + .tp-panel {
  margin-top: 1rem;
}

.tp-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.tp-panel__head h2,
.tp-panel__head h3 {
  margin: 0;
  font-size: 1.06rem;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.tp-facts {
  display: grid;
  gap: 0.75rem;
}

.tp-fact {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.92rem;
}

.tp-fact .icon {
  color: var(--tp-teal);
  margin-top: 2px;
  flex: none;
}

.tp-fact strong {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tp-ink-muted);
  font-weight: 700;
  margin-bottom: 2px;
}

.tp-fact a {
  color: var(--tp-ink);
}

.tp-hours {
  display: grid;
  gap: 0.25rem;
  margin-top: 0.35rem;
  font-size: 0.86rem;
}

.tp-hours__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.18rem 0;
}

.tp-hours__row[data-today="true"] {
  font-weight: 700;
}

.tp-hours__row span:first-child {
  color: var(--tp-ink-muted);
}

.tp-hours__row[data-today="true"] span:first-child {
  color: var(--tp-ink);
}

.tp-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tp-feature {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(23, 45, 56, 0.05);
  font-size: 0.8rem;
  font-weight: 600;
}

.tp-feature .icon {
  color: var(--tp-teal);
}

/* Operator card */
.tp-operator {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem;
  border-radius: var(--tp-radius);
  background: linear-gradient(120deg, rgba(40, 122, 116, 0.08), rgba(199, 155, 84, 0.1));
  border: 1px solid rgba(40, 122, 116, 0.16);
}

.tp-operator__logo {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
  background: #fff;
  flex: none;
}

.tp-operator__body {
  min-width: 0;
  flex: 1;
}

.tp-operator__body strong {
  display: block;
  font-size: 0.94rem;
}

.tp-operator__body span {
  font-size: 0.78rem;
  color: var(--tp-ink-muted);
}

.tp-locations {
  display: grid;
  gap: 0.5rem;
}

.tp-location-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem;
  border-radius: 12px;
  border: 1px solid var(--tp-line);
  text-decoration: none;
  color: inherit;
  font-size: 0.87rem;
  transition: border-color 0.2s var(--tp-ease), background 0.2s var(--tp-ease);
}

.tp-location-row:hover {
  border-color: var(--tp-teal);
  background: rgba(40, 122, 116, 0.05);
}

.tp-location-row img {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  object-fit: cover;
  flex: none;
}

.tp-location-row span {
  display: block;
  font-size: 0.76rem;
  color: var(--tp-ink-muted);
}

.tp-loc-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 9px;
  background: var(--tp-gold-soft);
  color: #8b6827;
  flex: none;
}

/* Reviews */
.tp-review-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--tp-line);
  margin-bottom: 1rem;
}

.tp-review-score {
  text-align: center;
}

.tp-review-score strong {
  display: block;
  font-size: 2.4rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.tp-review-score span {
  font-size: 0.78rem;
  color: var(--tp-ink-muted);
}

.tp-stars {
  display: inline-flex;
  gap: 1px;
  color: var(--tp-gold);
  font-size: 0.9rem;
}

.tp-bars {
  display: grid;
  gap: 0.25rem;
}

.tp-bar {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr) 2.6rem;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.76rem;
  color: var(--tp-ink-muted);
}

.tp-bar__track {
  height: 6px;
  border-radius: 999px;
  background: rgba(23, 45, 56, 0.1);
  overflow: hidden;
}

.tp-bar__fill {
  height: 100%;
  border-radius: 999px;
  background: var(--tp-gold);
}

.tp-review {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--tp-line);
}

.tp-review:last-child {
  border-bottom: 0;
}

.tp-review__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}

.tp-review__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.88rem;
}

.tp-review__head strong {
  font-weight: 700;
}

.tp-review__head time {
  font-size: 0.76rem;
  color: var(--tp-ink-muted);
  white-space: nowrap;
}

.tp-review__body {
  margin: 0.3rem 0 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--tp-ink-soft);
}

.tp-review__reply {
  margin-top: 0.5rem;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  background: rgba(40, 122, 116, 0.07);
  font-size: 0.86rem;
  line-height: 1.55;
}

.tp-review__reply strong {
  display: block;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tp-teal);
  margin-bottom: 0.2rem;
}

/* Forms */
.tp-form {
  display: grid;
  gap: 0.75rem;
}

.tp-field {
  display: grid;
  gap: 0.3rem;
}

.tp-field > label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--tp-ink-muted);
}

.tp-input,
.tp-select,
.tp-textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.6rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--tp-line-strong);
  background: #fff;
  font-size: 0.94rem;
  color: var(--tp-ink);
}

.tp-textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

.tp-rating-input {
  display: inline-flex;
  gap: 0.15rem;
}

.tp-rating-input input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tp-rating-input label {
  cursor: pointer;
  color: rgba(23, 45, 56, 0.22);
  font-size: 1.35rem;
  line-height: 1;
  transition: color 0.15s var(--tp-ease), transform 0.15s var(--tp-ease);
}

.tp-rating-input input:checked ~ label,
.tp-rating-input label:hover,
.tp-rating-input label:hover ~ label {
  color: var(--tp-gold);
}

.tp-rating-input input:focus-visible + label {
  outline: 2px solid var(--tp-teal);
  outline-offset: 2px;
  border-radius: 4px;
}

.tp-notice {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  background: var(--tp-teal-soft);
  color: #1d5f5a;
  font-size: 0.88rem;
  font-weight: 600;
}

.tp-notice--warning {
  background: rgba(211, 101, 85, 0.1);
  color: var(--tp-coral-dark);
}

/* Sticky action bar (mobile) */
.tp-actionbar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 60;
  display: none;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.7rem calc(0.55rem + env(safe-area-inset-bottom));
  background: rgba(250, 247, 240, 0.94);
  border-top: 1px solid var(--tp-line);
  backdrop-filter: blur(12px);
}

.tp-actionbar .tp-btn {
  flex: 1;
}

.tp-actionbar__icon {
  flex: none;
  width: 48px;
  padding: 0;
}

/* Cluster bubbles in the Places palette */
.tp-map .marker-cluster,
.tp-map .marker-cluster div {
  background: rgba(211, 101, 85, 0.25);
  color: var(--tp-ink);
}

.tp-map .marker-cluster {
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(23, 45, 56, 0.2);
}

.tp-map .marker-cluster div {
  background: var(--tp-coral);
  color: #fff;
  font-weight: 700;
  width: 32px;
  height: 32px;
  margin: 5px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.tp-map .marker-cluster-small div {
  background: var(--tp-teal);
}

.tp-map .marker-cluster-large div {
  background: var(--tp-ink);
}

/* --------------------------------------------------------------------------
   12. Moderation and manage screens
   -------------------------------------------------------------------------- */
.tp-admin {
  display: grid;
  gap: 1rem;
}

.tp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.87rem;
}

.tp-table th {
  text-align: start;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--tp-ink-muted);
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid var(--tp-line);
  white-space: nowrap;
}

.tp-table td {
  padding: 0.6rem;
  border-bottom: 1px solid var(--tp-line);
  vertical-align: top;
}

.tp-table tr:last-child td {
  border-bottom: 0;
}

.tp-counter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.7rem;
}

.tp-counter {
  padding: 0.9rem 1rem;
  border-radius: var(--tp-radius);
  background: #fff;
  border: 1px solid var(--tp-line);
}

.tp-counter strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.tp-counter span {
  font-size: 0.78rem;
  color: var(--tp-ink-muted);
}

/* --------------------------------------------------------------------------
   13. Responsive
   -------------------------------------------------------------------------- */

/* Large desktop */
@media (min-width: 1440px) {
  .tp-container {
    padding-inline: 3.5rem;
  }
}

/* Laptop */
@media (max-width: 1180px) {
  .tp-hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tp-collage {
    aspect-ratio: 16 / 9;
    min-height: 280px;
  }

  .tp-profile__body {
    grid-template-columns: minmax(0, 1fr);
  }

  .tp-explore {
    grid-template-columns: minmax(0, 1fr);
  }

  .tp-map {
    position: relative;
    top: 0;
    height: 60vh;
    order: -1;
  }
}

/* Tablet */
@media (max-width: 900px) {
  .tp-search__card {
    grid-template-columns: minmax(0, 1fr);
    border-radius: var(--tp-radius-lg);
    padding: 0.5rem;
    gap: 0.2rem;
  }

  .tp-search__field + .tp-search__field {
    border-inline-start: 0;
    border-top: 1px solid var(--tp-line);
  }

  .tp-search__submit {
    width: 100%;
  }

  .tp-profile__header {
    grid-template-columns: minmax(0, 1fr);
  }

  .tp-gallery {
    aspect-ratio: 4 / 3;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .tp-gallery__item:nth-child(n + 3) {
    display: none;
  }

  .tp-map-teaser {
    grid-template-columns: minmax(0, 1fr);
  }

  .tp-cta {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Mobile */
@media (max-width: 767px) {
  .tp-shell {
    padding-bottom: 6rem;
  }

  .tp-display {
    font-size: clamp(1.95rem, 8.5vw, 2.6rem);
  }

  .tp-collage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    aspect-ratio: 1 / 1;
    gap: 0.5rem;
  }

  .tp-collage__tile--lead {
    grid-row: span 1;
    grid-column: span 2;
    border-radius: var(--tp-radius);
  }

  .tp-collage__tile:nth-child(n + 4) {
    display: none;
  }

  .tp-section {
    padding-block: 2rem;
  }

  .tp-cat-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
  }

  .tp-card__body {
    padding: 0.7rem 0.75rem 0.85rem;
  }

  .tp-card__title {
    font-size: 0.94rem;
  }

  .tp-card__summary {
    display: none;
  }

  .tp-cities {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tp-mobile-toggle {
    display: flex;
  }

  .tp-explore[data-view="list"] .tp-map {
    display: none;
  }

  .tp-explore[data-view="map"] .tp-explore__list {
    display: none;
  }

  .tp-explore[data-view="map"] .tp-map {
    height: calc(100vh - 220px);
  }

  .tp-gallery {
    aspect-ratio: 3 / 2;
    border-radius: var(--tp-radius);
  }

  .tp-gallery__item:nth-child(n + 2) {
    display: none;
  }

  .tp-gallery__item:first-child {
    grid-column: span 2;
    grid-row: span 2;
  }

  .tp-actionbar {
    display: flex;
  }

  .tp-tabs {
    gap: 0;
  }

  .tp-tab {
    padding: 0.75rem 0.7rem;
    font-size: 0.86rem;
  }

  .tp-review-summary {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
  }

  .tp-filters {
    border-radius: var(--tp-radius);
    padding: 0.5rem;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

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

  .tp-filters__panel {
    position: fixed;
    inset: auto 0 0 0;
    min-width: 0;
    max-height: 60vh;
    border-radius: var(--tp-radius-lg) var(--tp-radius-lg) 0 0;
    box-shadow: 0 -20px 60px rgba(23, 45, 56, 0.25);
  }
}

/* Very small phones */
@media (max-width: 390px) {
  .tp-grid,
  .tp-cities,
  .tp-cat-rail {
    grid-template-columns: minmax(0, 1fr);
  }

  .tp-hero__meta {
    gap: 1rem;
  }
}

/* --------------------------------------------------------------------------
   14. Motion, print and RTL
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .tp-shell *,
  .tp-shell *::before,
  .tp-shell *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* High contrast support */
@media (forced-colors: active) {
  .tp-card,
  .tp-panel,
  .tp-city {
    border: 1px solid CanvasText;
  }
}

[dir="rtl"] .tp-link-arrow .icon,
[dir="rtl"] .tp-city__arrow {
  transform: scaleX(-1);
}
