.map > p {
    width: 80%;
    margin: auto;
}

.map-instructions {
    display: flex;
    justify-content: space-around;
    margin: auto;
}

.map-container {
    min-height: 500px;
    width: 70%;
    margin: 2em auto;
    border: 2px solid var(--primary-color);
    border-radius: 1em;
    overflow: hidden;
}

.map-element {
    width: 100%;
    height: 500px;
}

.map-controls {
    margin: auto;
    justify-items: center;
    width: 65%;
}

.search-container {
    background-color: rgba(214, 158, 0, 0.55);
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1em;
    width: 100%;
    padding: 1em;
}

.search-input-group {
    flex: 1 1 220px;
    min-width: 200px;
    position: relative;
}

fieldset {
    justify-content: center;
}

legend {
    font-weight: bold;
}

#combined-search-btn {
    border: none;
    background-color: #ffffff00;
    transition: transform 300ms ease-in-out;
}

#combined-search-btn:hover {
    transform: rotate(10deg) scale(1.5);
}

#combined-search-btn span {
    font-size: 2em;
}

/* The switch - the box around the slider */
.changing-places-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  width: auto;
  height: auto;
  border: 0;
  cursor: pointer;
}

/* Hide default HTML checkbox */
.changing-places-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.changing-places-toggle:has(input:focus-visible) {
  outline: 3px solid var(--primary-color);
  outline-offset: 4px;
}

/* The slider */
.slider {
  position: relative;
  flex: 0 0 60px;
  width: 60px;
  height: 34px;
  cursor: pointer;
  background-color: var(--primary-bg-color);
  -webkit-transition: .4s;
  transition: .4s;
  border: solid var(--primary-color) 2px;
  border-radius: 1em;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: var(--primary-color);
  -webkit-transition: .4s;
  transition: .4s;
  border-radius: 1em;
}

input:checked + .slider {
  background-color: var(--primary-color);
}

input:checked + .slider:before {
  background-color: var(--primary-bg-color);
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

.cp-toggle-label {
  color: var(--primary-color);
  font-weight: bold;
  white-space: nowrap;
}

.location-btn {
    width: 6em;
}

.instruction-card {
    background-color: rgba(214, 158, 0, 0.45);
    border-radius: 1em;
    padding: 1em;
    width: 25%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1em;
}

.instruction-card p {
    margin: 0;
    font-size: 1em;
}

.instruction-card p:nth-of-type(1) {
    font-size: 2em;
}

.instruction-card div {
    display: flex;
    flex-direction: column;
}

.legend-items {
    width: 80% !important;
    margin: auto;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    grid-auto-rows: 1fr;
    align-items: stretch !important;
    justify-items: stretch !important;
    column-gap: 0.75em;
    row-gap: 1em;
}   

.legend-items > div {
    background-color: rgba(214, 158, 0, 0.5);
    padding: 1em;
    border-radius: 1em;
    display: flex;
    align-items: center;
    width: 100% !important;
    min-height: 8rem;
    box-sizing: border-box;
}

.legend-items > div p:nth-of-type(1) {
    font-size: 2em;
    margin: 0 1em;
}

.legend-items div div {
    width: 100%;
    justify-items: center;
}

.legend-items div div p {
    margin: auto;
}

.legend-items div div p:nth-of-type(1) {
    width: 50%;
    text-align: center;
}

.features {
    font-size: 2em;
    width: 50%;
    margin: auto;
}