/* Home page (/).
 *
 * A peach hero card (text, then a mosaic of three tilted photos from 980px or
 * a photo strip below it), three trending vendors, then Popular services,
 * Trusted vendors and Vehicle rental. Content is capped at 1320px with
 * 16-40px side padding; only the photo strip and the filter chips scroll
 * sideways.
 */
.hm {
  --hm-ink: #1C1B1F; --hm-body: #4A4549; --hm-muted: #6F6A6E; --hm-faint: #8A8589;
  --hm-line: #ECE9EA; --hm-soft: #EFEDEE; --hm-pink: #FF385C; --hm-pink-dark: #E11D48; --hm-red: #C81E3C;
  --hm-pad: clamp(16px, 4vw, 40px);
  color: var(--hm-ink); background: #fff; padding-bottom: clamp(40px, 6vw, 72px);
}
.hm *, .hm *::before, .hm *::after { box-sizing: border-box; }
.hm [hidden] { display: none !important; }
.hm img { max-width: 100%; }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hm .hero { display: block; min-height: 0; max-width: 1320px; margin: 0 auto; padding: clamp(14px, 2.4vw, 24px) var(--hm-pad) 0; background: none; text-align: left; }
.hm-hero { position: relative; overflow: hidden; border: 1px solid #F7E6E0; border-radius: clamp(24px, 3vw, 36px); background: #FFF6F2; }
.hm-glow { position: absolute; border-radius: 50%; pointer-events: none; }
.hm-glow--pink { right: -120px; top: -140px; width: 520px; height: 520px; background: radial-gradient(closest-side, #FFD9E1, rgba(255,217,225,0)); }
.hm-glow--gold { left: -160px; bottom: -200px; width: 460px; height: 460px; background: radial-gradient(closest-side, #FFE9C7, rgba(255,233,199,0)); }
.hm-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(14px, 2vw, 28px); align-items: center; padding: clamp(18px, 3vw, 36px); }
.hm-hero-text { min-width: 0; }
.hm-badge { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; margin-bottom: 12px; padding: 5px 14px 5px 5px; border: 1px solid #F3E3DD; border-radius: 999px; background: #fff; color: var(--hm-body); font-size: 13px; line-height: 1.35; font-weight: 700; text-decoration: none; }
.hm-badge:hover { border-color: var(--hm-ink); color: var(--hm-ink); text-decoration: none; }
.hm-badge-tag { flex: none; display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--hm-ink); color: #fff; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; }
.hm-badge-text { min-width: 0; }
.hm-eyebrow { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; color: var(--hm-pink-dark); text-transform: uppercase; }
.hm-h1 { margin: 10px 0 10px; font-family: inherit; font-size: clamp(32px, 4.6vw, 58px); line-height: 1.02; font-weight: 800; letter-spacing: -0.045em; color: var(--hm-ink); text-wrap: balance; overflow-wrap: anywhere; }
.hm-hl { color: var(--hm-pink-dark); white-space: nowrap; background: linear-gradient(transparent 72%, #FFD0DA 72%, #FFD0DA 92%, transparent 92%); }
.hm-lede { margin: 0 0 12px; max-width: 44ch; font-size: clamp(14px, 1.4vw, 16px); line-height: 1.55; color: var(--hm-body); text-wrap: pretty; }
.hm-trust { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 12px 0 0; padding: 0; list-style: none; }
.hm-trust li { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 700; color: var(--hm-body); white-space: nowrap; }
.hm-tick { width: 20px; height: 20px; border-radius: 50%; background: #EEF8F1; color: #1C7A43; display: grid; place-items: center; }

.hm-mosaic { display: none; position: relative; height: 290px; min-width: 0; }
.hm-print { position: absolute; overflow: hidden; border: 6px solid #fff; border-radius: 26px; background: #F3F1F2; box-shadow: 0 20px 40px rgba(28,27,31,.16); }
.hm-print img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-print--1 { left: 4%; top: 6%; width: 52%; height: 64%; transform: rotate(-5deg); }
.hm-print--2 { right: 2%; top: 0; width: 50%; height: 56%; transform: rotate(4deg); }
.hm-print--3 { right: 10%; bottom: 2%; width: 58%; height: 46%; transform: rotate(-2deg); box-shadow: 0 20px 40px rgba(28,27,31,.18); }
.hm-float { position: absolute; display: flex; align-items: center; gap: 8px; white-space: nowrap; box-shadow: 0 14px 30px rgba(28,27,31,.14); }
.hm-float--vendor { left: 0; bottom: 8%; max-width: 62%; padding: 10px 14px 10px 10px; border-radius: 16px; background: #fff; }
.hm-float-av { flex: none; width: 36px; height: 36px; border-radius: 11px; background: #FFF0F3; color: var(--hm-red); font-size: 13px; font-weight: 800; display: grid; place-items: center; }
.hm-float-text { min-width: 0; }
.hm-float-name, .hm-float-meta { display: block; overflow: hidden; text-overflow: ellipsis; }
.hm-float-name { font-size: 13px; font-weight: 800; color: var(--hm-ink); }
.hm-float-meta { font-size: 12px; font-weight: 700; color: #8A4B00; }
.hm-float--car { right: 0; top: 44%; max-width: 70%; padding: 9px 12px; border-radius: 999px; background: var(--hm-ink); color: #fff; font-size: 13px; font-weight: 800; }
.hm-float--car svg { flex: none; color: #FF8FA3; }
.hm-float--car span { overflow: hidden; text-overflow: ellipsis; }
.hm-float--verified { left: 30%; top: 0; padding: 8px 12px; border-radius: 999px; background: #fff; color: #1C7A43; font-size: 12.5px; font-weight: 800; box-shadow: 0 10px 24px rgba(28,27,31,.12); }

.hm-strip { display: flex; gap: 10px; overflow-x: auto; margin: 0 calc(-1 * clamp(18px, 3vw, 36px)); padding: 4px clamp(18px, 3vw, 36px) 8px; scrollbar-width: none; }
.hm-strip::-webkit-scrollbar { display: none; }
.hm-strip img { flex: none; width: 48%; max-width: 220px; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border: 4px solid #fff; border-radius: 18px; background: #F3F1F2; box-shadow: 0 10px 24px rgba(28,27,31,.1); }

/* Trending vendors under the hero */
.hm-trending { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px; margin-top: 16px; }
.hm .hm-trend { opacity: 1; animation: none; display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 80px; padding: 12px; border: 1px solid var(--hm-soft); border-radius: 18px; background: #fff; color: var(--hm-ink); text-decoration: none; box-shadow: none; transform: none; }
.hm .hm-trend:hover { border-color: var(--hm-ink); color: var(--hm-ink); text-decoration: none; transform: none; box-shadow: none; }
.hm-trend-img { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; display: block; background: #F3F1F2; }
.hm-trend-text { min-width: 0; }
.hm-trend-name { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 15px; font-weight: 800; }
.hm-trend-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-trend-name svg { flex: none; }
.hm-trend-meta { display: block; font-size: 13px; color: var(--hm-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-pill { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 10px; border-radius: 999px; background: #FFF6E5; color: #8A4B00; font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.hm-pill--new { background: #F1EFF0; color: var(--hm-body); }
.hm-av { display: grid; place-items: center; font-size: 15px; font-weight: 800; }
.av-pink { background: #FFF0F3; color: var(--hm-red); }
.av-green { background: #EEF8F1; color: #1C7A43; }
.av-amber { background: #FFF6E5; color: #8A4B00; }
.av-ink { background: #F1EFF0; color: var(--hm-ink); }

/* ── Sections ────────────────────────────────────────────────────────── */
.hm-section { max-width: 1320px; margin: 0 auto; padding: clamp(48px, 7vw, 88px) var(--hm-pad) 0; scroll-margin-top: calc(var(--nav-height, 150px) + 8px); }
.hm-band { margin-top: clamp(48px, 7vw, 88px); background: #FAF8F9; border-top: 1px solid #F3F1F2; border-bottom: 1px solid #F3F1F2; scroll-margin-top: calc(var(--nav-height, 150px) + 8px); }
.hm-band .hm-section { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); }
.hm-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 22px; }
.hm-head-text { min-width: 0; }
.hm-kicker { display: block; font-size: 12px; font-weight: 800; letter-spacing: .1em; color: var(--hm-pink-dark); text-transform: uppercase; }
.hm-kicker--green { color: #1C7A43; }
.hm-h2 { margin: 6px 0 4px; font-family: inherit; font-size: clamp(26px, 3.6vw, 40px); line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; color: var(--hm-ink); }
.hm-sub { margin: 0; font-size: 15px; color: var(--hm-muted); text-wrap: pretty; }
.hm-head-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; min-width: 0; max-width: 100%; }
.hm-filters { display: flex; gap: 6px; overflow-x: auto; max-width: 100%; padding: 2px; scrollbar-width: none; }
.hm-filters::-webkit-scrollbar { display: none; }
.hm-filter { flex: none; min-height: 40px; padding: 0 14px; border: 1px solid var(--hm-line); border-radius: 999px; background: #fff; color: var(--hm-ink); font: inherit; font-size: 13.5px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.hm-filter:hover { border-color: var(--hm-ink); }
.hm-filter[aria-pressed="true"] { border-color: var(--hm-ink); background: var(--hm-ink); color: #fff; }
.hm-link { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 4px; color: var(--hm-ink); font-size: 14px; font-weight: 800; white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }
.hm-link:hover { color: var(--hm-pink-dark); }
.hm-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 18px; border: 1px solid var(--hm-ink); border-radius: 14px; background: #fff; color: var(--hm-ink); font-size: 14px; font-weight: 800; white-space: nowrap; text-decoration: none; }
.hm-btn:hover { background: var(--hm-ink); color: #fff; text-decoration: none; }
.hm-empty { margin: 8px 0 0; padding: 18px; border: 1px dashed #E3DFE1; border-radius: 16px; text-align: center; font-size: 14px; color: var(--hm-muted); }

.hm-grid { display: grid; gap: clamp(14px, 2vw, 22px); }
.hm-grid--services { grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); }
.hm-grid--wide { grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); }
.hm-media { position: relative; overflow: hidden; background: #F3F1F2; }
.hm-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-media--4x3 { aspect-ratio: 4 / 3; border-radius: 20px; }
.hm-media--16x10 { aspect-ratio: 16 / 10; }
.hm-media--soft { background: #FFF0F3; }
.hm-noimg { position: absolute; inset: 0; background: #F3F1F2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 24 24' fill='none' stroke='%23A39EA1' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 2 21h20L12 3ZM12 3v18M8 21l4-7 4 7'/%3E%3C/svg%3E") center / 36px no-repeat; }
.hm-noimg--car { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 24 24' fill='none' stroke='%23A39EA1' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 16v-4l2-5h14l2 5v4M3 16h18v3H3Z'/%3E%3C/svg%3E"); }
.hm-tag { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; height: 28px; max-width: calc(100% - 72px); padding: 0 10px; border-radius: 999px; background: rgba(255,255,255,.95); color: var(--hm-ink); font-size: 12px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Service cards: the card is one link; the heart is its own control on top. */
.hm-card { position: relative; min-width: 0; }
.hm .hm-card-link { display: block; color: var(--hm-ink); text-decoration: none; }
.hm .hm-card-link:hover { color: var(--hm-ink); text-decoration: none; }
.hm-card-link:hover img { transform: scale(1.03); }
.hm-card-link img { transition: transform .3s; }
.hm-card-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 2px 0; }
.hm-card-main { min-width: 0; }
.hm-card-title { margin: 0; font-family: inherit; font-size: 15.5px; font-weight: 800; line-height: 1.3; color: var(--hm-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.hm-card-sub { margin: 2px 0 0; font-size: 13.5px; color: var(--hm-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-price { flex: none; text-align: right; }
.hm-price span { display: block; font-size: 12px; font-weight: 600; color: var(--hm-faint); }
.hm-price strong { display: block; font-size: 16px; font-weight: 800; white-space: nowrap; }
.hm-price--ask { font-size: 14px !important; color: var(--hm-muted); }
.hm-heart-form { position: absolute; right: 10px; top: 10px; margin: 0; width: auto; max-width: none; padding: 0; }
.hm .hm-heart { position: absolute; right: 10px; top: 10px; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.95); color: var(--hm-ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 8px rgba(28,27,31,.12); }
.hm-heart-form .hm-heart { position: static; }
.hm-heart svg { fill: none; stroke: currentColor; }
.hm-heart[aria-pressed="true"] { color: var(--hm-pink); }
.hm-heart[aria-pressed="true"] svg { fill: currentColor; }
.hm-heart:disabled { opacity: .7; cursor: progress; }

/* Vendor and vehicle cards */
.hm .hm-vcard { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--hm-soft); border-radius: 22px; background: #fff; color: var(--hm-ink); text-decoration: none; }
.hm a.hm-vcard:hover { border-color: #D9D5D7; box-shadow: 0 12px 30px rgba(28,27,31,.08); color: var(--hm-ink); text-decoration: none; }
.hm-vicon { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 20px; background: #fff; color: var(--hm-pink-dark); display: grid; place-items: center; box-shadow: 0 8px 20px rgba(232,48,79,.15); }
.hm-vbody { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 14px 16px 16px; }
.hm-vhead { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.hm-vhead .hm-av { flex: none; position: relative; width: 42px; height: 42px; margin-top: -34px; border: 3px solid #fff; border-radius: 12px; }
.hm-vtext { min-width: 0; flex: 1; }
.hm-vname { display: flex; align-items: center; gap: 6px; min-width: 0; margin: 0; font-family: inherit; font-size: 16px; font-weight: 800; color: var(--hm-ink); }
.hm-vname span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-vname svg { flex: none; }
.hm-vcity { display: flex; align-items: center; gap: 5px; min-width: 0; margin: 2px 0 0; font-size: 13px; color: var(--hm-muted); }
.hm-vcity svg { flex: none; }
.hm-vcity span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-vfoot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid #F3F1F2; }
.hm-more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 800; color: var(--hm-pink-dark); white-space: nowrap; }
.hm .hm-car-link { display: block; color: var(--hm-ink); text-decoration: none; }
.hm .hm-car-link:hover { color: var(--hm-ink); text-decoration: none; }
.hm-car-body { padding: 14px 16px 0; }
.hm-car-title { margin: 0; font-family: inherit; font-size: 16px; font-weight: 800; color: var(--hm-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-specs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.hm-specs span { display: inline-flex; align-items: center; min-height: 26px; padding: 0 9px; border-radius: 999px; background: #F6F4F5; color: var(--hm-body); font-size: 12px; font-weight: 700; max-width: 100%; overflow-wrap: anywhere; }
.hm-car-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 12px; margin: 14px 16px 16px; padding-top: 12px; border-top: 1px solid #F3F1F2; }
.hm-car-price strong { font-size: 19px; font-weight: 800; }
.hm-car-price span { font-size: 13px; font-weight: 600; color: var(--hm-muted); }
.hm .hm-book { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 12px; background: var(--hm-pink-dark); color: #fff; font-size: 14px; font-weight: 800; white-space: nowrap; text-decoration: none; }
.hm .hm-book:hover { background: var(--hm-red); color: #fff; text-decoration: none; }

.hm-occasions { display: flex; flex-wrap: wrap; gap: 10px; }
.hm .hm-occasion { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px; border: 1px solid var(--hm-line); border-radius: 999px; color: var(--hm-ink); font-weight: 700; text-decoration: none; }
.hm .hm-occasion:hover { border-color: var(--hm-ink); color: var(--hm-ink); }

.hm a:focus-visible, .hm button:focus-visible { outline: 2px solid var(--hm-ink); outline-offset: 3px; }

@media (min-width: 980px) {
  .hm-hero-grid.has-photos { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .hm-mosaic { display: block; }
  .hm-strip { display: none; }
}
@media (min-width: 1200px) { .hm-mosaic { height: 320px; } }
@media (max-width: 399.98px) {
  .hm-trust li { white-space: normal; }
  .hm .hm-trend { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 10px; }
  .hm-trend-img { width: 48px; height: 48px; }
}
@media (prefers-reduced-motion: reduce) { .hm-card-link img { transition: none; } }

/* Toast (appended to <body>, so not under .hm) */
.hm-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 2000; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 14px; background: #1C1B1F; color: #fff; font-size: 14px; font-weight: 700; box-shadow: 0 12px 30px rgba(28,27,31,.25); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.hm-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .hm-toast { transition: none; } }
