/*
 * THF compact card system — city / cuisine / tag / mixed / directory.
 * Grid default; list view class toggled by thf-archive-cards.js.
 */
:is(.thf-directory-page, .thf-location-hub) {
  --thf-card-ink:#f4f8fa;
  --thf-card-muted:#c6d3d9;
  --thf-card-mint:#82e7ae;
  --thf-card-surface:#102129;
  --thf-card-outline:#2a4246;
  --thf-card-cover-h:185px;
  --thf-card-logo-size:78px;
}
:is(.thf-directory-page, .thf-location-hub) .thf-card-view-toolbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  width:100%;
  margin:0 0 15px;
  min-height:42px;
  color:#f4f8fa;
}
:is(.thf-directory-page, .thf-location-hub) .thf-card-view-toolbar__summary {
  display:flex;
  align-items:baseline;
  flex-wrap:wrap;
  gap:7px 13px;
  min-width:0;
}
:is(.thf-directory-page, .thf-location-hub) .thf-card-view-toolbar__count {
  font-size:15px;
  font-weight:750;
  letter-spacing:-.025em;
  line-height:1.25;
  white-space:nowrap;
  color:#f4f8fa;
}
:is(.thf-directory-page, .thf-location-hub) .thf-card-view-toolbar__count strong {
  color:#f4f8fa;
  font-weight:850;
  font-variant-numeric:tabular-nums;
}
:is(.thf-directory-page, .thf-location-hub) .thf-card-view-toolbar__range {
  color:#8ea6ab;
  font-size:11px;
  font-weight:600;
}
:is(.thf-directory-page, .thf-location-hub) .thf-card-view-toolbar__switch {
  display:flex;
  align-items:center;
  gap:7px;
  flex-shrink:0;
}
:is(.thf-directory-page, .thf-location-hub) .thf-card-view-toolbar__switch button {
  width:36px;
  height:36px;
  min-width:36px;
  display:grid;
  place-items:center;
  padding:0;
  margin:0;
  border:1px solid #27393f;
  border-radius:9px;
  background:#14242c;
  color:#c0cbd0;
  box-shadow:0 2px 7px #0005;
  font-size:15px;
  line-height:1;
  cursor:pointer;
  transition:background .18s ease,color .18s ease,border-color .18s ease;
}
:is(.thf-directory-page, .thf-location-hub) .thf-card-view-toolbar__switch button.is-active,
:is(.thf-directory-page, .thf-location-hub) .thf-card-view-toolbar__switch button[aria-pressed="true"] {
  background:#67d997;
  border-color:#67d997;
  color:#071912;
}
:is(.thf-directory-page, .thf-location-hub) .thf-card-view-toolbar__switch button:hover {
  border-color:#91f0b9;
}
:is(.thf-directory-page, .thf-location-hub) .thf-card-view-toolbar__switch button:focus-visible,
:is(.thf-directory-page, .thf-location-hub) .thf-card-favourite:focus-visible {
  outline:2px solid #a3f7c4 !important;
  outline-offset:3px;
}
/* The new toolbar replaces the old duplicate section heading. */
.thf-category-hub .thf-category-toolbar,
.thf-combination-hub .thf-combination-toolbar {
  margin:0 0 15px !important;
  display:block !important;
}
.thf-category-hub .thf-category-toolbar .thf-card-view-toolbar,
.thf-combination-hub .thf-combination-toolbar .thf-card-view-toolbar {
  margin:0 !important;
}
.thf-directory-page .thf-directory-toolbar {
  min-height:0;
  padding:0 2px 14px;
  gap:10px;
}
.thf-directory-page .thf-directory-toolbar .thf-card-view-toolbar {
  margin:0;
}
/* Card geometry — about 20% less tall than the reference, not taller. */
body .thf-directory-page .thf-directory-card,
body.tax-location .thf-location-hub .thf-city-card {
  position:relative;
  display:flex;
  flex-direction:column;
  min-width:0;
  overflow:hidden;
  border:1px solid var(--thf-card-outline) !important;
  border-radius:16px !important;
  background:linear-gradient(180deg,#162b34 0%,#0c1c24 100%) !important;
  box-shadow:0 2px 0 #0005,0 12px 28px #0002;
  isolation:isolate;
}
body .thf-directory-page .thf-directory-card:hover,
body.tax-location .thf-location-hub .thf-city-card:hover {
  border-color:#75dba1 !important;
  transform:translateY(-2px);
}
body .thf-directory-page .thf-directory-card__media,
body.tax-location .thf-location-hub .thf-city-card__media {
  display:block;
  position:relative;
  flex:0 0 auto;
  height:var(--thf-card-cover-h) !important;
  min-height:0 !important;
  width:100%;
  aspect-ratio:auto !important;
  background:#142630 !important;
  border:0;
  z-index:1;
}
body .thf-directory-page .thf-directory-card__media {
  overflow:hidden;
}
body.tax-location .thf-location-hub .thf-city-card__media {
  overflow:visible !important;
}
body .thf-directory-page .thf-directory-card__media > img,
body.tax-location .thf-location-hub .thf-city-card__media > img,
body.tax-location .thf-location-hub .thf-city-card__media picture,
body.tax-location .thf-location-hub .thf-city-card__media picture img {
  width:100% !important;
  height:100% !important;
  max-width:none;
  object-fit:cover !important;
}
body .thf-directory-page .thf-directory-card__shade {
  background:linear-gradient(180deg,rgba(3,11,13,.03),rgba(3,11,13,.28));
}
body .thf-directory-page .thf-directory-card__avatar {
  display:grid !important;
  position:absolute !important;
  top:calc(var(--thf-card-cover-h) - 35px) !important;
  left:13px !important;
  z-index:5;
  width:var(--thf-card-logo-size) !important;
  height:var(--thf-card-logo-size) !important;
  min-height:0 !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:13px !important;
  box-shadow:0 4px 11px #0008 !important;
  background:transparent !important;
  overflow:hidden;
  place-items:center;
}
body .thf-directory-page .thf-directory-card__avatar img {
  width:100% !important;
  height:100% !important;
  padding:0 !important;
  object-fit:contain !important;
  border-radius:12px !important;
  background:transparent !important;
}
body.tax-location .thf-location-hub .thf-city-card__logo {
  display:grid !important;
  position:absolute;
  bottom:-33px !important;
  left:13px !important;
  z-index:5;
  width:var(--thf-card-logo-size) !important;
  height:var(--thf-card-logo-size) !important;
  padding:0 !important;
  border:0 !important;
  border-radius:13px !important;
  background:transparent !important;
  box-shadow:0 4px 11px #0008 !important;
  overflow:hidden;
  place-items:center;
}
body.tax-location .thf-location-hub .thf-city-card__logo img {
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;
  background:transparent !important;
}
body .thf-directory-page .thf-directory-card__body,
body.tax-location .thf-location-hub .thf-city-card__body {
  display:flex !important;
  flex:1 1 auto;
  flex-direction:column;
  gap:8px;
  min-width:0;
  padding:13px 13px 13px !important;
  background:transparent !important;
}
body .thf-directory-page .thf-directory-card:has(.thf-directory-card__avatar) .thf-directory-card__body,
body.tax-location .thf-location-hub .thf-city-card:has(.thf-city-card__logo) .thf-city-card__body {
  padding-top:calc(var(--thf-card-logo-size) - 23px) !important;
}
body .thf-directory-page .thf-directory-card__title-row {
  display:block !important;
  min-width:0;
}
body .thf-directory-page .thf-directory-card__title-row > div {
  min-width:0;
}
body.tax-location .thf-location-hub .thf-city-card__title-line {
  display:flex !important;
  gap:5px;
  align-items:flex-start;
}
body .thf-directory-page .thf-directory-card h3,
body.tax-location .thf-location-hub .thf-city-card h3 {
  color:var(--thf-card-ink) !important;
  font-size:19px !important;
  line-height:1.15 !important;
  letter-spacing:-.035em;
  font-weight:800 !important;
  margin:0 0 2px !important;
  padding:0 !important;
  overflow-wrap:anywhere;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
}
body .thf-directory-page .thf-directory-card h3 a,
body.tax-location .thf-location-hub .thf-city-card h3 a {
  color:#f5fafb !important;
}
body .thf-directory-page .thf-directory-card__body > .thf-card-fact,
body.tax-location .thf-location-hub .thf-city-card__body > .thf-card-fact,
body .thf-directory-page .thf-directory-card__title-row .thf-card-fact,
body.tax-location .thf-location-hub .thf-city-card__body .thf-card-fact {
  display:grid !important;
  grid-template-columns:16px minmax(0,1fr);
  align-items:start;
  gap:8px;
  width:100%;
  min-width:0;
  min-height:0 !important;
  padding:0 !important;
  margin:0 !important;
  border:0;
  font-size:12px !important;
  font-weight:500;
  line-height:1.38 !important;
  color:var(--thf-card-muted) !important;
  background:none !important;
}
body .thf-directory-page .thf-card-fact > i,
body.tax-location .thf-location-hub .thf-card-fact > i {
  color:#d0e0e4 !important;
  font-size:13px;
  line-height:1.4;
  margin-top:0;
  text-align:center;
}
body .thf-directory-page .thf-card-fact--location,
body.tax-location .thf-location-hub .thf-card-fact--location {
  color:var(--thf-card-mint) !important;
  font-weight:800;
}
body .thf-directory-page .thf-card-fact--location i,
body.tax-location .thf-location-hub .thf-card-fact--location i {
  color:#87e5b0 !important;
}
body .thf-directory-page .thf-card-fact--location a,
body.tax-location .thf-location-hub .thf-card-fact--location a {
  color:#8deab7 !important;
  font-size:12px !important;
  font-weight:800 !important;
  text-decoration:none !important;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
body .thf-directory-page .thf-card-fact > span,
body.tax-location .thf-location-hub .thf-card-fact > span {
  display:-webkit-box;
  min-width:0;
  overflow:hidden;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow-wrap:anywhere;
}
body .thf-directory-page .thf-card-fact--food > span,
body.tax-location .thf-location-hub .thf-card-fact--food > span {
  -webkit-line-clamp:2;
}
body .thf-directory-page .thf-directory-card__link,
body.tax-location .thf-location-hub .thf-city-card__action {
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  gap:8px;
  width:100%;
  min-width:0;
  min-height:36px;
  padding:7px 12px;
  margin-top:auto !important;
  border:1px solid #6cda9e !important;
  border-radius:999px !important;
  color:#85e5af !important;
  background:rgba(6,26,27,.2) !important;
  font-size:13px !important;
  font-weight:800 !important;
  line-height:1.2;
  text-align:center;
  text-decoration:none !important;
}
body .thf-directory-page .thf-directory-card__link:hover,
body.tax-location .thf-location-hub .thf-city-card__action:hover {
  background:rgba(69,210,139,.14) !important;
  color:#bdffd8 !important;
}
:is(.thf-directory-page, .thf-location-hub) .thf-card-favourite {
  position:absolute;
  top:9px;
  right:9px;
  z-index:8;
  display:grid;
  place-items:center;
  width:35px;
  height:35px;
  padding:0;
  margin:0;
  border:1px solid rgba(255,255,255,.08);
  border-radius:999px;
  background:rgba(7,19,23,.25);
  color:#fff;
  text-shadow:0 1px 3px #000;
  font-size:20px;
  line-height:1;
  cursor:pointer;
  transition:background .18s ease,color .18s ease,transform .18s ease;
}
:is(.thf-directory-page, .thf-location-hub) .thf-card-favourite:hover {
  background:rgba(7,19,23,.72);
  transform:scale(1.04);
}
:is(.thf-directory-page, .thf-location-hub) .thf-card-favourite.is-saved {
  color:#78e5ad;
  background:rgba(8,35,28,.84);
}
:is(.thf-directory-page, .thf-location-hub) .thf-directory-verified {
  top:9px;
  left:9px;
  max-width:calc(100% - 60px);
  font-size:9px;
}
@media (max-width:980px) {
  :is(.thf-directory-page, .thf-location-hub) {
    --thf-card-cover-h:150px;
    --thf-card-logo-size:68px;
  }
}
@media (max-width:640px) {
  :is(.thf-directory-page, .thf-location-hub) {
    --thf-card-cover-h:122px;
    --thf-card-logo-size:70px;
  }
  body .thf-directory-page .thf-directory-grid,
  body.tax-location .thf-location-hub .thf-city-section__grid {
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:9px !important;
  }
  :is(.thf-directory-page, .thf-location-hub) .thf-card-view-toolbar {
    margin-bottom:12px;
    gap:8px;
  }
  :is(.thf-directory-page, .thf-location-hub) .thf-card-view-toolbar__count {
    font-size:12px;
  }
  :is(.thf-directory-page, .thf-location-hub) .thf-card-view-toolbar__range {
    font-size:10px;
  }
  :is(.thf-directory-page, .thf-location-hub) .thf-card-view-toolbar__switch button {
    width:33px;
    height:33px;
    min-width:33px;
    font-size:14px;
    border-radius:8px;
  }
  :is(.thf-directory-page, .thf-location-hub) .thf-card-view-toolbar__switch {
    gap:6px;
  }
  body .thf-directory-page .thf-directory-card__avatar {
    top:calc(var(--thf-card-cover-h) - 42px) !important;
    left:10px !important;
  }
  body.tax-location .thf-location-hub .thf-city-card__logo {
    bottom:-27px !important;
    left:10px !important;
  }
  body .thf-directory-page .thf-directory-card__body,
  body.tax-location .thf-location-hub .thf-city-card__body {
    gap:6px;
    padding:10px 9px 10px !important;
  }
  body .thf-directory-page .thf-directory-card:has(.thf-directory-card__avatar) .thf-directory-card__body,
  body.tax-location .thf-location-hub .thf-city-card:has(.thf-city-card__logo) .thf-city-card__body {
    padding-top:36px !important;
  }
  body .thf-directory-page .thf-directory-card h3,
  body.tax-location .thf-location-hub .thf-city-card h3 {
    font-size:clamp(16px,4.4vw,18px) !important;
    line-height:1.18 !important;
    letter-spacing:-.025em;
    min-height:0;
  }
  body .thf-directory-page .thf-directory-card__body > .thf-card-fact,
  body.tax-location .thf-location-hub .thf-city-card__body > .thf-card-fact,
  body .thf-directory-page .thf-directory-card__title-row .thf-card-fact {
    grid-template-columns:13px minmax(0,1fr);
    gap:5px;
    font-size:10.5px !important;
    line-height:1.34 !important;
  }
  body .thf-directory-page .thf-card-fact > i,
  body.tax-location .thf-location-hub .thf-card-fact > i {
    font-size:11px;
  }
  body .thf-directory-page .thf-card-fact--location a,
  body.tax-location .thf-location-hub .thf-card-fact--location a {
    font-size:11px !important;
  }
  body .thf-directory-page .thf-directory-card__link,
  body.tax-location .thf-location-hub .thf-city-card__action {
    min-height:32px;
    padding:6px 5px;
    font-size:11px !important;
  }
  :is(.thf-directory-page, .thf-location-hub) .thf-card-favourite {
    top:6px;right:6px;
    width:30px;height:30px;
    font-size:17px;
  }
}
/* List view shows genuinely horizontal cards, not just one giant grid card. */
body .thf-directory-page.is-list-view .thf-directory-grid,
body.tax-location .thf-location-hub.is-list-view .thf-city-section__grid {
  display:grid !important;
  grid-template-columns:minmax(0,1fr) !important;
  gap:12px !important;
}
body .thf-directory-page.is-list-view .thf-directory-card,
body.tax-location .thf-location-hub.is-list-view .thf-city-card {
  display:grid !important;
  grid-template-columns:minmax(135px,32%) minmax(0,1fr);
  min-height:166px;
  align-items:stretch;
}
body .thf-directory-page.is-list-view .thf-directory-card__media,
body.tax-location .thf-location-hub.is-list-view .thf-city-card__media {
  width:100% !important;
  height:100% !important;
  min-height:166px !important;
  overflow:visible !important;
}
body .thf-directory-page.is-list-view .thf-directory-card__media > img,
body.tax-location .thf-location-hub.is-list-view .thf-city-card__media > img {
  width:100% !important;
  height:100% !important;
}
body .thf-directory-page.is-list-view .thf-directory-card__avatar {
  top:auto !important;
  bottom:10px !important;
  left:10px !important;
  width:64px !important;
  height:64px !important;
}
body.tax-location .thf-location-hub.is-list-view .thf-city-card__logo {
  bottom:10px !important;
  left:10px !important;
  width:64px !important;
  height:64px !important;
}
body .thf-directory-page.is-list-view .thf-directory-card__body,
body.tax-location .thf-location-hub.is-list-view .thf-city-card__body,
body .thf-directory-page.is-list-view .thf-directory-card:has(.thf-directory-card__avatar) .thf-directory-card__body,
body.tax-location .thf-location-hub.is-list-view .thf-city-card:has(.thf-city-card__logo) .thf-city-card__body {
  gap:7px;
  padding:13px 15px !important;
}
body .thf-directory-page.is-list-view .thf-directory-card__link,
body.tax-location .thf-location-hub.is-list-view .thf-city-card__action {
  max-width:180px;
  width:auto;
  align-self:flex-start;
  min-height:31px;
  padding:6px 14px;
  margin-top:auto !important;
}
@media (max-width:640px) {
  body .thf-directory-page.is-list-view .thf-directory-card,
  body.tax-location .thf-location-hub.is-list-view .thf-city-card {
    grid-template-columns:minmax(108px,37%) minmax(0,1fr);
    min-height:154px;
    border-radius:12px !important;
  }
  body .thf-directory-page.is-list-view .thf-directory-card__media,
  body.tax-location .thf-location-hub.is-list-view .thf-city-card__media {
    min-height:154px !important;
  }
  body .thf-directory-page.is-list-view .thf-directory-card__avatar,
  body.tax-location .thf-location-hub.is-list-view .thf-city-card__logo {
    width:52px !important;
    height:52px !important;
    bottom:8px !important;
    left:8px !important;
  }
  body .thf-directory-page.is-list-view .thf-directory-card__body,
  body.tax-location .thf-location-hub.is-list-view .thf-city-card__body,
  body .thf-directory-page.is-list-view .thf-directory-card:has(.thf-directory-card__avatar) .thf-directory-card__body,
  body.tax-location .thf-location-hub.is-list-view .thf-city-card:has(.thf-city-card__logo) .thf-city-card__body {
    padding:10px !important;
    gap:5px;
  }
  body .thf-directory-page.is-list-view .thf-directory-card h3,
  body.tax-location .thf-location-hub.is-list-view .thf-city-card h3 {
    font-size:15px !important;
  }
  body .thf-directory-page.is-list-view .thf-directory-card__link,
  body.tax-location .thf-location-hub.is-list-view .thf-city-card__action {
    min-height:30px;
    padding:5px 9px;
  }
}
/* Keep opening-hours status useful without squeezing long names. */
body .thf-directory-page .thf-directory-toolbar > div:first-child { width:100%; }
body .thf-directory-page .thf-directory-card .thf-hours-badge,
body.tax-location .thf-location-hub .thf-city-card .thf-hours-badge {
  display:inline-flex !important;
  position:absolute !important;
  top:9px;
  left:9px;
  z-index:7;
  max-width:calc(100% - 60px);
  padding:4px 7px !important;
  margin:0 !important;
  border:1px solid rgba(255,255,255,.2);
  border-radius:99px;
  font-size:10px !important;
  line-height:1.2 !important;
  white-space:nowrap;
  box-shadow:0 2px 10px #0005;
}
body .thf-directory-page .thf-directory-card.is-verified .thf-hours-badge {
  top:39px;
}
body.tax-location .thf-location-hub .thf-city-card__title-line {
  display:block !important;
}
body.tax-location .thf-location-hub .thf-city-card__verified {
  display:inline-flex;
  position:absolute;
  top:36px;
  left:10px;
  z-index:7;
  font-size:13px !important;
}
body.tax-location .thf-location-hub .thf-card-fact--location { margin-top:1px !important; }
body .thf-directory-page .thf-directory-card__title-row .thf-card-fact--location { margin-top:5px !important; }
/* Ratings on the main directory remain readable beside the new saved-heart control. */
body .thf-directory-page .thf-directory-rating {
  top:47px;
  right:9px;
  z-index:7;
  font-size:9px;
}
@media (max-width:640px) {
  body .thf-directory-page .thf-directory-card .thf-hours-badge,
  body.tax-location .thf-location-hub .thf-city-card .thf-hours-badge {
    top:6px;
    left:6px;
    padding:3px 6px !important;
    font-size:9px !important;
  }
  body .thf-directory-page .thf-directory-card.is-verified .thf-hours-badge {
    top:31px;
  }
  body.tax-location .thf-location-hub .thf-city-card__verified {
    top:32px;
    left:8px;
  }
  body .thf-directory-page .thf-directory-rating {
    top:39px;
    right:6px;
  }
}
@media (prefers-reduced-motion:reduce) {
  :is(.thf-directory-page,.thf-location-hub) .thf-card-favourite,
  :is(.thf-directory-page,.thf-location-hub) :is(.thf-directory-card,.thf-city-card) {
    transition:none;
  }
}

/* Refined archive cards: 90% logo overlap, white PNG backing and inline verification. */
body .thf-directory-page .thf-directory-card,
body.tax-location .thf-location-hub .thf-city-card { border-radius:11.2px !important; }
body .thf-directory-page .thf-directory-card__shade { display:none !important; background:none !important; }
body.tax-location .thf-location-hub .thf-city-card__media::after { display:none !important; background:none !important; }
body .thf-directory-page .thf-directory-card__avatar,
body.tax-location .thf-location-hub .thf-city-card__logo { background:#fff !important; border-radius:9.1px !important; }
body .thf-directory-page .thf-directory-card__avatar img,
body.tax-location .thf-location-hub .thf-city-card__logo img { background:#fff !important; border-radius:8.4px !important; }
body .thf-directory-page:not(.is-list-view) .thf-directory-card__avatar {
  top:calc(var(--thf-card-cover-h) - var(--thf-card-logo-size) * .9) !important;
}
body.tax-location .thf-location-hub:not(.is-list-view) .thf-city-card__logo {
  bottom:calc(var(--thf-card-logo-size) * -.1) !important;
}
body .thf-directory-page:not(.is-list-view) .thf-directory-card .thf-directory-card__body,
body.tax-location .thf-location-hub:not(.is-list-view) .thf-city-card .thf-city-card__body {
  padding-top:7px !important;
}
:is(.thf-directory-page,.thf-location-hub) .thf-card-location-row {
  min-width:0;
  min-height:19px;
  display:flex;
  align-items:flex-start;
}
:is(.thf-directory-page,.thf-location-hub):not(.is-list-view) .thf-card-location-row.has-logo {
  padding-left:calc(var(--thf-card-logo-size) + 8px);
}
body :is(.thf-directory-page,.thf-location-hub) .thf-card-location-row .thf-card-fact--location {
  display:grid !important;
  grid-template-columns:12px minmax(0,1fr);
  gap:5px;
  width:100%;
  min-width:0;
  margin:0 !important;
  padding:0 !important;
  font-size:12px !important;
  line-height:1.3 !important;
}
body :is(.thf-directory-page,.thf-location-hub) .thf-card-location-row .thf-card-fact--location a {
  white-space:normal;
  overflow-wrap:anywhere;
}
body :is(.thf-directory-page,.thf-location-hub) h3 .thf-card-verified-icon {
  display:inline-block !important;
  position:static !important;
  width:.9em !important;
  height:.9em !important;
  max-width:none !important;
  margin:0 0 0 .25em !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:none !important;
  color:#67d997 !important;
  font-size:1em !important;
  line-height:1 !important;
  vertical-align:-.05em;
  box-shadow:none !important;
}
body :is(.thf-directory-page,.thf-location-hub) h3 .thf-card-verified-icon svg {
  display:block;
  width:100%;
  height:100%;
}
body .thf-directory-page .thf-directory-card .thf-hours-badge,
body .thf-directory-page .thf-directory-card.is-verified .thf-hours-badge,
body.tax-location .thf-location-hub .thf-city-card .thf-hours-badge {
  top:6px;
  left:9px;
}
body .thf-directory-page .thf-directory-card__link,
body.tax-location .thf-location-hub .thf-city-card__action { border-radius:13px !important; }
:is(.thf-directory-page,.thf-location-hub).is-list-view .thf-card-location-row { order:1; }
body .thf-directory-page.is-list-view .thf-directory-card__title-row,
body.tax-location .thf-location-hub.is-list-view .thf-city-card__title-line { order:0; }
body .thf-directory-page.is-list-view .thf-directory-card__body > .thf-card-fact,
body.tax-location .thf-location-hub.is-list-view .thf-city-card__body > .thf-card-fact { order:2; }
body .thf-directory-page.is-list-view .thf-directory-card__link,
body.tax-location .thf-location-hub.is-list-view .thf-city-card__action { order:3; }
@media(max-width:640px) {
  body .thf-directory-page .thf-directory-card .thf-hours-badge,
  body .thf-directory-page .thf-directory-card.is-verified .thf-hours-badge,
  body.tax-location .thf-location-hub .thf-city-card .thf-hours-badge { top:4px; left:6px; }
  :is(.thf-directory-page,.thf-location-hub):not(.is-list-view) .thf-card-location-row.has-logo {
    padding-left:calc(var(--thf-card-logo-size) + 6px);
  }
  body :is(.thf-directory-page,.thf-location-hub) .thf-card-location-row .thf-card-fact--location {
    grid-template-columns:10px minmax(0,1fr);
    gap:3px;
    font-size:11px !important;
  }
  body .thf-directory-page.is-list-view .thf-directory-card,
  body.tax-location .thf-location-hub.is-list-view .thf-city-card { border-radius:8.4px !important; }
}
