/* Route bundle: travel-search:start */
/* Travel photo search (travel page only). Extracted into travel-search.css by
   the build; travel-map-page.css has no headroom left for it. The field is
   its own row of the atlas header. */
.travel-atlas__header {
  flex-wrap: wrap;
  row-gap: 1.25rem;
}

.photo-search {
  display: flex;
  flex: 1 0 100%;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1.1rem;
  margin: 0;
}

.photo-search__field {
  position: relative;
  flex: 1 1 26rem;
  min-width: 0;
  color: var(--color-ink-500);
}

/* Magnifier lens and handle, drawn rather than shipped as an icon file. */
.photo-search__field::before,
.photo-search__field::after {
  position: absolute;
  top: 50%;
  content: "";
  pointer-events: none;
}

.photo-search__field::before {
  left: 0.95rem;
  width: 0.78rem;
  height: 0.78rem;
  margin-top: -0.5rem;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.photo-search__field::after {
  left: 1.6rem;
  width: 2px;
  height: 0.4rem;
  margin-top: 0.12rem;
  border-radius: 1px;
  background: currentColor;
  transform: rotate(-45deg);
}

.photo-search__field:focus-within {
  color: var(--color-brand-600);
}

.photo-search__input {
  display: block;
  width: 100%;
  height: 2.75rem;
  margin: 0;
  padding: 0 2.75rem 0 2.55rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-compact);
  background: var(--color-surface);
  box-shadow: 0 0.2rem 0.6rem rgba(3, 14, 30, 0.04);
  color: var(--color-ink-900);
  font-family: var(--font-display);
  font-size: 0.92rem;
  outline: 0;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}

.photo-search__input::-webkit-search-cancel-button,
.photo-search__input::-webkit-search-decoration {
  -webkit-appearance: none;
  display: none;
}

.photo-search__input:focus {
  border-color: var(--color-brand-600);
  box-shadow: 0 0 0 3px var(--color-brand-wash);
}

.photo-search__key {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  padding: 0 0.4rem;
  border: 1px solid var(--color-border);
  border-radius: 0.3rem;
  color: var(--color-ink-500);
  font: 700 max(var(--text-floor), 0.7rem)/1.45 var(--font-display);
  transform: translateY(-50%);
  pointer-events: none;
}

.photo-search__input:focus ~ .photo-search__key,
.photo-search__input:not(:placeholder-shown) ~ .photo-search__key {
  display: none;
}

/* Reset the theme's button ring, caps and fixed height. */
.photo-search__clear,
.photo-search__chip {
  height: auto;
  padding: 0;
  box-shadow: none;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: none;
}

.photo-search__clear {
  position: absolute;
  top: 50%;
  right: 0.3rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  color: var(--color-ink-500) !important;
  font-size: 1.35rem;
  font-weight: 400;
  transform: translateY(-50%);
}

.photo-search__clear[hidden] {
  display: none;
}

.photo-search__clear:hover,
.photo-search__clear:focus-visible {
  background: var(--color-brand-100);
  box-shadow: none;
  color: var(--color-brand-700) !important;
}

.photo-search .photo-search__hint {
  flex: 1 1 14rem;
  font-size: max(var(--text-floor), 0.8rem);
}

