:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #18212f;
  background: #f4f7f6;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid #d8e0de;
  background: #ffffff;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 22px;
  font-weight: 700;
}

h2 {
  font-size: 16px;
  margin-bottom: 12px;
}

p {
  color: #66717f;
  font-size: 14px;
}

button {
  min-height: 38px;
  border: 1px solid #b5c3c0;
  border-radius: 8px;
  padding: 0 14px;
  background: #ffffff;
  color: #18212f;
  font-weight: 600;
}

main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  min-height: calc(100vh - 73px);
}

#map {
  width: 100%;
  min-height: calc(100vh - 73px);
}

aside {
  border-left: 1px solid #d8e0de;
  background: #ffffff;
  padding: 16px;
  overflow: auto;
}

.place {
  display: grid;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid #edf1f0;
  cursor: pointer;
  outline: none;
}

.place:hover,
.place:focus-visible,
.place.is-selected {
  background: #f4f8f7;
}

.place.is-selected {
  border-left: 4px solid #f2a900;
  padding-left: 8px;
}

.place input {
  width: 100%;
  min-height: 36px;
  border: 1px solid #c8d1cf;
  border-radius: 8px;
  padding: 0 10px;
  font: inherit;
}

.place time {
  color: #66717f;
  font-size: 13px;
}

.place-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.place-focus,
.place-save {
  justify-self: start;
  min-height: 32px;
  padding: 0 10px;
  font-size: 13px;
}

@media (max-width: 820px) {
  header {
    align-items: flex-start;
    flex-direction: column;
  }

  main {
    grid-template-columns: 1fr;
  }

  #map {
    min-height: 58vh;
  }

  aside {
    border-left: 0;
    border-top: 1px solid #d8e0de;
  }
}
