/* Route overview and access maps. Shared popup behavior remains in map-markers.css. */
@media (min-width: 761px) {
  .river-launch-plan__map-toggle {
    display: none !important;
  }
}

.river-detail__hero-map-disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 2.15rem;
  padding: 0.38rem 0.62rem;
  border: 1px solid rgba(16, 35, 45, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--river-deep);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
  list-style: none;
}

.river-detail__hero-map-disclosure > summary::-webkit-details-marker {
  display: none;
}

.river-detail__hero-map-disclosure > summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(16, 35, 45, 0.1);
  border-radius: 999px;
  font-size: 0.92rem;
  line-height: 1;
}

.river-detail__hero-map-disclosure[open] > summary::after {
  content: "−";
}

@media (max-width: 760px) {

  html body [data-river-detail] .river-detail__hero-map-disclosure[open] > summary::after {
    content: '−';
  }
}

@media (min-width: 761px) {
  .river-detail__hero-map-disclosure > summary {
    display: none;
  }
}

.page-route-detail .river-detail__hero-map-shell {
  display: none;
}

.river-detail__hero-map-shell {
  display: grid;
  gap: 0.55rem;
}

.river-detail__hero-map-frame {
  display: grid;
  gap: 0.68rem;
  padding: 0.72rem;
  border: 1px solid rgba(16, 35, 45, 0.08);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(248, 251, 252, 0.72)),
    rgba(255, 255, 255, 0.72);
  box-shadow:
    0 12px 28px rgba(16, 35, 45, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.river-detail__hero-map {
  min-height: 220px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(16, 35, 45, 0.08);
  background:
    radial-gradient(circle at top left, rgba(82, 133, 154, 0.16), transparent 48%),
    linear-gradient(180deg, rgba(231, 240, 244, 0.88), rgba(243, 247, 249, 0.94));
}

.river-detail__hero-map-copy {
  display: grid;
  gap: 0.2rem;
}

.river-detail__hero-map-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--river-deep);
}

.river-detail__hero-map-status {
  margin: 0;
  max-width: 46ch;
  line-height: 1.42;
}

.river-launch-plan__support .detail-map__facts div {
  padding: 0.88rem 0.92rem;
  border-color: rgba(16, 35, 45, 0.07);
  background: rgba(248, 244, 237, 0.46);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.river-launch-plan__support .detail-map__facts dt {
  margin-bottom: 0.24rem;
}

.river-launch-plan__support .detail-map__facts dd {
  font-size: 1.02rem;
  line-height: 1.3;
}

.detail-map-copy,
.detail-map-frame {
  display: grid;
  gap: 0.9rem;
}

.detail-map__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
}

.detail-map__facts--launch-plan {
  gap: 0.6rem;
  grid-template-columns: 1fr;
}

.detail-map__facts div {
  padding: 0.85rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(16, 35, 45, 0.08);
  background: var(--panel-muted);
}

.detail-map__facts dt {
  margin: 0 0 0.3rem;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.detail-map__facts dd {
  margin: 0;
  font-weight: 600;
  color: var(--ink);
}

.detail-map__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.detail-map__links--primary {
  gap: 0.5rem;
}

.detail-map-frame {
  align-content: start;
}

.detail-map-frame--launch-plan {
  gap: 0.6rem;
}

.river-launch-plan__map-shell {
  display: grid;
  gap: 0.55rem;
  scroll-margin-top: 1rem;
}

.river-launch-plan__map-shell:focus-visible {
  outline: 2px solid var(--river-deep);
  outline-offset: 4px;
  border-radius: var(--radius);
}

.river-launch-plan__map-toggle {
  justify-self: start;
}

.river-launch-plan__map-shell--collapsed .detail-map-frame {
  display: none;
}

.detail-map {
  min-height: 320px;
  border-radius: calc(var(--radius) - 6px);
  overflow: hidden;
  border: 1px solid rgba(16, 35, 45, 0.08);
  background:
    radial-gradient(circle at top left, rgba(82, 133, 154, 0.14), transparent 46%),
    linear-gradient(180deg, rgba(230, 238, 241, 0.82), rgba(240, 245, 247, 0.92));
}

.detail-map__status {
  margin: 0;
}

.river-launch-plan__map-shell[data-map-unavailable] .detail-map { display: none; }

html body .detail-map-frame button.detail-map__retry {
  justify-self: start;
  min-height: 44px;
  padding: 0.55rem 1rem;
  color: var(--river-deep);
  background: #fff;
  border: 1px solid rgba(30, 115, 151, 0.35);
  font-weight: 700;
}

.river-detail--loading .river-detail__hero-map-status[data-skeleton],
.river-detail--loading .detail-map__status[data-skeleton] {
  min-height: 1.2em;
}

.detail-access-marker {
  min-width: 2.8rem;
  height: 2rem;
  padding: 0 0.7rem;
  border: 0;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
  box-shadow: 0 8px 18px rgba(16, 35, 45, 0.2);
  cursor: pointer;
}

.detail-access-marker--putin {
  background: linear-gradient(180deg, rgba(35, 130, 90, 0.98), rgba(44, 138, 84, 0.96));
}

.detail-access-marker--takeout {
  background: linear-gradient(180deg, rgba(16, 72, 98, 0.98), rgba(30, 115, 151, 0.96));
}

.river-report-panel__content .detail-map__links {
  margin-left: auto;
}

@media (max-width: 760px) {
  .detail-map__facts {
    grid-template-columns: 1fr;
  }

  .river-report-panel__content .detail-map__links {
    margin-left: 0;
  }
}

.detail-map__links a {
  overflow-wrap: anywhere;
}

@media (min-width: 481px) and (max-width: 760px) {

  .detail-map,
.detail-map-frame .detail-map,
.detail-map-frame--launch-plan .detail-map {
    min-height: 16rem;
  }

  .river-launch-plan__map-toggle {
    display: inline-flex;
  }
}

@media (max-width: 480px) {

  .detail-map__links {
    gap: 0.42rem;
  }

  .detail-map,
.detail-map-frame .detail-map,
.detail-map-frame--launch-plan .detail-map {
    min-height: 14rem;
  }

  .river-launch-plan__map-toggle {
    display: inline-flex;
  }
}

@media (max-width: 760px) {

  .river-detail__hero-map-frame {
    padding: 0.62rem;
    border-radius: 20px;
  }

  .river-detail__hero-map {
    min-height: 190px;
    border-radius: 18px;
  }

  html body [data-river-detail] .river-detail__hero-map-copy {
    display: none !important;
  }

  html body [data-river-detail] .river-detail__hero-map-frame {
    gap: 0 !important;
    padding: 0.36rem !important;
    border-radius: 18px !important;
  }

  html body [data-river-detail] .river-detail__hero-map {
    min-height: 9.4rem !important;
    border-radius: 16px !important;
  }
}

html body [data-river-detail] .river-detail__hero-map-disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 2.15rem;
  padding: 0.38rem 0.62rem;
  border: 1px solid rgba(16, 35, 45, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--river-deep);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
  list-style: none;
}

