/* =========================================================
   ICS member profile and directory stylesheet
   Supports:
   - generated member profile pages
   - county / town directory pages
   - listing cards
   Global header/footer rules are included here because generated
   pages do not always load the main page CSS files.
   ========================================================= */

:root {
  --ics-deep: #093040;
  --ics-text: #36566b;
  --ics-muted: #536c7d;
  --ics-blue: #78B8BF;
  --ics-blue-soft: #eef8f9;
  --ics-green: #0FA644;
  --ics-green-dark: #0c933d;
  --ics-green-mid: #4EA654;
  --ics-green-soft: #e8f7ed;
  --ics-gold: #BFBC7A;
  --ics-page: #f6fbfb;
  --ics-card: #ffffff;
  --ics-line: rgba(9, 48, 64, .08);
  --ics-shadow-soft: 0 18px 42px rgba(9, 48, 64, .06);
  --ics-shadow-card: 0 18px 38px rgba(9, 48, 64, .075);
  --ics-radius-lg: 34px;
  --ics-radius-md: 26px;
  --ics-radius-sm: 16px;
  --ics-sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ics-serif: "Libre Baskerville", Georgia, serif;
}

html {
  scroll-padding-top: 108px;
  scroll-behavior: smooth;
}

body,
body.member-profile-page,
body.directory-page {
  margin: 0;
  background: #ffffff;
  color: var(--ics-text);
  font-family: var(--ics-sans);
  font-size: 1rem;
  line-height: 1.65;
}

h1,
h2,
h3,
h4,
h5 {
  color: var(--ics-deep);
}

/* Header / navigation */
.site-header {
  width: 100%;
  max-width: none;
  background: #ffffff !important;
  border-bottom: 1px solid rgba(9, 48, 64, .08) !important;
  box-shadow: 0 2px 18px rgba(9, 48, 64, .10) !important;
  z-index: 1040;
}

.site-header .navbar {
  width: 100%;
  padding: 0;
}

.site-header .nav-wrap {
  width: 100%;
  max-width: none;
  min-height: 108px;
  padding: .85rem clamp(8.75rem, 12vw, 14.25rem);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 2.35rem;
}

.site-header .brand-lockup,
.site-header .navbar-brand {
  grid-column: 1;
  justify-self: start;
  gap: 0 !important;
  margin: 0;
  color: var(--ics-deep) !important;
  text-decoration: none !important;
  overflow: visible;
}

.site-header .brand-name {
  display: none !important;
}

.site-header img.brand-logo,
.site-header .brand-logo {
  width: 96px !important;
  height: 96px !important;
  min-width: 96px !important;
  max-width: 96px !important;
  flex: 0 0 96px !important;
  display: block;
  transform: scale(1.08);
  transform-origin: center center;
}

.site-header .navbar-collapse {
  grid-column: 2;
  justify-self: end;
  width: auto;
  display: flex;
  justify-content: flex-end;
}

.site-header .navbar-nav,
.site-header .main-nav-list {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(1.15rem, 1.45vw, 1.65rem);
  width: auto;
  margin: 0;
  padding: 0;
}

.site-header .nav-item {
  flex: 0 0 auto;
  margin: 0;
}

.site-header .navbar .nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--ics-deep) !important;
  font-size: 1rem;
  font-weight: 500 !important;
  line-height: 1.2;
  padding: .7rem 0 !important;
  margin: 0;
  white-space: nowrap;
  text-decoration: none;
}

.site-header .navbar .nav-link:hover,
.site-header .navbar .nav-link:focus,
.site-header .navbar .nav-link.active,
.site-header .navbar .nav-link.is-current {
  color: var(--ics-green) !important;
}

.site-header .navbar .nav-link::after {
  content: none !important;
  display: none !important;
}

.site-header .navbar .nav-link.active::after,
.site-header .navbar .nav-link.is-current::after {
  content: "" !important;
  display: block !important;
  position: absolute;
  left: 0;
  right: 0;
  bottom: .25rem;
  height: 2px;
  border-radius: 999px;
  background: var(--ics-green);
}

