.tbf-page {
  background: #f5f7f9;
  color: #17202a;
  padding: clamp(2rem, 5vw, 4.5rem) 1rem;
}

/* The Elementor/theme footer is not compatible with the directory layout. */
body.tbf-no-theme-footer .elementor-location-footer,
body.tbf-no-theme-footer [data-elementor-type="footer"],
body.tbf-no-theme-footer #colophon,
body.tbf-no-theme-footer #footer,
body.tbf-no-theme-footer .site-footer,
body.tbf-no-theme-footer #page > footer,
body.tbf-no-theme-footer > footer {
  display: none !important;
}

.tbf-container {
  margin: 0 auto;
  max-width: 1180px;
}

.tbf-page-header {
  margin-bottom: 2rem;
  max-width: 760px;
}

.tbf-page-header h1,
.tbf-profile h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.08;
  margin: 0 0 .65rem;
}

.tbf-filters {
  align-items: end;
  background: #fff;
  border: 1px solid #dfe5ea;
  border-radius: 14px;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(220px, 2fr) minmax(180px, 1fr) minmax(120px, .6fr) auto;
  padding: 1.25rem;
}

.tbf-filters label {
  display: block;
  font-size: .85rem;
  font-weight: 700;
  margin-bottom: .35rem;
}

.tbf-filters input,
.tbf-filters select,
.tbf-filters button {
  border: 1px solid #b7c2ca;
  border-radius: 8px;
  box-sizing: border-box;
  min-height: 44px;
  padding: .65rem .75rem;
  width: 100%;
}

.tbf-filters button {
  background: #145a46;
  border-color: #145a46;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  padding-left: 1.35rem;
  padding-right: 1.35rem;
}

.tbf-results-count {
  color: #52616b;
  margin: 1.5rem 0 .85rem;
}

