/* ============================================================
   Find a Club — Frontend Styles  v1.3
   Palette: Loyal Blue #004165 | True Maroon #772432
            Cool Gray  #A9B2B1 | Happy Yellow #F2DF74
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  --fac-primary:       #004165;   /* Toastmasters Loyal Blue   */
  --fac-primary-dark:  #003352;   /* Loyal Blue — hover shade  */
  --fac-accent:        #772432;   /* Toastmasters True Maroon  */
  --fac-accent-dark:   #5c1a26;   /* True Maroon — hover shade */
  --fac-gray:          #A9B2B1;   /* Toastmasters Cool Gray    */
  --fac-gray-light:    #eaecec;   /* Cool Gray — light tint    */
  --fac-yellow:        #F2DF74;   /* Toastmasters Happy Yellow */
  --fac-yellow-dark:   #7a6600;   /* Happy Yellow — dark text  */
  --fac-accent-light:  #fdf0f2;   /* True Maroon — pale tint   */
  --fac-accent-border: #e8c4cc;   /* True Maroon — pale border */
  --fac-close-bg:      #772432;
  --fac-text:          #111827;
  --fac-sub:           #374151;
  --fac-muted:         #6b7280;
  --fac-border:        #e5e7eb;
  --fac-bg:            #ffffff;
  --fac-input-bg:      #ffffff;
  --fac-card-shadow:        0 1px 4px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.06);
  --fac-card-title-color:  #111827;
  --fac-card-text-color:   #374151;
  --fac-radius:        14px;
  --fac-radius-sm:     8px;
  --fac-radius-pill:   999px;
  --fac-font:          'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ── Reset helpers ─────────────────────────────────────────── */
.fac-wrap *,
.fac-wrap *::before,
.fac-wrap *::after { box-sizing: border-box; }

.fac-wrap button { font-family: var(--fac-font); }

/* ── Wrap ──────────────────────────────────────────────────── */
.fac-wrap {
  font-family: var(--fac-font);
  color: var(--fac-text);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   FILTER BAR
   ============================================================ */
.fac-filters {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr auto;
  align-items: end;
  gap: 20px;
  padding: 28px 0 24px;
  border-bottom: 1px solid var(--fac-border);
  margin-bottom: 24px;
}

.fac-filter-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.fac-filter-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--fac-muted);
  text-transform: uppercase;
  line-height: 1;
}

/* shared input/select base */
.fac-input,
.fac-select {
  height: 50px;
  padding: 0 16px;
  border: 1.5px solid var(--fac-border);
  border-radius: var(--fac-radius-sm);
  font-size: 14.5px;
  font-family: var(--fac-font);
  color: var(--fac-sub);
  background: var(--fac-input-bg);
  outline: none;
  width: 100%;
  transition: border-color .18s, box-shadow .18s;
  appearance: none;
  -webkit-appearance: none;
}

/* custom chevron for selects */
.fac-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%236b7280' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
  cursor: pointer;
}

.fac-input:focus,
.fac-select:focus {
  border-color: var(--fac-primary);
  box-shadow: 0 0 0 3px rgba(0,65,101,.13);   /* Loyal Blue focus ring */
}

.fac-input::placeholder { color: var(--fac-gray); }

/* Reset Filters button */
.fac-btn-reset {
  height: 50px;
  padding: 0 28px;
  background: var(--fac-primary);
  color: #fff;
  border: none;
  border-radius: var(--fac-radius-sm);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .01em;
  cursor: pointer;
  white-space: nowrap;
  transition: background .18s, transform .12s;
  align-self: end;
}

.fac-btn-reset:hover  { background: var(--fac-primary-dark); }
.fac-btn-reset:active { transform: scale(.97); }

/* ── Results count ─────────────────────────────────────────── */
.fac-results-meta {
  font-size: 13.5px;
  color: var(--fac-muted);
  margin-bottom: 22px;
}

/* ============================================================
   CARDS GRID
   ============================================================ */
.fac-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 22px;
}