.site-header .nav-cta {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 1rem 1.45rem !important;
  border-radius: 12px !important;
  background: var(--ics-green) !important;
  color: #ffffff !important;
  border: 0 !important;
  box-shadow: 0 12px 24px rgba(15, 166, 68, .18) !important;
  font-weight: 600 !important;
  line-height: 1.2;
  text-decoration: none !important;
  white-space: nowrap;
}

.site-header .nav-cta:hover,
.site-header .nav-cta:focus {
  background: var(--ics-green-dark) !important;
  color: #ffffff !important;
}

.site-header .shop-dropdown {
  border: 1px solid rgba(9,48,64,.08);
  border-radius: 18px;
  padding: .6rem;
  box-shadow: 0 18px 42px rgba(9,48,64,.14);
}

.site-header .shop-dropdown .dropdown-item {
  border-radius: 12px;
  color: var(--ics-deep);
  font-weight: 600;
  padding: .65rem .85rem;
}

.site-header .shop-dropdown .dropdown-item:hover,
.site-header .shop-dropdown .dropdown-item:focus {
  background: var(--ics-blue-soft);
  color: var(--ics-green);
}

/* Breadcrumbs */
.breadcrumb-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem .7rem;
  align-items: center;
  margin-bottom: clamp(1.5rem, 3vw, 2.4rem);
  color: var(--ics-muted);
  font-size: .95rem;
}

.breadcrumb-bar a {
  color: var(--ics-green-dark);
  font-weight: 700;
  text-decoration: none;
}

.breadcrumb-bar a:hover,
.breadcrumb-bar a:focus {
  text-decoration: underline;
  text-underline-offset: .18em;
}

.breadcrumb-bar strong {
  color: var(--ics-deep);
  font-weight: 700;
}

/* Profile hero */
.profile-hero,
.member-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 86% 18%, rgba(120,184,191,.14) 0 150px, transparent 152px),
    linear-gradient(90deg, rgba(120,184,191,.10) 0%, rgba(246,251,252,.98) 30%, rgba(232,247,237,.68) 100%) !important;
  border-bottom: 1px solid rgba(9,48,64,.07);
  padding: clamp(2.6rem, 5vw, 4.7rem) 0 clamp(3rem, 5vw, 4.5rem);
}

.profile-hero::before,
.member-hero::before {
  content: "";
  position: absolute;
  top: 4.5rem;
  right: 5rem;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(120,184,191,.12);
  pointer-events: none;
  z-index: 0;
}

.profile-hero::after,
.member-hero::after {
  content: "";
  position: absolute;
  right: 12%;
  bottom: -120px;
  width: 420px;
  height: 260px;
  border-radius: 220px 220px 0 0;
  background: rgba(120,184,191,.10);
  pointer-events: none;
  z-index: 0;
}

.profile-hero > .container,
.profile-hero .row,
.member-hero > .container,
.member-hero .member-hero-grid {
  position: relative;
  z-index: 1;
}

.profile-hero .row {
  align-items: center !important;
}

.member-hero-grid {
  display: grid;
  grid-template-columns: minmax(180px, 300px) minmax(0, 1fr) minmax(300px, 370px);
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
}

.member-photo-frame {
  max-width: 275px;
  padding: .65rem;
  border-radius: 30px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(9,48,64,.07);
  box-shadow: 0 18px 42px rgba(9,48,64,.055);
  overflow: hidden;
}

.member-photo-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  object-position: center center;
  border-radius: 22px;
  background: #ffffff;
  filter: none;
  padding: .75rem;
}

.photo-verified-wrap {
  max-width: 275px;
  margin-top: 1rem;
  text-align: center;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--ics-deep);
  background: #ffffff;
  border: 1px solid rgba(15,166,68,.18);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(15,166,68,.12);
  font-weight: 700;
  padding: .78rem 1.15rem;
}

