/* ================================================
   LOCATION PAGE
   ================================================ */

/* ── Page hero banner ── */
.loc-hero {
  background: var(--primary--color);
  padding: 56px 24px 44px;
  text-align: center;
  margin-top: 30px;
}

.loc-hero-inner {
  max-width: 680px;
  margin: 0 auto;
}

.loc-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 14px;
}

.loc-hero h1 {
  font-size: clamp(26px, 5vw, 44px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
  margin: 0 0 12px;
}

.loc-hero p {
  font-size: 15px;
  color: rgba(255,255,255,0.80);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Main split layout ── */
.loc-wrap {
  display: flex;
  align-items: flex-start;
  padding: 0 10%;
  box-sizing: border-box;
}

/* ── Left panel — half of content area ── */
.loc-panel {
  width: 50%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(128,128,128,0.13);
  background: var(--bg-color);
}

.loc-panel-head {
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(128,128,128,0.10);
  flex-shrink: 0;
}

.loc-panel-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-color);
  opacity: 0.7;
  margin-bottom: 12px;
}

.loc-search-wrap {
  position: relative;
}

.loc-search-wrap i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: var(--text-color);
  opacity: 0.45;
  pointer-events: none;
}

.loc-search {
  width: 100%;
  padding: 10px 14px 10px 36px;
  border: 1.5px solid rgba(128,128,128,0.18);
  border-radius: 10px;
  background: var(--bg-color);
  color: var(--text-color);
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.loc-search:focus {
  border-color: var(--red--color);
}

/* ── Location card list ── */
.loc-list {
  padding: 10px 14px 20px;
  overflow: visible;
}

/* ── Location card ── */
.loc-card {
  display: flex;
  gap: 16px;
  padding: 18px 16px;
  border-radius: 16px;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s;
  border: 1.5px solid transparent;
  margin-bottom: 6px;
}

.loc-card:hover {
  background: rgba(128,128,128,0.06);
}

.loc-card.active {
  background: rgba(192,57,43,0.06);
  border-color: var(--red--color);
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

/* Card thumbnail */
.loc-card-thumb {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(128,128,128,0.12);
}

/* Card body */
.loc-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.loc-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.loc-card-name {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text-color);
  line-height: 1.3;
}

.loc-card-city {
  font-size: 12.5px;
  color: var(--text-color);
  opacity: 0.55;
  margin-top: 1px;
}

.loc-save-btn {
  flex-shrink: 0;
  padding: 5px 14px;
  border-radius: 8px;
  border: 1.5px solid rgba(128,128,128,0.22);
  background: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
}

.loc-save-btn:hover {
  border-color: var(--red--color);
  color: var(--red--color);
}

.loc-save-btn.saved {
  background: var(--red--color);
  border-color: var(--red--color);
  color: #fff;
}

/* ── Trading hours table ── */
.loc-hours-table {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 14px;
  margin-top: 2px;
}

.loc-hours-day {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-color);
  opacity: 0.55;
  white-space: nowrap;
}

.loc-hours-time {
  font-size: 12px;
  color: var(--text-color);
  opacity: 0.75;
}

.loc-hours-time.closed {
  color: #e74c3c;
  opacity: 1;
  font-weight: 600;
}

.loc-hours-time.today {
  color: #27ae60;
  opacity: 1;
  font-weight: 700;
}

.loc-hours-day.today-label {
  color: var(--text-color);
  opacity: 1;
  font-weight: 700;
}

/* ── Map panel — half of content area, sticky ── */
.loc-map-wrap {
  width: 50%;
  flex-shrink: 0;
  height: 100vh;
  position: sticky;
  top: 0;
  overflow: hidden;
}

#loc-map {
  width: 100%;
  height: 100%;
}

/* Map info overlay */
.loc-map-info {
  position: absolute;
  bottom: 24px;
  left: 20px;
  right: 20px;
  z-index: 1000;
  background: var(--bg-color);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.15);
  border: 1px solid rgba(128,128,128,0.12);
  transition: opacity 0.25s, transform 0.25s;
}

.loc-map-info.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

.loc-map-info-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 3px;
}

.loc-map-info-addr {
  font-size: 12px;
  color: var(--text-color);
  opacity: 0.6;
  margin-bottom: 10px;
  line-height: 1.45;
}

.loc-map-info-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.loc-map-directions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--red--color);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.18s;
}

.loc-map-directions:hover { opacity: 0.88; }

.loc-map-open-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(128,128,128,0.10);
  color: var(--text-color);
  font-size: 12.5px;
  font-weight: 600;
}

.loc-map-open-status .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #27ae60;
  flex-shrink: 0;
}

.loc-map-open-status .dot.closed { background: #e74c3c; }

/* ── Responsive: tablet ≤ 900px — full stack ── */
@media (max-width: 900px) {
  .loc-wrap {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
  }

  .loc-panel {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(128,128,128,0.13);
  }

  .loc-map-wrap {
    width: 100%;
    height: 420px;
    position: static;
  }
}

/* ── Responsive: mobile ≤ 600px ── */
@media (max-width: 600px) {
  .loc-hero {
    padding: 44px 20px 36px;
  }


  .loc-map-wrap {
    height: 360px;
  }

  .loc-card {
    padding: 14px 12px;
    gap: 12px;
  }

  .loc-card-thumb {
    width: 64px;
    height: 64px;
  }

  .loc-card-name { font-size: 14px; }

  .loc-hours-table {
    gap: 2px 10px;
  }

  .loc-map-info {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 12px 14px;
  }
}

/* ── Responsive: extra small ≤ 400px ── */
@media (max-width: 400px) {
  .loc-map-wrap {
    height: 300px;
  }

  .loc-card-thumb {
    width: 54px;
    height: 54px;
  }
}
