/* Location explorer: map on the left, location tabs + detail card on the right.
   Leaflet marker/popup styling lives in map.css. */
.locations { background: var(--cream); }
.location-explorer { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(370px, .7fr); gap: 22px; margin-top: 56px; }
.location-sidebar { display: flex; min-width: 0; flex-direction: column; gap: 18px; }

.location-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.location-option { display: grid; min-width: 0; grid-template-columns: 25px 1fr; gap: 1px 8px; padding: 14px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(250,248,238,.6); cursor: pointer; text-align: left; transition: border-color .2s ease, background .2s ease; }
.location-option > span { grid-row: 1 / 3; color: var(--gold); font-family: var(--sans); font-size: 1.1rem; }
.location-option strong { overflow: hidden; font-size: .72rem; font-weight: var(--fw-strong); text-overflow: ellipsis; white-space: nowrap; }
.location-option small { color: var(--muted); font-size: .58rem; white-space: nowrap; }
.location-option:hover { border-color: var(--gold); }
.location-option.active { border-color: var(--wine); background: var(--wine); color: var(--on-wine); }
.location-option.active > span { color: var(--accent); }
.location-option.active small { color: rgba(244,241,225,.82); }
/* Odd count: the last card spans the row so the 2-column grid stays even */
.location-option:last-child:nth-child(odd) { grid-column: 1 / -1; }

.location-detail { flex: 1; overflow: hidden; border-radius: 16px; background: var(--paper); box-shadow: 0 12px 34px rgba(108,16,10,.08); }
.location-detail-image { height: 280px; overflow: hidden; }
.location-detail-image img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s ease; }
.location-detail-image.is-placeholder { display: grid; place-items: center; background: var(--wine); }
.location-detail-image.is-placeholder img { width: 46%; height: auto; object-fit: contain; }
.location-detail-copy { padding: 30px 30px 32px; }
.location-detail-copy h3 { margin: 0 0 8px; font-size: 1.9rem; font-weight: var(--fw-title); line-height: 1.2; letter-spacing: -.015em; }
.location-address { margin-bottom: 13px; color: var(--wine); font-size: .72rem; font-weight: var(--fw-strong); }
.location-detail-copy > p:not(.card-kicker):not(.location-address):not(.location-capacity) { margin-bottom: 17px; color: var(--muted); font-size: .78rem; }
.location-capacity { display: flex; gap: 10px; margin: 0 0 22px; }
.location-capacity strong { padding: 6px 10px; border: 1px solid rgba(108,16,10,.3); border-radius: 5px; color: var(--wine); font-size: .64rem; }
.location-detail-actions { display: flex; align-items: center; gap: 20px; }

@media (max-width: 1100px) {
  .location-explorer { grid-template-columns: minmax(0, 1fr) minmax(340px, .72fr); }
  .location-selector { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  .location-explorer { grid-template-columns: 1fr; margin-top: 42px; }
  .location-selector { display: flex; overflow-x: auto; padding-bottom: 7px; scroll-snap-type: x proximity; }
  .location-option { min-width: 220px; flex: 0 0 220px; scroll-snap-align: start; }
  .location-detail { display: grid; grid-template-columns: .82fr 1.18fr; }
  .location-detail-image { height: 100%; min-height: 340px; }
}

@media (max-width: 560px) {
  .location-detail { display: block; }
  .location-detail-image { height: 235px; min-height: 0; }
  .location-detail-copy { padding: 24px 21px 26px; }
  .location-detail-actions { align-items: stretch; flex-direction: column; gap: 14px; }
  .location-detail-actions .button { width: 100%; }
}