.verified-badge::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--ics-green);
  color: #ffffff;
  font-weight: 800;
}

.profile-hero h1.member-name,
.profile-hero h1:not(.member-name),
.member-hero h1 {
  font-family: var(--ics-serif);
  color: var(--ics-deep);
  font-weight: 700;
  font-size: clamp(2.25rem, 4.2vw, 4rem);
  line-height: .98;
  letter-spacing: -.045em;
  max-width: 8.5ch;
  margin: 0 0 .55rem;
  overflow-wrap: anywhere;
}

.profile-hero .business-name,
.member-hero .business-name {
  color: var(--ics-deep);
  font-size: clamp(1.16rem, 1.6vw, 1.45rem);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -.03em;
  margin: 0 0 .75rem;
}

.membership-no,
.member-kicker {
  display: inline-flex;
  align-items: center;
  width: auto;
  color: #20733a;
  background: var(--ics-green-soft);
  border: 1px solid rgba(15,166,68,.18);
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(15,166,68,.07);
  padding: .55rem 1rem;
  margin: 0 0 1.25rem;
  font-size: .95rem;
  line-height: 1.2;
  font-weight: 700;
}

.membership-no::after {
  display: none;
}

.hero-copy,
.member-hero .member-location {
  max-width: 620px;
  color: var(--ics-text);
  font-size: clamp(1.04rem, 1.25vw, 1.18rem);
  line-height: 1.65;
  margin-bottom: 1.35rem;
}

.trust-points {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  color: var(--ics-deep);
  font-size: .94rem;
}

.trust-points div {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(9,48,64,.07);
  border-radius: 999px;
  padding: .58rem .85rem;
  box-shadow: 0 10px 22px rgba(9,48,64,.04);
  font-weight: 700;
}

.trust-points div::before {
  content: "✓";
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: var(--ics-green);
  font-size: .78rem;
  font-weight: 800;
  flex: 0 0 auto;
}

.trust-points div:nth-child(2)::before {
  background: var(--ics-blue);
}

.trust-points div:nth-child(3)::before {
  background: var(--ics-gold);
}