.photo-search .photo-search__status {
  flex: 1 0 100%;
  color: var(--color-ink-700);
  font-family: var(--font-display);
  font-size: max(var(--text-floor), 0.88rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.photo-search.is-active .photo-search__hint,
.photo-search__status:empty {
  display: none;
}

.photo-search__suggest {
  min-width: 0;
  flex: 1 0 100%;
}

.photo-search__suggest:empty {
  display: none;
}

.photo-search__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.photo-search__chips li {
  max-width: 100%;
  padding: 0;
}

/* Quick-fill rows before any typing: an eyebrow label, teal Explore chips,
   outlined Recent chips and a quiet Clear. */
.photo-search__chips + .photo-search__chips {
  margin-top: 0.4rem;
}

.photo-search__label {
  align-self: center;
  min-width: 3.6rem;
  color: var(--color-ink-500);
  font: 800 max(var(--text-floor), 0.62rem)/1 var(--font-display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.photo-search__chips--recent .photo-search__chip {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  background: none;
}

.photo-search .photo-search__forget {
  border-color: transparent;
  color: var(--color-ink-500) !important;
  text-decoration: underline;
}

.photo-search__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2rem;
  padding: 0 0.8rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-ink-700) !important;
  font-size: max(var(--text-floor), 0.74rem);
  font-weight: 700;
  transition: border-color var(--motion-fast) ease, background-color var(--motion-fast) ease;
}

.photo-search__chip span {
  color: var(--color-ink-500);
  font-weight: 600;
}

.photo-search__chip:hover,
.photo-search__chip:focus-visible {
  border-color: var(--color-brand-200);
  background: var(--color-brand-100);
  box-shadow: none;
  color: var(--color-brand-700) !important;
}

.photo-search__clear:focus-visible,
.photo-search__chip:focus-visible,
.photo-hit:focus-visible {
  outline: 2px solid var(--color-brand-600);
  outline-offset: 2px;
}

/* While a query is active the map, teaser and archive collapse. The atlas
   keeps its width so travel-map.js never measures a zero-width viewport. */
.travel-atlas__layout[hidden] {
  display: block;
  height: 0;
  overflow: hidden;
  visibility: hidden;
}

#main > .travel-archive-heading[hidden],
#main > .travel-grid[hidden] {
  display: none !important;
}

.photo-results {
  position: relative;
  z-index: 1;
}

.photo-results[hidden] {
  display: none;
}

.photo-results__list > :first-child {
  margin-top: 0;
}

.photo-results__tier {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 2.25rem 0 0;
  color: var(--color-ink-900);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  line-height: 1.3;
  text-transform: none;
}

.photo-results__tier::after {
  flex: 1;
  height: 1px;
  background: var(--color-border-soft);
  content: "";
}

/* Journal legend: one chip per trip in the grid's run order, with its count.
   A pressed chip narrows the grid to that journal. Grouping is the runs plus
   this row; per-trip headings stay out of the grid (whitespace, Oct 2026). */
.photo-results__trips {
  margin-top: 0.85rem;
}

.photo-results__trips .photo-search__chip[aria-pressed="true"] {
  border-color: var(--color-brand-700);
  background: var(--color-brand-700);
  color: #fff !important;
}

.photo-results__trips .photo-search__chip[aria-pressed="true"] span {
  color: inherit;
  opacity: 0.8;
}

/* One continuous grid per tier: tiles keep one size and the last row stays
   left-aligned, so a trip with one hit never claims a whole row. */
.photo-results__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 0.75rem;
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
}

.photo-results__grid li {
  min-width: 0;
  padding: 0;
}

.photo-hit {
  display: block;
  border: 0;
  color: var(--color-ink-800) !important;
}

.photo-hit__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 0.5rem;
  background: var(--color-surface-subtle);
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform var(--motion-standard) var(--ease-standard),
    box-shadow var(--motion-standard) ease;
}

.photo-hit:hover .photo-hit__media,
.photo-hit:focus-visible .photo-hit__media {
  box-shadow: 0 0.7rem 1.4rem rgba(0, 0, 0, 0.16);
  transform: translateY(-3px);
}

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

