/* The search page, home page and city pages (page-christmas-lights-near-me.php, which enqueues this after
   tlt-redesign.css): the heading and search, the toolbar, result rows beside the map, tonight's tour and the
   "send this list" box. Phones get one column and a floating Map button.
   ds-allow-hardcode:start - the theme has no spacing/size tokens; px values follow css/tlt-redesign.css and the
   redesign's own (Nov 2026), colors are the --tlt-* set plus the design's lit-tonight amber and green. */
.tlt-page--home {
  --rs-amber-bg: #fdf1c7;
  --rs-amber-ink: #4a2e00;
  --rs-amber-text: #6b4300;
  --rs-amber: #8a5a00;
  --rs-lit-bg: #e3f3e7;
  --rs-lit-ink: #14532d;
  --rs-lit-dot: #16803c;
  --rs-muted: #f1eee8;
  --rs-dash: #cfc8ba;
  --rs-grey: #a8a29e;
}

/* ---------- heading, search, toolbar ---------- */
.tlt-search { max-width: 1360px; padding: 24px 24px 0; gap: 0; }
.tlt-search__title { font-size: 34px; font-weight: 800; line-height: 1.15; }
.tlt-search__summary { margin: 8px 0 0; font-size: 16px; color: var(--tlt-text-2); }
.tlt-search__summary b { color: var(--tlt-ink); }
.tlt-search__summary b.is-lit { color: var(--rs-amber); }
.tlt-search__summary:empty { display: none; }
.tlt-placehead ~ .tlt-search__summary { display: none; } /* the city heading already counts them */
.tlt-search__form { margin-top: 18px; }
.tlt-search__field { height: 48px; }
.tlt-search__submit { height: 48px; padding: 0 22px; font-size: 15px; }
.tlt-search__note { margin-top: 10px; }

/* Wide screens without a city heading: title and count on the left, the search box on the right. */
@media (min-width: 901px) {
  .tlt-search:has(> .tlt-search__title) {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 520px); column-gap: 32px; align-items: end;
    grid-template-areas: "title form" "sum form" "note note" "tools tools";
  }
  .tlt-search:has(> .tlt-search__title) > .tlt-search__title { grid-area: title; }
  .tlt-search:has(> .tlt-search__title) > .tlt-search__summary { grid-area: sum; }
  .tlt-search:has(> .tlt-search__title) > .tlt-search__form { grid-area: form; margin: 0; }
  .tlt-search:has(> .tlt-search__title) > .tlt-search__note { grid-area: note; }
  .tlt-search:has(> .tlt-search__title) > .tlt-search__tools { grid-area: tools; }
}