/* ── Single card ───────────────────────────────────────────── */
.fac-card {
  background: var(--fac-bg);
  border: 1.5px solid var(--fac-border);
  border-radius: var(--fac-radius);
  padding: 22px 22px 18px;
  box-shadow: var(--fac-card-shadow);
  display: flex;
  flex-direction: column;
  gap: 0;
  cursor: pointer;
  transition: transform .2s cubic-bezier(.22,1,.36,1), box-shadow .2s;
  position: relative;
}

.fac-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 2px 8px rgba(0,0,0,.05), 0 12px 32px rgba(0,65,101,.12);
  border-color: var(--fac-gray);
}

/* ── Geographical Boundaries banner ───────────────────────── */
.fac-geo-boundaries {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--fac-primary);
  background: #e8f1f7;
  border-bottom: 1px solid #c5d9e8;
  padding: 7px 22px;
  margin: -22px -22px 14px;
  border-radius: var(--fac-radius) var(--fac-radius) 0 0;
  letter-spacing: .3px;
  text-transform: uppercase;
}
.fac-geo-boundaries svg {
  flex-shrink: 0;
  opacity: .75;
}

/* ── Badge row ─────────────────────────────────────────────── */
.fac-card-tags {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.fac-tags-left {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.fac-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--fac-radius-pill);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}

/* Meta badges (Div, Area, City) — Cool Gray palette */
.fac-badge-meta {
  background: var(--fac-gray-light);
  color: var(--fac-sub);
  border: 1px solid var(--fac-gray);
}

/* Club type badge */
.fac-badge-type {
  background: var(--fac-accent);
  color: #fff;
  border-radius: var(--fac-radius-sm);
  padding: 4px 14px;
}