.photo-hit__trip {
  display: block;
  margin-top: 0.48rem;
  color: var(--color-brand-700);
  font: 700 max(var(--text-floor), 0.7rem)/1.25 var(--font-display);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.photo-hit__video {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: var(--color-brand-700);
  color: #fff;
  font: 700 max(var(--text-floor), 0.75rem)/1.35 var(--font-display);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.photo-hit__title {
  display: -webkit-box;
  margin-top: 0.12rem;
  overflow: hidden;
  color: var(--color-ink-600);
  font: 500 max(var(--text-floor), 0.85rem)/1.35 "Raleway", sans-serif;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.photo-hit__title strong {
  color: var(--color-ink-900);
  font-weight: 700;
}

/* Partial hits only: the terms that matched. Two lines, not one, so
   "matches: red (in description)" survives a 153px phone column. */
.photo-hit__why {
  display: -webkit-box;
  overflow: hidden;
  color: var(--color-ink-500);
  font: 500 max(var(--text-floor), 0.75rem)/1.4 "Raleway", sans-serif;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.photo-hit mark {
  padding: 0 0.08em;
  border-radius: 0.2em;
  background: var(--color-brand-100);
  color: var(--color-brand-700);
}

.photo-results__more,
.photo-results__clear {
  height: 2.25rem;
  padding: 0 1.1rem;
  font-size: max(var(--text-floor), 0.62rem);
  line-height: 2.25rem;
}

.photo-results__more {
  display: block;
  margin: 1.5rem auto 0;
}

.photo-results__more[hidden] {
  display: none;
}

.photo-results__empty p {
  margin: 0 0 0.75rem;
  color: var(--color-ink-500);
  font-size: 0.88rem;
}

.photo-results__empty .photo-search__chips {
  margin-bottom: 1.25rem;
}

@media (hover: none), screen and (max-width: 736px) {
  .photo-search__key {
    display: none;
  }
}

@media screen and (max-width: 736px) {
  .photo-search {
    margin-top: 1rem;
  }

  .photo-search__field {
    flex-basis: 100%;
  }

  /* 3rem touch targets; 16px input text stops iOS zooming on focus. */
  .photo-search__input {
    height: 3rem;
    padding-right: 3rem;
    font-size: max(16px, 1rem);
  }

  .photo-search__clear {
    right: 0;
    width: 3rem;
    height: 3rem;
  }

  .photo-search__chip {
    min-height: 2.5rem;
  }

  .photo-search__label {
    min-width: 0;
  }

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

  .photo-results__more,
  .photo-results__clear {
    height: 3rem;
    line-height: 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .photo-search__input,
  .photo-search__chip,
  .photo-hit__media {
    transition: none;
  }

  .photo-hit:hover .photo-hit__media,
  .photo-hit:focus-visible .photo-hit__media {
    transform: none;
  }
}
/* Photo postcards: real journal images, with compact paper captions. */
.travel-atlas__header h1 {
  max-width: 22ch;
  font: 300 clamp(1.9rem, 3.2vw, 2.8rem)/1.3 var(--font-body);
  letter-spacing: -0.035em;
  text-transform: none;
}

.photo-explore[hidden], .photo-moment[hidden],
.photo-explore__map-heading[hidden], .photo-explore__button[hidden] {
  display: none;
}

.photo-explore__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.7rem;
}

.photo-explore__heading h2 {
  margin: 0;
  font: 800 max(var(--text-floor), 0.72rem)/1.5 var(--font-display);
  letter-spacing: 0.12em;
}

.photo-explore__heading .photo-explore__button { flex: 0 0 auto; white-space: nowrap; }

.photo-explore__hint { margin: -0.25rem 0 1rem; font-size: max(var(--text-floor), 0.85rem); }

.photo-explore__button {
  height: auto;
  min-height: 3rem;
  padding: 0.45rem 0.8rem;
  border: 0;
  border-radius: 0.3rem;
  box-shadow: none;
  color: var(--color-brand-700) !important;
  font: 700 max(var(--text-floor), 0.85rem)/1.4 var(--font-display);
  letter-spacing: 0;
  text-transform: none;
  white-space: normal;
}

.photo-explore__button:hover, .photo-explore__button:focus-visible {
  background: var(--color-brand-wash);
  box-shadow: none;
}

.photo-explore__surprise {
  border: 1px solid var(--color-brand-200);
  background: var(--color-brand-wash);
  padding-inline: 1.25rem;
}

.photo-explore__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.photo-explore__cards noscript { display: contents; }

.photo-explore__card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e3dfd6;
  border-radius: 0.4rem;
  background: #faf8f2;
  color: var(--color-ink-900);
  transition: transform var(--motion-fast) ease, border-color var(--motion-fast) ease;
}

.photo-explore__card:hover, .photo-explore__card:focus-visible {
  border-color: var(--color-brand-600);
  transform: translateY(-2px);
}

.photo-explore__card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.6;
  object-fit: cover;
  background: var(--color-brand-wash);
}

.photo-explore__caption {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.85rem 1rem;
  overflow-wrap: anywhere;
}

.photo-explore__caption strong {
  color: inherit;
  font: 300 1.05rem/1.5 var(--font-body);
}

.photo-explore__caption > span {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  color: var(--color-ink-600);
  font: 500 max(var(--text-floor), 0.75rem)/1.4 var(--font-display);
}

.photo-explore__map-heading {
  margin: 2.5rem 0 1.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--color-border);
}

.photo-explore__map-heading h2 { margin: 0 0 0.4rem; font-size: 1.1rem; }
.photo-explore__map-heading p { margin: 0; font-size: max(var(--text-floor), 0.85rem); }

.photo-moment {
  padding: 1.25rem;
  border: 1px solid #e3dfd6;
  border-radius: 0.4rem;
  background: #faf8f2;
}

.photo-moment__content {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: 2rem;
}

.photo-moment__image { display: block; border: 0; }
.photo-moment__image img { display: block; width: 100%; height: auto; max-height: 26rem; object-fit: contain; }
.photo-moment__copy { min-width: 0; overflow-wrap: anywhere; }
.photo-moment__copy h2 { margin: 0.7rem 0; font: 300 1.8rem/1.4 var(--font-body); letter-spacing: -0.02em; text-transform: none; }
.photo-moment__copy p { margin: 0 0 0.6rem; font-size: max(var(--text-floor), 0.85rem); }
.photo-moment__read { display: inline-flex; align-items: center; min-height: 3rem; margin-top: 0.5rem; color: var(--color-brand-700); font-weight: 700; }
.photo-moment__actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem; margin-top: 1rem; }
.photo-explore__card:focus-visible, .photo-explore__button:focus-visible, .photo-moment a:focus-visible { outline: 2px solid var(--color-brand-600); outline-offset: 3px; }

@media screen and (max-width: 736px) {
  .photo-search { gap: 0.6rem; }
  .photo-explore__surprise { width: 100%; }
  .photo-explore__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
  .photo-explore__heading { gap: 0.5rem; }
  .photo-explore__caption { padding: 0.7rem; }
  .photo-explore__caption strong { font-size: max(var(--text-floor), 0.95rem); }
  .photo-moment { padding: 0.8rem; }
  .photo-moment__content { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .photo-moment__copy h2 { font-size: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .photo-explore__card { transition: none; }
  .photo-explore__card:hover, .photo-explore__card:focus-visible { transform: none; }
}
/* Route bundle: travel-search:end */
