.badges button {
  border: none !important;
}

.badges button:hover {
  background-color: transparent;
}

.badge img {
  object-fit: scale-down
}

.pointer {
  cursor: pointer;
}

.star-rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
}

.radio-input {
  position: fixed;
  opacity: 0;
  pointer-events: none;
}

.radio-label {
  cursor: pointer;
  font-size: 0;
  color: rgba(0, 0, 0, 0.2);
  transition: color 0.1s ease-in-out;
}

.radio-label:before {
  content: "★";
  display: inline-block;
  font-size: 24px;
}

.radio-input:checked~.radio-label {
  color: #ffc700;
}

#user-rating {

  .radio-label:hover,
  .radio-label:hover~.radio-label {
    color: goldenrod;
  }

  .radio-input:checked+.radio-label:hover,
  .radio-input:checked+.radio-label:hover~.radio-label,
  .radio-input:checked~.radio-label:hover,
  .radio-input:checked~.radio-label:hover~.radio-label,
  .radio-label:hover~.radio-input:checked~.radio-label {
    color: darkgoldenrod;
  }
}

.offcanvas {
  height: 100% !important;
}

#focus-attraction {
  border-top: 5px solid red !important;
}

.offcanvas-collapsed {
  height: 25% !important;
}

#lake .card {
  box-shadow: inset 0 0 0 2px #f56a6a;
}

#explorer {
  --park-background-color: #6edd8a;
  --community-background-color: #ff8c66;
  --reserve-background-color: #ff8c66;
  --municipality-background-color: #ffffbf;
  --lake-background-color: #b3d9ff;
}

#lake-map {
  height: var(--map-height);
  width: 100%;
  display: block;
}

#map-container {
  height: 100%;
  width: 100%;
}

#map-container.loading::before {
  content: "Loading...";
  font-size: 3em;
  text-align: center;
  z-index: 99999;
  width: 100%;
  height: 100%;
  position: absolute;
  transform: translate(0, 50%);
}

.map-marker {
  height: 4em;
  width: 4em;
  background-size: cover;
  background-color: white;
  border-radius: 25px;
  border: 1px solid #000;
}

#attraction-details .card.active .card-header {
  background-color: #f56a6a;
}

#lake-menu {

  .navbar {
    padding: 0 10px;

    button {
      border: 0 !important;
      box-shadow: none;
    }
  }

  .navbar.fixed-bottom {
    border-top: 1px solid;
  }
}

#tableOfContent {
  height: 100vh;
  overflow-y: scroll;
}

#tableOfContent .nav-group:has(.active) {
  a {
    color: #000;
    background-color: var(--bs-list-group-active-bg);
  }

  .list-children {
    display: block !important;

    a {
      background-color: white;
    }

    .active {
      background-color: var(--bs-list-group-active-bg);
    }
  }
}

#offcanvasMap .card {
  min-height: inherit !important;
}

#offcanvasMap {
  right: 0;
  left: calc(var(--offcanvas-menu-width) + 5em);
}

@media screen and (min-width: 768px) {
  #offcanvasLakeMenu {
    position: sticky;
    top: 0;
    z-index: 1020;
  }
}

@media screen and (max-width: 1280px) {
  #offcanvasMap {
    right: 0;
    left: calc(var(--offcanvas-menu-width) + 4em);
  }
}

#conditions {
  min-height: 231px
}

.conditions-section-header {
  margin-bottom: 0.65rem;
  padding: 0 0.1rem;
}

.conditions-panel {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  box-shadow: inset 0 0 0 2px #f56a6a;
}

.conditions-panel-header {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid #eef2f7;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.conditions-panel-subtitle {
  color: #6b7280;
  font-size: 0.82rem;
}

.conditions-panel-body {
  padding: 0.7rem;
}

.conditions-panel-body-compact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 112px;
}

