/*
Theme Name: Central Pyramid Theme
Template: astra
*/

/* =====================================================
   LOCATIONS PAGE – BASE
   ===================================================== */
.locations-page {
  --border: #e2e8f0;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.2s ease;
}

/* =====================================================
   RESULTS PANEL
   ===================================================== */
.locations-page .results-panel {
  display: flex;
  flex-direction: column;
  height: 650px;
  background: #fff;
  border-right: 1px solid var(--border);
}

.locations-page .results-header {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.locations-page .results-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
}

.locations-page .results-title strong {
  font-size: 1.05rem;
}

.locations-page .reset-link {
  background: none;
  border: none;
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: underline;
}

/* =====================================================
   RESULTS LIST
   ===================================================== */
.locations-page .results-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.locations-page .results-list::-webkit-scrollbar {
  width: 5px;
}
.locations-page .results-list::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 10px;
}

/* =====================================================
   LOCATION CARD
   ===================================================== */
.locations-page .loc-card {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--transition),
              box-shadow var(--transition),
              transform var(--transition);
}

.locations-page .loc-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateX(2px);
}

.locations-page .loc-card.active {
  border-width: 2px;
}

/* =====================================================
   ICON
   ===================================================== */
.locations-page .card-left {
  flex-shrink: 0;
}

.locations-page .card-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: #f5f7fa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

/* =====================================================
   CARD BODY
   ===================================================== */
.locations-page .card-body {
  flex: 1;
  min-width: 0;
}

.locations-page .card-name {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.locations-page .card-address,
.locations-page .card-phone,
.locations-page .card-hours,
.locations-page .card-days {
  font-size: 0.8rem;
  margin-bottom: 4px;
  line-height: 1.4;
  display: flex;
  gap: 6px;
}

.locations-page .card-phone a {
  text-decoration: none;
  font-weight: 500;
}

/* =====================================================
   BADGES
   ===================================================== */
.locations-page .card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.locations-page .badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: #f1f5f9;
}

/* =====================================================
   CARD ACTIONS
   ===================================================== */
.locations-page .card-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
}

.locations-page .action-btn {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  text-align: center;
  cursor: pointer;
  transition: background var(--transition);
  border: 1px solid var(--border);
  background: #f8fafc;
}

.locations-page .action-btn:hover {
  background: #eef2f7;
}

/* =====================================================
   NO RESULTS
   ===================================================== */
.locations-page .no-results {
  padding: 48px 20px;
  text-align: center;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 900px) {
  .locations-page .results-panel {
    height: auto;
    max-height: 480px;
  }
}

@media (max-width: 600px) {
  .locations-page .card-actions {
    flex-direction: row;
  }
  .locations-page .loc-card {
    flex-wrap: wrap;
  }
}