.tbf-browse {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.tbf-browse-block {
  background: #fff;
  border: 1px solid #dfe5ea;
  border-radius: 14px;
  padding: 1.25rem;
}

.tbf-browse-block h2 {
  font-size: 1.35rem;
  margin: 0 0 1rem;
}

.tbf-map-intro {
  color: #52616b;
  margin: -.35rem 0 1rem;
}

.tbf-map-wrap {
  background: linear-gradient(145deg, #f5faf7, #edf5f1);
  border: 1px solid #d7e5de;
  border-radius: 14px;
  margin: 0 auto;
  max-width: 980px;
  overflow: hidden;
  padding: clamp(.5rem, 2vw, 1.25rem);
}

.tbf-locality-map {
  display: block;
  height: auto;
  margin: 0 auto;
  max-height: 620px;
  width: 100%;
}

.tbf-county-shape {
  fill: #dcece4;
  stroke: #145a46;
  stroke-linejoin: round;
  stroke-width: 2.5;
}

.tbf-map-marker {
  cursor: pointer;
  outline: none;
}

.tbf-map-marker-halo {
  fill: rgba(207, 104, 48, .18);
  transition: fill .15s ease, transform .15s ease;
  transform-box: fill-box;
  transform-origin: center;
}

.tbf-map-marker-dot {
  fill: #cf6830;
  stroke: #fff;
  stroke-width: 2.5;
  transition: fill .15s ease, transform .15s ease;
  transform-box: fill-box;
  transform-origin: center;
}

.tbf-map-marker:hover .tbf-map-marker-halo,
.tbf-map-marker:focus .tbf-map-marker-halo {
  fill: rgba(20, 90, 70, .2);
  transform: scale(1.2);
}

.tbf-map-marker:hover .tbf-map-marker-dot,
.tbf-map-marker:focus .tbf-map-marker-dot {
  fill: #145a46;
  transform: scale(1.15);
}

.tbf-map-label {
  display: none;
  fill: #123e33;
  font-size: 14px;
  font-weight: 800;
  paint-order: stroke;
  pointer-events: none;
  stroke: #f5faf7;
  stroke-linejoin: round;
  stroke-width: 5px;
}

.tbf-map-marker.is-major .tbf-map-label,
.tbf-map-marker:hover .tbf-map-label,
.tbf-map-marker:focus .tbf-map-label {
  display: block;
}

.tbf-map-source {
  color: #6d7880;
  font-size: .75rem;
  margin: .65rem 0 0;
  text-align: right;
}

.tbf-map-source a {
  color: inherit;
}

.tbf-link-grid {
  display: grid;
  gap: .65rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tbf-link-grid a {
  background: #f5f7f9;
  border-radius: 9px;
  color: #163f35;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: .75rem;
  text-decoration: none;
}

.tbf-link-grid a:hover,
.tbf-link-grid a:focus-visible {
  background: #e3f4ec;
}

.tbf-link-grid span {
  font-weight: 700;
}

.tbf-link-grid small {
  color: #6d7880;
  margin-top: .2rem;
}

.tbf-category-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tbf-profile {
  background: #fff;
  border: 1px solid #dfe5ea;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(16, 39, 55, .05);
}

.tbf-table-wrap {
  background: #fff;
  border: 1px solid #dfe5ea;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(16, 39, 55, .05);
  overflow-x: auto;
}

.tbf-companies-table {
  border: 0;
  border-collapse: collapse;
  margin: 0;
  min-width: 900px;
  width: 100%;
}

.tbf-companies-table th,
.tbf-companies-table td {
  border: 0;
  border-bottom: 1px solid #e6eaed;
  padding: .9rem 1rem;
  text-align: left;
  vertical-align: middle;
}

.tbf-companies-table th {
  background: #f2f5f4;
  color: #33443f;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.tbf-companies-table tbody tr:last-child td {
  border-bottom: 0;
}

.tbf-companies-table tbody tr:hover {
  background: #f8fbfa;
}

.tbf-company-name {
  min-width: 260px;
  width: 34%;
}

.tbf-company-name a {
  color: #145a46;
  font-weight: 800;
  text-decoration: none;
}

.tbf-company-name a:hover,
.tbf-company-name a:focus-visible {
  text-decoration: underline;
}

.tbf-company-name .tbf-badge {
  margin-left: .45rem;
}

.tbf-muted,
.tbf-source {
  color: #6d7880;
  font-size: .88rem;
}

.tbf-badge {
  background: #e3f4ec;
  border-radius: 999px;
  color: #145a46;
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  padding: .25rem .55rem;
}

.tbf-pagination {
  display: flex;
  gap: .4rem;
  justify-content: center;
  margin-top: 2rem;
}

.tbf-pagination .page-numbers {
  background: #fff;
  border: 1px solid #dfe5ea;
  border-radius: 7px;
  padding: .45rem .7rem;
  text-decoration: none;
}

.tbf-pagination .current {
  background: #145a46;
  color: #fff;
}

.tbf-profile {
  margin: 0 auto;
  max-width: 880px;
  padding: clamp(1.25rem, 4vw, 3rem);
}

.tbf-back {
  color: #145a46;
  display: inline-block;
  margin-bottom: 1.5rem;
  text-decoration: none;
}

.tbf-note {
  background: #fff7d6;
  border-left: 4px solid #d5a514;
  margin: 1.5rem 0;
  padding: .9rem 1rem;
}

.tbf-details {
  display: grid;
  grid-template-columns: minmax(150px, .7fr) minmax(0, 2fr);
  margin: 2rem 0;
}

.tbf-details dt,
.tbf-details dd {
  border-bottom: 1px solid #edf0f2;
  margin: 0;
  padding: .8rem 0;
}

.tbf-details dt {
  color: #52616b;
  font-weight: 600;
  padding-right: 1rem;
}

.tbf-source {
  border-top: 1px solid #dfe5ea;
  padding-top: 1rem;
}

@media (max-width: 850px) {
  .tbf-filters,
  .tbf-link-grid,
  .tbf-category-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .tbf-filters,
  .tbf-link-grid,
  .tbf-category-grid,
  .tbf-details {
    grid-template-columns: 1fr;
  }

  .tbf-details dt {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .tbf-map-wrap {
    margin-left: -.5rem;
    margin-right: -.5rem;
  }

  .tbf-map-label {
    font-size: 16px;
  }
}
