.atp-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

body.page-atp-directory-modern {
  --atp-directory-ink: #082d4d;
  --atp-directory-blue: #176faa;
  --atp-directory-blue-bright: #268bd2;
  --atp-directory-sky: #e9f5fb;
  --atp-directory-border: #cddae6;
  --atp-directory-muted: #5a7288;
  --atp-directory-gold: #f4b738;
  background: #ffffff;
}

body.page-atp-directory-modern .atp-directory-page-shell > .atp-directory-hero .container,
body.page-atp-directory-modern .atp-directory-ribbon-inner.container,
body.page-atp-directory-modern .atp-directory-content > .container {
  width: min(100% - 32px, 1350px) !important;
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.page-atp-directory-modern .atp-directory-page-shell > .atp-directory-hero .container {
  width: min(100%, 1420px) !important;
}

body.page-atp-directory-modern #content {
  background:
    linear-gradient(180deg, #ffffff 0 40px, rgba(255, 255, 255, 0) 40px),
    radial-gradient(circle at 12% 10%, rgba(38, 139, 210, 0.12), transparent 34%),
    linear-gradient(180deg, #f8fbfd 0%, #ffffff 52%, #f4f8fb 100%);
}

body.page-atp-directory-modern #footer {
  overflow: visible;
  padding-top: 58px;
}

body.page-atp-directory-modern #footer .footer-ribbon {
  z-index: 2;
  margin-top: -54px;
}

.atp-directory-hero {
  --atp-directory-hero-accent: #5aa9dc;
  --atp-directory-hero-image: url("../images/global-data-network-concept-hero-1600.jpg");
  position: relative;
  min-height: 244px;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: 24px;
  padding: 0;
  padding-bottom: 0 !important;
  background-color: #000000;
  background-image:
    linear-gradient(0deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.18)),
    linear-gradient(90deg, rgba(2, 6, 10, 0.96) 0%, rgba(2, 6, 10, 0.9) 28%, rgba(2, 6, 10, 0.66) 42%, rgba(4, 9, 14, 0.3) 56%, rgba(5, 10, 16, 0.08) 68%, rgba(5, 10, 16, 0) 78%),
    var(--atp-directory-hero-image);
  background-position: center, center, right center;
  background-repeat: no-repeat;
  background-size: 100% 100%, 100% 100%, 56% auto;
  color: #ffffff;
}

@media (min-width: 1400px) {
  .atp-directory-hero {
    --atp-directory-hero-image: url("../images/global-data-network-concept-hero-2400.jpg");
  }
}

.atp-directory-hero::before,
.atp-directory-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.atp-directory-hero::before {
  inset: 0 58% 0 0;
  z-index: 0;
  background: #000000;
}

.atp-directory-hero::after {
  top: 0;
  bottom: 0;
  left: calc(42% - 36px);
  z-index: 1;
  width: 460px;
  background: linear-gradient(90deg, rgba(2, 6, 10, 1) 0%, rgba(2, 6, 10, 0.98) 16%, rgba(2, 6, 10, 0.84) 36%, rgba(4, 9, 14, 0.54) 58%, rgba(5, 10, 16, 0.18) 82%, rgba(5, 10, 16, 0) 100%);
}

.atp-directory-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: stretch;
  flex-direction: column;
  max-width: 800px;
  min-height: 244px;
  padding: 24px 0 12px 18px;
  padding-right: 8px;
  color: #ffffff;
  text-align: left;
  text-shadow: none;
}

.atp-directory-hero-content::before,
.atp-directory-hero-content::after {
  content: "";
  position: absolute;
  left: 0;
  width: 4px;
  background: var(--atp-directory-hero-accent);
}

.atp-directory-hero-content::before {
  top: 28px;
  height: 22px;
}

.atp-directory-hero-content::after {
  top: 66px;
  bottom: 24px;
}

.atp-directory-hero-rule {
  display: none;
}

.atp-directory-hero .atp-directory-hero-kicker {
  display: inline-block;
  align-self: flex-start;
  width: auto;
  max-width: 100%;
  margin: 0 0 10px -5px;
  padding: 5px 13px;
  border: 1px solid rgba(90, 169, 220, 0.42);
  border-radius: 999px;
  background: rgba(8, 22, 34, 0.8);
  color: #d8ecf8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.atp-directory-hero h1 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-align: left;
  white-space: nowrap;
}

.atp-directory-hero-emphasis {
  color: inherit;
  white-space: nowrap;
}

.atp-directory-hero p {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 17px;
  line-height: 1.5;
  text-align: left;
}

.atp-directory-trust-strip {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  width: min(100% + 110px, 860px);
  margin-top: 16px;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.98) 0%, rgba(0, 0, 0, 0.98) 76%, rgba(0, 0, 0, 0.86) 90%, rgba(0, 0, 0, 0) 100%);
}

.atp-directory-trust-pill {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 70px;
  padding: 14px 22px 12px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  white-space: normal;
}

.atp-directory-trust-pill + .atp-directory-trust-pill {
  padding-left: 22px;
}

.atp-directory-trust-pill + .atp-directory-trust-pill::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 0;
  width: 1px;
  background: linear-gradient(180deg, rgba(90, 169, 220, 0.08), rgba(90, 169, 220, 0.52), rgba(90, 169, 220, 0.08));
}

.atp-directory-trust-pill-primary {
  color: #ffffff;
}