html body [data-river-detail] .river-detail__hero-map-disclosure > summary::-webkit-details-marker {
  display: none;
}

html body [data-river-detail] .river-detail__hero-map-disclosure > summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(16, 35, 45, 0.1);
  border-radius: 999px;
  font-size: 0.92rem;
  line-height: 1;
}

html body [data-river-detail] .river-detail__hero-map-disclosure[open] > summary::after {
  content: "-";
}

html body.page-route-detail [data-river-detail] .river-detail__hero-map-shell {
  display: grid !important;
  min-width: 0;
}

html body.page-route-detail [data-river-detail] .river-detail__hero-map-frame {
  height: 100%;
  min-height: 15.5rem;
  padding: 0.5rem;
  border-radius: 19px;
  box-shadow: none;
}

html body.page-route-detail [data-river-detail] .river-detail__hero-map {
  min-height: 11.6rem;
  height: 100%;
  border-radius: 15px;
}

html body.page-route-detail [data-river-detail] .river-detail__hero-map-copy {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  min-height: 2.3rem;
}

html body.page-route-detail [data-river-detail] .river-detail__hero-map-status {
  font-size: 0.7rem;
  line-height: 1.22;
}

@media (max-width: 1050px) {

  html body.page-route-detail [data-river-detail] .river-detail__hero-map-shell {
    grid-column: 1 / -1;
  }

  html body.page-route-detail [data-river-detail] .river-detail__hero-map-frame {
    min-height: 13.5rem;
  }

  html body.page-route-detail [data-river-detail] .river-detail__hero-map {
    min-height: 10rem;
  }
}

html body.page-route-detail [data-river-detail] .route-overview-primary .river-detail__hero-map-frame {
  min-height: 21.5rem;
}

html body.page-route-detail [data-river-detail] .route-overview-primary .river-detail__hero-map {
  min-height: 17.5rem;
}

@media (max-width: 900px) {

  html body.page-route-detail [data-river-detail] .route-overview-primary .river-detail__hero-map-frame {
    min-height: 17rem;
  }

  html body.page-route-detail [data-river-detail] .route-overview-primary .river-detail__hero-map {
    min-height: 13rem;
  }
}

@media (max-width: 560px) {

  html body.page-route-detail [data-river-detail] .route-overview-primary .river-detail__hero-map-frame {
    min-height: 11.3rem;
  }

  html body.page-route-detail [data-river-detail] .route-overview-primary .river-detail__hero-map {
    min-height: 8rem;
  }
}

@media (max-width: 1050px) {

  html body.page-route-detail [data-river-detail] .river-detail__hero-map-shell {
    grid-column: 2;
    grid-row: 1;
  }
}

@media (max-width: 760px) {
  html body.page-route-detail [data-river-detail] .river-detail__hero-map-shell {
    grid-column: 1;
    grid-row: auto;
  }

  html body.page-route-detail [data-river-detail] .river-detail__hero-map-shell {
    grid-column: auto;
  }

  html body.page-route-detail [data-river-detail] .river-detail__hero-map-frame {
    min-height: 11.3rem;
  }

  html body.page-route-detail [data-river-detail] .river-detail__hero-map {
    min-height: 8rem !important;
  }

  html body.page-route-detail [data-river-detail] .river-detail__hero-map-copy {
    display: flex !important;
  }
}

html body.page-route-detail [data-river-detail] .river-launch-plan__map-shell {
  display: grid;
  gap: 0.3rem;
}

html body.page-route-detail [data-river-detail] .river-launch-plan__map-label {
  margin: 0;
  color: var(--river-deep);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
