/* Toolbar aligned to the right inside the grey section */
.loc-toolbar{
  display:flex;
  align-items: center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}

/* Make sure Reset truly hides when the [hidden] attribute is set */
#resetFilters[hidden]{
  display: none !important;
}


/* Badge on filter button */
.has-badge{ position:relative; }
.badge{
  position:absolute; top:-6px; right:-6px;
  min-width:18px; height:18px; padding:0 5px; border-radius:999px;
  font-size:.72rem; line-height:18px; text-align:center;
  background:#111827; color:#fff; border:1px solid #fff;
}

/* Filter flyout */
.loc-flyout[hidden]{ display:none; }
.loc-flyout{
  position:fixed; inset:0; z-index:60; background:rgba(2,6,23,.45);
  display:grid; place-items:start end; padding:16px;
}
.loc-flyout__panel{
  width:min(420px,94vw); background:#fff; border:1px solid var(--line); border-radius:14px;
  box-shadow:var(--shadow-lg); padding:14px; margin-top:80px; margin-right:6px;
}
.loc-flyout__head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; }
.loc-flyout__actions{
  display:flex; align-items:center; gap:10px; margin-top:12px;
}
.loc-flyout__actions .spacer{ flex:1 1 auto; } /* pushes Clear/Apply to the right */

.loc-filters{ display:grid; gap:12px; }
.loc-filter-block h4{ margin:6px 0; }

.loc-actions{
  display:flex;
  align-items:center;
  gap:10px;
}

/* Danger button style for Clear All */
.hc-btn--danger{
  background:#dc2626;
  color:#fff;
  border:1px solid #dc2626;
}
.hc-btn--danger:hover{
  background:#b91c1c;
  border-color:#b91c1c;
}

/* Filter chips */
.chips{ display:flex; gap:8px; flex-wrap:wrap; }
.chip{
  border:1px solid var(--line); border-radius:999px; padding:6px 10px; background:#fff;
  cursor:pointer; user-select:none;
}
.chip.is-on{ border-color:#111827; background:#111827; color:#fff; }

/* Region sections */
.region-section{ margin:28px 0 40px; }
.region-section h2{ margin-bottom:8px; }
.region-note{ color:#475569; margin-bottom:10px; }

/* Location grid & cards — 5 per row desktop, 3 per row otherwise */
.loc-grid{ display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:18px; }
@media (max-width:1200px){ .loc-grid{ grid-template-columns:repeat(3,minmax(0,1fr)); } }

.loc-card{
  background:#fff; border:1px solid var(--line); border-radius:14px; box-shadow:var(--shadow-sm);
  overflow:hidden;
}
.loc-card .ratio-4x3{ position:relative; padding-top:75%; background:#f1f5f9; }
.loc-card .ratio-4x3 > img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.loc-card .cap{ padding:10px 12px; font-weight:700; color:#0f172a; }
.loc-card .sub{ padding:0 12px 12px; color:#475569; font-size:.95rem; }
.loc-back-btn{
    display:flex;
    justify-content: start;
    margin-right: 0;
}
.loc-actions .hc-btn + .hc-btn{ margin-left:6px; }

/* === Responsive columns for Locations === */
@media (max-width: 900px){
  .loc-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 600px){
  .loc-grid{ grid-template-columns: 1fr; }
}

/* Base desktop (already fine) */
.card h3 {
  font-size: clamp(1.25rem, 1.1vw + 1rem, 1.75rem); /* 20–28px */
  font-weight: 600; /* semi-bold */
  line-height: 1.3;
}

.card p {
  font-size: clamp(0.9rem, 0.8vw + 0.5rem, 1.125rem); /* 14–18px */
  font-weight: 400; /* normal */
  line-height: 1.5;
}

/* Medium screens (≤900px) */
@media (max-width: 900px){
  .card h3 { font-size: 1.2rem; font-weight: 600; }
  .card p  { font-size: 0.95rem; }
}

/* Small screens (≤600px) */
@media (max-width: 600px){
  .card h3 { font-size: 1.05rem; font-weight: 500; }
  .card p  { font-size: 0.85rem; }
}
