:root {
  --ddm-primary: #498cfe;
  --ddm-primary-dark: #2a76f1;
  --ddm-text: #243852;
  --ddm-muted: #667a96;
  --ddm-border: #d6dfec;
  --ddm-bg: #f5f8fc;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ddm-text);
  background: var(--ddm-bg);
  line-height: 1.5;
}

a {
  text-decoration: none;
}

a:hover,
a:focus,
a:visited {
  text-decoration: none;
}

button,
input {
  font: inherit;
}

main {
  height: 100vh;
  position: relative;
  overflow: hidden;
}

aside {
  background-color: #fff;
  width: 400px;
  height: 100%;
  position: relative;
  z-index: 3;
  box-shadow: -8px 0 15px 7px rgba(0, 0, 0, 0.25);
  border-top: 1px solid #ccc;
  padding: 18px 36px 20px 20px;
}

.search-box {
  position: relative;
}

aside .search-box h3 {
  margin: 0 0 12px;
  line-height: 1.2;
  color: #2f3948;
  font-size: 18px;
  font-weight: 700;
}

aside .search-box h3 .js-city-name {
  display: inline;
}

#search {
  position: relative;
  padding-left: 30px;
}

#search .form-group {
  position: relative;
  margin: 0 0 10px;
}

#search .form-group.text-right {
  margin: 0;
}

.input-group-wrap {
  position: relative;
}

.pin {
  position: absolute;
  left: -30px;
  top: 8px;
  width: 22px;
  height: auto;
}

.form-control {
  display: block;
  width: 100%;
  height: 50px;
  border: 1px solid var(--ddm-border);
  border-radius: 3px;
  background: #fff;
  color: #364d6c;
  font-size: 16px;
  line-height: 1.4;
  padding: 10px 14px;
}

.form-control::placeholder {
  color: #7a8da7;
  opacity: 1;
}

.form-control:focus {
  border-color: var(--ddm-primary);
  outline: none;
  box-shadow: 0 0 0 2px rgba(73, 140, 254, 0.08);
}

#switch {
  background-image: url('../images/button-switch.png');
  background-repeat: no-repeat;
  background-position: 0 0;
  width: 24px;
  height: 26px;
  position: absolute;
  top: 40px;
  right: -28px;
  cursor: pointer;
}

#switch:hover {
  background-position: 0 -26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
}

.btn.btn-default {
  color: #fff;
  background-color: var(--ddm-primary);
  border: 1px solid var(--ddm-primary-dark);
  border-radius: 2px;
  padding: 6px 18px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
}

.btn.btn-default:hover,
.btn.btn-default:focus {
  background-color: var(--ddm-primary-dark);
  color: #fff;
}

.btn.btn-default.btn-big {
  width: 100%;
  min-height: 60px;
  font-size: 18px;
  letter-spacing: 0.4px;
}

.btn.btn-default.btn-big span:first-child {
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.text-right {
  text-align: right;
}

.container-fluid,
.row,
.col-sm-12 {
  width: 100%;
}

.container-fluid {
  padding: 0 16px;
}

.text-center {
  text-align: center;
}

.hidden-xs {
  display: block;
}

header {
  background-color: #fff;
  text-align: center;
  padding: 12px 0;
  box-shadow: 0 0 50px rgba(88, 102, 125, 0.25);
  position: relative;
  z-index: 2;
  border-top: 1px solid #d5dbe5;
}

#geoip-search {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: min(560px, 96%);
}

#geoip-search .form-control {
  height: 44px;
  font-size: 15px;
}

#geoip-search .btn.btn-default {
  width: 44px;
  min-width: 44px;
  height: 44px;
  border-radius: 2px;
  padding: 0;
  text-transform: none;
}

article#map {
  height: 100%;
  width: 100%;
  position: absolute;
  z-index: 1;
  left: 0;
  top: 0;
  padding-left: 400px;
}

article#map > .js-map-canvas {
  height: calc(100vh - 69px);
  width: 100%;
  position: relative;
  left: 0;
  top: 0;
  background-color: #e0e0e0;
}

.autocomplete-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  z-index: 7000;
  border: 0;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.45);
  border-radius: 0 0 2px 2px;
  background: #fff;
  overflow: hidden;
}

.autocomplete-menu[hidden] {
  display: none;
}

.autocomplete-item {
  padding: 0 10px 0 30px;
  background: url('../images/marker.png') 12px center no-repeat;
  border: 0;
  border-top: 1px solid #e6e6e6;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  cursor: pointer;
}

.autocomplete-item:first-child {
  border-top: 0;
}

.autocomplete-item .ac-place {
  display: block;
  line-height: 38px;
  padding-left: 5px;
  color: #8c8c8c;
  font-size: 12px;
  font-weight: 400;
  font-family: "Roboto", "Segoe UI", Arial, sans-serif;
}

.autocomplete-item .ac-place .ac-place-first {
  font-family: "Roboto", "Segoe UI", Arial, sans-serif;
  color: #333;
  font-size: 13px;
}

.autocomplete-item .ac-place strong {
  color: #000;
  font-weight: 600;
}

.autocomplete-item.is-active,
.autocomplete-item:hover {
  background-color: #f8f8f8;
}

.route-option:focus,
.route-tab:focus,
.layer-option:focus,
.category-btn:focus,
.mode-btn:focus,
.action-btn:focus,
.map-control-btn:focus,
.layers-btn:focus,
.scroll-indicator:focus,
.cta-button:focus,
.all-articles-link:focus,
.btn:focus {
  outline: 2px solid rgba(42, 118, 241, 0.3);
  outline-offset: 1px;
}

@media only screen and (max-width: 991px) {
  aside {
    width: 350px;
    padding: 16px 30px 18px 16px;
  }

  article#map {
    padding-left: 350px;
  }

  #switch {
    right: -26px;
  }

  .btn.btn-default.btn-big {
    font-size: 17px;
  }

  .btn.btn-default.btn-big span:first-child {
    font-size: 17px;
  }
}

@media only screen and (max-width: 767px) {
  main {
    height: auto;
    overflow: visible;
  }

  aside {
    width: 100%;
    height: auto;
    box-shadow: 0 0 50px rgba(88, 102, 125, 0.25);
    padding: 18px 22px;
  }

  #search {
    padding-left: 30px;
  }

  article#map {
    position: relative;
    padding-left: 0;
    height: auto;
  }

  article#map > .js-map-canvas {
    height: 64vh;
    min-height: 360px;
  }

  .hidden-xs {
    display: none;
  }

  #switch {
    right: 2px;
  }

  .autocomplete-menu {
    max-width: calc(100vw - 24px);
  }
}