.atp-directory-trust-pill .fa,
.atp-directory-trust-pill .fa-solid {
  display: inline-flex;
  flex: 0 0 28px;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-top: 1px;
  color: var(--atp-directory-hero-accent);
  font-size: 24px;
  line-height: 1;
}

.atp-directory-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 22px;
  margin-top: 22px;
}

.atp-directory-hero-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  padding: 15px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-shadow: none !important;
  box-shadow: none !important;
  filter: none !important;
}

.atp-directory-hero-primary:hover,
.atp-directory-hero-primary:focus,
.atp-directory-hero-primary:active {
  text-shadow: none !important;
  box-shadow: none !important;
  filter: none !important;
}

.atp-directory-hero-primary:focus {
  outline: 3px solid #9fd3f1;
  outline-offset: 3px;
}

body.page-atp-directory-modern .atp-directory-hero-primary.btn.btn-lg.btn-oshacademy-orange {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  padding: 15px 28px !important;
  border-color: #ee692f;
  border-radius: 999px !important;
  color: #ffffff;
  background-color: #ee692f;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.3333333;
  text-transform: uppercase;
  text-shadow: none !important;
  box-shadow: none !important;
  filter: none !important;
}

body.page-atp-directory-modern .atp-directory-hero-primary.btn.btn-lg.btn-oshacademy-orange:hover,
body.page-atp-directory-modern .atp-directory-hero-primary.btn.btn-lg.btn-oshacademy-orange:focus,
body.page-atp-directory-modern .atp-directory-hero-primary.btn.btn-lg.btn-oshacademy-orange:active {
  border-color: #f28b5f;
  border-radius: 999px !important;
  color: #ffffff;
  background-color: #f28b5f;
  text-shadow: none !important;
  box-shadow: none !important;
  filter: none !important;
}

.atp-directory-ribbon {
  background: linear-gradient(135deg, #1b75ad 0%, #4da1d0 100%);
  box-shadow: 0 13px 28px rgba(12, 68, 106, 0.12);
}

.atp-directory-ribbon-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  min-height: 38px;
  color: #ffffff;
}

.atp-directory-ribbon-inner span {
  margin-right: 14px;
  color: #f8c348;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.atp-directory-ribbon-inner a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.atp-directory-ribbon-inner a + a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: rgba(255, 255, 255, 0.38);
}

.atp-directory-ribbon-inner a:hover,
.atp-directory-ribbon-inner a:focus {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.atp-directory-ribbon-inner a:focus,
.atp-view-toggle:focus,
#search:focus,
#country-search:focus,
#filter .media-boxes-drop-down-header:focus,
.page-atp-directory-modern #grid .media-box-footer .btn:focus {
  outline: 3px solid rgba(248, 195, 72, 0.55);
  outline-offset: 3px;
}

.atp-directory-content {
  padding: 16px 0 46px;
}

.atp-directory-controls {
  position: relative;
  z-index: 2000;
  display: grid;
  grid-template-columns: minmax(380px, 1.25fr) minmax(340px, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin: 0 0 16px;
  padding: 18px 24px;
  border: 1px solid rgba(205, 218, 230, 0.82);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 34px rgba(8, 45, 77, 0.11);
}

.atp-directory-search-wrap,
.atp-directory-country-wrap {
  position: relative;
}

.atp-directory-country-wrap::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  z-index: 4;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #173f65;
  pointer-events: none;
  transform: translateY(-50%);
}

.atp-directory-control-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  z-index: 3;
  color: #173f65;
  font-size: 18px;
  transform: translateY(-50%);
  pointer-events: none;
}

.page-atp-directory-modern #search.media-boxes-search {
  float: none !important;
  display: block;
  width: 100% !important;
  height: 52px !important;
  margin: 0 !important;
  padding: 8px 18px 8px 48px !important;
  border: 2px solid #2677b5 !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  color: var(--atp-directory-ink);
  font-size: 18px !important;
  font-weight: 400 !important;
}

.page-atp-directory-modern #search.media-boxes-search::placeholder {
  color: #7b8998;
}

.atp-name-suggestions {
  display: none;
  position: absolute;
  left: 0;
  top: 58px;
  z-index: 2100;
  width: 100%;
  max-height: 330px;
  overflow-y: auto;
  margin: 0;
  padding: 6px;
  border: 1px solid rgba(155, 176, 194, 0.72);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(8, 45, 77, 0.16);
  list-style: none;
}

.atp-name-suggestion {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--atp-directory-ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
}

.atp-name-suggestion:hover,
.atp-name-suggestion:focus {
  background: #176faa;
  color: #ffffff;
  outline: none;
}

.atp-name-no-results {
  padding: 10px 12px;
  color: var(--atp-directory-muted);
  font-size: 14px;
  font-weight: 700;
}

.page-atp-directory-modern #filter.media-boxes-drop-down {
  float: none !important;
  width: 100% !important;
  height: 52px !important;
  margin: 0 !important;
  border: 1px solid #9bb0c2 !important;
  border-radius: 10px !important;
  background: #ffffff;
  box-shadow: 0 3px 10px rgba(8, 45, 77, 0.04);
}

.page-atp-directory-modern #filter .atp-country-search {
  display: block;
  width: 100% !important;
  height: 50px !important;
  margin: 0 !important;
  padding: 8px 44px 8px 48px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  color: #173f65 !important;
  font-size: 17px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  box-shadow: none !important;
}