.conditions-weather-preview {
  cursor: pointer;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 0.45rem;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.conditions-weather-preview:hover,
.conditions-weather-preview:focus {
  border-color: #d1d5db;
  box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.06);
  outline: none;
}

.conditions-weather-preview weather-widget {
  display: block;
  pointer-events: none;
}

.conditions-panel-header .button {
  align-self: flex-start;
  padding: 0.35rem 0.65rem;
  font-size: 0.86rem;
}

#conditionsWeatherModal weather-widget .weather-card {
  cursor: default;
}

#conditionsWeatherModal weather-widget .weather-toggle {
  display: none;
}

#conditionsWeatherModal weather-widget .weather-expanded {
  display: block;
}

.conditions-windy-frame-wrap {
  position: relative;
  width: 100%;
  min-height: 60vh;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
}

.conditions-windy-frame {
  width: 100%;
  height: 60vh;
  border: 0;
}

.conditions-cameras-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.conditions-cameras-subtitle {
  color: #6b7280;
  font-size: 0.88rem;
}

.conditions-camera-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.conditions-camera-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
  border-color: #d1d5db;
}

.conditions-camera-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f3f4f6;
}

.conditions-camera-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.conditions-camera-card:hover .conditions-camera-image {
  transform: scale(1.02);
}

.conditions-camera-placeholder {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
  font-size: 0.84rem;
}

.conditions-camera-status {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 2;
  font-size: 0.72rem;
  line-height: 1;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.conditions-camera-status-live {
  color: #14532d;
  background: rgba(187, 247, 208, 0.95);
  border: 1px solid rgba(34, 197, 94, 0.5);
}

.conditions-camera-status-stale {
  color: #78350f;
  background: rgba(254, 243, 199, 0.95);
  border: 1px solid rgba(245, 158, 11, 0.55);
}

.conditions-camera-body {
  background: #fff;
  padding: 0.55rem 0.65rem !important;
}

.conditions-camera-title {
  color: #111827;
  line-height: 1.25;
  font-size: 0.92rem;
}

.conditions-camera-location {
  margin-top: 0.15rem;
}

.conditions-camera-updated {
  color: #6b7280;
  font-size: 0.77rem;
}

.conditions-station-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.conditions-station-card:hover {
  text-decoration: none;
  color: inherit;
  border-color: #d1d5db;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
}

@media screen and (max-width: 767px) {
  #conditions {
    min-height: 300px;
  }

  .conditions-panel-body {
    padding: 0.75rem;
  }

  news-widget .card {
    height: 200px;
    overflow-y: scroll;
  }

  #offcanvasMap {
    left: 0;
    /* padding-bottom: 75px; */
  }

  #offcanvasLakeMenu {
    height: 45vh;
    /* z-index: 10001; */
  }

  #offcanvasLakeMenuToggler {
    /* z-index: 10000; */
    /* height: 75px; */
  }
}

.parks {
  background-color: var(--park-background-color);
}

.communities {
  background-color: var(--community-background-color);
}

.reserves {
  background-color: var(--reserve-background-color);
}

.municipalities {
  background-color: var(--municipality-background-color);
}

.lakes {
  background-color: var(--lake-background-color);
}

#lakePhotos figure {
  object-fit: contain;
  width: 200px;
}

#lakePhotos img {
  object-fit: contain;
  height: 150px;
}

.pw {
  white-space: pre-wrap;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;

  .badge {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    height: 50px;
    border: 1px solid #f56a6a;
  }
}

.lake-title-row img {
  height: 4.25em;
}

.photos-card {
  max-height: 500px;

  .card-body {
    overflow: scroll;
    max-height: 400px;
    margin: 15px 0;
  }
}

.lake-resources-grid .lake-resource-card {
  height: 100%;
}

.lake-resources-grid .figure-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  margin-bottom: 0.5rem;
}

@media screen and (max-width: 767px) {
  .lake-resources-grid .figure-img {
    height: 200px;
  }
}