:root {
  --color-brand--1: #ffb545;
  --color-brand--2: #00c46a;

  --color-dark--1: #2d3439;
  --color-dark--2: #42484d;
  --color-light--1: #aaa;
  --color-light--2: #ececec;
  --color-light--3: rgb(214, 222, 224);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}
/* For webkit-based browsers */
::-webkit-scrollbar {
  width: 10px; /* Set the width of the scroll bar */
}

::-webkit-scrollbar-track {
  background-color: white; /* Set the background color of the scroll bar track */
}

::-webkit-scrollbar-thumb {
  background-color: #888; /* Set the background color of the scroll bar thumb */
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #105f00; /* Set the background color of the scroll bar thumb on hover */
}
html {
  font-size: 62.5%;
  box-sizing: border-box;
}
.stations {
  overflow-x: auto;
  overflow-y: scroll;
}
.station {
  direction: rtl;
  /* background-color: var(--color-light--2); */
  border-radius: 5px;
  padding: 1rem 0.1rem;
  margin: auto 2.8rem 0rem 2.8rem;
  cursor: pointer;
  display: flex;
  /* justify-content: center; */
  align-items: center;
  gap: 2rem;
  color: var(--color-dark--2);
  font-size: medium;
  font-weight: 700;
  position: relative;
}
.hidden {
  display: none;
}
.station .pathinto {
  position: absolute;
  bottom: -11px;
  right: -2px;
  z-index: 1;
}

.wilaya-bolder {
  font-weight: bold;
}
body {
  font-family: 'Manrope', sans-serif;
  color: var(--color-light--2);
  font-weight: 400;
  line-height: 1.6;
  height: 100vh;
  overscroll-behavior-y: none;

  background-color: #fff;
  /* padding: 2.5rem; */

  display: flex;
}

/* GENERAL */
a:link,
a:visited {
  color: var(--color-brand--1);
}

/* SIDEBAR */
.sidebar {
  position: absolute;
  right: 2rem; /*5*/
  top: 1rem;
  width: 25rem;
  height: 95vh;
  background-color: white;
  opacity: 0.9;
  border-radius: 5px;
  /* padding: 3rem 5rem 4rem 5rem; */
  display: flex;
  z-index: 2;
  flex-direction: column;
  box-shadow: -12px 14px 37px -26px rgba(0, 0, 0, 0.81);
  -webkit-box-shadow: -12px 14px 37px -26px rgba(0, 0, 0, 0.81);
  -moz-box-shadow: -12px 14px 37px -26px rgba(0, 0, 0, 0.81);
}

.logo {
  height: 5.2rem;
  align-self: center;
  /* margin-bottom: 4rem; */
}

.form {
  /* background-color: var(--color-dark--2); */
  border-radius: 5px;
  padding: 1.5rem 2.75rem;
  /* margin-bottom: 1.75rem; */
  direction: rtl;
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 0.5rem 1.5rem;

  /* Match height and activity boxes */
  height: 9.25rem;
  transition: all 0.5s, transform 1ms;
}

.form.hidden {
  transform: translateY(-30rem);
  height: 0;
  padding: 0 2.25rem;
  margin-bottom: 0;
  opacity: 0;
}

.form__row {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: space-between;
  gap: 5px;
}

.form__row--hidden {
  display: none;
}

.form__label {
  flex: 0 0 50%;
  font-size: 1.5rem;
  font-weight: 600;
}

.form__input {
  text-align-last: right;
  width: 100%;
  padding: 0.3rem 1.1rem;
  font-family: inherit;
  font-size: 1.4rem;
  border: 1px dotted rgba(0, 0, 0, 0.2);
  border-radius: 3px;
  color: black;
  /* background-color: var(--color-light--3); */
  transition: all 0.2s;
}
.form__input option {
  direction: rtl;
}
.form__input:focus {
  outline: none;
  background-color: #fff;
}

.form__btn {
  display: none;
}

/* MAP */
#map {
  z-index: 1;
  flex: 1;
  position: absolute !important;
  height: 100vh;
  width: 100vw;
  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-left: 0.6rem; */
}

.leaflet-popup .leaflet-popup-content {
  font-size: 1.5rem;
}

.leaflet-popup .leaflet-popup-tip {
  background-color: var(--color-dark--1);
}

.station-popup .leaflet-popup-content-wrapper {
  border-top: 5px solid var(--color-brand--2);
}
.start-popup .leaflet-popup-content-wrapper,
.end-popup .leaflet-popup-content-wrapper {
  border-top: 5px solid var(--color-brand--1);
}
.BusLineForm {
  /* background-color: red; */
  left: 1.2rem; /*5*/
  height: 78vh;
}
.BusLineForm .form {
  grid-template-columns: 1fr;
  height: auto;
}

@media (max-width: 1200px) {
  /* Your CSS rules for screens less than 1200px */

  .stations {
    display: none;
  }
  .stationsToggle {
    display: flex;
    flex-direction: column;
  }
  .sidebar {
    height: auto;
  }
  .sidebarToggle {
    height: 95vh;
  }

  .BusLineForm {
    display: none;
  }
}