.page-atp-directory-modern #filter .atp-country-search::placeholder {
  color: #33465d;
  opacity: 1;
}

.page-atp-directory-modern #filter .media-boxes-drop-down-header {
  display: none !important;
}

.page-atp-directory-modern #filter .media-boxes-drop-down-header .fa {
  display: none !important;
}

.page-atp-directory-modern #filter .media-boxes-drop-down-menu {
  top: 55px !important;
  left: 0 !important;
  z-index: 2100;
  width: 100% !important;
  max-height: 330px;
  overflow-y: auto;
  border: 1px solid rgba(155, 176, 194, 0.72) !important;
  border-radius: 12px !important;
  box-shadow: 0 16px 34px rgba(8, 45, 77, 0.16);
}

.page-atp-directory-modern #filter .media-boxes-drop-down-menu > li > a {
  padding: 12px 16px !important;
  color: var(--atp-directory-ink) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
}

.page-atp-directory-modern #filter .media-boxes-drop-down-menu > li > a:hover,
.page-atp-directory-modern #filter .media-boxes-drop-down-menu > li > a:focus {
  background: #176faa !important;
  color: #ffffff !important;
}

.page-atp-directory-modern #filter .atp-country-no-results {
  display: none;
  padding: 12px 16px;
  color: var(--atp-directory-muted);
  font-size: 14px;
  font-weight: 700;
}

.atp-directory-view-controls {
  clear: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 0;
  white-space: nowrap;
}

.atp-view-label {
  color: var(--atp-directory-ink);
  font-size: 16px;
  font-weight: 700;
}

.atp-view-toggle {
  min-width: 82px;
  min-height: 42px;
  padding: 9px 16px;
  border-color: #c7d5e2;
  border-radius: 9px !important;
  background: linear-gradient(180deg, #ffffff, #f5f8fb);
  color: var(--atp-directory-ink);
  font-size: 15px;
  font-weight: 700;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.atp-view-toggle .fa {
  margin-right: 5px;
}

.atp-view-toggle:hover,
.atp-view-toggle:focus {
  transform: translateY(-1px);
}

.atp-view-toggle.active,
.atp-view-toggle[aria-pressed="true"] {
  background: linear-gradient(135deg, #176faa, #2e8bc8);
  border-color: #176faa;
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(23, 111, 170, 0.24);
}

.atp-directory-quick-filters {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: -2px;
  padding-top: 2px;
}

.atp-directory-quick-label {
  margin-right: 2px;
  color: var(--atp-directory-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.atp-country-chip,
.atp-region-chip {
  min-height: 34px;
  padding: 7px 13px;
  border: 1px solid rgba(155, 176, 194, 0.84);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #f5f9fc);
  color: #173f65;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 5px 13px rgba(8, 45, 77, 0.06);
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.atp-country-chip:hover,
.atp-country-chip:focus,
.atp-region-chip:hover,
.atp-region-chip:focus {
  border-color: #176faa;
  background: #eef8fd;
  color: #176faa;
  outline: none;
  transform: translateY(-1px);
}

.atp-country-chip.is-active,
.atp-country-chip[aria-pressed="true"],
.atp-region-chip.is-active,
.atp-region-chip[aria-pressed="true"] {
  border-color: #176faa;
  background: linear-gradient(135deg, #176faa, #2e8bc8);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(23, 111, 170, 0.2);
}

.atp-country-chip[disabled],
.atp-region-chip[disabled] {
  display: none;
}

.atp-directory-active-filter {
  grid-column: 1 / -1;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
  padding: 10px 12px;
  border: 1px solid rgba(23, 111, 170, 0.18);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(238, 248, 253, 0.98), rgba(255, 255, 255, 0.98));
  color: #173f65;
  font-size: 14px;
  font-weight: 800;
}

.atp-directory-active-filter.is-active {
  display: flex;
}

.atp-filter-clear {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid rgba(23, 111, 170, 0.34);
  border-radius: 999px;
  background: #ffffff;
  color: #176faa;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.atp-filter-clear:hover,
.atp-filter-clear:focus {
  border-color: #176faa;
  background: #176faa;
  color: #ffffff;
  outline: none;
}

.atp-filter-clear[hidden] {
  display: none;
}

.atp-directory-view-panel {
  width: 100%;
}

.page-atp-directory-modern .atp-grid-view-panel {
  padding-top: 4px;
}

.page-atp-directory-modern .atp-grid-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 16px;
}

.page-atp-directory-modern .atp-grid-stat-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-areas:
    "icon number"
    "icon label"
    "icon note";
  align-items: center;
  min-height: 70px;
  padding: 14px 18px;
  border: 1px solid rgba(205, 218, 230, 0.86);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(8, 45, 77, 0.055);
}

.page-atp-directory-modern .atp-grid-stat-card > .fa {
  grid-area: icon;
  color: #176faa;
  font-size: 30px;
  line-height: 1;
}

.page-atp-directory-modern .atp-grid-stat-card strong {
  grid-area: number;
  display: block;
  margin: 0;
  color: #07518a;
  font-size: 21px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.page-atp-directory-modern .atp-grid-stat-card span:not(.fa) {
  grid-area: label;
  display: block;
  margin-top: 1px;
  color: #082d4d;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.page-atp-directory-modern .atp-grid-stat-card small {
  grid-area: note;
  display: block;
  margin-top: 2px;
  color: var(--atp-directory-muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
}

.page-atp-directory-modern .atp-grid-heading {
  margin: 10px 0 18px;
  text-align: left;
}

.page-atp-directory-modern .atp-grid-heading h2 {
  margin: 0 0 5px !important;
  color: var(--atp-directory-ink) !important;
  font-size: 26px !important;
  font-weight: 900 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.03em;
  text-align: left !important;
}

.page-atp-directory-modern .atp-grid-heading p {
  margin: 0;
  color: var(--atp-directory-muted);
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
}

.page-atp-directory-modern #atp-grid-panel {
  margin-top: 0 !important;
}

.page-atp-directory-modern #grid {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  min-height: 360px;
  width: 100% !important;
  height: auto !important;
  margin-left: 0 !important;
}

.page-atp-directory-modern #grid .media-box.atp-directory-card {
  display: block !important;
  position: static !important;
  top: auto !important;
  left: auto !important;
  width: auto !important;
  margin: 0 !important;
  opacity: 1 !important;
  transform: none !important;
  overflow: visible;
}

.page-atp-directory-modern #grid .media-boxes-grid-sizer {
  display: none !important;
}

.page-atp-directory-modern #grid .media-box-container {
  display: flex !important;
  flex-direction: column;
  height: 444px !important;
  overflow: hidden;
  border: 1px solid rgba(205, 218, 230, 0.88) !important;
  border-radius: 20px !important;
  background: #ffffff !important;
  box-shadow: 0 16px 30px rgba(8, 45, 77, 0.09) !important;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.page-atp-directory-modern #grid .media-box-container:hover {
  border-color: #b5c8d9 !important;
  box-shadow: 0 22px 38px rgba(8, 45, 77, 0.14) !important;
  transform: translateY(-3px);
}

.page-atp-directory-modern #grid .media-box-image {
  position: relative;
  z-index: 2;
  flex: 0 0 170px;
  overflow: visible !important;
  height: 170px !important;
  min-height: 170px !important;
  background: linear-gradient(135deg, #eef6fb, #ffffff);
}

.page-atp-directory-modern #grid .media-box-image .media-box-thumbnail-container {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
  background: #082d4d;
}

.page-atp-directory-modern #grid .media-box-image .media-box-thumbnail-container > img {
  position: absolute !important;
  inset: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  object-position: center 57%;
  transform: scale(1.5);
  transform-origin: center center;
}

