/* Rocheport Road Conditions — [road_conditions] full list view */

.rrc-post {
  font-family: system-ui, -apple-system, sans-serif;
  max-width: 700px;
  color: #3b3129;
}

.rrc-empty {
  padding: 16px 0;
  font-size: 1rem;
  color: #4a6459;
}

/* Tri-county map (GAP-103) — self-hosted static SVG + injected markers. */
.rrc-map {
  position: relative; /* anchors the zoom controls */
  margin: 0 0 16px;
  border: 1px solid #e6dcc9;
  border-radius: 8px;
  overflow: hidden;
  background: #faf6ee;
}

.rrc-map svg {
  display: block;
  width: 100%;
  height: auto;
}

a.rrc-map-marker {
  cursor: pointer;
}

a.rrc-map-marker:hover circle,
a.rrc-map-marker:focus circle {
  stroke: #3b3129;
}

/* Zoom controls — pills-family styling; shipped hidden, JS reveals. */
.rrc-map-controls {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}

.rrc-map-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid #e6dcc9;
  background: #fffaf0;
  color: #4a6459;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.rrc-map-btn:hover {
  background: #f3ecdd;
}

/* Zoomed state: drag-to-pan takes over. touch-action is suppressed ONLY
   while zoomed, so touch page-scrolling over the default 1x map stays
   normal; Reset restores it. */
.rrc-map--zoomed svg {
  cursor: grab;
  touch-action: none;
}

.rrc-map--panning svg {
  cursor: grabbing;
}

/* Mobile: hide the map entirely — pills + cards are the whole mobile
   experience. 600px is this plugin's dominant phone breakpoint (ui
   extras, river-gauge, today-in-town all use it); the roads page is
   single-column so the 781px column-stack point never applies here, and
   tablets (601px+) keep the now-zoomable map, which still reads well at
   that width. display:none removes the container AND its margin from
   layout — no leftover gap above the pills. */
@media (max-width: 600px) {
  .rrc-map {
    display: none;
  }
}

/* Class-based hiding shared by cards AND map markers — SVG elements don't
   implement the `hidden` property, so the pills JS toggles this instead. */
.rrc-post .rrc-hidden {
  display: none !important;
}

/* Landing flash when a map marker jumps to its card. */
.rrc-item {
  scroll-margin-top: 90px; /* clear the sticky header on anchor jumps */
}

.rrc-item--flash {
  outline: 3px solid #d9a441;
  outline-offset: 2px;
}

/* County pills — explicit flex (module HTML gets no core layout CSS;
   the .rtp-guide-pills lesson). Row ships `hidden` and JS reveals it. */
.rrc-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 14px;
}

.rrc-pill {
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1px solid #e6dcc9;
  background: #fbf8f1;
  color: #4a6459;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.rrc-pill:hover {
  background: #f3ecdd;
}

.rrc-pill[aria-pressed="true"] {
  background: #5b7b6f;
  border-color: #5b7b6f;
  color: #ffffff;
}

.rrc-pills-empty {
  padding: 12px 0;
  font-size: 0.9rem;
  color: #6f6152;
}

.rrc-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rrc-item {
  padding: 12px 14px;
  border: 1px solid #e6dcc9;
  border-radius: 8px;
  background: #fbf8f1;
}

.rrc-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.rrc-item-route {
  font-weight: 700;
  font-size: 1rem;
  color: #4a6459;
}

.rrc-item-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* County chip — muted sibling of the severity badge (same pill shape the
   site's chips share; see rrg-badge in river-gauge.css). */
.rrc-item-county {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 600;
  background: #f3ecdd;
  color: #6f6152;
  border: 1px solid #e6dcc9;
  white-space: nowrap;
}

.rrc-item-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.rrc-item-what {
  margin: 4px 0 0;
  font-size: 0.9rem;
}

.rrc-item-location {
  margin: 2px 0 0;
  font-size: 0.82rem;
  color: #6f6152;
}

.rrc-item-dates {
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: #6f6152;
}

.rrc-source {
  margin-top: 8px;
  font-size: 0.8rem;
  color: #6f6152;
}

.rrc-source a {
  color: #9d4f28;
}