/* Cards and content */
.page-content,
.member-content,
.directory-content {
  background: linear-gradient(180deg, #ffffff 0%, #f8fcfc 100%);
  padding: clamp(3.2rem, 5vw, 4.8rem) 0;
}

.contact-card,
.info-card,
.listing-card {
  background: #ffffff;
  color: var(--ics-text);
  border: 1px solid rgba(9,48,64,.075);
  border-radius: var(--ics-radius-md);
  box-shadow: 0 16px 34px rgba(9,48,64,.055);
}

.contact-card {
  padding: clamp(1.4rem, 2vw, 1.85rem);
  max-width: 370px;
  margin-left: auto;
}

.contact-card h2,
.info-card h2 {
  color: var(--ics-deep);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -.035em;
  border-bottom: 1px solid rgba(9,48,64,.08);
  padding-bottom: .85rem;
  margin: 0 0 1rem;
}

.contact-line {
  background: #f8fbfb;
  border: 1px solid rgba(9,48,64,.06);
  border-radius: 18px;
  padding: .82rem .9rem;
  margin-bottom: .75rem;
}

.contact-line:nth-of-type(1) {
  border-left: 4px solid var(--ics-blue);
}

.contact-line:nth-of-type(2) {
  border-left: 4px solid var(--ics-green-mid);
}

.contact-line:nth-of-type(3) {
  border-left: 4px solid var(--ics-gold);
}

.contact-line span {
  display: block;
  color: var(--ics-muted);
  font-weight: 700;
  letter-spacing: .04em;
  font-size: .72rem;
  text-transform: uppercase;
}

.contact-line a,
.contact-line strong {
  color: var(--ics-deep);
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.btn-call,
.btn-email,
.listing-profile-btn {
  min-height: 52px;
  border-radius: 14px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

.btn-call,
.listing-profile-btn,
.listing-profile-btn:link,
.listing-profile-btn:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ics-green) !important;
  border: 1px solid var(--ics-green) !important;
  color: #ffffff !important;
  box-shadow: 0 14px 26px rgba(15,166,68,.18);
}

.btn-call:hover,
.btn-call:focus,
.listing-profile-btn:hover,
.listing-profile-btn:focus {
  background: var(--ics-green-dark) !important;
  border-color: var(--ics-green-dark) !important;
  color: #ffffff !important;
}

.btn-email {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #20733a !important;
  background: #ffffff !important;
  border: 1px solid rgba(15,166,68,.22) !important;
}

.btn-email:hover,
.btn-email:focus {
  color: var(--ics-deep) !important;
  background: var(--ics-blue-soft) !important;
  border-color: rgba(120,184,191,.48) !important;
}

.contact-card .btn-call,
.contact-card .btn-email {
  width: 100%;
  max-width: none;
  margin-top: .75rem;
}

.info-card {
  padding: clamp(1.5rem, 2.4vw, 2rem);
  height: 100%;
}

.info-card p {
  color: var(--ics-text);
  font-size: 1.04rem;
  line-height: 1.75;
}

.services-card ul,
.listing-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.services-card li {
  position: relative;
  background: #f8fbfb;
  border: 1px solid rgba(9,48,64,.06);
  border-radius: 16px;
  color: var(--ics-deep);
  font-weight: 700;
  margin-bottom: .75rem;
  padding: .9rem 1rem .9rem 3.1rem;
}

.services-card li::before {
  content: "✓";
  position: absolute;
  left: 1rem;
  top: .9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  background: var(--ics-green);
  color: #ffffff;
  font-size: .82rem;
  font-weight: 800;
}

.text-link,
.listing-card a {
  color: var(--ics-green-dark);
  font-weight: 700;
}

/* Directory pages */
.directory-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 20%, rgba(120,184,191,.15) 0 120px, transparent 122px),
    linear-gradient(90deg, rgba(120,184,191,.10), rgba(246,251,252,.98) 44%, rgba(232,247,237,.72)) !important;
  border-bottom: 1px solid rgba(9,48,64,.07);
  padding: clamp(2.7rem, 4.5vw, 4.4rem) 0;
}

