/* City and district pages */

.location-headline-section {
  flex-direction: column;
  align-items: flex-start;
  gap: 1.6rem;
}

.location-intro {
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--primary-text-color);
  max-width: 80rem;
}

.location-stats-line {
  display: inline-block;
  padding: 1.2rem 2rem;
  border-radius: 1.2rem;
  background-color: var(--orange-surface-color);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--primary-text-color);
}

.location-catalog-section {
  flex-direction: column;
  align-items: stretch;
  gap: 2.4rem;
  padding-bottom: 4.8rem;
}

.location-catalog-section .locations-list {
  display: flex;
  width: 100%;
  gap: 2.4rem;
  flex-direction: row;
  flex-wrap: wrap;
}

.location-catalog-section #map.location-map {
  width: 100%;
  height: 42rem;
  border-radius: 1.5rem;
  overflow: hidden;
}

/* Each block keeps its own space below it; the shared static-page rule
   drops it to zero on phones, and the blocks then run into each other. */
.location-sizes-section,
.location-text-section,
.location-faq-section {
  padding-bottom: 4.8rem;
}

.location-sizes-table {
  width: 100%;
  max-width: 64rem;
  border-collapse: collapse;
  font-size: 1.4rem;
  color: var(--primary-text-color);
}

.location-sizes-table th,
.location-sizes-table td {
  padding: 1.2rem 1.6rem;
  text-align: left;
  border-bottom: 1px solid var(--tabs-surface-color);
}

.location-sizes-table {
  hyphens: manual;
}

.location-sizes-table th {
  white-space: nowrap;
  font-weight: 600;
  background-color: var(--tabs-surface-color);
}

.location-text-section .post-page-body a,
.location-faq-section a {
  color: var(--orange-color, #E88327);
}

.location-related-section {
  padding-bottom: 4.8rem;
}

@media (max-width: 960px) {
  .location-sizes-section,
  .location-text-section,
  .location-faq-section,
  .location-catalog-section {
    padding-bottom: 3.2rem;
  }

  .location-catalog-section .locations-list {
    gap: 1.6rem;
  }

  .location-catalog-section .location-card {
    width: 100%;
  }

  .location-catalog-section #map.location-map {
    height: 32rem;
  }

}

/* Home page: "Storage by location" panel under the catalog, in the same
   narrow column as the sections that follow it */
.location-links-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.4rem;
  width: 100%;
  padding: 3.2rem 4rem;
  border-radius: 3rem;
  background-color: var(--tabs-surface-color);
}

.location-links-title {
  flex-shrink: 0;
  margin: 0;
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--primary-text-color);
}

.location-links-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1.2rem;
}

.location-links-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.2rem 2rem;
  border-radius: 1.2rem;
  background-color: var(--white-color);
  color: var(--primary-text-color);
  font-size: 1.5rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.location-links-nav a svg {
  width: 1.6rem;
  height: 1.6rem;
  fill: currentColor;
  color: var(--orange-color);
}

.location-links-nav a:hover {
  background-color: var(--orange-color);
  color: var(--white-color);
}

.location-links-nav a:hover svg {
  color: var(--white-color);
}

@media (max-width: 960px) {
  .location-links-panel {
    flex-direction: column;
    align-items: stretch;
    gap: 1.6rem;
    padding: 2.4rem 1.6rem;
    border-radius: 2rem;
  }

  .location-links-title {
    font-size: 2rem;
  }

  .location-links-nav {
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.8rem;
  }

  .location-links-nav a {
    justify-content: space-between;
    font-size: 1.4rem;
  }
}

.location-size-name {
  color: var(--secondary-text-color, #6b7280);
  font-size: 1.3rem;
}

/* "Select" in the size table: to the catalog filtered by place and size;
   grey and inert where nothing of that size is free. */
.location-sizes-table td.location-size-action {
  text-align: right;
}

.location-size-btn {
  padding: 0.8rem 1.6rem;
  font-size: 1.3rem;
  white-space: nowrap;
}

.location-size-btn.disabled {
  background-color: var(--tabs-surface-color);
  border-color: var(--tabs-surface-color);
  color: var(--secondary-text-color, #9ca3af);
  pointer-events: none;
  cursor: default;
}

.location-size-empty td {
  color: var(--secondary-text-color, #9ca3af);
}

@media (max-width: 960px) {
  .location-size-name {
    display: none;
  }

  .location-sizes-table {
    font-size: 1.3rem;
  }

  .location-sizes-table th,
  .location-sizes-table td {
    padding: 1rem 0.6rem;
  }

  .location-sizes-table td:first-child {
    white-space: nowrap;
  }

  .location-size-btn {
    padding: 0.6rem 1rem;
    font-size: 1.2rem;
  }
}
