#user {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.card {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 4;
  row-gap: 0;
  padding: 1rem;
  border-radius: 20px;
  border: 2.5px solid var(--color-border);
  background: #f9f7f4;
  box-shadow: var(--dropshadow-mobile);
}

h1 {
  text-align: center;
  margin-bottom: 0.5rem;
  margin-top: 1rem;
  font-family: var(--font-primary);
  font-size: 2rem;
}

h2 {
  font-family: var(--font-primary);
  font-size: 0.8rem;
  margin-bottom: 0.8rem;
}

h3 {
  font-family: var(--font-secondary);
  font-size: 0.7rem;
  margin-top: 0.8rem;
  margin-left: 0.1rem;
  font-weight: 400;
}

.map {
  display: flex;
  align-items: flex-end;
}

.city {
  margin-bottom: 0.1rem;
  margin-right: 0.1rem;
}

.rating {
  display: flex;
  gap: 2px;
  margin-top: 0.1rem;
}

p {
  font-size: 0.6rem;
  font-weight: normal;
  font-family: var(--font-secondary);
  margin-left: 0.3rem;
  text-decoration: underline;
}

.rating p {
  cursor: pointer;
}

.card img {
  width: 100%;
  object-fit: cover;
  border-radius: 20px;
  filter: grayscale(70%);
  cursor: pointer;
  aspect-ratio: 4 / 3;
}

.card:hover {
  img {
    filter: none;
  }
}

.seemore {
  display: block;
  margin: 1.8rem auto 0 auto;
  padding: 5px 15px 7px 15px;
  border-radius: 30px;
  margin-top: 1.8rem;
  border: 2.5px solid #4f4d4d;
  background: var(--cta-primary);
  color: var(--color-text-secondary);
  box-shadow: var(--dropshadow-mobile);
  font-family: var(--font-secondary);
  cursor: pointer;
}

.seemore:hover {
  background-color: #6f9846;
  border: 2.5px solid rgba(164, 156, 140, 0.7);
}

#sorter button,
#filter button {
  margin-bottom: 0.8rem;
  border-radius: 30px;
  color: var(--color-text-tertiary);
  border: 2.5px solid var(--color-border);
  background: #f3eee4;
  box-shadow: var(--dropshadow-mobile);
  font-family: var(--font-secondary);
  font-size: 0.75rem;
  min-width: 80px;
  padding: 0.4rem 0rem;
  cursor: pointer;
}

#sorter button:hover,
#filter button:hover {
  border: 2.5px solid rgba(164, 156, 140, 0.7);
}

#sorter button:focus,
#filter button:focus {
  border: 2.5px solid rgba(164, 156, 140, 0.7);
}

a {
  text-decoration: none;
}

#sorter,
#filter {
  display: flex;
  justify-content: center;
  gap: 1.8rem;
  margin-bottom: 0rem;
}

#sorter {
  margin-bottom: 1rem;
}

#filter {
  margin-top: 1.5rem;
}

@media (min-width: 560px) {
  .companions {
    display: flex;
    align-items: flex-start;
  }

  .content-button {
    flex: 1;
  }

  h1 {
    font-family: var(--font-primary);
    font-size: 2.6rem;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    margin: 8.4rem 2.5rem 0rem 1.5rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  #sorter,
  #filter {
    display: flex;
    justify-content: end;
    margin-bottom: 0rem;
  }

  #sorter {
    margin-bottom: 1rem;
  }

  .card {
    box-shadow: var(--dropshadow-mobile);
    border-radius: 20px;
  }
}

@media (min-width: 835px) {
  #user {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .card img {
    width: 100%;
    object-fit: cover;
    border-radius: 20px;
  }

  .card {
    box-shadow: var(--dropshadow-desktop);
  }

  .seemore {
    padding: 8px 20px 10px 20px;
    margin-top: 3rem;
    font-size: 0.8rem;
  }

  svg {
    width: 0.9rem;
    height: 0.9rem;
  }

  h1 {
    font-family: var(--font-primary);
    font-size: 3rem;
    margin: 8.3rem 5rem 0rem 2.5rem;
  }

  h2 {
    font-size: 1rem;
  }

  h3 {
    font-size: 1rem;
    margin-top: 0;
    margin-left: 0.1rem;
  }

  #sorter,
  #filter {
    display: flex;
    justify-content: end;
    flex-direction: row;
    margin-bottom: 0rem;
  }

  #sorter {
    margin-bottom: 1.2rem;
  }

  p {
    font-size: 0.6rem;
  }
}

@media (min-width: 1140px) {
  #user {
    grid-template-columns: repeat(4, 1fr);
    font-size: 1rem;
    min-width: 319px;
    gap: 2.5rem;
  }

  .seemore {
    padding: 10px 20px 12px 20px;
    margin-top: 3rem;
    font-size: 1rem;
  }

  .companions {
    display: flex;
  }

  h3 {
    font-size: 1rem;
  }

  h1 {
    font-family: var(--font-primary);
    font-size: 4rem;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
  }

  #sorter {
    margin-bottom: 1.2rem;
  }
}

@media (min-width: 1350px) {
  #user {
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
  }
  .companions {
    display: flex;
  }

  .content {
    flex: 1;
  }

  .card {
    padding: 1.4rem;
    box-shadow: var(--dropshadow-desktop);
    border-radius: 30px;
  }

  .card img {
    border-radius: 30px;
  }

  #sorter button,
  #filter button {
    font-size: 0.9rem;
  }

  #sorter #filter {
    display: flex;
    justify-content: end;
    margin-bottom: 1.2rem;
  }

  .city {
    margin-bottom: 0rem;
    margin-right: 0rem;
  }

  .map {
    margin-bottom: 0.3rem;
  }

  .seemore {
    padding: 12px 30px 14px 30px;
    margin-top: 3rem;
    font-size: 1rem;
  }

  svg {
    width: 1rem;
    height: 1rem;
  }

  h1 {
    font-family: var(--font-primary);
    font-size: 4rem;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    margin: 8.5rem 5rem 0rem 2.5rem;
  }

  h2 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
  }

  h3 {
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    margin-top: 0;
    margin-left: 0.1rem;
    font-weight: 400;
  }

  p {
    font-size: 0.8rem;
  }
}