.directory-hero h1 {
  font-family: var(--ics-serif);
  color: var(--ics-deep);
  font-weight: 700;
  font-size: clamp(2.45rem, 5vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -.055em;
  margin: 0 0 .75rem;
}

.directory-hero .hero-copy {
  max-width: 720px;
  color: var(--ics-text);
}

.listing-card {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  padding: 1.45rem;
  height: 100%;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.listing-card:hover {
  transform: translateY(-2px);
  border-color: rgba(120,184,191,.32);
  box-shadow: 0 22px 44px rgba(9,48,64,.075);
}

.listing-card .muted {
  align-self: flex-start;
  display: inline-flex;
  width: auto;
  background: var(--ics-blue-soft);
  border: 1px solid rgba(120,184,191,.22);
  border-radius: 999px;
  color: #1d6d78;
  font-weight: 700;
  padding: .32rem .7rem;
  font-size: .92rem;
  line-height: 1.2;
  margin-bottom: .55rem !important;
}

.listing-card .listing-member-name {
  display: block;
  color: var(--ics-deep);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.listing-card .listing-business-name {
  display: block;
  color: var(--ics-text);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.35;
  margin-top: .28rem;
  overflow-wrap: anywhere;
}

.listing-card p.mb-1 {
  color: var(--ics-text);
  font-size: .98rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.listing-actions {
  margin-top: auto;
  padding-top: 1rem;
}

.listing-profile-btn {
  width: auto;
  min-width: 132px;
  padding: .64rem .95rem;
}

/* Footer */
.site-footer {
  background: #3f4b58 !important;
  color: rgba(255,255,255,.82) !important;
  padding: 2.75rem 0 1.4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) repeat(3, minmax(150px, 1fr));
  gap: 2rem;
  align-items: start;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  color: #ffffff !important;
  text-decoration: none;
  font-size: 1.05rem;
  line-height: 1.15;
}

.footer-brand:hover,
.footer-brand:focus {
  color: #ffffff !important;
}

.footer-logo {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
}

.footer-brand strong,
.footer-brand span {
  color: #ffffff !important;
}

.footer-summary {
  color: rgba(255,255,255,.78);
  margin: 1rem 0 0;
  max-width: 340px;
  line-height: 1.6;
}

.footer-column h2 {
  color: #ffffff !important;
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 .9rem;
  padding-bottom: .55rem;
  border-bottom: 2px solid rgba(78,166,84,.72);
}

.footer-column a,
.footer-column span {
  display: block;
  color: rgba(255,255,255,.82) !important;
  text-decoration: none;
  margin-bottom: .55rem;
  line-height: 1.45;
}

.footer-column a:hover,
.footer-column a:focus {
  color: #ffffff !important;
  text-decoration: underline;
  text-underline-offset: .18em;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem 1rem;
  border-top: 1px solid rgba(255,255,255,.16);
  margin-top: 2.25rem;
  padding-top: 1rem;
  color: rgba(255,255,255,.72);
  font-size: .92rem;
}

.footer-bottom p {
  margin: 0;
  color: rgba(255,255,255,.72);
}

/* Responsive */
@media (max-width: 1199.98px) and (min-width: 992px) {
  .site-header .nav-wrap {
    padding-left: clamp(5.5rem, 8vw, 7.5rem);
    padding-right: clamp(2.5rem, 4vw, 4rem);
  }
}

@media (max-width: 991.98px) {
  .site-header .nav-wrap {
    min-height: 90px;
    padding: .7rem 1rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
  }

  .site-header img.brand-logo,
  .site-header .brand-logo {
    width: 72px !important;
    height: 72px !important;
    min-width: 72px !important;
    max-width: 72px !important;
    flex-basis: 72px !important;
    transform: scale(1.04);
  }

  .site-header .navbar-collapse {
    flex-basis: 100%;
    width: 100%;
    background: #ffffff;
  }

  .site-header .navbar-nav,
  .site-header .main-nav-list {
    width: 100%;
    align-items: stretch;
    gap: 0;
    padding-top: .8rem;
  }

  .site-header .navbar .nav-link {
    padding: .75rem 0 !important;
  }

  .site-header .navbar .nav-link.active::after,
  .site-header .navbar .nav-link.is-current::after {
    display: none !important;
  }

  .site-header .nav-cta {
    width: 100%;
    margin-top: .5rem;
  }

  .profile-hero,
  .member-hero {
    background:
      linear-gradient(180deg, rgba(246,251,252,.98) 0%, rgba(238,248,249,.96) 58%, rgba(232,247,237,.70) 100%) !important;
    padding: 1.6rem 0 2.4rem;
  }

  .profile-hero::before,
  .profile-hero::after,
  .member-hero::before,
  .member-hero::after {
    display: none;
  }

  .profile-hero .row,
  .member-hero-grid {
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(9,48,64,.08);
    border-radius: 24px;
    box-shadow: 0 16px 34px rgba(9,48,64,.055);
    padding: 1rem;
  }

  .member-hero-grid {
    grid-template-columns: 145px 1fr;
    gap: 1.2rem;
  }

  .profile-hero .col-lg-3,
  .profile-hero .col-lg-5 {
    width: auto;
    flex: 0 0 auto;
    padding-left: .5rem;
    padding-right: .5rem;
  }

  .profile-hero .col-lg-3 {
    width: 38%;
    max-width: 145px;
  }

  .profile-hero .col-lg-5 {
    width: 62%;
    flex: 1 1 0;
  }

  .profile-hero h1.member-name,
  .profile-hero h1:not(.member-name),
  .member-hero h1 {
    font-size: clamp(1.75rem, 7vw, 2.6rem);
    line-height: 1.02;
    max-width: none;
    letter-spacing: -.04em;
  }

  .profile-hero .business-name,
  .member-hero .business-name {
    font-size: clamp(1.05rem, 4vw, 1.35rem);
  }

  .member-photo-frame {
    max-width: 145px;
    border-radius: 18px;
  }

  .photo-verified-wrap {
    display: none;
  }

  .profile-hero .col-lg-5::after {
    content: "✓ Verified ICS Member";
    display: inline-flex;
    align-items: center;
    color: var(--ics-deep);
    background: var(--ics-green-soft);
    border: 1px solid rgba(15,166,68,.18);
    border-radius: 999px;
    padding: .42rem .7rem;
    margin-bottom: .85rem;
    font-size: .86rem;
    font-weight: 700;
  }

  .profile-hero .col-lg-4 {
    width: 100%;
    padding-left: .5rem;
    padding-right: .5rem;
  }

  .contact-card {
    max-width: none;
    margin-top: .7rem;
    margin-left: 0;
    border-radius: 20px;
  }

  .contact-card h2 {
    display: none;
  }

  .trust-points {
    grid-column: 1 / -1;
    width: 100%;
    border-top: 1px solid rgba(9,48,64,.08);
    padding-top: 1rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand-block {
    grid-column: 1 / -1;
  }
}

@media (max-width: 575.98px) {
  .site-header img.brand-logo,
  .site-header .brand-logo {
    width: 62px !important;
    height: 62px !important;
    min-width: 62px !important;
    max-width: 62px !important;
    flex-basis: 62px !important;
    transform: scale(1);
  }

  .site-header .nav-wrap {
    min-height: 82px;
  }

  .profile-hero .row,
  .member-hero-grid {
    border-radius: 20px;
  }

  .member-hero-grid {
    grid-template-columns: 1fr;
  }

  .profile-hero .col-lg-3 {
    max-width: 132px;
  }

  .member-photo-frame {
    max-width: 132px;
    padding: .4rem;
  }

  .trust-points {
    display: grid;
  }

  .trust-points div {
    border-radius: 16px;
  }

  .btn-call,
  .btn-email,
  .listing-profile-btn {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-bottom {
    display: block;
  }

  .footer-bottom p + p {
    margin-top: .45rem;
  }
}

/* =========================================================
   Member profile mobile menu collapsed-state fix
   Bootstrap adds/removes .show on .navbar-collapse. These rules
   make sure the menu is hidden on mobile until the hamburger is
   opened, while keeping the desktop menu visible.
   ========================================================= */

@media (max-width: 991.98px) {
  .site-header .navbar-collapse.collapse:not(.show) {
    display: none !important;
  }

  .site-header .navbar-collapse.collapse.show,
  .site-header .navbar-collapse.collapsing {
    display: block !important;
    flex-basis: 100% !important;
    width: 100% !important;
    background: #ffffff !important;
  }

  .site-header .navbar-toggler {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-left: auto !important;
    background: #ffffff !important;
    border: 1px solid rgba(9, 48, 64, .14) !important;
    border-radius: 14px !important;
    padding: .72rem .85rem !important;
    box-shadow: 0 8px 18px rgba(9, 48, 64, .08) !important;
  }

  .site-header .navbar-collapse.collapse:not(.show) .navbar-nav,
  .site-header .navbar-collapse.collapse:not(.show) .main-nav-list {
    display: none !important;
  }

  .site-header .navbar-collapse.show .navbar-nav,
  .site-header .navbar-collapse.show .main-nav-list,
  .site-header .navbar-collapse.collapsing .navbar-nav,
  .site-header .navbar-collapse.collapsing .main-nav-list {
    display: flex !important;
  }
}

@media (min-width: 992px) {
  .site-header .navbar-collapse.collapse {
    display: flex !important;
  }
}

