/* Travel journal — dark theme (extends theme-dark.css on travel.html) */

.travel-journal-page {
  --tj-radius: 8px;
  --tj-font-serif: "Marcellus", Georgia, serif;
  --tj-font-sans: "Manrope", system-ui, sans-serif;
}

.travel-journal-page main.container-fluid > .row > .col {
  border: none !important;
}

.travel-journal-page main .section,
.travel-journal-page main section.section {
  padding-top: 0 !important;
}

.tj-main {
  margin: 0 auto;
  max-width: 100%;
  overflow-x: clip;
  padding: 0 clamp(1rem, 3vw, 1.5rem) 4rem;
}

@media (min-width: 1200px) {
  .travel-journal-page .tj-main {
    padding-left: clamp(0.5rem, 2vw, 1.25rem);
    padding-right: 1.5rem;
  }
}

@media (max-width: 1199.98px) {
  .travel-journal-page .tj-main {
    padding-top: 0;
  }
}

/* Hero */
.tj-hero {
  overflow-x: visible;
  padding: calc(4.25rem + 0.75rem) 0 1.75rem;
}

.tj-hero__grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.tj-hero__col-left {
  display: contents;
}

.tj-hero__copy-top {
  order: 1;
}

.tj-hero__col-media {
  margin: 0;
  order: 2;
  overflow: visible;
  width: 100%;
}

.tj-hero__copy-bottom {
  align-items: center;
  border-top: none;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.75rem 1rem;
  justify-content: space-between;
  order: 3;
}

.tj-hero__copy-bottom .tj-hero__stats {
  flex: 1 1 auto;
  margin-bottom: 0;
  min-width: 0;
}

.tj-hero__copy-bottom .tj-hero__actions {
  flex: 0 0 auto;
}

@media (min-width: 768px) {
  .tj-hero {
    padding: calc(5rem + 1rem) 0 2.25rem;
  }

  .tj-hero__grid {
    align-items: stretch;
    display: grid;
    gap: clamp(1.25rem, 2.5vw, 2rem);
    grid-template-columns: 5fr 7fr;
  }

  .tj-hero__col-left {
    display: flex;
    flex-direction: column;
    gap: clamp(1.25rem, 2.5vh, 2rem);
    grid-column: 1;
    grid-row: 1;
    justify-content: space-between;
    min-height: 0;
  }

  .tj-hero__col-media {
    align-self: start;
    grid-column: 2;
    grid-row: 1;
    order: unset;
  }

  .tj-hero__copy-top,
  .tj-hero__copy-bottom {
    order: unset;
  }
}

.tj-hero__eyebrow {
  color: var(--accent);
  font-family: var(--tj-font-sans);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  margin: 0 0 0.65rem;
  padding-left: calc(32px + 0.65rem);
  position: relative;
  text-transform: uppercase;
}

.tj-hero__eyebrow::before {
  background-color: var(--accent);
  content: "";
  height: 1px;
  left: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
}

@media (min-width: 768px) {
  .tj-hero__eyebrow {
    font-size: 0.6875rem;
    letter-spacing: 0.14em;
    margin-bottom: 0.85rem;
    padding-left: calc(48px + 0.75rem);
  }

  .tj-hero__eyebrow::before {
    width: 48px;
  }
}