.tlt-search__tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--tlt-border); }
.tlt-search__tools .tlt-chips { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; -webkit-mask-image: none; mask-image: none; }
.tlt-search__tools .tlt-chip { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; font-size: 14px; font-weight: 600; }
.tlt-search__tools .tlt-chip i { font-size: 15px; }
.tlt-chip:not(.is-on) i { display: none; }
.tlt-search__end { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.tlt-search__sortlabel { margin: 0; color: var(--tlt-text-2); }
.tlt-search__sort { height: 40px; padding: 0 10px; border: 1.5px solid var(--tlt-border-2); border-radius: 10px; background: #fff; color: var(--tlt-ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.tlt-search__share { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; font-size: 14px; }
.tlt-search__sort:focus-visible, .tlt-search__share:focus-visible, .tlt-chip:focus-visible { outline: 3px solid var(--tlt-ink); outline-offset: 2px; }

/* ---------- results: rows left, map right ---------- */
.tlt-results { max-width: 1360px; margin: 0 auto; padding: 20px 24px 48px; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(360px, 1fr); gap: 24px; align-items: start; }
.tlt-results__list { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tlt-results__side { grid-column: 2; grid-row: 1; position: sticky; top: 88px; min-width: 0; }
.tlt-results .tlt-map { position: relative; top: auto; height: calc(100vh - 140px); max-height: 840px; min-height: 420px; border-radius: 16px; border-color: var(--tlt-border-2); }
.tlt-results__tagline { margin: 14px 4px 0; font-size: 13px; line-height: 1.5; color: var(--tlt-text-2); }
.tlt-map__legend { position: absolute; z-index: 500; left: 12px; bottom: 12px; display: flex; gap: 14px; padding: 8px 12px; border-radius: 10px; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); font-size: 12px; font-weight: 600; color: var(--tlt-text); }
.tlt-map__legend span { display: flex; align-items: center; gap: 6px; }
.tlt-map__legend i { width: 12px; height: 12px; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--rs-grey); background: #fff; }
.tlt-map__legend i.is-lit { border: 0; background: var(--tlt-red); box-shadow: 0 0 0 3px rgba(245, 180, 40, 0.55); }
.tlt-map__list { position: absolute; z-index: 500; left: 50%; top: 14px; transform: translateX(-50%); display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--tlt-ink); color: #fff; font: inherit; font-size: 15px; font-weight: 700; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25); cursor: pointer; }
.tlt-results__mapbtn { display: none; }

/* Pins: lit tonight glows red, the rest wait in white; ink when its row is hovered, green when on the route. */
.tlt-results .tlt-pin { background: #fff; color: var(--tlt-text-2); border-color: var(--rs-grey); }
.tlt-results .tlt-pin.is-lit { background: var(--tlt-red); color: #fff; border-color: #fff; box-shadow: 0 0 0 3px rgba(245, 180, 40, 0.55), 0 1px 4px rgba(0, 0, 0, 0.35); }
.tlt-results .tlt-pin.is-saved { background: var(--tlt-green); color: #fff; border-color: #fff; }
.tlt-results .tlt-pin.is-hot { background: var(--tlt-ink); color: #fff; border-color: #fff; }

/* Tonight's tour. */
.tlt-tonight { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--rs-amber-bg); color: var(--rs-amber-text); }
.tlt-tonight[hidden] { display: none; }
.tlt-tonight > i { font-size: 24px; color: var(--rs-amber); }
.tlt-tonight > span { flex: 1 1 240px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.tlt-tonight b { font-size: 15px; color: var(--rs-amber-ink); }
.tlt-tonight__go { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 10px; background: var(--tlt-ink); color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; }
.tlt-tonight__go:hover { background: #000; color: #fff; }

/* ---------- a result row ---------- */
.tlt-rows { display: flex; flex-direction: column; gap: 12px; }
.tlt-row { position: relative; flex-direction: row; gap: 16px; padding: 12px; border: 1px solid var(--tlt-border); border-radius: 14px; box-shadow: none; }
.tlt-row:hover, .tlt-row.is-hot { box-shadow: 0 0 0 2px var(--tlt-ink); }
.tlt-row__photo { flex: 0 0 200px; height: 140px; aspect-ratio: auto; border-radius: 10px; overflow: hidden; background: var(--tlt-surface); }
.tlt-row__photo--none { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 1.5px dashed var(--rs-dash); box-sizing: border-box; font-size: 12px; color: var(--tlt-text-2); text-align: center; }
.tlt-row__photo--none i { font-size: 26px; color: var(--tlt-text-3); }
.tlt-row__photo--none a { font-weight: 600; }
.tlt-row .tlt-card__rank { left: 8px; right: auto; top: 8px; min-width: 26px; height: 26px; padding: 0 4px; border: 2px solid #fff; font-size: 12px; }
.tlt-row .lit-badge { top: auto; bottom: 8px; right: 8px; }
.tlt-row__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.tlt-row__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tlt-row__status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--rs-muted); color: var(--tlt-text-2); font-size: 13px; font-weight: 600; }
.tlt-row.is-lit .tlt-row__status { background: var(--rs-lit-bg); color: var(--rs-lit-ink); font-weight: 700; }
.tlt-row.is-lit .tlt-row__status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--rs-lit-dot); }
.tlt-row .tlt-card__dist { font-size: 13px; font-weight: 600; color: var(--tlt-text); }
.tlt-row .tlt-card__name { font-size: 19px; line-height: 1.25; }
.tlt-row .tlt-card__name a { color: var(--tlt-ink); text-decoration: none; }
.tlt-row .tlt-card__name a:hover { text-decoration: underline; }
.tlt-row .tlt-card__meta { font-size: 14px; }
.tlt-row__facts { display: flex; flex-wrap: wrap; gap: 6px; }
.tlt-row__facts span, .tlt-row .tlt-card__badge { position: static; padding: 3px 8px; border-radius: 6px; background: var(--tlt-surface); color: var(--tlt-text); font-size: 12px; font-weight: 600; }
.tlt-row__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; padding-top: 4px; }
.tlt-row__view { height: 40px; padding: 0 16px; border-radius: 10px; font-size: 14px; }
.tlt-row__save, .tlt-row__share { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 14px; border: 1.5px solid var(--tlt-border-2); border-radius: 10px; background: #fff; color: var(--tlt-ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.tlt-row__share { width: 40px; padding: 0; font-size: 17px; }
.tlt-row__save:hover, .tlt-row__share:hover { border-color: var(--tlt-ink); }
.tlt-row__save .bi-heart-fill, .tlt-row__save .tlt-row__on, .tlt-row__save.is-on .bi-heart, .tlt-row__save.is-on .tlt-row__add { display: none; }
.tlt-row__save.is-on .bi-heart-fill, .tlt-row__save.is-on .tlt-row__on { display: inline; }
.tlt-row__save.is-on { border-color: var(--tlt-red); color: var(--tlt-red); }
.tlt-row__save:focus-visible, .tlt-row__share:focus-visible, .tlt-results__more:focus-visible { outline: 3px solid var(--tlt-ink); outline-offset: 2px; }
.tlt-row__confirm { margin-left: auto; font-size: 13px; font-weight: 600; }
span.tlt-row__confirm { color: var(--tlt-green); }

.tlt-results__more { height: 48px; border: 1.5px solid var(--tlt-border-2); border-radius: 12px; background: #fff; color: var(--tlt-ink); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.tlt-results__more[hidden] { display: none; }

/* Send this list. */
.tlt-sendlist { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px 16px; border: 1.5px solid var(--tlt-red); border-radius: 14px; background: #fff; }
.tlt-sendlist > div:first-child { flex: 1 1 200px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--tlt-text-2); }
.tlt-sendlist b { font-size: 15px; color: var(--tlt-ink); }
.tlt-sendlist__acts { display: flex; flex-wrap: wrap; gap: 8px; }
.tlt-sendlist__acts .tlt-btn { height: 44px; padding: 0 14px; border-radius: 10px; font-size: 14px; }
.tlt-sendlist__acts .tlt-btn--outline { border: 1.5px solid var(--tlt-border-2); }
.tlt-sendlist__acts .tlt-btn--outline:hover { border-color: var(--tlt-ink); background: #fff; color: var(--tlt-ink); }
/* Wide screens: the send box sits right under tonight's tour, above the rows. Phones keep it after the list. */
@media (min-width: 901px) {
  .tlt-results__list > * { order: 3; }
  .tlt-results__list > .tlt-tonight { order: 1; }
  .tlt-results__list > .tlt-sendlist { order: 2; }
}

/* ---------- phones and small tablets: one column, List or Map ---------- */
@media (max-width: 900px) {
  .tlt-results { grid-template-columns: minmax(0, 1fr); }
  .tlt-results__list, .tlt-results__side { grid-column: 1; position: static; }
  .tlt-results[data-view="list"] .tlt-results__side,
  .tlt-results[data-view="map"] .tlt-results__list { display: none; }
  .tlt-results .tlt-map { height: calc(100svh - 150px); min-height: 380px; }
  .tlt-results[data-view="map"] .tlt-map__list { display: inline-flex; }
  .tlt-results__tagline { display: none; }
  .tlt-results[data-view="list"] .tlt-results__mapbtn { position: fixed; z-index: 1050; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--tlt-ink); color: #fff; font: inherit; font-size: 15px; font-weight: 700; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3); cursor: pointer; }
  /* Above the "on your route" tray when it shows. */
  body:has(#tlt-tray:not([hidden])) .tlt-results__mapbtn { bottom: calc(88px + env(safe-area-inset-bottom)); }
  .tlt-results__list { padding-bottom: 72px; }
}

@media (max-width: 759px) {
  /* Search box, then the filters, then "23 displays · 6 lit tonight", sort and Share on one row. The title stays
     for screen readers and search engines. */
  .tlt-search { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 8px; padding: 12px 16px 0; }
  .tlt-search > * { flex: 1 1 100%; min-width: 0; }
  .tlt-search > .tlt-search__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .tlt-search__form { order: 1; flex-wrap: nowrap; margin: 0; }
  .tlt-search__tools { display: contents; }
  .tlt-search__tools .tlt-chips { order: 2; flex: 1 1 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding: 0 16px 0 0; }
  .tlt-search__tools .tlt-chips::-webkit-scrollbar { display: none; }
  .tlt-search__tools .tlt-chip { flex: none; height: 44px; white-space: nowrap; }
  .tlt-search__summary { order: 3; flex: 1 1 150px; margin: 0; font-size: 14px; }
  .tlt-search__end { order: 4; flex: none; gap: 4px; }
  .tlt-search__note { order: 5; margin: 0; }
  .tlt-search__sortlabel { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tlt-search__sort { height: 44px; padding: 0 4px; border: 0; background: transparent; }
  .tlt-search__share { height: 44px; padding: 0 14px; border-radius: 999px; }
  .tlt-search__sharemore { display: none; }
  /* The box: a magnifier in place of "Near", the location button as an icon, Search on the keyboard's Go. */
  .tlt-search__field { flex: 1 1 0; min-width: 0; padding: 0 4px 0 14px; }
  .tlt-search__field::before { content: "\F52A"; font-family: bootstrap-icons; font-size: 17px; color: var(--tlt-text-2); }
  .tlt-search__field input { font-size: 16px; font-weight: 600; }
  .tlt-search__near { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tlt-search__locate { display: flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 40px; padding: 0; font-size: 18px; }
  .tlt-search__locate span { display: none; }
  .tlt-search__locate i { display: inline; }
  .tlt-search__submit { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); }

  .tlt-results { padding: 12px 16px 40px; }
  .tlt-tonight { padding: 12px 14px; gap: 10px; }
  .tlt-tonight > i { display: none; }
  .tlt-tonight > span { flex: 1 1 0; font-size: 12px; }
  .tlt-tonight__go { height: 40px; padding: 0 14px; font-size: 13px; }

  /* A compact row: the whole row opens the display; the heart and share sit at the right. */
  .tlt-row { gap: 12px; padding: 10px; }
  .tlt-row__photo { flex-basis: 104px; height: 104px; }
  .tlt-row__photo--none a, .tlt-row__view, .tlt-row__confirm, .tlt-row .tlt-card__meta { display: none; }
  .tlt-row__body { gap: 4px; padding-right: 36px; }
  .tlt-row__top { justify-content: flex-start; flex-wrap: wrap; }
  .tlt-row__status { padding: 3px 9px; font-size: 12px; }
  .tlt-row .tlt-card__dist { font-size: 12px; }
  .tlt-row .tlt-card__name { font-size: 17px; }
  .tlt-row .tlt-card__name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
  .tlt-row__actions { padding: 0; }
  .tlt-row__save, .tlt-row__share { position: absolute; z-index: 2; right: 2px; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; font-size: 19px; }
  .tlt-row__save { top: 2px; }
  .tlt-row__share { bottom: 2px; }
  .tlt-row__save .tlt-row__add, .tlt-row__save.is-on .tlt-row__on { display: none; }
  .tlt-row .tlt-card__rank { left: 6px; top: 6px; min-width: 24px; height: 24px; }
  .tlt-row__status, .tlt-row__facts span, .tlt-row .tlt-card__badge { white-space: nowrap; }
  .tlt-sendlist__acts { flex: 1 1 100%; }
  .tlt-sendlist__acts .tlt-btn { flex: 1 1 auto; justify-content: center; }
}

/* Small phones: a smaller photo leaves the name room. */
@media (max-width: 380px) {
  .tlt-row__photo { flex-basis: 84px; height: 84px; }
  .tlt-row__photo--none span { display: none; }
}

@media (prefers-reduced-motion: reduce) { .tlt-row { transition: none; } }
/* ds-allow-hardcode:end */