.page-atp-directory-modern #grid .atp-card-logo-badge {
  position: absolute;
  left: 18px;
  bottom: -44px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  padding: 5px;
  border: 1px solid rgba(189, 208, 222, 0.96);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 30px rgba(8, 45, 77, 0.24);
}

.page-atp-directory-modern #grid .atp-card-logo-badge img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
  transform: none !important;
}

.page-atp-directory-modern #grid .media-box-content {
  position: relative;
  z-index: 1;
  display: flex !important;
  flex: 1 1 auto;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-content: flex-start !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  width: 100% !important;
  min-height: 0 !important;
  height: auto !important;
  box-sizing: border-box;
  padding: 54px 16px 8px !important;
  background: #ffffff !important;
  color: var(--atp-directory-ink) !important;
  text-align: left !important;
}

.page-atp-directory-modern #grid .media-box-title {
  flex: 0 0 60px;
  align-self: stretch;
  width: 100% !important;
  max-width: 100%;
  min-width: 0;
  margin: 0 0 6px !important;
  color: var(--atp-directory-ink) !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  line-height: 1.18 !important;
  letter-spacing: -0.015em;
  text-align: left !important;
  display: -webkit-box;
  min-height: 60px;
  max-height: 60px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.atp-card-location-summary {
  flex: 0 0 auto;
  align-self: stretch;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0 0 6px;
  color: var(--atp-directory-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.atp-card-location-summary::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 999px;
  background: #2e8bc8;
  vertical-align: 1px;
}

.page-atp-directory-modern #grid .atp-card-provider-summary {
  flex: 0 0 auto;
  align-self: stretch;
  width: 100% !important;
  max-width: 100%;
  min-width: 0;
  margin: 0 0 8px !important;
  color: #4f6679 !important;
  font-size: 13px !important;
  line-height: 1.42 !important;
  text-align: left !important;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.page-atp-directory-modern #grid .atp-grid-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 34px 20px;
  border: 1px solid rgba(188, 216, 235, 0.9);
  border-radius: 20px;
  background: #ffffff;
  color: var(--atp-directory-muted);
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}

.page-atp-directory-modern #grid .media-box-categories {
  width: 100%;
  margin: auto 0 0 !important;
  padding: 0 !important;
  text-align: left !important;
}

.page-atp-directory-modern #grid .media-box-categories span,
.page-atp-directory-modern #grid .media-box-categories i {
  letter-spacing: 0;
  text-transform: none;
}

.page-atp-directory-modern #grid .atp-card-country-tag {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 23px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef6fb;
  color: #176faa !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1.2;
}

.page-atp-directory-modern #grid .media-box-footer {
  flex: 0 0 auto;
  margin-top: auto;
  padding: 10px 16px 16px !important;
  background: #ffffff !important;
  text-align: left !important;
}