/* Club type colour overrides — brand only */
.fac-type-community  { background: #772432; }  /* True Maroon  */
.fac-type-corporate  { background: #772432; }  /* True Maroon  */
.fac-type-university { background: #004165; }  /* Loyal Blue   */
.fac-type-online     { background: #004165; }  /* Loyal Blue   */
.fac-type-advanced   { background: #772432; }  /* True Maroon  */
.fac-type-hybrid     { background: #004165; }  /* Loyal Blue   */

/* ── Right-side badge group (type + mode) ──────────────────── */
.fac-tags-right {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

/* Meeting mode badges — brand only */
.fac-badge.fac-badge-mode {
  display: inline-block;
  padding: 4px 13px;
  border-radius: var(--fac-radius-pill);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  background: var(--fac-gray);       /* Cool Gray fallback */
}

.fac-badge.fac-mmode-hybrid,
.fac-badge.fac-mmode-phygital {
  background: #772432;               /* True Maroon */
}

.fac-badge.fac-mmode-online,
.fac-badge.fac-mmode-virtual {
  background: #004165;               /* Loyal Blue */
}

.fac-badge.fac-mmode-offline,
.fac-badge.fac-mmode-onsite,
.fac-badge.fac-mmode-in-person,
.fac-badge.fac-mmode-physical,
.fac-badge.fac-mmode-offline\/onsite {
  background: #004165;               /* Loyal Blue */
}

/* ── Card body ─────────────────────────────────────────────── */
.fac-card-title {
  margin: 0 0 12px;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.28;
  color: var(--fac-card-title-color, #111827);
  letter-spacing: -.01em;
}

.fac-card-meta {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13.5px;
  color: var(--fac-card-text-color, #6b7280);
  margin: 0 0 8px;
  line-height: 1.5;
}

.fac-card-meta:last-of-type { margin-bottom: 0; }

.fac-card-location .fac-icon { color: var(--fac-accent); margin-top: 2px; }   /* True Maroon */
.fac-card-time     .fac-icon { color: var(--fac-primary); margin-top: 2px; }  /* Loyal Blue  */

/* Card meta text colour */
.fac-card-location span { color: var(--fac-sub); }
.fac-card-time     span { color: var(--fac-muted); }

.fac-icon     { flex-shrink: 0; }
.fac-icon svg { display: block; }

/* ── Card footer ───────────────────────────────────────────── */
.fac-card-divider {
  border: none;
  border-top: 1px solid var(--fac-border);
  margin: 16px 0 14px;
}

.fac-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  Padding-top: 10px;
}

.fac-guests-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--fac-muted);
  font-weight: 500;
}

.fac-guests-yes { color: var(--fac-primary); }   /* Loyal Blue */
.fac-guests-no  { color: var(--fac-muted); }

.fac-btn-connect {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 22px;
  background: var(--fac-primary);
  border: 2px solid var(--fac-primary);
  border-radius: var(--fac-radius-pill);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: background .18s, border-color .18s, transform .12s;
  letter-spacing: .01em;
  text-decoration: none;
}

.fac-btn-connect:hover {
  background: var(--fac-primary-dark);
  border-color: var(--fac-primary-dark);
  color: #fff;
  transform: translateY(-1px);
}

.fac-btn-connect:active { transform: scale(.97); }

/* ── No results ────────────────────────────────────────────── */
.fac-no-results {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--fac-muted);
  padding: 56px 0;
  font-size: 15px;
}

/* ── Load More ─────────────────────────────────────────────── */
.fac-load-more-wrap {
  text-align: center;
  margin: 40px 0 16px;
}

.fac-btn-load-more {
  padding: 13px 48px;
  background: transparent;
  border: 2px solid var(--fac-primary);
  border-radius: var(--fac-radius-sm);
  color: var(--fac-primary);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--fac-font);
  transition: background .18s, color .18s;
}

.fac-btn-load-more:hover {
  background: var(--fac-primary);
  color: #fff;
}

/* ── Spinner ────────────────────────────────────────────────── */
.fac-spinner {
  display: inline-block;
  width: 22px;
  height: 22px;
  border: 3px solid var(--fac-gray-light);
  border-top-color: var(--fac-primary);
  border-radius: 50%;
  animation: fac-spin .65s linear infinite;
  vertical-align: middle;
}

@keyframes fac-spin { to { transform: rotate(360deg); } }

/* ============================================================
   MODAL
   ============================================================ */
.fac-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,65,101,.55);    /* Loyal Blue tinted backdrop */
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fac-bg-in .2s ease both;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

@keyframes fac-bg-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.fac-modal {
  background: #fff;
  border-radius: 18px;
  max-width: 660px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  animation: fac-modal-in .24s cubic-bezier(.22,1,.36,1) both;
  box-shadow: 0 24px 80px rgba(0,65,101,.25);
}

.fac-modal-content {
  flex: 1 1 auto;
  min-height: 0;               /* allows flex child to shrink & scroll */
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 36px 36px 32px;
}

@keyframes fac-modal-in {
  from { transform: translateY(24px) scale(.97); opacity: 0; }
  to   { transform: translateY(0)    scale(1);   opacity: 1; }
}

/* True Maroon close button — inside the modal */
.fac-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--fac-close-bg);
  border: 2px solid rgba(255,255,255,.35);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, transform .12s;
  box-shadow: 0 2px 8px rgba(119,36,50,.35);
  z-index: 1;
}

.fac-modal-close:hover  { background: var(--fac-accent-dark); }
.fac-modal-close:active { transform: scale(.93); }

/* Title */
.fac-modal-title {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.22;
  margin: 0 40px 16px 0;
  color: var(--fac-text);
  letter-spacing: -.02em;
}

/* Badges row */
.fac-modal-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
}

/* ── Geographical Boundaries — modal row ────────────────────── */
.fac-modal-geo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--fac-primary);
  background: #e8f1f7;
  border: 1px solid #c5d9e8;
  border-radius: var(--fac-radius-sm);
  padding: 8px 12px;
  margin-bottom: 20px;
  font-weight: 500;
}
.fac-modal-geo svg { flex-shrink: 0; }

