#show-plan {
  display: flex;
}

#show-content {
  min-width: 0;
}

.menu--plan div {
  color: var(--color-text-black);
  margin-bottom: 0.75rem;
}
.menu--plan div:hover {
  text-decoration-color: var(--color-accent);
  color: var(--color-accent);
}
.menu--plan a {
  display: inline-flex;
  align-items: center;
  margin: 0;
}
.menu--plan i {
  font-size: 1.25rem;
  margin-right: 6px;
}

.navigation--desktop {
  display: none;
}

.navigation--mobile {
  background-color: var(--color-menu-background);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 70px;
  padding: 1rem;
}
.navigation--mobile a {
  display: inline-flex;
  align-items: center;
  margin: 0;
  text-decoration: none;
}
.navigation--mobile i {
  color: var(--color-text-dark);
  font-size: 1.75rem;
}

@media screen and (min-width: 964px) {
  .navigation--desktop {
    display: block;
    width: 150px;
    flex-shrink: 0;
  }
  .navigation--desktop svg {
    margin-right: 0.5rem;
  }
  .navigation--mobile {
    display: none;
  }
  #show-content {
    flex-grow: 1;
  }
  .header-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 1fr;
    gap: 8px;
  }
  .header-grid .header-infos {
    grid-column: span 3 / span 3;
  }
  .header-grid #map {
    grid-column-start: 4;
  }
}
.header--plan {
  margin-bottom: 2rem;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

#show-plan .header-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

#admin-plan-show .header--plan {
  padding: 0;
}

@media screen and (min-width: 989px) {
  .header--plan {
    margin-bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0;
  }
}
.grid-wrapper {
  background-color: var(--color-light-gray-background);
}

.grid--icons {
  display: grid;
  grid-template-columns: 1fr 2fr;
  grid-template-rows: auto;
  grid-column-gap: 1.25rem;
  grid-row-gap: 1.25rem;
  align-items: baseline;
  color: var(--color-text-light);
  width: 100%;
  padding: 1rem;
  padding-top: 1.5rem;
}
.grid--icons__description {
  font-size: 0.75rem;
  color: var(--color-text-light);
  font-family: 'Gotham-Light';
}
.grid--icons i {
  font-size: 24px;
}

@media screen and (min-width: 964px) {
  .grid--icons {
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: auto;
    grid-column-gap: 1.25rem;
    grid-row-gap: 1.25rem;
    align-items: baseline;
  }
}
@media screen and (max-width: 964px) {
  #map.map--plan {
    position: relative;
    height: 300px;
  }
}
.container--charts {
  padding: 1rem;
}
.container--charts .trix-content div {
  word-break: break-word;
  text-align: justify;
}

@media screen and (min-width: 964px) {
  .container--charts {
    padding: 4rem;
  }
}
#energy-retailers-section .trix-content {
  font-family: 'Gotham-Light';
  color: var(--color-text-light);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.energy-retailer__link {
  font-size: 18px;
  width: 300px;
  display: block;
}
.energy-retailer__link i {
  font-size: 14px;
  margin-left: 5px;
}

@media screen and (min-width: 964px) {
  #energy-retailers-section .trix-content {
    margin-bottom: 2rem;
  }
  .energy-retailer {
    display: flex;
  }
}
.dotted {
  color: transparent;
  border-top: 1px dashed var(--color-light-gray-background);
}

trix-editor {
  height: 250px !important;
  overflow: scroll;
}

#tariff-map {
  display: flex;
  flex-direction: column;
}
#tariff-map .container--map {
  width: 100%;
  height: 60vh;
  position: relative;
}
#tariff-map .container--plans {
  width: 100%;
  box-shadow: -2px 0px 10px var(--color-text-light);
  z-index: 999;
  overflow-y: scroll;
}
#tariff-map #map {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 0;
}
#tariff-map #static {
  background-image: url("/assets/placeholder_map-d6f4f38f.webp");
  background-size: cover;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
#tariff-map .map-legend {
  position: absolute;
  width: 205px;
  bottom: 64px;
  right: 20px;
  z-index: 10;
}
#tariff-map .map-legend .inner {
  background-color: white;
  padding: 12px 15px;
  border-radius: 6px;
}

@media screen and (min-width: 769px) {
  #tariff-map {
    height: calc(100vh - 83px);
    flex-direction: row;
  }
  #tariff-map .container--map {
    width: 59%;
    max-width: 1280px;
    height: 100%;
    position: relative;
  }
  #tariff-map .container--plans {
    height: calc(100vh - 83px);
    width: 41%;
  }
}
.mapboxgl-popup-content {
  min-width: 250px;
  background-color: var(--color-light-gray-background);
  border: 1px solid #616668;
  padding: 1rem;
}

