/* List view: panel sliding in from the left, with the place cards. */

.list-panel {
  position: fixed;
  inset: 0;
  z-index: 1000;
  padding: 1.5rem;
  overflow: hidden;
  transform: translateX(-100%);
  transition: transform var(--duration-panel) var(--ease-panel);
}

.app.is-list-open .list-panel {
  transform: translateX(0);
}

.app.is-place-open .list-panel {
  transform: translateX(-100%);
}

.list-panel__inner {
  margin: 0 auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Mirrors the original's Tailwind steps:
   text-4xl sm:text-5xl md:text-6xl lg:text-6xl */
.list-panel__title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  line-height: 2.5rem;
  color: var(--color-text-primary);
}

@media (min-width: 640px) {
  .list-panel__title {
    font-size: 3rem;
    line-height: 1;
  }
}

@media (min-width: 768px) {
  .list-panel__title {
    font-size: 3.75rem;
  }
}

.list-panel__cards {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-bottom: 2rem;
  padding-right: 0.5rem;
}

@media (min-width: 768px) {
  .list-panel__inner {
    flex-direction: row;
  }
  .list-panel__title {
    width: 25%;
  }
  .list-panel__cards {
    width: 70%;
  }
}

/* Scroll containers clip outlines at their edges: give them room on the
   inside, cancelled by a negative margin so the layout doesn't move. */
.list-panel__cards {
  padding-left: var(--focus-room);
  padding-top: var(--focus-room);
  margin-left: calc(-1 * var(--focus-room));
  margin-top: calc(-1 * var(--focus-room));
}
