/*
 * Home page design, loaded from views/home.hbs. views/layouts/profile.hbs also loads it for the shared
 * header and footer styles; no other page gets these rules.
 * Colours come from theme.css and the existing template palette.
 */
:root {
  --hp-ink: var(--secondary, #0e0d1b);
  --hp-blue: var(--primary, #1996cf);
  --hp-deep: var(--primary-dark, #00628f);
  --hp-mid: var(--primary-light, #027eb7);
  --hp-sky: #4db7fe;
  --hp-grad: linear-gradient(115deg, var(--hp-deep), var(--hp-mid) 60%, var(--hp-blue));
  --hp-paper: #f6f8fc;
  --hp-line: #e5e7f2;
  --hp-muted: #5a5f7d;
  --hp-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --hp-sans: 'Manrope', 'Roboto', Arial, sans-serif;
}

body {
  font-family: var(--hp-sans);
  background: var(--hp-deep);
  counter-reset: hp-section;
}
#wrapper { padding-top: 0; }

.hp-wrap {
  width: min(1240px, 100% - 48px);
  margin-inline: auto;
  text-align: left;
}
.main-footer .container,
.recently-viewed-section .container {
  width: min(1240px, 100% - 48px);
  max-width: none;
  padding: 0;
  margin-inline: auto;
}

/* ---------- Header ---------- */
.main-header {
  top: 14px;
  left: max(16px, calc(50% - 660px));
  right: max(16px, calc(50% - 660px));
  width: auto;
  height: 72px;
  padding: 0 12px 0 22px;
  border: 1px solid rgb(255 255 255 / 60%);
  border-radius: 22px;
  background: rgb(255 255 255 / 97%);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px -20px rgb(0 50 80 / 70%);
}
.main-header::before { display: none; }
.logo-holder { top: 6px; height: 60px; }
.logo-holder img { width: auto; height: 60px; }
.nav-holder { top: 0; margin-left: 28px; }
.nav-holder nav li a {
  padding: 26px 15px;
  color: var(--hp-ink);
  font: 600 14px var(--hp-sans);
  transition: none; /* common.js sets the active link after load; the theme's transition animated it on every refresh */
}
.nav-holder nav li a::before { display: none; }
.nav-holder nav li a:hover,
.nav-holder nav li a.act-link { color: var(--hp-deep); }
.nav-holder nav li a.act-link { text-decoration: underline 2px var(--hp-blue); text-underline-offset: 7px; }

.main-header .add-list-head-btn {
  top: 14px;
  height: 44px;
  margin: 0;
  padding: 0 20px;
  border: 0;
  border-radius: 14px;
  background: var(--hp-grad);
  color: #fff;
  font: 700 13px/44px var(--hp-sans);
  box-shadow: none;
  transition: opacity 0.2s;
}
.main-header .add-list-head-btn:hover { opacity: 0.88; }
.main-header .add-list-head-btn span { color: #fff; }

.main-header .show-reg-form {
  top: 14px;
  height: 44px;
  margin-right: 8px;
  padding: 0 16px;
  background: none;
  color: var(--hp-ink);
  font: 700 13px/44px var(--hp-sans);
}
.main-header .show-reg-form::before { display: none; }
.main-header .show-reg-form i,
.main-header .show-reg-form:hover i { color: var(--hp-deep); }
.main-header .show-reg-form:hover { color: var(--hp-deep); }
.header-user-menu { top: 17px; margin-top: 0; }
.header-user-name, .header-user-name span { color: var(--hp-ink); font-family: var(--hp-sans); }
.header-user-name::before { color: var(--hp-ink); }
.header-user-menu::after { display: none; }
.header-user-menu ul { border-radius: 14px; overflow: hidden; }
.nav-button-wrap { top: 14px; border-radius: 14px; background: var(--hp-grad); }

/* ---------- Hero ---------- */
.hp-hero.hero-section {
  padding: 0 !important;
  display: flex;
  align-items: center;
  z-index: 2; /* select2 dropdowns render inside the hero and must overlap the next section, so no overflow clipping here */
  background: var(--hp-grad);
}
.hp-hero .bg-tabs-wrap { position: absolute; inset: 0; overflow: hidden; opacity: 0.22; mix-blend-mode: luminosity; }
.hp-hero__map { position: absolute; top: 0; right: 0; width: min(100%, 1440px); height: 100%; /* capped so pins stay clear of the search bar on huge screens */ color: rgb(255 255 255 / 16%); }
.hp-hero__route { stroke: #fff; stroke-width: 2; stroke-dasharray: 2 9; stroke-linecap: round; }
.hp-hero__pins circle { fill: #fff; }
.hp-pulse { transform-box: fill-box; transform-origin: center; animation: hp-pulse 3s ease-out infinite; }
@keyframes hp-pulse {
  from { transform: scale(1); opacity: 0.6; }
  to { transform: scale(4.5); opacity: 0; }
}
.hp-hero__inner { position: relative; z-index: 3; padding: 124px 0 44px; }
.hp-hero .intro-item { float: none; max-width: 760px; padding: 0; text-align: left; }
.hp-hero__kicker {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 22px;
  color: #fff;
  font: 700 12px var(--hp-sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hp-hero .intro-item h1 {
  margin: 0;
  color: #fff;
  font: 400 clamp(32px, 4.8vw, 64px) / 1.06 var(--hp-serif);
  letter-spacing: -0.02em;
  text-align: left;
  text-shadow: none;
}
.hp-hero h1 em { color: #bfe7ff; font-style: italic; }

/* Search: markup and ids are untouched, home-search-filter.js drives them */
.hp-hero .main-search-input-tabs { float: none; margin-top: 44px; }
.hp-hero .tabs-container, .hp-hero .tab, .hp-hero .tab-content,
.hp-hero .main-search-input-wrap { float: none; max-width: none; margin: 0; padding: 0; background: none; box-shadow: none; }
.hp-hero .main-search-input {
  display: flex;
  float: none;
  align-items: stretch;
  padding: 10px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 40px 80px -30px rgb(0 50 80 / 70%);
}
.hp-hero .main-search-input::before { display: none; }
.hp-hero .main-search-input-item {
  flex: 1 1 0;
  float: none;
  width: auto;
  min-width: 0;
  height: 60px;
  border: 0;
  border-right: 1px solid var(--hp-line);
}
.hp-hero .main-search-input-item:nth-of-type(3) { border-right: 0; }
.hp-hero .main-search-input-item label { top: 0; bottom: 0; left: 16px; display: flex; align-items: center; height: auto; margin: 0; line-height: 1; } /* icon centred at any field height (60px, 52px on phones), and over the Location and Category icons */
.hp-hero .main-search-input-item label i { position: static; line-height: 1; }
.hp-hero .main-search-input-item input {
  height: 60px;
  padding-left: 35px; /* text starts where the Location and Category text does */
  color: var(--hp-ink);
  font: 500 15px var(--hp-sans);
}
.hp-hero .main-search-input-item > .select2-container { top: 5px; } /* base select2 is 50px tall, in a 60px field */
.hp-hero .select2-container .select2-selection--single { border: 0; background: none; }
.hp-hero .select2-selection__rendered { color: var(--hp-muted) !important; font-family: var(--hp-sans) !important; font-size: 15px !important; font-weight: 500 !important; }
.hp-hero .main-search-button {
  position: static;
  float: none;
  flex: none;
  width: auto;
  height: 60px;
  margin: 0 0 0 10px;
  padding: 0 34px;
  border-radius: 14px;
  background: var(--hp-grad) !important; /* the JS sets an inline tint */
  color: #fff;
  font: 700 15px var(--hp-sans);
  transition: opacity 0.2s, background 0.2s;
}
.hp-hero .main-search-button:disabled { opacity: 0.55; }
.hp-hero .main-search-button:not(:disabled):hover { background: var(--hp-mid) !important; }

.hp-hero__popular {
  display: flex;
  padding-right: 64px; /* room for the scroll arrow on the same row */
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 22px;
  color: #fff;
  font: 600 13px var(--hp-sans);
}
.hp-hero__popular span { margin-right: 8px; }
.hp-hero__popular a {
  padding: 6px 14px;
  border: 1px solid rgb(255 255 255 / 45%);
  border-radius: 999px;
  color: #fff;
  transition: background 0.2s, border-color 0.2s;
}
.hp-hero__popular a:hover { border-color: #fff; background: rgb(255 255 255 / 18%); }
.hp-hero__popular a:nth-of-type(n + 6) { display: none; }

.hp-hero .header-sec-link {
  position: absolute;
  z-index: 3;
  left: auto;
  right: max(24px, calc(50% - 620px));
  bottom: 36px; /* centred on the last row of Popular chips (44px padding + half a 32px chip - half this 48px button) */
  width: auto;
  margin: 0;
}
.hp-hero .header-sec-link a {
  position: static;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0;
  border: 1px solid rgb(255 255 255 / 25%);
  border-radius: 50%;
  background: none;
}
.hp-hero .header-sec-link a::after, .hp-hero .header-sec-link a::before { display: none; }
.hp-hero .header-sec-link a { transition: background 0.2s, border-color 0.2s; }
.hp-hero .header-sec-link a:hover { border-color: #fff; background: rgb(255 255 255 / 18%); }
.hp-hero .header-sec-link a i { position: static; color: #fff; font-size: 18px; }
.hp-hero .header-sec-link a:hover i { animation: none; } /* the old bounce pushes the icon off-centre */

/* ---------- Section frame ---------- */
/* base style.css sets section padding with !important at smaller widths */
.hp-sec { padding: 110px 0 !important; background: #fff; }
.hp-sec--paper { background: var(--hp-paper); }
/* dev-style.css sets both with !important on the id */
#locations-stats-section.hp-sec--stats { padding: 0 0 110px !important; background: var(--hp-paper) !important; }
.hp-head {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 52px;
}
.hp-eyebrow,
.recently-viewed-section .section-title h2::before {
  display: block;
  margin-bottom: 14px;
  color: var(--hp-deep);
  font: 700 12px var(--hp-sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hp-eyebrow::before {
  content: counter(hp-section, decimal-leading-zero) ' \2014\00a0';
  counter-increment: hp-section;
}
.hp-head h2,
.recently-viewed-section .section-title h2 {
  margin: 0;
  color: var(--hp-ink);
  font: 400 clamp(32px, 4vw, 52px) / 1.1 var(--hp-serif);
  letter-spacing: -0.015em;
  text-align: left;
}
.hp-link {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 8px 0 6px;
  border-bottom: 1px solid currentcolor;
  color: var(--hp-deep);
  font: 700 14px var(--hp-sans);
}
.hp-link i { color: inherit; transition: transform 0.2s; }
.hp-link:hover i { transform: translateX(5px); }
.hp-empty { color: var(--hp-muted); font: 500 16px var(--hp-sans); }

/* ---------- Shared card parts ---------- */
.hp-card { min-width: 0; }
.hp-card__link {
  position: relative;
  display: grid;
  height: 100%;
  text-align: left;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.hp-card__media {
  display: grid;
  overflow: hidden;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--hp-deep), var(--hp-blue));
}
.hp-card__media:has(img) { background: var(--hp-paper); }
.hp-card__media img { display: block; width: 100%; height: 100%; object-fit: contain; }
.hp-card__mono { color: #fff; font: italic 400 26px var(--hp-serif); letter-spacing: 0.02em; }
.hp-card__meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; min-width: 0; }
.hp-card__cat {
  color: var(--hp-deep);
  font: 700 11px/1.4 var(--hp-sans);
  letter-spacing: 0.09em;
  text-align: left;
  text-transform: uppercase;
}
.hp-status { display: inline-flex; }
.hp-status .geodir_status_date {
  position: static;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  color: #c0392b;
  font: 600 12px/1.4 var(--hp-sans);
  white-space: nowrap;
}
.hp-status .geodir_status_date::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentcolor;
}
.hp-status .geodir_status_date.gsd_open { color: #14865b; }
.hp-card__name {
  margin: 0;
  color: var(--hp-ink);
  font: 500 20px/1.25 var(--hp-serif);
  text-align: left;
  overflow-wrap: anywhere;
}
.hp-card__addr {
  margin: 6px 0 0;
  padding: 0;
  color: var(--hp-muted);
  font: 500 13.5px/1.5 var(--hp-sans);
  text-align: left;
  overflow-wrap: anywhere;
}
.hp-rating { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.hp-rating__score { color: var(--hp-ink); font: 700 14px var(--hp-sans); }
.hp-rating__count { color: var(--hp-muted); font: 500 12.5px var(--hp-sans); }
.hp-rating .listing-rating { display: inline-flex; float: none; gap: 1px; align-items: center; width: auto !important; margin: 0; }
.hp-rating .listing-rating img { width: 13px; height: 13px; min-height: 13px; max-height: 13px; } /* base style.css caps the height at 12px */
/* star-off.png is light grey: on dark cards it reads as a filled star unless dimmed */
.hp-bento .hp-card:first-child .hp-rating img[src*='star-off'] { opacity: 0.28; }
.hp-card__go { color: var(--hp-deep); transition: transform 0.25s; }
.hp-card__link:hover .hp-card__go { transform: translateX(5px); }

/* ---------- 01 Latest: bento ---------- */
.hp-bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.hp-bento .hp-card__link {
  grid-template-columns: 60px minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--hp-line);
  border-radius: 24px;
  background: #fff;
}
.hp-bento .hp-card__link:hover {
  border-color: var(--hp-blue);
  box-shadow: 0 30px 50px -32px rgb(0 98 143 / 55%);
  transform: translateY(-4px);
}
.hp-bento .hp-card__media { width: 60px; height: 60px; }
.hp-bento .hp-card__meta { align-content: center; }
.hp-bento .hp-card__body { grid-column: 1 / -1; align-self: end; }
.hp-bento .hp-rating { grid-column: 1 / -1; padding-right: 26px; padding-top: 16px; border-top: 1px solid var(--hp-line); }
.hp-bento .hp-card__go { position: absolute; right: 24px; bottom: 27px; }

/* lead card */
.hp-bento .hp-card:first-child { grid-column: span 2; grid-row: span 2; }
.hp-bento .hp-card:first-child .hp-card__link {
  grid-template-columns: 96px minmax(0, 1fr);
  padding: 40px;
  overflow: hidden;
  border: 0;
  background: var(--hp-grad);
}
.hp-bento .hp-card:first-child .hp-card__media { width: 96px; height: 96px; }
.hp-bento .hp-card:first-child .hp-card__media:not(:has(img)) { background: rgb(255 255 255 / 16%); }
.hp-bento .hp-card:first-child .hp-card__mono { font-size: 38px; }
.hp-bento .hp-card:first-child .hp-card__cat { color: #fff; }
.hp-bento .hp-card:first-child .hp-card__name { color: #fff; font-size: clamp(32px, 3.6vw, 50px); line-height: 1.08; }
.hp-bento .hp-card:first-child .hp-card__addr { color: #fff; font-size: 15px; }
.hp-bento .hp-card:first-child .hp-rating { padding-top: 20px; border-color: rgb(255 255 255 / 25%); }
.hp-bento .hp-card:first-child .hp-rating__score { color: #fff; }
.hp-bento .hp-card:first-child .hp-rating__count { color: #fff; }
.hp-bento .hp-card:first-child .hp-card__go { right: 40px; bottom: 42px; color: #fff; }
/* red/green text is unreadable on blue, so the status sits on a white pill */
.hp-bento .hp-card:first-child .geodir_status_date { padding: 3px 10px; border-radius: 999px; background: #fff; }

/* ---------- 02 Updated: ledger rows ---------- */
.hp-ledger {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 56px;
  border-top: 2px solid var(--hp-deep);
}
.hp-ledger .hp-card { border-bottom: 1px solid #d8dcec; }
.hp-ledger .hp-card__link {
  grid-template-columns: 72px minmax(0, 1fr) auto;
  grid-template-areas:
    'media meta go'
    'media body go'
    'media rate go';
  gap: 6px 22px;
  align-content: start;
  padding: 26px 0;
}
.hp-ledger .hp-card__media { grid-area: media; align-self: start; width: 72px; height: 72px; }
.hp-ledger .hp-card__meta { grid-area: meta; }
.hp-ledger .hp-card__body { grid-area: body; }
.hp-ledger .hp-rating { grid-area: rate; margin-top: 6px; }
.hp-ledger .hp-card__go { grid-area: go; align-self: center; }
.hp-ledger .hp-card__link:hover .hp-card__name { color: var(--hp-deep); }

/* ---------- 03 Statistics ---------- */
.hp-stats {
  position: relative;
  padding: 56px 60px;
  overflow: hidden;
  border-radius: 32px;
  background: var(--hp-grad);
}
.hp-stats h2 {
  margin: 0 0 52px;
  color: #fff;
  font: 400 clamp(26px, 3vw, 38px) / 1.15 var(--hp-serif);
  text-align: left;
}
.hp-stats__rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-top: 1px dashed rgb(255 255 255 / 45%);
  list-style: none;
}
.hp-stats__rail li { position: relative; padding: 32px 16px 0 0; }
.hp-stats__rail li::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 0;
  box-sizing: border-box;
  width: 13px;
  height: 13px;
  border: 3px solid var(--hp-deep);
  border-radius: 50%;
  background: #fff;
}
.hp-stats .num {
  color: #fff;
  font: 400 clamp(38px, 4.8vw, 66px) / 1 var(--hp-serif);
  letter-spacing: -0.02em;
  font-variant-numeric: lining-nums tabular-nums;
  overflow-wrap: anywhere;
}
.hp-stats h6 {
  margin: 12px 0 0;
  color: rgb(255 255 255 / 88%);
  font: 600 13.5px var(--hp-sans);
  text-align: left;
}

/* ---------- 04 Featured ---------- */
.hp-sec--blue { background: var(--hp-grad); }
.hp-head--light h2 { color: #fff; }
.hp-head--light .hp-eyebrow, .hp-head--light .hp-link { color: #fff; }
.hp-featured { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.hp-fcard {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hp-fcard:hover { box-shadow: 0 30px 50px -28px rgb(0 50 80 / 70%); transform: translateY(-5px); }
.hp-fcard__media {
  display: grid;
  height: 200px;
  place-items: center;
  background: linear-gradient(145deg, var(--hp-deep), var(--hp-blue));
}
.hp-fcard__media:has(img) { background: var(--hp-paper); }
.hp-fcard__media img { width: 100%; height: 200px; object-fit: contain; }
.hp-fcard__media .hp-card__mono { font-size: 64px; }
.hp-fcard__body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 22px; }
.hp-fcard__name { margin: 2px 0; color: var(--hp-ink); font: 500 22px/1.2 var(--hp-serif); text-align: left; overflow-wrap: anywhere; }
.hp-fcard__name a { color: inherit; }
/* whole card clicks through to the listing; the category link sits above it */
.hp-fcard__name a::after { content: ''; position: absolute; inset: 0; }
.hp-fcard__line {
  display: flex;
  gap: 9px;
  margin: 0;
  padding: 0;
  color: var(--hp-muted);
  font: 500 13px/1.5 var(--hp-sans);
  text-align: left;
}
.hp-fcard__line i { flex: none; margin-top: 3px; color: var(--hp-blue); }
/* same status colours as the listing cards; the base green is too pale on white */
.hp-fcard__hours .text-danger { color: #c0392b; }
.hp-fcard__hours .text-success { color: #14865b; }
.hp-fcard__cat {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  margin-top: auto;
  padding: 5px 12px;
  border: 1px solid var(--hp-line);
  border-radius: 999px;
  color: var(--hp-deep);
  font: 600 12px var(--hp-sans);
  transition: border-color 0.2s;
}
.hp-fcard__cat:hover { border-color: var(--hp-blue); }
.hp-fcard__body .hp-fcard__line + .hp-fcard__cat,
.hp-fcard__body .hp-fcard__hours + .hp-fcard__cat { margin-top: auto; }

/* a single featured business would otherwise be a very wide, short tile */
.hp-fcard:only-child { flex-direction: row; }
.hp-fcard:only-child .hp-fcard__media { flex: 0 0 42%; height: auto; min-height: 240px; }
.hp-fcard:only-child .hp-fcard__media img { height: 100%; min-height: 240px; }

/* ---------- 05 How it works: a route with three stops ---------- */
.hp-how__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 60px; align-items: start; }
.hp-how__head { position: sticky; top: 120px; margin: 0; }
.hp-route { position: relative; margin: 0; padding: 0; list-style: none; }
/* one segment per stop, so the line always ends at the last pin however long the text wraps */
.hp-stop:not(:last-child)::before {
  content: '';
  position: absolute;
  top: 28px;
  bottom: 0;
  left: 27px;
  border-left: 2px dashed var(--hp-blue);
}
.hp-stop {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 0 30px;
  padding: 0 0 56px;
}
.hp-stop:last-child { padding-bottom: 0; }
.hp-stop__pin {
  position: relative;
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50% 50% 50% 4px;
  background: var(--hp-deep);
  transform: rotate(-45deg);
}
.hp-stop:nth-child(2) .hp-stop__pin { background: var(--hp-mid); }
.hp-stop:nth-child(3) .hp-stop__pin { background: var(--hp-blue); }.hp-stop__pin b { color: #fff; font: 500 22px var(--hp-serif); transform: rotate(45deg); }
.hp-stop h3 { display: flex; grid-column: 2; align-items: center; min-height: 56px; margin: 0 0 4px; color: var(--hp-ink); font: 500 28px/1.2 var(--hp-serif); text-align: left; } /* 56px = pin height, keeps the heading centred on its pin */
.hp-stop p { grid-column: 2; margin: 0; padding: 0; color: var(--hp-muted); font: 500 16px/1.7 var(--hp-sans); text-align: left; }
.hp-stop__icon { grid-column: 3; grid-row: 1; align-self: center; color: var(--hp-blue); font-size: 34px; }

/* ---------- 06 Recently viewed (shared partial, restyled here only) ---------- */
.recently-viewed-section { padding: 110px 0 !important; background: var(--hp-paper); }
.recently-viewed-section .row { margin: 0; }
.recently-viewed-section .row > .col-12 { padding: 0; }
.recently-viewed-section .section-title { margin-bottom: 44px !important; padding-bottom: 0 !important; }
.recently-viewed-section .section-title h2 { font-size: clamp(32px, 4vw, 52px) !important; line-height: 1.1 !important; } /* base media queries shrink it */
.recently-viewed-section .section-title h2::before {
  content: counter(hp-section, decimal-leading-zero) ' \2014\00a0 Pick up where you left off';
  counter-increment: hp-section;
}
.recently-viewed-section .section-separator { display: none; }
.recently-viewed-grid-mini { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); gap: 12px; }
.recently-viewed-mini-card {
  display: flex;
  gap: 14px;
  align-items: center;
  width: auto;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--hp-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: none;
  transition: border-color 0.2s, transform 0.2s;
}
.recently-viewed-mini-card:hover { border-color: var(--hp-blue) !important; box-shadow: 0 16px 30px -22px rgb(0 98 143 / 55%); transform: translateY(-2px); }
.recently-viewed-mini-card:hover .name { color: var(--hp-deep); }
.recently-viewed-mini-card .mini-card-icon,
.recently-viewed-mini-card:hover .mini-card-icon { border-color: transparent; background: var(--hp-grad); }
.recently-viewed-mini-card .mini-card-icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--hp-grad);
  color: #fff;
}
.recently-viewed-mini-card .mini-card-details { min-width: 0; text-align: left; }
.recently-viewed-mini-card .name { color: var(--hp-ink); font: 700 14px var(--hp-sans); }
.recently-viewed-mini-card .city { color: var(--hp-muted); font: 500 12px var(--hp-sans); }
.recently-viewed-mini-card .city i { color: var(--hp-blue); }

/* ---------- Footer ---------- */
.main-footer { background: var(--hp-grad); }
.footer-inner { padding: 90px 0 60px; overflow: visible; background: none; }
.footer-bg, .footer-wave { display: none; }
.footer-inner .row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 56px; margin: 0; }
.footer-inner .row::before, .footer-inner .row::after { display: none; } /* base clearfix pseudo-elements would take up grid cells and add a blank row */
.footer-inner .row > [class*='col-'] { width: auto; max-width: none; padding: 0; }
.footer-inner .row > :first-child { grid-column: 1 / -1; }
.footer-inner .row > :first-child .footer-widget {
  display: grid;
  float: none;
  grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 32px 40px;
  align-items: center;
  padding-bottom: 48px;
  border-bottom: 1px solid rgb(255 255 255 / 25%);
}
.main-footer .footer-logo { margin: 0 !important; }
.main-footer .footer-logo a { display: block; }
.main-footer .footer-logo img { width: 110px; height: 110px; filter: brightness(0) invert(1); }
.main-footer .footer-contacts-widget p {
  margin: 0;
  padding: 0;
  color: #fff;
  font: 400 19px/1.5 var(--hp-serif);
  text-align: left;
}
.main-footer .card { padding: 18px !important; border: 1px solid rgb(255 255 255 / 18%); border-radius: 20px; background: rgb(255 255 255 / 8%); }
.main-footer .footer-widget .card h3 {
  margin: 0 0 14px;
  padding: 0 !important;
  color: #fff !important;
  font: 700 12px var(--hp-sans);
  letter-spacing: 0.16em;
  text-align: left !important;
  text-transform: uppercase;
}
.main-footer .card > div { display: grid !important; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 6px !important; } /* two even rows */
.main-footer .alphabet-filter {
  display: grid;
  place-items: center;
  width: auto !important; /* dev-style.css forces 30px */
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: rgb(255 255 255 / 14%) !important;
  color: #fff !important;
  font: 700 13px/1 var(--hp-sans);
  transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.main-footer .alphabet-filter:hover,
.main-footer .alphabet-filter:focus-visible { background: #fff !important; box-shadow: 0 10px 18px -10px rgb(0 30 50 / 70%); color: var(--hp-deep) !important; transform: translateY(-2px); }
.main-footer .footer-widget > h3 {
  margin: 0 0 20px;
  padding: 0;
  color: #fff;
  border: 0;
  font: 400 24px var(--hp-serif);
  text-align: left;
}
.main-footer .footer-widget .card h3 { border: 0; }
.main-footer .footer-widget-posts .widget-posts-descr::before { display: none; }
.main-footer .footer-widget h3::before, .main-footer .footer-widget h3::after { display: none; }
.main-footer .footer-widget-posts li {
  float: none;
  margin: 0;
  padding: 0;
  border: 0;
}
.main-footer .footer-widget-posts .widget-posts-descr { float: none; width: auto; padding: 0; }
.main-footer .footer-widget-posts a {
  display: block;
  padding: 7px 0;
  color: #fff;
  font: 500 14px var(--hp-sans);
  text-align: left;
  transition: color 0.2s, transform 0.2s;
}
.main-footer .footer-widget-posts a:hover { color: #fff; text-decoration: underline; transform: translateX(4px); }
.main-footer .footer-widget .no-list-style li:last-child .footer-link { float: none; margin: 8px 0 0; color: #fff; font-weight: 700; }
.main-footer .footer-inner .footer-widget { margin-bottom: 0; }
.main-footer .footer-link i { margin-left: 8px; color: inherit; }
.sub-footer .container { width: min(1240px, 100% - 48px) !important; margin-inline: auto; display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between; }
.sub-footer .copyright, .sub-footer .footer-content { float: none; width: auto; height: auto; min-height: 0; margin: 0; }
.sub-footer .footer-content { display: flex; align-items: center; }
.sub-footer .subfooter-nav { float: none; margin: 0 !important; } /* style.css forces a top margin at 768px and below */
.sub-footer .subfooter-nav ul { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.sub-footer .subfooter-nav li { float: none; margin: 0; }
.sub-footer { padding: 22px 0; border-top: 1px solid rgb(255 255 255 / 25%); background: none; }
.sub-footer .copyright { color: #fff; font: 500 13px var(--hp-sans); }
.sub-footer .subfooter-nav li a { color: #fff; font: 600 13px var(--hp-sans); }
.sub-footer .subfooter-nav li a:hover { color: #fff; text-decoration: underline; }

.to-top, .to-top:hover { border-radius: 14px; background: var(--hp-grad); }
.to-top:hover { opacity: 0.88; }
body:has(.main-register-wrap[style*='display: block']) .to-top { display: none !important; } /* it would sit on top of an open popup */

/* ---------- Scroll-in (no JS; browsers without support just show the content) ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hp-card, .hp-fcard, .hp-stop, .hp-stats, .recently-viewed-mini-card {
      animation: hp-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
    }
    @keyframes hp-rise {
      from { opacity: 0; translate: 0 26px; }
      to { opacity: 1; translate: 0 0; }
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  .hp-pulse { animation: none; opacity: 0; }
}

/* ---------- Responsive ---------- */
/* The route's first leg would run into the headline */
@media (max-width: 1280px) {
  .hp-hero__leg1 { display: none; }
}
@media (max-width: 1100px) {
  .hp-hero__route, .hp-hero__pins { display: none; }
  .hp-featured { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* odd count: last card becomes one full-width row instead of leaving a hole */
  .hp-fcard:last-child:nth-child(odd) { grid-column: 1 / -1; flex-direction: row; }
  .hp-fcard:last-child:nth-child(odd) .hp-fcard__media { flex: 0 0 42%; height: auto; min-height: 220px; }
  .hp-fcard:last-child:nth-child(odd) .hp-fcard__media img { height: 100%; min-height: 220px; }
}
@media (max-width: 1070px) {
  .main-header { padding: 0 8px 0 14px; }
  /* menu button and icon-only Add Listing share one 44px square */
  .nav-button-wrap { top: 14px; display: grid; width: 44px; height: 44px; margin-right: 10px; place-items: center; }
  .nav-button { position: static; float: none; width: 20px; height: auto; margin: 0; }
  .nav-button span { float: none; display: block; }
  .nav-button span:last-child { margin-bottom: 0; }
  .nav-button-wrap.vismobmenu_btn::before { inset: 0; display: grid; place-items: center; }
  .main-menu { right: 0; width: min(300px, 100%); }
  .main-menu.vismobmenu { top: 80px; width: min(300px, 100%); overflow: hidden; border-radius: 16px; box-shadow: 0 24px 50px -18px rgb(14 13 27 / 55%); }
  .main-menu .menusb a { padding-top: 11px; padding-bottom: 11px; }
  .hp-bento .hp-card:first-child .hp-card__link { padding: 30px; }
  .hp-bento .hp-card:first-child .hp-card__go { right: 30px; bottom: 32px; }
  .hp-ledger { column-gap: 32px; }
  .footer-inner .row > :first-child .footer-widget { grid-template-columns: 120px minmax(0, 1fr); }
  .main-footer .card { grid-column: 1 / -1; }
  .hp-how__grid { grid-template-columns: 1fr; gap: 44px; }
  .hp-how__head { position: static; }
}
@media (max-width: 860px) {
  .hp-hero__inner { padding: 112px 0 44px; }
  .hp-hero .header-sec-link { bottom: 38px; } /* chips are 4px taller here */
  .hp-hero__kicker { margin-bottom: 14px; }
  .hp-hero .main-search-input-tabs { margin-top: 28px; }
  .hp-hero__popular { margin-top: 18px; }
  /* easier finger targets on touch screens */
  .hp-hero__popular a { padding: 8px 14px; }
  .sub-footer .subfooter-nav a { display: inline-block; padding: 6px 0; }
  /* search: keyword on top, location + category side by side, button below */
  .hp-hero .main-search-input { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 8px; }
  .hp-hero .main-search-input-item { width: auto; }
  .hp-hero .main-search-input-item:nth-of-type(1) { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--hp-line); }
  .hp-hero .main-search-button { grid-column: 1 / -1; width: 100%; margin: 8px 0 0; }
  .hp-ledger { grid-template-columns: minmax(0, 1fr); }
  .hp-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp-bento .hp-card:first-child { grid-row: auto; }
  .hp-bento .hp-card:nth-child(6) { grid-column: span 2; } /* lead + 5 cards would leave a gap */
  .hp-stats { padding: 40px 28px; }
  .hp-stats__rail { grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 0; row-gap: 26px; }
  .hp-stats__rail li { padding-top: 22px; border-top: 1px dashed rgb(255 255 255 / 45%); }
  .footer-inner .row { gap: 40px 24px; }
}
/* style.css hides the Add Listing label at this same width */
@media (max-width: 768px) {
  .main-header .add-list-head-btn.add-list { width: 44px; height: 44px; padding: 0; line-height: 44px !important; text-align: center; }
  .main-header .add-list-head-btn.add-list i { margin-top: -3px; vertical-align: middle; }
  .header-user-menu { top: 16px; }
}
@media (max-width: 600px) {
  .hp-sec, .recently-viewed-section { padding: 72px 0 !important; }
  #locations-stats-section.hp-sec--stats { padding-bottom: 72px !important; }
  .hp-head { margin-bottom: 36px; }
  .hp-hero__inner { padding: 104px 0 44px; }
  .hp-hero__map { opacity: 0.55; }
  .hp-hero__popular a:nth-of-type(n + 4) { display: none; }

  .hp-hero .main-search-input { grid-template-columns: minmax(0, 1fr); }
  .hp-hero .main-search-input-item { height: 52px; border-right: 0; border-bottom: 1px solid var(--hp-line); }
  .hp-hero .main-search-input-item input { height: 52px; }
  .hp-hero .main-search-input-item > .select2-container { top: 1px; }
  .hp-hero .main-search-button { height: 52px; }
  .hp-hero .main-search-input-item:nth-of-type(3) { border-bottom: 0; }

  .hp-bento { grid-template-columns: minmax(0, 1fr); }
  .hp-bento .hp-card:first-child { grid-column: auto; }
  .hp-bento .hp-card:nth-child(6) { grid-column: auto; }
  .hp-bento .hp-card:first-child .hp-card__link { grid-template-columns: 72px minmax(0, 1fr); padding: 24px; }
  .hp-bento .hp-card:first-child .hp-card__media { width: 72px; height: 72px; }
  .hp-bento .hp-card:first-child .hp-card__name { font-size: 28px; }
  .hp-bento .hp-card:first-child .hp-card__go { right: 24px; bottom: 27px; }

  .hp-ledger .hp-card__link { grid-template-columns: 56px minmax(0, 1fr); grid-template-areas: 'media meta' 'media body' 'media rate'; gap: 6px 16px; }
  .hp-ledger .hp-card__media { width: 56px; height: 56px; }
  .hp-ledger .hp-card__go { display: none; }

  .hp-stats { padding: 32px 20px; border-radius: 24px; }
  .hp-stats h2 { margin-bottom: 32px; }
  .hp-stats__rail li { padding-right: 8px; }
  .hp-stats .num { font-size: clamp(26px, 8.4vw, 40px); }

  .hp-featured { grid-template-columns: minmax(0, 1fr); }
  .hp-fcard:last-child:nth-child(odd), .hp-fcard:only-child { flex-direction: column; }
  .hp-fcard:last-child:nth-child(odd) .hp-fcard__media, .hp-fcard:only-child .hp-fcard__media { flex: none; height: 200px; min-height: 0; }
  .hp-fcard:last-child:nth-child(odd) .hp-fcard__media img, .hp-fcard:only-child .hp-fcard__media img { height: 200px; min-height: 0; }

  .hp-stop { grid-template-columns: 56px minmax(0, 1fr); gap: 0 20px; }
  .hp-stop__icon { display: none; }
  .hp-stop h3 { font-size: 24px; }

  /* twelve stacked tiles get long on a phone: side-scrolling three-row rail */
  .recently-viewed-grid-mini {
    grid-template-rows: repeat(3, auto);
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 86%;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }
  .recently-viewed-mini-card { scroll-snap-align: start; }

  /* footer: categories in two columns, states and cities side by side */
  .footer-inner { padding: 64px 0 40px; }
  .footer-inner .row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 20px; }
  .footer-inner .row > :first-child .footer-widget { grid-template-columns: minmax(0, 1fr); padding-bottom: 36px; }
  .footer-inner .row > :nth-child(2) { grid-column: 1 / -1; }
  .main-footer .footer-widget > h3 { font-size: 21px; }
  .footer-inner .row > :nth-child(2) ul { columns: 2; column-gap: 20px; }
  .main-footer .footer-widget-posts li { break-inside: avoid; }
  .sub-footer .container { justify-content: flex-start; }
}
@media (max-width: 360px) {
  .logo-holder { top: 12px; height: 48px; }
  .logo-holder img { height: 48px; }
  .main-header .show-reg-form { margin-right: 0; padding: 0 8px; }
  .nav-button-wrap { margin-right: 6px; }
}
@media (max-width: 600px) {
  .main-footer .card > div { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}