/* ── Section row: [icon box] + [label / content] ────────────── */
.fac-modal-section {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

/* Colored icon box */
.fac-msec-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.fac-msec-pin   { background: #fde8eb; color: #772432; }   /* True Maroon  */
.fac-msec-clock { background: #dceaf3; color: #004165; }   /* Loyal Blue   */
.fac-msec-user  { background: #dceaf3; color: #004165; }   /* Loyal Blue   */
.fac-msec-info  { background: #fdf9da; color: #7a6600; }   /* Happy Yellow */

/* Emoji fallback */
.fac-msec-icon-emoji {
  display: flex;
  align-items: center;
  font-size: 17px;
  line-height: 1;
  margin-top: 3px;
  flex-shrink: 0;
}

/* Right column */
.fac-msec-right {
  flex: 1;
  min-width: 0;
}

.fac-modal-section-label {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fac-muted);
  margin-bottom: 4px;
}

.fac-modal-section p,
.fac-modal-section-body {
  font-size: 14.5px;
  color: var(--fac-sub);
  margin: 0;
  line-height: 1.6;
}

/* Meeting location link → opens Google Maps */
.fac-location-link {
  color: var(--fac-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(0,65,101,.35);
  transition: color .15s, text-decoration-color .15s;
  word-break: break-word;
}
.fac-location-link:hover {
  color: var(--fac-accent);
  text-decoration-color: rgba(119,36,50,.5);
}

/* Time detail line */
.fac-time-detail {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--fac-accent);            /* True Maroon */
  margin-top: 5px;
  line-height: 1.5;
}

.fac-time-detail svg { flex-shrink: 0; }

/* Divider */
.fac-modal-divider {
  border: none;
  border-top: 1px solid var(--fac-border);
  margin: 22px 0;
}

/* Guests / Fees two-column grid */
.fac-modal-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1.5px solid var(--fac-border);
  border-radius: var(--fac-radius-sm);
  overflow: hidden;
  margin-bottom: 22px;
}

.fac-modal-info-cell {
  padding: 14px 18px;
}

.fac-modal-info-cell:first-child {
  border-right: 1.5px solid var(--fac-border);
}

/* Tinted backgrounds — brand colors */
.fac-cell-guests { background: #e6eff5; }    /* Loyal Blue tint  */
.fac-cell-fees   { background: #fdf9da; }    /* Happy Yellow tint */

/* Colored labels — brand colors */
.fac-label-guests { color: #004165 !important; }   /* Loyal Blue     */
.fac-label-fees   { color: #7a6600 !important; }   /* Happy Yellow dark */

.fac-modal-info-cell .fac-modal-section-label { margin-bottom: 6px; }
.fac-modal-info-cell .fac-modal-section-body  { font-size: 14px; font-weight: 500; }

/* Connect box */
.fac-modal-connect-box {
  background: var(--fac-accent-light);
  border: 1.5px solid var(--fac-accent-border);
  border-radius: var(--fac-radius-sm);
  padding: 14px 18px;
  font-size: 14px;
  color: var(--fac-sub);
  line-height: 1.65;
  word-break: break-word;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Officer name */
.fac-officer-name {
  display: block;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--fac-text);
  margin-bottom: 2px;
}

/* Phone pill */
.fac-officer-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--fac-accent);
  font-weight: 600;
  font-size: 13.5px;
  text-decoration: none;
  border: 1.5px solid var(--fac-accent-border);
  border-radius: var(--fac-radius-pill);
  padding: 4px 14px 4px 10px;
  background: #fff;
  width: fit-content;
  transition: background .15s, color .15s;
}

.fac-officer-phone:hover {
  background: var(--fac-accent);
  color: #fff;
  border-color: var(--fac-accent);
}

.fac-officer-phone svg { flex-shrink: 0; }

/* Email link */
.fac-officer-email {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--fac-primary);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  width: fit-content;
  transition: color .15s;
}

.fac-officer-email:hover { text-decoration: underline; }
.fac-officer-email svg   { flex-shrink: 0; color: var(--fac-primary); }

/* Guests inline */
.fac-guests-inline {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Other details */
.fac-modal-other-box {
  background: #f0f5f8;               /* light Loyal Blue tint */
  border: 1.5px solid var(--fac-border);
  border-radius: var(--fac-radius-sm);
  padding: 12px 16px;
  font-size: 13.5px;
  color: var(--fac-sub);
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Action link buttons */
.fac-modal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--fac-border);
}

.fac-modal-link {
  flex: 1 1 calc(33.33% - 10px);
  min-width: 100px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: var(--fac-radius-pill);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity .15s, transform .12s;
  border: none;
  letter-spacing: .01em;
  text-align: center;
  white-space: nowrap;
}

.fac-modal-link:hover  { opacity: .88; transform: translateY(-1px); }
.fac-modal-link:active { transform: scale(.97); }

/* Action buttons — Toastmasters brand colors only */
.fac-modal-link-wa      { background: #772432; color: #fff; }             /* True Maroon  */
.fac-modal-link-website { background: #004165; color: #fff; }             /* Loyal Blue   */
.fac-modal-link-map     { background: #772432; color: #fff; }             /* True Maroon  */
.fac-modal-link-li      { background: #004165; color: #fff; }             /* Loyal Blue   */
.fac-modal-link-ig      { background: #F2DF74; color: #004165; }          /* Happy Yellow */

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ── Tablet (≤900px): 4 inputs → 2×2 grid ────────────────────── */
@media (max-width: 900px) {
  .fac-filters {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .fac-btn-reset {
    grid-column: 1 / -1;
    width: 100%;
  }
}

/* ── Mobile (≤600px): single-column everything ────────────────── */
@media (max-width: 600px) {
  .fac-wrap { padding: 0 14px; }

  .fac-filters {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px 0 14px;
  }

  .fac-filter-group { width: 100%; }

  .fac-input,
  .fac-select  { height: 50px; font-size: 15px; }

  .fac-btn-reset {
    grid-column: auto;
    width: 100%;
    height: 50px;
    min-height: 44px;
  }

  .fac-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .fac-card-footer {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
  }

  .fac-btn-connect {
    min-height: 44px;
  }

  /* Modal — full bottom sheet */
  .fac-modal-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .fac-modal {
    border-radius: 20px 20px 0 0;
    max-height: 96svh;
    width: 100%;
    max-width: 100%;
    animation: fac-modal-up .26s cubic-bezier(.22,1,.36,1) both;
  }

  @keyframes fac-modal-up {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
  }

  /* Drag handle pill — Cool Gray */
  .fac-modal::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: var(--fac-gray);
    border-radius: 99px;
    margin: 10px auto 0;
  }

  .fac-modal-content {
    padding: 20px 20px max(env(safe-area-inset-bottom), 24px);
  }

  /* Close button adjustments for bottom sheet */
  .fac-modal-close {
    top: 12px;
    right: 14px;
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .fac-modal-title { font-size: 20px; margin-right: 42px; }

  .fac-modal-info-grid { grid-template-columns: 1fr; }

  .fac-modal-info-cell:first-child {
    border-right: none;
    border-bottom: 1.5px solid var(--fac-border);
  }

  .fac-modal-links {
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: max(env(safe-area-inset-bottom), 0px);
  }

  .fac-modal-link {
    flex: 1 1 calc(50% - 4px);
    padding: 12px 10px;
    font-size: 12.5px;
    min-height: 44px;
  }

  .fac-btn-load-more { width: 100%; min-height: 48px; }
}

/* ── Very small phones (≤380px) ──────────────────────────────── */
@media (max-width: 380px) {
  .fac-card-title  { font-size: 17px; }
  .fac-card-footer { flex-direction: column; align-items: stretch; }
  .fac-btn-connect { justify-content: center; }
  .fac-modal-link  { flex: 1 1 100%; }
}

.fac-btn-connect svg {
    fill: #fff !important;
    color: #fff !important;
}
