/* Wollongong-only additions. style.css is shared with the Canberra edition. */

/* ------------------------------------------------------------- trail list: order and areas */
.list-bar { display: flex; align-items: center; justify-content: space-between; margin: 10px 10px 2px; }
.list-bar .list-head { margin: 0; }
.seg { display: flex; padding: 2px; border-radius: 9px; background: rgba(31, 45, 58, 0.07); }
.seg button { border: 0; background: none; border-radius: 7px; padding: 3px 9px; font: 600 11.5px var(--sans); color: var(--ink-2); }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(60, 40, 20, 0.14); }
.list li.grp { position: sticky; top: -8px; z-index: 1; margin-top: 8px; padding: 8px 10px 5px; gap: 8px; align-items: baseline; border-radius: 0; background: #f9f6ee; border-bottom: 1px dashed var(--rule); }
.list li.grp:first-child { margin-top: 0; }
.list li.grp:hover, .list li.grp:focus-visible { background: #f2ede1; }
.list li.grp b { font: 700 15px var(--serif); color: var(--sea); }
.list li.grp small { flex: 1; font-size: 11.5px; color: var(--muted); }
.list li.grp i { font-style: normal; font-size: 14px; color: var(--muted); }
.list li.grp:hover i { color: var(--sea); }

/* ------------------------------------------------------------- cards: sharing and planner actions */
.links .acts { display: flex; gap: 14px; }
.route-actions { flex-wrap: wrap; }
.route-actions.out { margin-top: 8px; }
.mini:disabled { opacity: 0.6; }

/* The how-to-move hint bows out once the map has been moved. */
#hint { transition: opacity 0.6s; }
body.touched #hint { opacity: 0; }

@media (max-width: 760px) {
  /* No keyboard shortcut or drag-and-drop on a phone. */
  .search kbd, .rides > .hint { display: none; }
  .list li.grp { top: -8px; padding-top: 10px; }
  .seg button { padding: 5px 11px; font-size: 12.5px; }
}

/* ?poster: the map and a title, nothing else (the link-preview picture). */
body.poster #mobileTitle { display: block !important; position: fixed; top: 34px; left: 40px; padding: 12px 22px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); font: 800 46px/1.1 var(--serif); }
body.poster #mobileTitle .a { color: var(--sea); }
body.poster #mobileTitle .b { color: var(--coral); font-style: italic; font-weight: 700; }
body.poster #panelBtn, body.poster #toast { display: none !important; }

/* Zoomed in, the map runs under the small print: give it paper to sit on,
   and let the how-to hint go when a card needs the room. */
@media (min-width: 761px) {
  #credit { left: 16px; bottom: 6px; width: 304px; box-sizing: border-box; padding: 4px 10px; border-radius: 10px; background: rgba(243, 236, 223, 0.82); }
  body.card-open #hint { opacity: 0; }
}
