/* The area tags (Views/AuctionsBrowse/SheriffHQ/_AreaTags) of the regional repo landing pages and the metro browse pages. Each
   page sets how far the scrolling line runs out to its edges, and on desktop the strip's bottom line the tabs sit on. */

/* Phones: the tags on one scrolling line. */
.rg-areas-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.rg-areas-title { margin: 0; font-size: 16px; font-weight: 800; color: #222; line-height: 1.3; }
/* Phones: "Scroll" beside the heading while the tags do not all fit (Scripts/area-chips.js shows it with the track); tapping it
   moves them along. Its padding widens the tap area without moving the heading. */
.rg-areas-hint { flex: none; display: inline-flex; align-items: center; gap: 5px; margin: -10px -8px; padding: 10px 8px; background: none; border: 0; border-radius: 6px; font-family: inherit; font-size: 13px; font-weight: 700; color: #1f4e8c; white-space: nowrap; cursor: pointer; }
.rg-areas-hint[hidden] { display: none; }
.rg-chips { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scrollbar-width: none; }
.rg-chips::-webkit-scrollbar { display: none; }
/* How far the tags are scrolled (Scripts/area-chips.js sizes and moves the thumb; hidden while they all fit). */
.rg-chips-track { position: relative; height: 4px; margin-top: 14px; border-radius: 99px; background: #d5dce6; overflow: hidden; }
.rg-chips-track[hidden] { display: none; }
.rg-chips-thumb { position: absolute; top: 0; left: 0; height: 100%; width: 34%; border-radius: 99px; background: #1f4e8c; }
.rg-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; box-sizing: border-box; padding: 0 14px; border: 1px solid #c5ced9; border-radius: 99px; background: #fff; color: #1f4e8c; font-family: inherit; font-size: 15px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.rg-chip-count { font-size: 13px; font-weight: 400; color: #555; }
.rg-chip[aria-pressed="true"] { background: #1f4e8c; border-color: #1f4e8c; color: #fff; }
.rg-chip[aria-pressed="true"] .rg-chip-count { color: #cfdcf0; }
.rg-chips-arrow { display: none; }
/* No focus ring: keyboard focus looks like hover instead. */
.rg-areas-hint:focus, .rg-chip:focus, .rg-chips-arrow:focus { outline: none; }
.rg-areas-hint:focus-visible { background: #eef3fb; }
.rg-chip:focus-visible { border-color: #1f4e8c; }

/* Desktop: the tags as tabs on one line, the picked one underlined, sitting on the strip's bottom line. While they do not all
   fit, an arrow over each end of the line: back once they have moved, on while there are more (Scripts/area-chips.js shows
   them). No heading: the tabs say what they are. */
@media (min-width: 900px) {
    .rg-areas-head { display: none; }
    .rg-chips-row { position: relative; display: flex; align-items: center; margin-bottom: -1px; }
    .rg-chips { flex: 1; min-width: 0; gap: 14px; }
    .rg-chips-track { display: none; }
    .rg-chip { gap: 7px; min-height: 54px; padding: 3px 2px 0 2px; border: none; border-bottom: 3px solid transparent; border-radius: 0; background: transparent; color: #444; font-size: 14px; font-weight: 600; transition: color 140ms ease, border-color 140ms ease; }
    .rg-chip:hover, .rg-chip:focus-visible { color: #1f4e8c; }
    .rg-chip:focus-visible { border-color: transparent; }
    .rg-chip-count { padding: 0 6px; border-radius: 99px; background: #eef1f5; color: #444; font-size: 12px; font-weight: 600; line-height: 1.5; transition: background 140ms ease, color 140ms ease; }
    .rg-chip[aria-pressed="true"] { background: transparent; border-color: #1f4e8c; color: #1f4e8c; }
    .rg-chip[aria-pressed="true"] .rg-chip-count { background: #1f4e8c; color: #fff; }
    .rg-chips-arrow { position: absolute; top: 50%; z-index: 1; display: block; width: 32px; height: 32px; box-sizing: border-box; margin-top: -16px; padding: 0; border: 1px solid #c5ced9; border-radius: 4px; background: #fff; color: #1f4e8c; font-family: inherit; font-size: 17px; line-height: 1; cursor: pointer; }
    .rg-chips-arrow[hidden] { display: none; }
    .rg-chips-prev { left: 0; box-shadow: 14px 0 10px -2px #fff; }
    .rg-chips-next { right: 0; box-shadow: -14px 0 10px -2px #fff; }
    .rg-chips-arrow:hover, .rg-chips-arrow:focus-visible { background: #eef3fb; border-color: #2a6db0; }
}

@media (min-width: 1120px) {
    .rg-chips { gap: 16px; }
    .rg-chip { font-size: 15px; }
    .rg-chip-count { padding: 0 8px; font-size: 13px; }
}