.tj-hero__title {
  color: var(--text);
  font-family: var(--tj-font-serif);
  font-size: clamp(1.875rem, 7.5vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.02;
  margin: 0 0 0.65rem;
  max-width: 100%;
}

@media (min-width: 768px) {
  .tj-hero__title {
    font-size: clamp(2.25rem, 3.8vw, 3.5rem);
    line-height: 0.98;
    margin-bottom: 0.85rem;
    white-space: nowrap;
  }
}

@media (min-width: 1200px) {
  .tj-hero__grid {
    grid-template-columns: minmax(0, 1.05fr) 0.95fr;
  }

  .tj-hero__title {
    font-size: clamp(2.5rem, 3.2vw, 3.75rem);
  }
}

.tj-hero__subtitle {
  color: var(--text);
  font-family: var(--tj-font-serif);
  font-size: 1.0625rem;
  line-height: 1.35;
  margin: 0 0 0.75rem;
  max-width: none;
  white-space: nowrap;
}

.tj-hero__description {
  color: var(--text-muted);
  font-family: var(--tj-font-sans);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0;
  max-width: 42ch;
}

@media (min-width: 768px) {
  .tj-hero__subtitle {
    font-size: 1.1875rem;
    margin-bottom: 0.85rem;
  }

  .tj-hero__description {
    font-size: 1rem;
    line-height: 1.65;
    max-width: 44ch;
  }
}

.tj-hero__stats {
  border: none;
  border-top: none !important;
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(1.25rem, 6vw, 2.5rem);
  margin: 0 0 1rem;
  padding-top: 0;
}

@media (min-width: 768px) {
  .tj-hero__stats {
    gap: clamp(1.5rem, 4vw, 3rem);
    margin-bottom: 1.15rem;
  }
}

.tj-hero__stat {
  display: flex;
  flex: 0 1 auto;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.tj-hero__stat-value {
  color: var(--text);
  font-family: var(--tj-font-serif);
  font-size: clamp(1.75rem, 6.5vw, 2.25rem);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

@media (min-width: 768px) {
  .tj-hero__stat-value {
    font-size: clamp(2rem, 2.8vw, 2.75rem);
  }
}

.tj-hero__stat-label {
  color: var(--text-dim);
  font-family: var(--tj-font-sans);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .tj-hero__stat-label {
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
  }
}

.tj-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tj-hero__photo-wrap {
  max-width: 100%;
  position: relative;
  width: 100%;
}

/* Offset double frame — same pattern as index hero .img-wrapper */
.tj-hero__photo-wrap::before,
.tj-hero__photo-wrap::after {
  background: transparent;
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  border-radius: var(--radius-lg);
  box-shadow: none;
  box-sizing: border-box;
  content: "";
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.tj-hero__photo-wrap::before {
  bottom: 16px;
  left: -16px;
  right: 16px;
  top: -16px;
}

.tj-hero__photo-wrap::after {
  bottom: -16px;
  left: 16px;
  right: -16px;
  top: 16px;
}

.tj-hero__photo-frame {
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(239, 234, 224, 0.18);
  border-radius: var(--radius-lg);
  box-shadow: none;
  height: auto;
  isolation: isolate;
  max-height: min(58vw, 22rem);
  overflow: hidden;
  position: relative;
  width: 100%;
  z-index: 1;
}

.tj-hero__photo-frame::before {
  background: rgba(184, 150, 79, 0.08);
  content: "";
  inset: 0;
  mix-blend-mode: soft-light;
  pointer-events: none;
  position: absolute;
  z-index: 2;
}

.tj-hero__photo-frame::after {
  background: linear-gradient(
    to top,
    rgba(15, 14, 12, 0.72) 0%,
    rgba(15, 14, 12, 0) 45%
  );
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 3;
}

.tj-hero__photo {
  display: block;
  filter: saturate(0.82) contrast(1.03) sepia(0.1);
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  width: 100%;
}

.tj-hero__caption {
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  inset-inline: 0;
  padding: 1.25rem 1.15rem 1.1rem;
  pointer-events: none;
  position: absolute;
  z-index: 4;
}

.tj-hero__caption-city {
  color: var(--text);
  font-family: var(--tj-font-serif);
  font-size: 1.125rem;
  line-height: 1.15;
}

@media (min-width: 768px) {
  .tj-hero__photo-frame {
    max-height: min(48vh, 30rem);
  }

  .tj-hero__caption-city {
    font-size: 1.25rem;
  }
}

.tj-hero__caption-meta {
  color: var(--text-muted);
  font-family: var(--tj-font-sans);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

@keyframes tj-hero-fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tj-hero-photo-in {
  from {
    opacity: 0;
    transform: scale(1.03);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes tj-hero-outline-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.tj-hero--motion .tj-hero__reveal {
  animation: tj-hero-fade-up 0.55s ease both;
  animation-delay: calc(var(--tj-hero-delay, 0) * 80ms);
  opacity: 0;
}

.tj-hero--motion .tj-hero__photo-reveal {
  animation: tj-hero-photo-in 0.7s ease both;
  opacity: 0;
}

.tj-hero--motion .tj-hero__photo-wrap::before,
.tj-hero--motion .tj-hero__photo-wrap::after {
  animation: tj-hero-outline-in 0.4s ease 0.3s both;
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .tj-hero--motion .tj-hero__reveal,
  .tj-hero--motion .tj-hero__photo-reveal,
  .tj-hero--motion .tj-hero__photo-wrap::before,
  .tj-hero--motion .tj-hero__photo-wrap::after {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.tj-btn {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
  font-family: var(--tj-font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 0.65rem 1.25rem;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.tj-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.tj-btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.tj-btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.tj-btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--accent-ink);
}

.tj-btn.tj-btn--hero-map {
  align-items: center;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  color: var(--accent-ink) !important;
  display: inline-flex;
  font-family: var(--tj-font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  gap: 0.4rem;
  letter-spacing: 0.04em;
  padding: 0.55rem 0.95rem;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.tj-btn.tj-btn--hero-map:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--accent-ink) !important;
}

.tj-btn.tj-btn--hero-map:hover span,
.tj-btn.tj-btn--hero-map:hover i {
  color: var(--accent-ink) !important;
}

.tj-btn.tj-btn--hero-map:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.tj-btn.tj-btn--hero-map span,
.tj-btn.tj-btn--hero-map i {
  color: var(--accent-ink) !important;
  font-size: inherit;
}

.tj-btn.tj-btn--hero-map i {
  font-size: 1.05rem;
  line-height: 1;
}

@media (max-width: 767.98px) {
  .tj-hero__copy-top {
    max-width: 100%;
    width: 100%;
  }

  .tj-hero__subtitle {
    font-size: clamp(0.75rem, 3.35vw, 1.0625rem);
    line-height: 1.25;
    max-width: none;
    white-space: nowrap;
  }

  .tj-hero__description {
    max-width: none;
    width: 100%;
  }

  .tj-hero__caption {
    padding: 0.85rem 0.9rem 0.75rem;
  }

  .tj-hero__photo-wrap::before {
    bottom: 12px;
    left: -12px;
    right: 12px;
    top: -12px;
  }

  .tj-hero__photo-wrap::after {
    bottom: -12px;
    left: 12px;
    right: -12px;
    top: 12px;
  }
}

.tj-toolbar {
  align-items: center;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding: 1rem 0;
}

.tj-toolbar__label {
  color: var(--text-dim);
  font-family: var(--tj-font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Gallery */
.tj-gallery {
  column-count: 1;
  column-gap: 1rem;
}

@media (min-width: 600px) {
  .tj-gallery {
    column-count: 2;
  }
}

@media (min-width: 992px) {
  .tj-gallery {
    column-count: 2;
    column-gap: 1.25rem;
  }
}

.tj-item {
  appearance: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--tj-radius);
  break-inside: avoid;
  cursor: pointer;
  display: block;
  margin: 0 0 1.25rem;
  overflow: hidden;
  padding: 0;
  position: relative;
  text-align: left;
  width: 100%;
}

.tj-item img {
  display: block;
  height: auto;
  min-height: 120px;
  transition: opacity 0.35s ease, transform 0.45s ease;
  width: 100%;
}

.tj-item:hover img,
.tj-item:focus-visible img {
  opacity: 0.92;
  transform: scale(1.02);
}

.tj-item:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.tj-item__caption {
  display: flex;
  flex-wrap: wrap;
  font-family: var(--tj-font-sans);
  font-size: 0.75rem;
  gap: 0.35rem 0.5rem;
  justify-content: space-between;
  padding: 0.65rem 0.75rem 0.75rem;
}

.tj-item__place {
  color: var(--text);
}

.tj-item__country {
  color: var(--text-dim);
}

.tj-load-more-wrap {
  margin-top: 2rem;
  text-align: center;
}

.tj-gallery--empty {
  color: var(--text-muted);
  font-family: var(--tj-font-sans);
  padding: 2rem 0;
  text-align: center;
}

/* Lightbox */
.tj-lightbox {
  align-items: center;
  background: rgba(8, 7, 6, 0.97);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 3.75rem clamp(0.75rem, 3vw, 1.5rem) 1.5rem;
  position: fixed;
  z-index: 200;
}

.tj-lightbox__inner {
  margin: 0 auto;
  max-height: 100%;
  max-width: min(56rem, 100%);
  width: 100%;
}

.tj-lightbox__stage {
  align-items: center;
  display: flex;
  gap: clamp(0.5rem, 2vw, 1.25rem);
  justify-content: center;
  width: 100%;
}

.tj-lightbox__frame {
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
}

.tj-lightbox__img {
  border-radius: var(--tj-radius);
  display: inline-block;
  height: auto;
  max-height: min(72vh, calc(100vh - 12rem));
  max-width: 100%;
  object-fit: contain;
  vertical-align: middle;
  width: auto;
}

.tj-lightbox__meta {
  color: var(--text-muted);
  font-family: var(--tj-font-sans);
  margin-top: 1.25rem;
  padding: 0 0.5rem;
  text-align: center;
}

.tj-lightbox__location {
  color: var(--text);
  font-family: var(--tj-font-serif);
  font-size: 1.25rem;
  margin: 0;
}

.tj-lightbox__date,
.tj-lightbox__note {
  color: var(--text-dim);
  font-size: 0.875rem;
  margin: 0.35rem 0 0;
}

.tj-lightbox__close {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  font-size: 1.35rem;
  height: 2.5rem;
  justify-content: center;
  line-height: 1;
  padding: 0;
  position: fixed;
  right: max(1rem, env(safe-area-inset-right, 0px));
  top: max(1rem, env(safe-area-inset-top, 0px));
  width: 2.5rem;
  z-index: 210;
}

.tj-lightbox__close:hover {
  border-color: var(--text-dim);
  color: var(--text);
}

.tj-lightbox__prev,
.tj-lightbox__next {
  align-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  flex-shrink: 0;
  font-size: 1.125rem;
  height: 2.5rem;
  justify-content: center;
  padding: 0;
  position: static;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
  width: 2.5rem;
}

.tj-lightbox__prev span,
.tj-lightbox__next span {
  line-height: 1;
  margin-top: -0.05em;
}

.tj-lightbox__prev:hover,
.tj-lightbox__next:hover {
  background: var(--surface);
  border-color: var(--text-dim);
  color: var(--text);
}

.tj-lightbox__close:focus,
.tj-lightbox__prev:focus,
.tj-lightbox__next:focus {
  outline: none;
}

.tj-lightbox__close:focus-visible,
.tj-lightbox__prev:focus-visible,
.tj-lightbox__next:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

@media (max-width: 639.98px) {
  .tj-lightbox {
    padding-top: 3.25rem;
  }

  .tj-lightbox__stage {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 0.85rem;
    column-gap: 2.75rem;
  }

  .tj-lightbox__frame {
    flex: 1 1 100%;
    order: 1;
    width: 100%;
  }

  .tj-lightbox__prev {
    order: 2;
  }

  .tj-lightbox__next {
    order: 3;
  }

  .tj-lightbox__img {
    max-height: min(58vh, calc(100vh - 14rem));
  }
}

body.tj-lightbox-open,
body.tj-map-open {
  overflow: hidden;
}

body.tj-lightbox-open .navigation,
body.tj-lightbox-open .header,
body.tj-map-open .navigation,
body.tj-map-open .header {
  z-index: 50 !important;
}

/* Map — Esri World Imagery (satellite) */
.tj-map {
  background: var(--bg);
  inset: 0;
  position: fixed;
  z-index: 180;
}

.tj-map__bar {
  align-items: center;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  padding: 0.85rem clamp(1rem, 3vw, 1.5rem);
  position: relative;
  z-index: 2;
}

.tj-map__title {
  color: var(--text);
  font-family: var(--tj-font-serif);
  font-size: 1.125rem;
  margin: 0;
}

.tj-map__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tj-map__canvas-wrap {
  height: calc(100% - 3.25rem);
  position: relative;
}

#tj-map-canvas {
  height: 100%;
  width: 100%;
}

.tj-map .leaflet-container {
  background: #0c0b0a;
  font-family: var(--tj-font-sans);
}

.tj-map .tj-map__title {
  font-family: var(--tj-font-sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.tj-map .leaflet-control-zoom a {
  background: var(--surface-2) !important;
  border-color: var(--line) !important;
  color: var(--text) !important;
}

.tj-map .leaflet-control-attribution {
  background: transparent !important;
  box-shadow: none !important;
  color: var(--text-dim) !important;
  font-size: 10px !important;
}

.tj-map .leaflet-control-attribution a {
  color: var(--text-muted) !important;
}

.leaflet-div-icon.tj-marker-wrap {
  background: transparent !important;
  border: none !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.tj-marker {
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 4px 18px rgba(0, 0, 0, 0.55);
  display: block;
  flex-shrink: 0;
  height: 44px;
  min-height: 44px;
  min-width: 44px;
  overflow: hidden;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: 44px;
}

.tj-marker img {
  aspect-ratio: unset;
  display: block;
  height: 40px;
  max-width: none;
  min-height: 100%;
  min-width: 100%;
  object-fit: cover;
  width: 40px;
}

.tj-marker-wrap:hover .tj-marker,
.tj-marker-wrap:focus-within .tj-marker {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.55);
  transform: scale(1.08);
}

.tj-map-preview {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--tj-radius);
  bottom: 1.25rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  left: 50%;
  max-width: min(22rem, calc(100% - 2rem));
  position: absolute;
  transform: translateX(-50%);
  width: 100%;
  z-index: 500;
}

.tj-map-preview__img {
  border-radius: var(--tj-radius) var(--tj-radius) 0 0;
  display: block;
  height: 140px;
  object-fit: cover;
  width: 100%;
}

.tj-map-preview__body {
  padding: 1rem 1.1rem 1.15rem;
  position: relative;
}

.tj-map-preview__title {
  color: var(--text);
  font-family: var(--tj-font-serif);
  font-size: 1.25rem;
  margin: 0;
}

.tj-map-preview__country,
.tj-map-preview__date {
  color: var(--text-dim);
  font-size: 0.8125rem;
  margin: 0.25rem 0 0;
}

.tj-map-preview__cta {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font-family: var(--tj-font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-top: 0.85rem;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tj-map-preview__close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  position: absolute;
  right: 0.5rem;
  top: -10.5rem;
}

/* —— City cards —— */
.tj-overview {
  margin-bottom: 2.5rem;
}

.tj-overview__head {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.tj-overview__title {
  color: var(--text);
  font-family: var(--tj-font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  margin: 0;
}

.tj-overview__stats {
  color: var(--text-dim);
  font-family: var(--tj-font-sans);
  font-size: 0.875rem;
  margin: 0;
}

.tj-overview__map {
  aspect-ratio: 21 / 9;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  isolation: isolate;
  max-width: 100%;
  min-height: min(40vw, 18rem);
  overflow: hidden;
  position: relative;
  width: 100%;
  z-index: 0;
}

.tj-overview__map-canvas {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.tj-overview__map-canvas.leaflet-container,
.tj-panel__map-host .leaflet-container {
  background: #0c0b0a !important;
  background-color: #0c0b0a !important;
  font-family: var(--tj-font-sans);
  height: 100%;
  width: 100%;
}

.tj-overview__map .leaflet-control-zoom a,
.tj-panel__map-host .leaflet-control-zoom a {
  background: var(--surface-2) !important;
  border-color: var(--line) !important;
  color: var(--text) !important;
}

.tj-overview__map .leaflet-control-attribution,
.tj-panel__map-host .leaflet-control-attribution {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  color: var(--text-dim) !important;
  font-size: 10px !important;
  margin-right: 10px !important;
}

.travel-journal-page .leaflet-control-attribution {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

.tj-overview__map .leaflet-control-attribution a,
.tj-panel__map-host .leaflet-control-attribution a {
  color: var(--text-muted) !important;
}

.tj-overview__map .leaflet-control-attribution svg,
.tj-panel__map-host .leaflet-control-attribution svg,
.tj-overview__map .leaflet-control-attribution img,
.tj-panel__map-host .leaflet-control-attribution img {
  display: none !important;
}

.tj-overview__empty {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin: 0;
  padding: 1.25rem;
}

.tj-cities {
  margin-bottom: 2.5rem;
}

.tj-city-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr));
  margin: 0;
  padding: 0;
  width: 100%;
}

.tj-city-card {
  appearance: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  text-align: left;
  transition: border-color 150ms ease;
  width: 100%;
}

.tj-city-card:hover {
  border-color: var(--accent);
}

.tj-city-card:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.tj-city-card__media {
  aspect-ratio: 3 / 4;
  background: var(--surface-2);
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.tj-city-card__img {
  display: block;
  filter: saturate(0.88) contrast(1.02);
  height: 100%;
  inset: 0;
  object-fit: cover;
  object-position: center;
  position: absolute;
  transition: filter 150ms ease;
  width: 100%;
}

.tj-city-card:hover .tj-city-card__img,
.tj-city-card:focus-visible .tj-city-card__img {
  filter: none;
}

.tj-city-card__body {
  padding: 0.85rem 1rem 1rem;
}

.tj-city-card__title-row {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.tj-city-card__title {
  color: var(--text);
  font-family: var(--tj-font-serif);
  font-size: 1.125rem;
  font-weight: 400;
  margin: 0;
}

.tj-city-card__chip {
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  color: var(--accent);
  font-family: var(--tj-font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
  padding: 0.35rem 0.5rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.tj-city-card__meta {
  color: var(--text-dim);
  font-family: var(--tj-font-sans);
  font-size: 0.8125rem;
  margin: 0 0 0.35rem;
}

.tj-city-card__coords {
  color: var(--text-dim);
  font-family: var(--tj-font-sans);
  font-size: 12px;
  letter-spacing: 0.04em;
  margin: 0;
  font-variant-numeric: tabular-nums;
}

/* Locator SVG */
.tj-locator {
  height: 100%;
  width: 100%;
}

.tj-locator svg {
  display: block;
  height: 100%;
  width: 100%;
}

.tj-locator__bg {
  fill: var(--surface);
}

.tj-locator__land {
  fill: var(--surface-2);
  stroke: var(--line);
  stroke-width: 1;
}

.tj-locator__dot {
  fill: var(--accent);
}

.tj-locator__pulse {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  animation: tj-locator-pulse 2s ease-out infinite;
  opacity: 0.55;
}

.tj-overview .tj-locator__marker {
  cursor: pointer;
}

.tj-overview .tj-locator__marker:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

@keyframes tj-locator-pulse {
  0% {
    opacity: 0.65;
    r: 5;
  }
  100% {
    opacity: 0;
    r: 14;
  }
}

/* Detail panel */
.tj-panel {
  inset: 0;
  position: fixed;
  z-index: 220;
}

.tj-panel__overlay {
  background: rgba(15, 14, 12, 0.8);
  inset: 0;
  position: absolute;
}

.tj-panel__sheet {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  left: 0;
  max-height: 92vh;
  position: absolute;
  right: 0;
  width: 100%;
}

.tj-panel__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.25rem 1rem 0;
}

.tj-panel__close {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  font-size: 1.35rem;
  height: 2.5rem;
  justify-content: center;
  line-height: 1;
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 2.5rem;
  z-index: 2;
}

.tj-panel__grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

.tj-panel__figure {
  margin: 0;
}

.tj-panel__photo {
  border-radius: var(--radius-lg);
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.tj-panel__credit {
  color: var(--text-dim);
  font-size: 0.75rem;
  margin-top: 0.5rem;
}

.tj-panel__title {
  color: var(--text);
  font-family: var(--tj-font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  margin: 0 0 0.5rem;
  padding-right: 2.5rem;
}

.tj-panel__line {
  color: var(--text-dim);
  font-family: var(--tj-font-sans);
  font-size: 0.875rem;
  margin: 0 0 1rem;
}

.tj-panel__coords-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-bottom: 1rem;
}

.tj-panel__coords {
  color: var(--text-dim);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.tj-panel__copy {
  font-size: 0.75rem;
  padding: 0.4rem 0.75rem;
}

.tj-panel__copy-live {
  color: var(--accent);
  font-size: 0.75rem;
}

.tj-surface-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  padding: 0.75rem;
}

.tj-panel__map-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.5rem;
}

.tj-panel__map-host {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
  min-height: 12rem;
  overflow: hidden;
  position: relative;
}

.tj-panel__map-canvas {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.tj-panel__note {
  color: var(--text-muted);
  font-family: var(--tj-font-sans);
  font-size: 17px;
  line-height: 1.65;
  margin: 0 0 1rem;
}

.tj-panel__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tj-panel__tag {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
}

.tj-panel__maps-link {
  color: var(--accent);
  display: inline-block;
  font-family: var(--tj-font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
  text-decoration: none;
}

.tj-panel__maps-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.tj-panel__nav {
  border-top: 1px solid var(--line);
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  padding: 0.85rem 1rem 1rem;
}

body.tj-panel-open {
  overflow: hidden;
}

body.tj-panel-open .navigation,
body.tj-panel-open .header {
  z-index: 50 !important;
}

/* Mobile: overview Leaflet panes sit above the panel (z-index ~400–1000) — hide map while sheet is open */
@media (max-width: 767.98px) {
  body.tj-panel-open .tj-overview {
    display: none;
  }

  .tj-panel {
    z-index: 3000;
  }

  .tj-panel__close {
    z-index: 4;
  }
}

@media (min-width: 768px) {
  .tj-panel__sheet {
    border-radius: var(--radius-lg);
    bottom: auto;
    left: 50%;
    max-height: min(90vh, 52rem);
    max-width: 960px;
    top: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 2rem);
  }

  .tj-panel__grid {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .tj-overview__head {
    align-items: center;
  }
}

@media (min-width: 1440px) {
  .tj-city-grid {
    gap: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tj-item img,
  .tj-marker,
  .tj-btn,
  .tj-city-card,
  .tj-city-card__img {
    transition: none;
  }

  .tj-locator__pulse {
    animation: none;
    opacity: 0.35;
  }
}

/* Hero stats: no top rule (beats cached older sheet) */
.travel-journal-page #tj-hero-stats,
.travel-journal-page .tj-hero__stats {
  border: none !important;
  border-top: none !important;
  box-shadow: none !important;
}

.travel-journal-page .tj-hero__copy-bottom {
  border-top: none !important;
}
