/* ==========================================================================
   AirGo Tel — /travel-esim/search page specifics
   ========================================================================== */

.ag-sbar {
  max-width: var(--ag-content-max);
  margin: 0 auto;
  padding: 14px var(--ag-gutter) 8px;
}
.ag-sbar__inner {
  background: var(--ag-card);
  border: var(--ag-border);
  border-radius: var(--ag-radius-xl);
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
}
.ag-sbar__field { flex: 1; min-width: 180px; }
.ag-sbar__field--narrow { flex: 0 1 160px; min-width: 150px; }

.ag-sbar__label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--ag-faint);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.ag-sbar__value,
.ag-sbar__select {
  width: 100%;
  background: var(--ag-page);
  border: var(--ag-border-emphasis);
  border-radius: var(--ag-radius-md);
  padding: 11px 13px;
  font-weight: 800;
  color: var(--ag-navy);
  font-size: 14px;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.ag-sbar__value img { width: 22px; height: 15px; border-radius: 2px; flex-shrink: 0; }
.ag-sbar__value--muted { color: var(--ag-muted); font-weight: 700; }
.ag-sbar__select { cursor: pointer; outline: none; font-weight: 700; display: block; }
.ag-sbar__select:focus { border-color: var(--ag-azure); }

/* ---------- Layout ---------- */

.ag-slayout {
  max-width: var(--ag-content-max);
  margin: 0 auto;
  padding: 14px var(--ag-gutter) 40px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
}

/* ---------- Filters ---------- */

.ag-filters {
  background: var(--ag-card);
  border: var(--ag-border);
  border-radius: var(--ag-radius-xl);
  padding: 20px;
  position: sticky;
  top: 86px;
}
.ag-filters__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 10px;
}
.ag-filters__head h2 { font-size: 16px; font-weight: 800; }
.ag-filters__clear {
  background: transparent;
  border: 0;
  color: var(--ag-azure-600);
  font-weight: 800;
  font-size: 12.5px;
  cursor: pointer;
  min-height: 44px;
  padding: 0 2px;
}

.ag-fgroup { padding: 14px 0; border-top: 1px solid #EEF3F7; }
.ag-fgroup__title { font-size: 13px; font-weight: 800; color: var(--ag-slate); margin-bottom: 11px; }
.ag-fgroup__opts { display: flex; flex-wrap: wrap; gap: 8px; }

.ag-fchip {
  font-size: 12.5px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: var(--ag-radius-pill);
  cursor: pointer;
  border: var(--ag-border);
  background: var(--ag-card);
  color: var(--ag-slate);
  min-height: 40px;
  transition: background var(--ag-motion-base), border-color var(--ag-motion-base), color var(--ag-motion-base);
}
.ag-fchip:hover { border-color: var(--ag-azure); }
.ag-fchip[aria-pressed="true"] {
  background: var(--ag-navy);
  border-color: var(--ag-navy);
  color: #fff;
}

/* Mobile: filters collapse behind a toggle (RESPONSIVE.md). */
.ag-filters__toggle {
  display: none;
  width: 100%;
  background: var(--ag-card);
  border: var(--ag-border);
  border-radius: var(--ag-radius-md);
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 800;
  color: var(--ag-navy);
  cursor: pointer;
  min-height: 44px;
  margin-bottom: 12px;
}

/* ---------- Results ---------- */

.ag-sresults__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.ag-sresults__head h1 { font-size: 22px; font-weight: 800; }
.ag-sresults__count { color: var(--ag-faint); font-weight: 600; font-size: 16px; }

.ag-sresults__state > [hidden] { display: none; }
.ag-sresults__list { display: flex; flex-direction: column; gap: 14px; }

.ag-skelrow {
  background: var(--ag-card);
  border: var(--ag-border);
  border-radius: var(--ag-radius-xl);
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: center;
}
.ag-skelrow__main { flex: 1; min-width: 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .ag-slayout { grid-template-columns: 1fr; }
  .ag-filters { position: static; }
  .ag-filters__toggle { display: block; }
  .ag-filters[hidden] { display: none; }
}

@media (max-width: 620px) {
  .ag-sbar__inner { padding: 14px; }
  .ag-sbar__field, .ag-sbar__field--narrow { flex: 1 1 100%; min-width: 0; }
  .ag-sresults__head h1 { font-size: 19px; }
}

/* Hit targets: minimum 44x44 on mobile — RESPONSIVE.md names filter pills. */
@media (max-width: 768px) {
  .ag-fchip { min-height: 44px; }
}
