.directory { padding-bottom: 2.25rem; }
.directory-area { min-width: 0; }
.search-tools { padding: 1rem; background: var(--wash); border: 1px solid #b4c8bf; }
.inputs { display: grid; grid-template-columns: 1.6fr 1fr; gap: .65rem; }
.field { display: flex; gap: .5rem; align-items: center; min-height: 44px; padding-inline: .7rem; background: var(--paper); border: 1px solid #9cafa8; border-radius: 3px; }
.field:focus-within { outline: 2px solid var(--teal); outline-offset: 1px; }
.field input, .field select { width: 100%; min-width: 0; height: 42px; border: 0; background: transparent; border-radius: 0; }
.field input { appearance: none; }
.field input::placeholder { color: var(--muted); opacity: 1; }
.field input:focus, .field select:focus { outline: none; }
.filters { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem; margin-top: .65rem; }
.filters button, .more, .clear { background: var(--paper); border: 1px solid #a7b9b0; border-radius: 3px; min-height: 38px; padding: .35rem .64rem; font-size: .82rem; display: inline-flex; align-items: center; justify-content: center; gap: .35rem; }
.filters button[aria-pressed="true"] { background: var(--teal); color: white; border-color: var(--teal); }
.filters button:hover, .more:hover, .clear:hover { border-color: var(--deep-teal); }
.filters .icon { width: .96rem; height: .96rem; }
.results-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 0 .65rem; border-bottom: 2px solid var(--ink); }
.results-head h2 { font-size: 1.57rem; }
.count { letter-spacing: .045em; }
.row { display: grid; grid-template-columns: 2.44rem minmax(0,1.55fr) minmax(5.5rem,.85fr) auto; align-items: center; gap: .8rem; padding: .66rem .15rem; border-bottom: 1px solid var(--line); }
.row-symbol { width: 2.35rem; height: 2.35rem; display: grid; place-items: center; border: 1px solid #a9bfb7; background: #e4eeea; border-radius: 4px; color: #285753; }
.row-symbol.ferry { background: #dce9ee; color: #264e63; border-color: #a8bfc9; }
.row-symbol.transit { background: #e3e7f1; color: #394e70; border-color: #b1bbcf; }
.row-symbol.services { background: #f2ebdb; color: #72552a; border-color: #cabe9e; }
.row-symbol.visit { background: #ede9df; color: #605c44; border-color: #c4c1ad; }
.row-symbol .icon { width: 1.35rem; height: 1.35rem; }
.row-copy a { display: inline-block; font-family: var(--serif); font-size: 1.26rem; letter-spacing: -.025em; line-height: 1.18; color: var(--ink); text-decoration: none; }
.row-copy a:hover, .town-ref:hover { text-decoration: underline; }
.town-ref { display: inline-flex; min-height: 44px; align-items: center; color: var(--deep-teal); text-decoration: none; font-size: .88rem; }
.row-source { display: inline-grid; place-items: center; width: 44px; height: 44px; color: var(--teal); }
.more { min-height: 44px; margin-top: .8rem; padding-inline: 1rem; color: var(--deep-teal); font-weight: 600; }
.empty { padding: 1.2rem 0; }
.clear { margin-top: .6rem; }
.chart { border: 1px solid #a2b8b0; background: #e6eee5; }
.chart-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .65rem 1rem; background: var(--navy); color: white; }
.chart-head h2 { font-size: 1.5rem; }
.chart-head .icon { color: #b5d6c7; }
.chart img { width: 100%; height: auto; display: block; }
.chart figcaption { padding: .65rem .85rem; background: var(--paper); color: var(--muted); font-size: .77rem; border-top: 1px solid var(--line); }
.chart figcaption span { display: inline-block; vertical-align: middle; width: 1.55rem; margin-right: .35rem; border-top: 2px dashed #82522e; }
.quick { border-top: 2px solid var(--teal); margin-top: 1.2rem; padding: .7rem 0 0; }
.quick h2 { font-size: 1.45rem; }
.quick a { min-height: 45px; }
@media (min-width: 741px) and (max-width: 960px) {
  .row { grid-template-columns: 2rem minmax(0,1fr) auto; gap: .45rem; }
  .row .town-ref { grid-column: 2; grid-row: 2; min-height: 0; }
  .row .row-source { grid-column: 3; grid-row: 1 / 3; }
}
@media (max-width: 740px) {
  .search-tools { padding: .65rem; }
  .inputs { grid-template-columns: minmax(0,1fr); gap: .35rem; }
  .field { min-height: 42px; }
  .field input, .field select { font-size: 1rem; }
  .filters { gap: .25rem; margin-top: .4rem; }
  .filters button { min-height: 42px; padding: .3rem .55rem; }
  .row { grid-template-columns: 2rem minmax(0,1fr) auto; gap: .1rem .55rem; padding: .55rem 0; }
  .row-symbol { width: 2rem; height: 2rem; grid-row: 1 / 3; }
  .row-copy a { font-size: 1.14rem; padding-block: .15rem; }
  .row .town-ref { grid-column: 2; font-size: .78rem; min-height: 25px; }
  .row .row-source { grid-column: 3; grid-row: 1 / 3; }
  .chart img { max-height: 23rem; }
}
@media (max-width: 380px) {
  .filters button { font-size: .77rem; }
  .filters .icon { display: none; }
}
.town-ref small { display: block; font-size: .73rem; color: var(--muted); }
.row { grid-template-columns: 2.35rem minmax(0,1.45fr) minmax(0,.87fr) minmax(0,.78fr); }
.row-source { display: flex; justify-content: flex-end; align-items: center; gap: .2rem; width: auto; text-align: right; text-decoration: none; font-size: .75rem; line-height: 1.3; }
.row-source:hover { text-decoration: underline; }
.row-source .icon { width: .9rem; height: .9rem; }
.quick { margin: 0 0 1.25rem; }
@media (min-width: 741px) and (max-width: 960px) {
  .row { grid-template-columns: 2rem minmax(0,1fr) 5.7rem; }
}
@media (max-width: 740px) {
  .row { grid-template-columns: 2rem minmax(0,1fr) minmax(4rem,22%); }
  .row-source { overflow-wrap: anywhere; }
  .town-ref small { display: inline; }
  .town-ref small::before { content: " · "; }
}