#tariff-map .mapboxgl-popup-close-button {
  display: none;
}

@media (min-width: 1200px) {
  .mapboxgl-popup-content {
    width: max-content;
    padding: 1rem; /* Increase the padding */
    line-height: 1.75;
  }
  .mapboxgl-ctrl-geocoder--input,
  .mapboxgl-ctrl-geocoder--suggestion {
    font-size: 1.25rem; /* Increase the font size */
  }
}
.filterbar {
  padding: 1rem;
}
.filterbar .search-form .form-group input {
  width: 100%;
  border-radius: 5px;
}
.filterbar .search-form .regions {
  display: flex;
  align-items: start;
  flex-wrap: wrap;
  width: 100%;
  gap: 10px;
  margin-bottom: 0.5rem;
}
.filterbar .search-form .select {
  margin-bottom: 1rem;
  border: 1px solid var(--color-accent);
  line-height: 24px;
  padding: 7px 10px;
}
.filterbar .options {
  width: 100%;
  line-height: 24px;
}
.filterbar .options button[type='submit'] {
  display: flex;
  padding: 6px;
  width: 100%;
  margin: 0 auto;
  margin-top: 10px;
  align-items: center;
  justify-content: center;
}
.filterbar .options button[type='submit'] i {
  font-size: 18px;
}
.filterbar label {
  color: var(--color-text-dark);
}

.filter-results {
  display: flex;
  padding: 0.5rem 2rem;
  justify-content: space-between;
}

@media screen and (min-width: 769px) {
  .filterbar {
    padding: 2rem;
  }
  .filterbar .search-form .select {
    margin-right: 10px;
    margin-bottom: 0;
    border-radius: 5px;
  }
  .filterbar .options {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
  }
  .filterbar .options button[type='submit'] {
    width: 50px;
    margin: 0 0 0 2rem;
  }
}
.checkmark-container {
  display: block;
  position: relative;
  padding-left: 35px;
  margin-bottom: 12px;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/** Hide the browser's default checkbox */
.checkmark-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Create a custom checkbox */
.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 1.5rem;
  width: 1.5rem;
  border-radius: 5px;
  border: 1px solid var(--color-accent);
}

/* On mouse-over, add a grey background color */
.checkmark-container:hover input ~ .checkmark {
  background-color: var(--color-body-background);
}

/* When the checkbox is checked, add a blue background */
.checkmark-container input:checked ~ .checkmark {
  background-color: var(--color-accent);
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
  content: '';
  position: absolute;
  display: none;
}

/* Show the checkmark when checked */
.checkmark-container input:checked ~ .checkmark:after {
  display: block;
}

/* Style the checkmark/indicator */
.checkmark-container .checkmark:after {
  left: 10px;
  top: 6px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg) scale(1.3);
}

.list--plans {
  height: calc(100vh - 83px);
  overflow: scroll;
  padding: 1rem;
  padding-top: 0;
}

@media screen and (min-width: 769px) {
  .list--plans {
    padding: 2rem;
    padding-top: 0;
  }
}
::-webkit-scrollbar {
  display: none;
}

.info-window-link {
  display: block;
  font-family: var(--font-body-light);
  color: var(--color-text-dark);
  line-height: 2;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.info-window-link:last-child {
  margin-bottom: 0;
}
.info-window-link:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.info-window-plan {
  font-family: var(--font-body);
  color: var(--color-text-black);
  font-size: 1rem;
  text-decoration: none;
  max-height: 300px;
  overflow: scroll;
}

.retailer-icon {
  opacity: 0.5;
}
.retailer-icon:hover {
  opacity: 0.6;
}
.retailer-icon--yes {
  color: var(--color-yes-retailer);
}
.retailer-icon--no {
  color: var(--color-no-retailer);
}

.region-name {
  color: var(--color-text-black);
  background-color: var(--color-accent);
  font-size: 24px;
}

.link--plan {
  text-decoration: none;
  color: var(--black);
}
.link--plan:hover {
  color: var(--black);
  text-decoration: none;
  box-shadow: none !important;
}

.card--plan {
  color: var(--color-text-dark);
  padding: 15px 25px;
  border-style: solid;
  border-color: var(--color-accent);
  border-width: 1px;
  border-radius: 5px;
  margin-bottom: 1rem;
  background-color: var(--color-light-gray-background);
  box-shadow: 0 0px 1px var(--box-shadow-color-2);
}
.card--plan:hover {
  color: var(--black);
  background-color: var(--color-light-gray-background);
  box-shadow: 0 0px 8px var(--color-text-light);
}
.card--plan .title {
  font-size: 22px;
  margin-bottom: 22px;
}

@media screen and (min-width: 769px) {
  .card--plan {
    margin-bottom: 1.5rem;
  }
}
