:root {
  --color-brand--1: rgb(255, 166, 0);
  --color-brand--2: rgb(0, 102, 255);
  --color-brand--3: rgb(212, 212, 212);
  --color-brand--4: rgb(158, 20, 158);
  --color-brand--5: rgb(226, 142, 156);
  --color-brand--6: rgb(245, 100, 47);
  --color-brand--7: rgb(154, 250, 167);
  --color-brand--8: rgb(220, 20, 60);
  --color-brand--9: rgb(0, 217, 255);
  --color-brand--10: rgb(0, 218, 11);
  --color-dark--1: #2d3439;
  --color-dark--2: #42484d;
  --color-light--1: #aaa;
  --color-light--2: #ececec;
  --color-light--3: rgb(214, 222, 224);
}

.transport-popup .leaflet-popup-content-wrapper {
  border-left: 5px solid rgb(0, 217, 255);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}

html {
  font-size: 62.5%;
  box-sizing: border-box;
}

body {
  font-family: 'Manrope', sans-serif;
  color: var(--color-light--2);
  font-weight: 400;
  line-height: 1.6;
  overscroll-behavior-y: none;
  background-color: #fff;
  position: relative;
}
.app {
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100vh;
}

button {
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  border: none;
  color: var(--color-light--2);
}

button:hover {
  opacity: 0.8;
  transition: all 0.5s ease;
}

button:hover,
.overlay {
  cursor: pointer;
}

@media screen and (min-width: 992px) {
  .app {
    flex-direction: row;
  }
}

/* GENERAL */
a:link,
a:visited {
  color: var(--color-brand--1);
}

/* SIDEBAR */
.sidebar {
  position: relative;
  background-color: var(--color-dark--1);
  padding: 2rem 2rem;
  display: flex;
  flex-direction: column;
}

.cta__btn {
  position: absolute;
  top: 2rem;
  right: 1rem;
  padding: 1rem 2rem;
  border-radius: 2rem;
  width: fit-content;
  border: none;
  color: white !important;
  text-decoration: none;
  background-color: #0097b2;
  z-index: 999;
}

.sidebar__content {
  padding-top: 5rem;
}

.menu-icons {
  fill: var(--color-light--2);
  position: absolute;
  left: 1.5rem;
  height: 4rem;
  width: 4rem;
}

.logo {
  height: 5rem;

  align-self: center;
}

.prompt {
  font-size: 1.4rem;
  margin-bottom: 2rem;
}

.activities {
  list-style: none;
  height: 77vh;
  overflow-y: scroll;
  /* overflow-x: hidden; */
}

.activities::-webkit-scrollbar {
  width: 0;
}

