/* Westchester Time Machine — county aerials, year on the film strip. */
body.time-page .g-head,
body.time-page .crumbs,
body.time-page .g-main,
body.time-page .g-foot {
  max-width: 1180px;
}

body.time-page .g-main { padding-bottom: 56px; }

body.time-page .g-head-mill[href="/time/"] {
  color: #3d4a32;
}
body.time-page .g-head-mill[href="/time/"]:hover {
  border-bottom-color: #3d4a32;
}

.time-lede {
  max-width: 46rem;
  margin: 0 0 18px;
}
.time-lede p {
  margin: 0 0 10px;
  font-size: 17.5px;
  line-height: 1.5;
}

.time-search {
  display: flex;
  gap: 8px;
  margin: 0 0 12px;
  max-width: 40rem;
}
.time-search input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-raised);
  color: var(--ink);
  font: 16px var(--font-ui);
  box-shadow: 0 1px 2px rgba(21, 32, 28, .06);
}
.time-search input:focus {
  outline: 2px solid #3d4a32;
  outline-offset: 1px;
}
.time-search button {
  flex: 0 0 auto;
  padding: 12px 16px;
  border: 0;
  border-radius: 12px;
  background: #3d4a32;
  color: #fff;
  font: 650 15px var(--font-ui);
  cursor: pointer;
}
.time-search button:hover { background: #2c3624; }

.time-towns,
.time-scenes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}
.time-towns button,
.time-scenes button {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-raised);
  color: var(--ink-2);
  font: 600 13.5px var(--font-ui);
  cursor: pointer;
}
.time-towns button:hover { border-color: #3d4a32; color: #3d4a32; }
.time-towns button[aria-pressed="true"] {
  background: #3d4a32;
  border-color: #3d4a32;
  color: #fff;
}
.time-scenes button:hover { border-color: #8a4b2f; color: #8a4b2f; }
.time-scenes button[aria-pressed="true"] {
  background: #8a4b2f;
  border-color: #8a4b2f;
  color: #fff;
}

@media (max-width: 879px) {
  .time-lede p { font-size: 16px; }
  .time-towns,
  .time-scenes {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  .time-towns li,
  .time-scenes li { flex: 0 0 auto; }
}

.time-layout {
  display: grid;
  gap: 16px;
}
@media (min-width: 880px) {
  .time-layout {
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, .8fr);
    align-items: stretch;
  }
}

.time-stage {
  position: relative;
  isolation: isolate;
  min-height: min(72vh, 760px);
  height: min(72vh, 760px);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 110%, rgba(61, 74, 50, .18), transparent 55%),
    #cfc6b4;
}
#timeMap {
  position: absolute;
  inset: 0;
}
.time-stage .leaflet-container {
  height: 100%;
  width: 100%;
  background: #cfc6b4;
  font-family: var(--font-ui);
}
.time-stage .leaflet-control-zoom {
  border: 0;
  box-shadow: 0 2px 10px rgba(32, 28, 21, .14);
  margin-top: 56px;
}
.time-stage .leaflet-control-zoom a {
  width: 34px;
  height: 34px;
  line-height: 34px;
  color: #2c3624;
  background: rgba(247, 246, 240, .94);
}
.time-stage .leaflet-control-attribution {
  font-size: 10.5px;
  background: rgba(247, 246, 240, .86);
  max-width: 42vw;
  margin-bottom: 118px;
}

.time-hint,
.time-badge {
  position: absolute;
  z-index: 6;
  pointer-events: none;
}
.time-hint {
  left: 12px;
  top: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(247, 246, 240, .94);
  border: 1px solid rgba(61, 74, 50, .22);
  color: #2c3624;
  font: 650 13px var(--font-ui);
  box-shadow: 0 2px 8px rgba(32, 28, 21, .08);
  max-width: calc(100% - 88px);
}
.time-badge {
  right: 12px;
  top: 12px;
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(28, 24, 18, .78);
  color: #f4efe4;
  font: 800 22px var(--font-ui);
  letter-spacing: -.03em;
  box-shadow: 0 2px 10px rgba(20, 16, 10, .28);
}

