/* =========================================================
   SUPREME LENDING — Loan Officer Directory (WordPress / Divi)
   Updated card styling to match provided reference.
   All rules scoped under .sl-lo so they don't collide with
   Divi or other theme styles.
   ========================================================= */

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

.sl-lo {
  font-family: 'Inter', Arial, sans-serif;
  color: #001a40;
  font-size: 15px;
  line-height: 1.55;
}

.sl-lo *,
.sl-lo *::before,
.sl-lo *::after {
  box-sizing: border-box;
}

/* GRID */
.sl-lo__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

@media (max-width: 860px) {
  .sl-lo__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .sl-lo__grid {
    grid-template-columns: 1fr;
  }
}

/* CARD */
.sl-lo__card {
  background: #ffffff;
  border: 1px solid #e5eaf0;
  border-radius: 8px;
  padding: 20px 14px 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 296px;
  box-shadow: none;
  transition: border-color .15s ease;
}

/* Remove previous orange accent bar */
.sl-lo__card::before {
  display: none;
}

.sl-lo__card:hover {
  border-color: #e5f5ff;
  box-shadow: none;
}

/* NAME */
.sl-lo__name {
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 800;
  font-size: 28px;
  color: #001a40;
  line-height: 1.1;
  margin: 0 12px 4px;
}

.sl-lo__name a,
.sl-lo__name a:link,
.sl-lo__name a:visited {
  color: #001a40;
  text-decoration: none;
  border: 0;
}

.sl-lo__name a:hover {
  color: #001a40;
  text-decoration: none;
}

/* TITLE */
.sl-lo__title {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ff4040;
  margin: 0 12px 10px;
}

/* LOCATION */
.sl-lo__location {
  font-size: 14px;
  font-weight: 500;
  color: #001a40;
  margin: 0 12px 2px;
}

/* NMLS */
.sl-lo__nmls {
  font-size: 13px;
  font-weight: 500;
  color: #111111;
  margin: 0 12px 18px;
}

/* ACTIONS */
.sl-lo__actions {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: auto;
  padding-top: 30px;
  border-top: 0;
}

.sl-lo__actions a,
.sl-lo__actions a:link,
.sl-lo__actions a:visited,
.sl-lo__actions a:hover,
.sl-lo__actions a:active,
.sl-lo__actions a:focus {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  min-height: 46px;
  padding: 13px 18px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
  text-decoration: none;
  box-shadow: none;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

/* VISIT WEBSITE BUTTON */
.sl-lo__actions a.profile,
.sl-lo__actions a.profile:link,
.sl-lo__actions a.profile:visited {
  background: #e5f5ff;
  color: #001a40;
  border-color: #e5f5ff;
}

.sl-lo__actions a.profile:hover,
.sl-lo__actions a.profile:active,
.sl-lo__actions a.profile:focus {
  background: transparent;
  color: #001a40;
  border: 1px solid #e5f5ff;
}

/* EMAIL BUTTON */
.sl-lo__actions a.email,
.sl-lo__actions a.email:link,
.sl-lo__actions a.email:visited {
  background: #ffffff;
  color: #001a40;
  border: 1px solid #001a40;
}

.sl-lo__actions a.email:hover,
.sl-lo__actions a.email:active,
.sl-lo__actions a.email:focus {
  background: #001a40;
  color: #ffffff;
  border-color: #001a40;
}

/* EMPTY STATE */
.sl-lo__empty {
  grid-column: 1 / -1;
  padding: 40px 24px;
  text-align: center;
  border: 1px dashed #e5eaf0;
  border-radius: 8px;
  color: #5a6478;
}

/* =========================================================
   COMPACT NAME + ZIP SEARCH — v1.3.1
   ========================================================= */
.sl-lo__search {
  margin: 0 0 28px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid #e5eaf0;
  border-radius: 8px;
}

.sl-lo__search-label {
  display: block;
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 800;
  color: #001a40;
}

.sl-lo__search-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
  max-width: 900px;
}

.sl-lo__search-input {
  width: 100%;
  flex: 1 1 220px;
  min-width: 0;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid #9aa7b5;
  border-radius: 8px;
  background: #ffffff;
  color: #001a40;
  font: inherit;
  font-size: 15px;
  box-shadow: none;
  outline: none;
}


.sl-lo__search-input--name {
  flex-basis: 300px;
}

.sl-lo__search-input--zip {
  flex: 0 1 210px;
}

.sl-lo__search-input:focus {
  border-color: #001a40;
}

.sl-lo__search-button,
.sl-lo__search-button:hover,
.sl-lo__search-button:focus,
.sl-lo__search-button:active {
  min-height: 46px;
  padding: 11px 22px;
  border: 1px solid #001a40;
  border-radius: 8px;
  background: #001a40;
  color: #ffffff;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: none;
}

.sl-lo__search-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 8px 4px;
  color: #001a40;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
}

.sl-lo__search-help {
  margin-top: 8px;
  color: #5a6478;
  font-size: 13px;
}

.sl-lo__results-note {
  margin: -10px 0 22px;
  color: #5a6478;
  font-size: 14px;
}

.sl-lo__distance {
  margin: -10px 12px 18px;
  color: #5a6478;
  font-size: 13px;
  font-weight: 600;
}

.sl-lo__empty--standalone {
  margin-top: 18px;
}

@media (max-width: 560px) {
  .sl-lo__search-row {
    flex-wrap: wrap;
  }

  .sl-lo__search-input,
  .sl-lo__search-input--name,
  .sl-lo__search-input--zip {
    flex: 1 1 100%;
    max-width: none;
  }

  .sl-lo__search-button {
    flex: 1 1 auto;
  }
}

/* =========================================================
   FULL DIRECTORY FILTERS — v1.2.0
   ========================================================= */
.sl-lo__filters {
  margin: 0 0 28px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid #e5eaf0;
  border-radius: 8px;
}

.sl-lo__filters-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.sl-lo__filters-grid--state-fixed {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sl-lo__field {
  min-width: 0;
}

.sl-lo__field label {
  display: block;
  margin: 0 0 7px;
  color: #001a40;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  line-height: 1.2;
  text-transform: uppercase;
}

.sl-lo__field input,
.sl-lo__field select {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 10px 13px;
  border: 1px solid #9aa7b5;
  border-radius: 8px;
  background: #ffffff;
  color: #001a40;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.3;
  box-shadow: none;
  outline: none;
}

.sl-lo__field input:focus,
.sl-lo__field select:focus {
  border-color: #001a40;
}

.sl-lo__filter-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}

.sl-lo__filter-clear,
.sl-lo__filter-clear:link,
.sl-lo__filter-clear:visited {
  color: #001a40;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
}

.sl-lo__filter-clear:hover,
.sl-lo__filter-clear:focus {
  color: #001a40;
}

@media (max-width: 980px) {
  .sl-lo__filters-grid,
  .sl-lo__filters-grid--state-fixed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .sl-lo__filters-grid,
  .sl-lo__filters-grid--state-fixed {
    grid-template-columns: 1fr;
  }

  .sl-lo__filter-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .sl-lo__filter-actions .sl-lo__search-button {
    width: 100%;
  }
}