.activity {
  background-color: var(--color-dark--2);
  border-radius: 5px;
  padding: 1.5rem 2.25rem;
  margin-bottom: 1.75rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media screen and (min-width: 768px) {
  .activity {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}
.activity--restaurants {
  border-left: 5px solid var(--color-brand--1);
}
.activity--activity {
  border-left: 5px solid var(--color-brand--2);
}
.activity--sport {
  border-left: 5px solid var(--color-brand--3);
}
.activity--clubs {
  border-left: 5px solid var(--color-brand--4);
}
.activity--sightseeing {
  border-left: 5px solid var(--color-brand--5);
}
.activity--beach {
  border-left: 5px solid var(--color-brand--6);
}
.activity--shops {
  border-left: 5px solid var(--color-brand--7);
}
.activity--hotel {
  border-left: 5px solid var(--color-brand--8);
}
.activity--services {
  border-left: 5px solid var(--color-brand--9);
}
.activity--transport {
  border-left: 5px solid var(--color-brand--10);
}

.activity__title {
  font-size: 1.7rem;
  font-weight: 600;
  grid-column: 1 / -1;
}

.activity__details {
  display: flex;
  align-items: baseline;
}

.activity__icon {
  font-size: 1.8rem;
  margin-right: 0.2rem;
  height: 0.28rem;
}

.activity__value {
  font-size: 1.5rem;
  margin-right: 0.5rem;
}

.activity__unit {
  font-size: 1.1rem;
  color: var(--color-light--1);
  text-transform: uppercase;
  font-weight: 800;
}

.form {
  background-color: var(--color-dark--2);
  border-radius: 5px;
  padding: 1.5rem 2.75rem;
  margin-bottom: 1.75rem;

  display: flex;
  flex-direction: column;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 2.5rem;

  transition: all 0.5s, transform 1ms;
}
.form__inputs {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
}
.form.hidden {
  transform: translateY(-30rem);
  height: 0;
  padding: 0 2.25rem;
  margin-bottom: 0;
  opacity: 0;
}

.form__row {
  display: flex;
  flex-direction: column;
}

.form__row--hidden {
  display: none;
}

.form__label {
  flex: 0 0 50%;
  font-size: 1.5rem;
  font-weight: 600;
}

.form__input {
  width: 100%;
  padding: 0.3rem 1.1rem;
  font-family: inherit;
  font-size: 1.4rem;
  border: none;
  border-radius: 3px;
  background-color: var(--color-light--3);
  transition: all 0.2s;
}

.form__input:focus {
  outline: none;
  background-color: #fff;
}

.form__btn {
  width: 100%;
  background-color: #0097b2;
}

.copyright {
  margin-top: auto;
  font-size: 1.3rem;
  text-align: center;
  color: var(--color-light--1);
}

.twitter-link:link,
.twitter-link:visited {
  color: var(--color-light--1);
  transition: all 0.2s;
}

.twitter-link:hover,
.twitter-link:active {
  color: var(--color-light--2);
}

/* MAP */
#map {
  flex: 1;
  height: 100%;
  background-color: var(--color-light--1);
}

/* Popup width is defined in JS using options */
.leaflet-popup .leaflet-popup-content-wrapper {
  background-color: var(--color-dark--1);
  color: var(--color-light--2);
  border-radius: 5px;
  padding-right: 0.6rem;
}

.leaflet-popup .leaflet-popup-content {
  font-size: 1.5rem;
}

.leaflet-popup .leaflet-popup-tip {
  background-color: var(--color-dark--1);
}

.restaurants-popup .leaflet-popup-content-wrapper {
  border-left: 5px solid var(--color-brand--1);
}
.activity-popup .leaflet-popup-content-wrapper {
  border-left: 5px solid var(--color-brand--2);
}
.sport-popup .leaflet-popup-content-wrapper {
  border-left: 5px solid var(--color-brand--3);
}
.clubs-popup .leaflet-popup-content-wrapper {
  border-left: 5px solid var(--color-brand--4);
}
.sightseeing-popup .leaflet-popup-content-wrapper {
  border-left: 5px solid var(--color-brand--5);
}
.beach-popup .leaflet-popup-content-wrapper {
  border-left: 5px solid var(--color-brand--6);
}
.shops-popup .leaflet-popup-content-wrapper {
  border-left: 5px solid var(--color-brand--7);
}
.hotel-popup .leaflet-popup-content-wrapper {
  border-left: 5px solid var(--color-brand--8);
}
.services-popup .leaflet-popup-content-wrapper {
  border-left: 5px solid var(--color-brand--9);
}
.transport-popup .leaflet-popup-content-wrapper {
  border-left: 5px solid var(--color-brand--10);
}

.sidebar__content {
  animation: slideInFromTop 0.5s ease-out forwards;
  transition: all 1s;
}

.sidebar__content--hidden,
.hidden {
  display: none;
}

.clear-data {
  background-color: #0097b2;
  margin-bottom: 2rem;
}

.overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.432);
  width: 100%;
  height: 100vh;
  z-index: 500;
}

.modal {
  position: absolute;
  background-color: #fff;
  width: 30rem;
  padding: 2rem 2rem;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 501;
}

.modal-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 1.4rem;
  color: var(--color-dark--1);
}

.modal-options {
  display: flex;
  justify-content: space-between;
}

.delete {
  background-color: #0097b2;
}

.close-modal {
  background-color: var(--color-brand--1);
}

@media screen and (min-width: 768px) {
  .sidebar {
    padding: 2rem 4rem;
  }
  .menu-icons {
    top: 2.5rem;
    left: 3.5rem;
  }
}

@media screen and (min-width: 992px) {
  .logo {
    margin-left: 5rem;
  }

  .sidebar__content {
    animation: slideFromLeft 0.5s ease-out forwards;
    transition: all 1s;
  }
}

@keyframes slideFromLeft {
  0% {
    transform: translateX(-150%);
    opacity: 0;
  }
  100% {
    transform: translateX(0%);
    opacity: 1;
  }
}

@keyframes slideInFromTop {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0%);
    opacity: 1;
  }
}