.page-atp-directory-modern #grid .media-box-footer .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 39px;
  padding: 9px 16px !important;
  border: 1px solid #176faa !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #176faa !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.page-atp-directory-modern #grid .media-box-footer .btn:hover,
.page-atp-directory-modern #grid .media-box-footer .btn:focus {
  background: #176faa !important;
  color: #ffffff !important;
  text-decoration: none;
}

.page-atp-directory-modern .media-boxes-load-more-button {
  width: auto !important;
  min-width: 180px;
  margin: 28px auto 0 !important;
  padding: 12px 24px !important;
  border: 1px solid #176faa !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #176faa !important;
  font-weight: 800 !important;
  box-shadow: 0 12px 24px rgba(8, 45, 77, 0.08);
}

.page-atp-directory-modern .media-boxes-load-more-button:hover,
.page-atp-directory-modern .media-boxes-load-more-button:focus {
  background: #176faa !important;
  color: #ffffff !important;
}

.atp-map-panel {
  position: relative;
  z-index: 1;
  display: none;
}

.atp-map-panel.is-active {
  display: block;
}

.atp-landing-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.35fr) minmax(420px, 0.85fr);
  align-items: stretch;
  gap: 22px;
}

.atp-map-panel.is-sidebar-collapsed .atp-landing-layout {
  grid-template-columns: 1fr;
}

.atp-map-panel.is-sidebar-collapsed .atp-featured-sidebar {
  display: none;
}

.atp-map-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 12px;
  border: 1px solid rgba(205, 218, 230, 0.88);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 247, 252, 0.94)),
    radial-gradient(circle at 16% 18%, rgba(24, 135, 201, 0.08), transparent 28%),
    radial-gradient(circle at 84% 80%, rgba(255, 183, 48, 0.07), transparent 30%);
  box-shadow:
    0 18px 34px rgba(8, 45, 77, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.atp-map-sidebar-toggle {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 650;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid rgba(205, 218, 230, 0.92);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--atp-directory-ink);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 10px 22px rgba(8, 45, 77, 0.18);
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.atp-map-sidebar-toggle:hover,
.atp-map-sidebar-toggle:focus {
  border-color: #176faa;
  background: #176faa;
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
}

.atp-map-sidebar-toggle .fa {
  font-size: 13px;
}

.atp-map-canvas {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  isolation: isolate;
  width: 100%;
  height: clamp(540px, 72vh, 760px);
  min-height: 0;
  border: 1px solid #c6d7e6;
  border-radius: 16px;
  background: #173a58;
  overflow: hidden;
}

.atp-map-canvas.leaflet-container {
  background: #173a58;
}

.atp-map-canvas .leaflet-tile-pane {
  filter: saturate(0.92) contrast(0.95) brightness(0.94) sepia(0.08);
}

.atp-map-canvas .atp-map-road-tiles img {
  filter: contrast(1.1) brightness(0.96);
}

.atp-map-canvas .atp-map-label-tiles img {
  filter: contrast(1.28) brightness(0.92) saturate(0.9);
}

.atp-map-canvas::before,
.atp-map-canvas::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.atp-map-canvas::before {
  z-index: 350;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(241, 247, 246, 0.03)),
    radial-gradient(ellipse at 50% 52%, rgba(255, 194, 104, 0.1), transparent 40%),
    radial-gradient(ellipse at 24% 38%, rgba(87, 151, 95, 0.08), transparent 30%),
    radial-gradient(ellipse at 70% 36%, rgba(88, 143, 108, 0.08), transparent 30%),
    radial-gradient(ellipse at 50% 63%, rgba(220, 151, 78, 0.08), transparent 24%),
    radial-gradient(circle at 12% 14%, rgba(38, 139, 210, 0.07), transparent 28%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 86px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 112px),
    radial-gradient(circle, rgba(255, 255, 255, 0.024) 0 0.7px, transparent 0.8px);
  background-size: auto, auto, auto, auto, auto, auto, auto, auto, 9px 9px;
  mix-blend-mode: soft-light;
  opacity: 0.48;
}

.atp-map-canvas::after {
  z-index: 430;
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 42%, transparent 0 58%, rgba(3, 22, 42, 0.2) 100%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 32%, rgba(20, 112, 172, 0.08));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.34),
    inset 0 0 82px rgba(3, 18, 35, 0.26);
  opacity: 0.78;
}

.atp-map-canvas .leaflet-control-zoom a {
  border-color: rgba(205, 218, 230, 0.86);
  background: rgba(255, 255, 255, 0.95);
  color: var(--atp-directory-ink);
}

.atp-map-canvas .leaflet-control-zoom a:hover,
.atp-map-canvas .leaflet-control-zoom a:focus {
  background: #0f7dbb;
  color: #ffffff;
}

.atp-map-canvas .leaflet-control-attribution {
  border: 1px solid rgba(205, 218, 230, 0.7);
  border-radius: 6px 0 0 0;
  background: rgba(255, 255, 255, 0.88);
  color: #49677f;
}

.atp-map-canvas .leaflet-control-attribution a {
  color: #176faa;
}

.atp-map-location-marker {
  border: 0 !important;
  background: transparent !important;
}