.time-film {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 7;
  padding: 10px 12px 8px;
  border-radius: 16px;
  background: rgba(28, 24, 18, .82);
  color: #f4efe4;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(20, 16, 10, .28);
}
.time-film-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin-bottom: 6px;
}
.time-film-year {
  margin: 0;
  font: 800 28px/1 var(--font-ui);
  letter-spacing: -.03em;
}
.time-film-note {
  margin: 0;
  flex: 1 1 8rem;
  font: 600 13px var(--font-ui);
  color: rgba(244, 239, 228, .78);
}
.time-film-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.time-film-btns button {
  padding: 6px 10px;
  border: 1px solid rgba(244, 239, 228, .28);
  border-radius: 999px;
  background: transparent;
  color: #f4efe4;
  font: 650 12.5px var(--font-ui);
  cursor: pointer;
}
.time-film-btns button[aria-pressed="true"] {
  background: #f4efe4;
  color: #2c3624;
  border-color: #f4efe4;
}

#timeYear {
  width: 100%;
  margin: 2px 0 0;
  accent-color: #d7b06a;
  cursor: pointer;
}
.time-ticks {
  display: flex;
  justify-content: space-between;
  list-style: none;
  margin: 2px 2px 0;
  padding: 0;
  font: 650 10px var(--font-ui);
  color: rgba(244, 239, 228, .62);
  letter-spacing: .01em;
}

.time-swipe {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}
.time-swipe-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 18px;
  margin-left: -9px;
  pointer-events: auto;
  cursor: ew-resize;
  touch-action: none;
}
.time-swipe-bar::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 8px;
  width: 2px;
  background: #f4efe4;
  box-shadow: 0 0 0 1px rgba(20, 16, 10, .35);
}
.time-swipe-bar::after {
  content: "";
  position: absolute;
  top: 46%;
  left: 1px;
  width: 16px;
  height: 36px;
  border-radius: 8px;
  background: #f4efe4;
  box-shadow: 0 2px 8px rgba(20, 16, 10, .35);
}

.time-pin-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #d7b06a;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(32, 28, 21, .4);
}
.time-frame-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #1f3a2e;
  border: 2px solid #f4efe4;
  box-shadow: 0 1px 4px rgba(20, 16, 10, .4);
}

.time-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 18px 16px;
  background: #fff;
}
.time-kicker {
  margin: 0 0 4px;
  font: 650 12px var(--font-ui);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #3d4a32;
}
.time-panel h2 {
  margin: 0 0 10px;
  font-size: 24px;
}
.time-panel p { margin: 0 0 10px; }
.time-meta {
  font-size: 13.5px;
  color: var(--ink-muted);
}
.time-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 14px;
}
.time-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  font: 650 13.5px var(--font-ui);
}
.time-actions .primary {
  background: #3d4a32;
  color: #fff;
}
.time-actions .ghost {
  border: 1px solid var(--line);
  color: var(--ink-2);
}

.time-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
}
.time-filters button {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  font: 600 12.5px var(--font-ui);
  cursor: pointer;
}
.time-filters button[aria-pressed="true"] {
  color: #fff;
}
.time-filters button[data-kind="estate"][aria-pressed="true"] { background: #8a4b2f; border-color: #8a4b2f; }
.time-filters button[data-kind="farm"][aria-pressed="true"] { background: #5a6b3a; border-color: #5a6b3a; }
.time-filters button[data-kind="orchard"][aria-pressed="true"] { background: #b07828; border-color: #b07828; }
.time-filters button[data-kind="club"][aria-pressed="true"] { background: #2f4a6b; border-color: #2f4a6b; }

.time-legend {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  gap: 6px;
  font-size: 13.5px;
  color: var(--ink-2);
}
.time-legend i {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  margin-right: 8px;
  vertical-align: -1px;
}
.time-legend .est { background: #8a4b2f; }
.time-legend .farm { background: #5a6b3a; }
.time-legend .club { background: #2f4a6b; }
.time-legend .frame { background: #1f3a2e; border-radius: 50%; }

.time-fine {
  margin: 16px 0 28px;
  font-size: 14px;
  color: var(--ink-muted);
}

.time-flights {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  gap: 8px;
}
.time-flights li {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.time-flights .y {
  font-weight: 800;
  color: #3d4a32;
}
.time-flights .s {
  font-size: 14.5px;
  color: var(--ink-2);
}

.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;
}

@media (max-width: 879px) {
  .time-stage {
    height: min(68vh, 640px);
    min-height: 420px;
  }
  .time-film-year { font-size: 22px; }
  .time-badge { font-size: 18px; }
  .time-stage .leaflet-control-attribution { margin-bottom: 132px; }
}