.atp-map-location-marker-pin {
  position: relative;
  display: block;
  width: 27px;
  height: 27px;
  border: 3px solid #ffffff;
  border-radius: 50% 50% 50% 0;
  background: linear-gradient(135deg, #19b9ff 0%, #107ec2 100%);
  box-shadow:
    0 0 0 5px rgba(25, 185, 255, 0.18),
    0 10px 18px rgba(8, 45, 77, 0.28);
  transform: rotate(-45deg);
}

.atp-map-location-marker-pin::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
}

.atp-map-canvas .marker-cluster {
  border-radius: 50%;
  background-clip: padding-box;
}

.atp-map-canvas .marker-cluster div {
  width: 36px;
  height: 36px;
  margin: 5px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  color: #ffffff;
  font: 800 14px/32px Arial, Helvetica, sans-serif;
  text-align: center;
}

.atp-map-canvas .marker-cluster span {
  line-height: 32px;
}

.atp-map-canvas .atp-map-cluster-hot {
  background: rgba(255, 187, 43, 0.28);
  box-shadow: 0 0 0 7px rgba(255, 187, 43, 0.17), 0 10px 18px rgba(8, 45, 77, 0.2);
}

.atp-map-canvas .atp-map-cluster-hot div {
  background: linear-gradient(135deg, #ffd75f 0%, #f2a81d 100%);
  color: #082d4d;
}

.atp-map-canvas .atp-map-cluster-cool {
  background: rgba(0, 197, 215, 0.24);
  box-shadow: 0 0 0 7px rgba(0, 197, 215, 0.16), 0 10px 18px rgba(8, 45, 77, 0.22);
}

.atp-map-canvas .atp-map-cluster-cool div {
  background: linear-gradient(135deg, #41e0e9 0%, #078fae 100%);
  color: #ffffff;
}

.atp-map-legend {
  min-width: 138px;
  padding: 10px 12px;
  border: 1px solid rgba(205, 218, 230, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.93);
  color: var(--atp-directory-ink);
  box-shadow: 0 10px 24px rgba(8, 45, 77, 0.12);
  font-size: 13px;
  font-weight: 700;
}

.atp-map-legend-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.atp-map-legend-row + .atp-map-legend-row {
  margin-top: 7px;
}

.atp-map-legend-pin {
  position: relative;
  display: inline-block;
  width: 13px;
  height: 13px;
  border: 2px solid #ffffff;
  border-radius: 50% 50% 50% 0;
  background: #19aef0;
  box-shadow: 0 0 10px rgba(25, 185, 255, 0.82);
  transform: rotate(-45deg);
}

.atp-map-legend-dot {
  width: 12px;
  height: 12px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  box-shadow: 0 0 10px currentColor;
}

.atp-map-legend-dot-hot {
  background: #f6b324;
  color: #f6b324;
}

.atp-map-legend-dot-cool {
  background: #0aa7bf;
  color: #0aa7bf;
}

.atp-map-canvas .leaflet-popup-content-wrapper,
.atp-map-canvas .leaflet-popup-tip {
  border: 1px solid rgba(205, 218, 230, 0.9);
  background: #ffffff;
  color: var(--atp-directory-ink);
  box-shadow: 0 16px 30px rgba(8, 45, 77, 0.18);
}

.atp-map-canvas .leaflet-popup-content {
  margin: 13px 16px;
}

.atp-map-canvas .atp-map-popup-title {
  color: var(--atp-directory-ink);
}

.atp-map-canvas .atp-map-popup-location,
.atp-map-canvas .atp-map-popup-address {
  color: var(--atp-directory-muted);
}

.atp-map-canvas .atp-map-popup a {
  color: #176faa;
  font-weight: 800;
}

.atp-map-panel.is-sidebar-collapsed .atp-map-canvas {
  height: clamp(620px, 76vh, 820px);
  min-height: 0;
}

.atp-featured-sidebar {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  max-height: none;
  min-width: 0;
  min-height: 0;
  padding: 18px;
  border: 1px solid rgba(205, 218, 230, 0.88);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 18px 34px rgba(8, 45, 77, 0.11);
}

.atp-featured-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
}

.atp-featured-heading-row h3 {
  margin: 0;
  color: var(--atp-directory-ink);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
}

.atp-featured-context-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.atp-featured-context {
  margin: 0;
  color: var(--atp-directory-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.atp-featured-locate-button {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid rgba(23, 111, 170, 0.18);
  border-radius: 999px;
  background: #eef8fd;
  color: #176faa;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.atp-featured-locate-button:hover,
.atp-featured-locate-button:focus {
  border-color: #176faa;
  background: #176faa;
  color: #ffffff;
}

.atp-featured-view-all {
  padding: 0;
  border: 0;
  background: transparent;
  color: #176faa;
  font-size: 13px;
  font-weight: 800;
}

.atp-featured-view-all:hover,
.atp-featured-view-all:focus {
  color: var(--atp-directory-ink);
  text-decoration: underline;
}

.atp-featured-list {
  display: flex;
  flex-direction: column;
  flex: 0 0 639px;
  gap: 9px;
  min-height: 639px;
  max-height: 639px;
  overflow: hidden;
  padding-right: 3px;
}

.atp-featured-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 12px;
  height: 72px;
  min-height: 72px;
  padding: 8px 10px;
  border: 1px solid #dce7ef;
  border-radius: 12px;
  background: #ffffff;
  color: var(--atp-directory-ink);
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.atp-featured-item:hover,
.atp-featured-item:focus {
  border-color: #b8ccdc;
  color: var(--atp-directory-ink);
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(8, 45, 77, 0.1);
  transform: translateY(-2px);
}

.atp-featured-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  overflow: hidden;
  border: 1px solid #d9e5ee;
  border-radius: 50%;
  background: #f7fbfe;
}

.atp-featured-logo img {
  display: block;
  max-width: 86%;
  max-height: 86%;
  object-fit: contain;
}

.atp-featured-logo span {
  color: #176faa;
  font-size: 17px;
  font-weight: 900;
}

.atp-featured-copy {
  min-width: 0;
}

.atp-featured-copy strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--atp-directory-ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.atp-featured-meta {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: var(--atp-directory-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.atp-featured-pagination {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: auto;
  min-height: 38px;
  padding: 4px 0;
}

.atp-featured-pagination.is-hidden {
  visibility: hidden;
  pointer-events: none;
}

.atp-featured-page-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid #c8d9e6;
  border-radius: 999px;
  background: #ffffff;
  color: #176faa;
  font-size: 18px;
  line-height: 1;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.atp-featured-page-button:hover,
.atp-featured-page-button:focus {
  border-color: #176faa;
  background: #176faa;
  color: #ffffff;
}

.atp-featured-page-button:disabled {
  cursor: not-allowed;
  border-color: #d8e4ed;
  background: #f4f8fb;
  color: #9dafbf;
}

.atp-featured-page-status {
  min-width: 76px;
  color: var(--atp-directory-muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.atp-featured-country {
  max-width: 118px;
  overflow: hidden;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--atp-directory-sky);
  color: #176faa;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.atp-featured-arrow {
  grid-column: 3;
  justify-self: end;
  color: #176faa;
  font-size: 18px;
}

.atp-featured-empty {
  margin: 0;
  padding: 14px;
  border: 1px dashed #c6d7e6;
  border-radius: 12px;
  color: var(--atp-directory-muted);
  font-weight: 700;
}

.atp-map-empty {
  display: none;
  margin-bottom: 12px;
  padding: 14px 18px;
  background: #f8fbfd;
  border: 1px solid #d4e1eb;
  border-radius: 12px;
  color: var(--atp-directory-ink);
  font-weight: 700;
}

.atp-map-empty.is-active {
  display: block;
}

.atp-map-note {
  margin-bottom: 12px;
  color: var(--atp-directory-muted);
  font-size: 13px;
  font-weight: 600;
}

.atp-map-popup-title {
  margin: 0 0 4px;
  color: var(--atp-directory-ink);
  font-weight: 800;
}

.atp-map-popup-location,
.atp-map-popup-address {
  margin: 0 0 5px;
}

.atp-directory-assurance {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  max-width: 1180px;
  margin: 26px auto 0;
  padding: 16px 22px;
  border: 1px solid rgba(90, 169, 220, 0.3);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(236, 248, 255, 0.96)),
    radial-gradient(circle at 6% 50%, rgba(248, 195, 72, 0.16), transparent 28%);
  box-shadow: 0 16px 32px rgba(8, 45, 77, 0.1);
  color: var(--atp-directory-ink);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
}

.atp-directory-assurance .fa {
  display: inline-flex;
  flex: 0 0 38px;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: linear-gradient(135deg, #176faa, #2e8bc8);
  box-shadow: 0 10px 22px rgba(23, 111, 170, 0.24);
  color: #ffffff;
  font-size: 18px;
}

.atp-directory-compliance-note {
  max-width: 1180px;
  margin: 10px auto 0;
  color: #4f6377;
  font-size: 13.5px;
  line-height: 1.55;
  text-align: center;
}

@media (max-width: 1199px) {
  body.page-atp-directory-modern .atp-directory-page-shell > .atp-directory-hero .container,
  body.page-atp-directory-modern .atp-directory-ribbon-inner.container,
  body.page-atp-directory-modern .atp-directory-content > .container {
    width: min(100% - 32px, 1200px) !important;
  }

  body.page-atp-directory-modern .atp-directory-page-shell > .atp-directory-hero .container {
    width: 100% !important;
    padding-left: 12px !important;
  }

  .atp-directory-controls {
    grid-template-columns: minmax(230px, 1fr) minmax(230px, 1fr);
  }

  .atp-directory-hero {
    min-height: 236px;
    background-position: center, center, right center;
    background-size: 100% 100%, 100% 100%, 58% auto;
  }

  .atp-directory-hero::after {
    left: calc(42% - 18px);
    width: 220px;
  }

  .atp-directory-hero-content {
    max-width: 700px;
    min-height: 236px;
    padding-top: 24px;
    padding-bottom: 12px;
  }

  .atp-directory-hero .atp-directory-hero-kicker {
    margin-left: -5px;
  }

  .atp-directory-hero-content::before {
    top: 28px;
    height: 22px;
  }

  .atp-directory-hero-content::after {
    top: 66px;
    bottom: 22px;
  }

  .atp-directory-hero h1 {
    font-size: 34px;
  }

  .atp-directory-view-controls {
    grid-column: 1 / -1;
  }

  .page-atp-directory-modern .atp-grid-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-atp-directory-modern #grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .atp-landing-layout {
    grid-template-columns: 1fr;
  }

  .atp-featured-sidebar {
    height: auto;
    max-height: none;
  }

  .atp-featured-list {
    flex: 0 0 auto;
    min-height: 0;
    max-height: min(58vh, 639px);
    overflow-y: auto;
  }
}

@media (max-width: 767px) {
  body.page-atp-directory-modern .atp-directory-page-shell > .atp-directory-hero .container,
  body.page-atp-directory-modern .atp-directory-ribbon-inner.container,
  body.page-atp-directory-modern .atp-directory-content > .container {
    width: calc(100% - 28px) !important;
  }

  body.page-atp-directory-modern .atp-directory-page-shell > .atp-directory-hero .container {
    width: 100% !important;
    padding-left: 0 !important;
  }

  .atp-directory-hero {
    min-height: 0;
    background-position: center, center, 62% 50%;
    background-size: 100% 100%, 100% 100%, cover;
  }

  .atp-directory-hero::before,
  .atp-directory-hero::after {
    display: none;
  }

  .atp-directory-hero-content {
    max-width: none;
    min-height: 0;
    padding: 26px 18px 22px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.96) 0%, rgba(10, 15, 21, 0.94) 100%);
  }

  .atp-directory-hero .atp-directory-hero-kicker {
    margin-left: 0;
  }

  .atp-directory-hero-content::before {
    display: none;
  }

  .atp-directory-hero-content::after {
    display: none;
  }

  .atp-directory-hero h1 {
    font-size: 30px;
    white-space: normal;
  }

  .atp-directory-hero-emphasis {
    white-space: normal;
  }

  .atp-directory-hero p {
    font-size: 16px;
  }

  .atp-directory-trust-strip {
    grid-template-columns: 1fr;
    width: 100%;
    margin-top: 14px;
    overflow: visible;
    background: transparent;
  }

  .atp-directory-trust-pill {
    min-height: 0;
    padding: 8px 0;
    font-size: 14px;
  }

  .atp-directory-trust-pill + .atp-directory-trust-pill {
    padding-left: 0;
    border-top: 1px solid rgba(90, 169, 220, 0.22);
  }

  .atp-directory-trust-pill + .atp-directory-trust-pill::before {
    display: none;
  }

  .atp-directory-trust-pill .fa,
  .atp-directory-trust-pill .fa-solid {
    flex-basis: 24px;
    width: 24px;
    height: 24px;
    font-size: 21px;
  }

  .atp-directory-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .atp-directory-hero-primary {
    justify-content: center;
    width: 100%;
    text-align: center;
  }

  .atp-directory-ribbon-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .atp-directory-ribbon-inner span {
    margin-right: 0;
  }

  .atp-directory-ribbon-inner a {
    padding: 5px 0;
  }

  .atp-directory-ribbon-inner a + a::before {
    display: none;
  }

  .atp-directory-controls {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px;
    justify-items: stretch;
  }

  .atp-directory-quick-filters {
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .atp-directory-quick-label {
    flex: 0 0 100%;
    margin: 0 0 2px;
    text-align: center;
  }

  .atp-directory-active-filter {
    align-items: center;
    flex-direction: column;
    text-align: center;
  }

  .atp-directory-view-controls {
    justify-content: center;
    justify-self: center;
    width: 100%;
    white-space: normal;
  }

  .page-atp-directory-modern .atp-grid-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .page-atp-directory-modern .atp-grid-stat-card {
    justify-content: center;
    min-height: 78px;
    padding: 16px 18px;
    text-align: left;
  }

  .page-atp-directory-modern .atp-grid-heading h2 {
    font-size: 22px !important;
  }

  .page-atp-directory-modern #grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    min-height: 0;
  }

  .page-atp-directory-modern #grid .media-box-container {
    height: auto !important;
    min-height: 0;
  }

  .page-atp-directory-modern #grid .media-box-image {
    flex-basis: 190px;
    height: 190px !important;
  }

  .page-atp-directory-modern #grid .atp-card-logo-badge {
    left: 16px;
    bottom: -38px;
    width: 76px;
    height: 76px;
    border-radius: 16px;
  }

  .page-atp-directory-modern #grid .media-box-content {
    padding: 50px 16px 10px !important;
  }

  .page-atp-directory-modern #grid .media-box-title {
    flex: 0 0 auto;
    min-height: 0;
    max-height: none;
    display: block;
    overflow: visible;
    font-size: 18px !important;
    line-height: 1.22 !important;
    -webkit-box-orient: unset;
    -webkit-line-clamp: unset;
  }

  .page-atp-directory-modern #grid .atp-card-provider-summary {
    -webkit-line-clamp: 4;
  }

  .atp-view-toggle {
    min-height: 44px;
    min-width: 92px;
  }

  .atp-map-sidebar-toggle {
    top: 18px;
    right: 18px;
    min-height: 36px;
    padding: 8px 11px;
  }

  .atp-map-canvas {
    height: 440px;
    min-height: 440px;
  }

  .atp-map-panel.is-sidebar-collapsed .atp-map-canvas {
    height: 440px;
    min-height: 440px;
  }

  .atp-featured-list {
    flex: 0 0 auto;
    min-height: 0;
    max-height: 420px;
    overflow-y: auto;
  }

  .atp-featured-context-row {
    flex-direction: column;
  }

  .atp-directory-assurance {
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    font-size: 15.5px;
    text-align: left;
  }

  .atp-directory-assurance .fa {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
    font-size: 16px;
  }

  .atp-directory-compliance-note {
    font-size: 13px;
    text-align: left;
  }
}
