/* ==========================================================================
   Home page: every class is prefixed with hz- so it never collides with style.css
   ========================================================================== */

body:has(.hz-home) {
    background: #f8f6fd;
}

html.hz-lock {
    overflow: hidden;
}

.hz-home {
    --hz-primary: #8145d8;
    --hz-primary-dark: #6a33bd;
    --hz-accent: #e894e6;
    --hz-grad: linear-gradient(135deg, #e894e6 0%, #8145d8 100%);
    --hz-ink: #1f1b2e;
    --hz-muted: #6f6a82;
    --hz-line: #e8e3f3;
    --hz-soft: #f3effb;
    --hz-surface: #fff;
    --hz-danger: #e5367a;
    --hz-radius: 16px;
    --hz-radius-sm: 12px;
    --hz-shadow: 0 1px 2px rgba(31, 27, 46, .05), 0 10px 28px -14px rgba(76, 40, 140, .25);
    --hz-shadow-hover: 0 2px 4px rgba(31, 27, 46, .06), 0 18px 36px -14px rgba(76, 40, 140, .38);

    font-size: 20px;
    line-height: 1.6;
    color: var(--hz-ink);
}

.hz-home *,
.hz-home *::before,
.hz-home *::after {
    box-sizing: border-box;
}

.hz-home a {
    font-weight: inherit;
}

.hz-home h1,
.hz-home h2,
.hz-home h3,
.hz-home h4 {
    font-weight: 400;
    margin: 0;
    line-height: 1.35;
}

.hz-home :focus-visible {
    outline: 2px solid var(--hz-primary);
    outline-offset: 2px;
}

/* ---------- Buttons ---------- */
.hz-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 54px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: var(--hz-radius-sm);
    font-size: 20px;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    transition: background-color .2s, box-shadow .2s, transform .15s, border-color .2s, color .2s;
}

.hz-btn:active {
    transform: scale(.97);
}

.hz-btn--primary {
    background: var(--hz-grad);
    color: #fff;
    box-shadow: 0 8px 18px -8px rgba(129, 69, 216, .7);
}

.hz-btn--primary:hover {
    color: #fff;
    box-shadow: 0 10px 22px -8px rgba(129, 69, 216, .9);
    filter: brightness(1.05);
}

.hz-btn--ghost {
    background: var(--hz-surface);
    border-color: var(--hz-line);
    color: var(--hz-ink);
}

.hz-btn--ghost:hover {
    border-color: var(--hz-primary);
    color: var(--hz-primary);
}

.hz-btn--light {
    background: #fff;
    color: var(--hz-primary-dark);
}

.hz-btn--light:hover {
    color: var(--hz-primary-dark);
    box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .5);
}

.hz-btn--outline-light {
    border-color: rgba(255, 255, 255, .7);
    color: #fff;
}

.hz-btn--outline-light:hover {
    background: rgba(255, 255, 255, .14);
    color: #fff;
}

.hz-icon-btn {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--hz-soft);
    color: var(--hz-ink);
    cursor: pointer;
    transition: background-color .2s;
}

.hz-icon-btn:hover {
    background: var(--hz-line);
}

/* ---------- Banner ---------- */
.hz-hero {
    padding-bottom: 0;
}

.hz-hero__slider {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    background: var(--hz-soft);
    box-shadow: var(--hz-shadow);
    isolation: isolate;
}

/*
 * كل الشرائح بصندوق بنسبة ثابتة (ارتفاع موحّد وبدون قفزات):
 * الصورة تظهر كاملة بدون قص (contain) وخلفها نسخة مموّهة منها، فيبدو أي مقاس
 * جيداً سواء بانر عريض أو لوجو شبه مربع.
 */
.hz-slide {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2 / 1;
    background: #efe7fb;
    isolation: isolate;
}

.hz-slide::before {
    content: "";
    position: absolute;
    inset: -24px;
    z-index: -1;
    background: var(--hz-bg) center / cover no-repeat;
    filter: blur(30px) saturate(1.1);
    opacity: .6;
}

.hz-slide > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 12px;
    object-fit: contain;
}

/* بانر عليه عنوان/وصف من الأدمن: الصورة تغطي الصندوق والنص فوقها */
.hz-slide--cap {
    aspect-ratio: 16 / 10;
}

.hz-slide--cap::before {
    display: none;
}

.hz-slide--cap > img {
    padding: 0;
    object-fit: cover;
}

.hz-slide__caption {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 8px;
    padding: 20px 20px 52px;
    color: #fff;
    background: linear-gradient(to top, rgba(20, 10, 40, .78) 0%, rgba(20, 10, 40, .25) 55%, transparent 100%);
}

.hz-slide__caption h2 {
    font-size: clamp(1.2rem, 4vw, 2.1rem);
    text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}

.hz-slide__caption p {
    margin: 0;
    max-width: 520px;
    font-size: clamp(.95rem, 2.4vw, 1.15rem);
    opacity: .95;
}

.hz-slide__caption .hz-btn {
    height: 46px;
    margin-top: 4px;
}

.hz-hero__nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: none;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--hz-ink);
    box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .4);
    cursor: pointer;
    transition: transform .2s, background-color .2s;
}

.hz-hero__nav:hover {
    background: #fff;
    transform: scale(1.06);
}

.hz-hero__nav.swiper-button-disabled {
    opacity: .4;
    pointer-events: none;
}

.hz-hero__prev {
    inset-inline-start: 14px;
}

.hz-hero__next {
    inset-inline-end: 14px;
}

.hz-hero__slider .swiper-pagination {
    position: absolute;
    bottom: 14px !important;
    z-index: 3;
}

.hz-hero__slider .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #fff;
    opacity: .6;
    border-radius: 999px;
    transition: width .25s, opacity .25s;
}

.hz-hero__slider .swiper-pagination-bullet-active {
    width: 24px;
    opacity: 1;
}

/* Brand banner (shown when there are no slides) */
.hz-hero__brand {
    position: relative;
    overflow: hidden;
    padding: 36px 24px 64px;
    border-radius: 22px;
    background: var(--hz-grad);
    color: #fff;
    box-shadow: var(--hz-shadow);
    isolation: isolate;
}

.hz-hero__brand::before,
.hz-hero__brand::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
}

.hz-hero__brand::before {
    width: 320px;
    height: 320px;
    inset-block-start: -140px;
    inset-inline-end: -80px;
}

.hz-hero__brand::after {
    width: 200px;
    height: 200px;
    inset-block-end: -110px;
    inset-inline-start: 8%;
}

.hz-hero__text {
    max-width: 720px;
}

.hz-hero__text h1 {
    font-size: clamp(1.4rem, 3.6vw, 2.1rem);
    line-height: 1.45;
}

.hz-hero__text p {
    margin: 10px 0 0;
    font-size: clamp(1rem, 2.6vw, 1.15rem);
    opacity: .94;
}

.hz-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

/* ---------- Search card ---------- */
.hz-search {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: -34px 8px 0;
    padding: 12px;
    border-radius: 20px;
    background: var(--hz-surface);
    box-shadow: 0 2px 4px rgba(31, 27, 46, .05), 0 20px 40px -18px rgba(76, 40, 140, .45);
}

.hz-field {
    position: relative;
    display: flex;
    align-items: center;
    height: 56px;
    margin: 0;
    padding-inline: 14px;
    gap: 10px;
    border: 1px solid transparent;
    border-radius: var(--hz-radius-sm);
    background: #f6f3fc;
    color: var(--hz-muted);
    transition: border-color .2s, background-color .2s, box-shadow .2s;
}

.hz-field:focus-within {
    border-color: var(--hz-primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(129, 69, 216, .12);
}

.hz-field > i {
    flex: none;
    font-size: 1.05rem;
}

.hz-field input,
.hz-field select {
    flex: 1;
    min-width: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--hz-ink);
    font-size: 20px;
    font-family: inherit;
}

.hz-field input {
    cursor: text;
}

.hz-field input::placeholder {
    color: #9b95ae;
}

.hz-field input[type="search"]::-webkit-search-cancel-button {
    cursor: pointer;
}

.hz-field--q {
    grid-column: 1 / -1;
    grid-row: 1;
}

.hz-search--no-region .hz-field--city {
    grid-column: 1 / -1;
}

/* مع سلايدر: بطاقة البحث تحته بدل أن تغطي أسفل الصورة */
.hz-home:has(.hz-hero__slider) .hz-search {
    margin-top: 16px;
}

/* On mobile the button becomes an icon inside the search field to save space */
.hz-field--q {
    padding-inline-end: 56px;
}

.hz-search__btn {
    grid-column: 1 / -1;
    grid-row: 1;
    z-index: 1;
    justify-self: end;
    align-self: center;
    width: 40px;
    height: 40px;
    margin-inline-end: 4px;
    padding: 0;
    border-radius: 10px;
}

.hz-search__btn span {
    display: none;
}

/* Dropdowns with a unified arrow */
.hz-field select,
.hz-select select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%236f6a82' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 2px center;
    padding-inline-end: 4px;
    padding-inline-start: 0;
}

[dir="ltr"] .hz-field select,
[dir="ltr"] .hz-select select {
    background-position: right 2px center;
}

/* ---------- Category chips ---------- */
.hz-cats {
    display: grid;
    /* minmax(0, 1fr): without it the track grows to fit every chip and the row never scrolls */
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    margin-top: 22px;
}

.hz-chips-wrap {
    position: relative;
    min-width: 0;
    max-width: 100%;
}

.hz-chips {
    display: flex;
    gap: 8px;
    padding: 3px 2px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    overscroll-behavior-x: contain;
}

.hz-chips::-webkit-scrollbar {
    display: none;
}

.hz-chip {
    flex: none;
    display: inline-flex;
    align-items: center;
    height: 48px;
    padding: 0 18px;
    border: 1px solid var(--hz-line);
    border-radius: 999px;
    background: var(--hz-surface);
    color: var(--hz-ink);
    font-size: 20px;
    white-space: nowrap;
    scroll-snap-align: start;
    text-decoration: none;
    transition: border-color .2s, color .2s, background-color .2s, box-shadow .2s;
}

.hz-chip:hover {
    border-color: var(--hz-primary);
    color: var(--hz-primary);
}

.hz-chip.is-active {
    border-color: transparent;
    background: var(--hz-grad);
    color: #fff;
    box-shadow: 0 6px 14px -6px rgba(129, 69, 216, .7);
}

.hz-chips__arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: none;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-top: -17px;
    border-radius: 50%;
    background: #fff;
    color: var(--hz-ink);
    box-shadow: 0 4px 12px -2px rgba(31, 27, 46, .3);
    cursor: pointer;
}

.hz-chips__arrow--left {
    left: 0;
}

.hz-chips__arrow--right {
    right: 0;
}

@media (hover: hover) and (min-width: 768px) {
    .hz-chips-wrap[data-can-left] .hz-chips__arrow--left,
    .hz-chips-wrap[data-can-right] .hz-chips__arrow--right {
        display: grid;
    }
}

/* ---------- Toolbar ---------- */
.hz-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px;
    scroll-margin-top: 96px;
}

.hz-count {
    font-size: 1.3rem;
    color: var(--hz-muted);
}

.hz-count strong {
    font-weight: 400;
    font-size: 1.6rem;
    color: var(--hz-ink);
}

.hz-toolbar__tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hz-toolbar .hz-btn {
    height: 50px;
    padding: 0 16px;
}

.hz-badge {
    display: inline-grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--hz-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
}

.hz-select {
    position: relative;
    display: inline-flex;
    height: 50px;
    margin: 0;
    padding-inline: 14px;
    border: 1px solid var(--hz-line);
    border-radius: var(--hz-radius-sm);
    background: var(--hz-surface);
    transition: border-color .2s;
}

.hz-select:hover,
.hz-select:focus-within {
    border-color: var(--hz-primary);
}

.hz-select select {
    min-width: 0;
    height: 100%;
    padding-block: 0;
    padding-inline-start: 0;
    padding-inline-end: 22px;
    border: 0;
    outline: 0;
    background-color: transparent;
    color: var(--hz-ink);
    font-size: 20px;
    font-family: inherit;
}

.hz-select--block {
    display: flex;
    width: 100%;
    height: 56px;
    background: #f6f3fc;
    border-color: transparent;
}

.hz-select--block select {
    width: 100%;
    font-size: 20px;
}

.hz-view {
    display: inline-flex;
    padding: 3px;
    border: 1px solid var(--hz-line);
    border-radius: var(--hz-radius-sm);
    background: var(--hz-surface);
}

.hz-view button {
    display: grid;
    place-items: center;
    width: 36px;
    height: 42px;
    border-radius: 9px;
    color: var(--hz-muted);
    font-size: 1.05rem;
    cursor: pointer;
    transition: background-color .2s, color .2s;
}

.hz-view button.is-on {
    background: var(--hz-soft);
    color: var(--hz-primary);
}

/* ---------- Active filters ---------- */
.hz-active {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
}

.hz-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    height: 42px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--hz-soft);
    color: var(--hz-primary-dark);
    font-size: 18px;
    text-decoration: none;
    transition: background-color .2s;
}

.hz-tag span:not(.visually-hidden) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hz-tag:hover {
    background: #e9e0f9;
    color: var(--hz-primary-dark);
}

.hz-tag__x {
    font-size: .7rem;
    opacity: .7;
}

.hz-clear {
    padding: 0 6px;
    color: var(--hz-muted);
    font-size: 18px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hz-clear:hover {
    color: var(--hz-danger);
}

/* ---------- Filters modal ---------- */
.hz-sheet {
    position: fixed;
    inset: 0;
    z-index: 1060;
}

.hz-sheet[hidden] {
    display: none;
}

.hz-sheet__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(24, 16, 44, .5);
    backdrop-filter: blur(2px);
    animation: hz-fade .2s ease both;
}

.hz-sheet__panel {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    max-height: 90dvh;
    border-radius: 22px 22px 0 0;
    background: var(--hz-surface);
    box-shadow: 0 -12px 40px rgba(24, 16, 44, .25);
    animation: hz-up .28s cubic-bezier(.2, .8, .2, 1) both;
}

.hz-sheet__head,
.hz-sheet__foot {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
}

.hz-sheet__head {
    justify-content: space-between;
    border-bottom: 1px solid var(--hz-line);
}

.hz-sheet__head h3 {
    font-size: 1.2rem;
}

.hz-sheet__body {
    display: grid;
    gap: 22px;
    padding: 18px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.hz-sheet__foot {
    border-top: 1px solid var(--hz-line);
    padding-bottom: max(14px, env(safe-area-inset-bottom));
}

.hz-sheet__foot .hz-btn {
    flex: 1;
}

.hz-sheet__foot .hz-btn--primary {
    flex: 2;
}

.hz-group {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.hz-group legend {
    float: none;
    width: auto;
    margin: 0 0 10px;
    padding: 0;
    font-size: 1.1rem;
    color: var(--hz-muted);
}

#hzCascade {
    display: grid;
    gap: 12px;
}

.hz-block {
    display: grid;
    gap: 6px;
    margin: 0;
}

.hz-block > span:first-child {
    font-size: 18px;
    color: var(--hz-muted);
}

.hz-price {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
    color: var(--hz-muted);
}

.hz-price input {
    width: 100%;
    height: 56px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: var(--hz-radius-sm);
    background: #f6f3fc;
    color: var(--hz-ink);
    font-size: 20px;
    font-family: inherit;
    cursor: text;
    transition: border-color .2s, box-shadow .2s, background-color .2s;
}

.hz-price input:focus {
    border-color: var(--hz-primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(129, 69, 216, .12);
}

@keyframes hz-fade {
    from { opacity: 0; }
}

@keyframes hz-up {
    from { transform: translateY(40px); opacity: 0; }
}

@keyframes hz-pop {
    from { transform: translate(-50%, -46%) scale(.96); opacity: 0; }
}

/* ---------- Results ---------- */
.hz-results {
    margin-top: 16px;
    scroll-margin-top: 96px;
}

.hz-loading {
    position: fixed;
    inset-block-start: 0;
    inset-inline: 0;
    z-index: 1070;
    height: 3px;
    background: var(--hz-grad);
    background-size: 200% 100%;
    opacity: 0;
    transform-origin: left;
    transition: opacity .2s;
    pointer-events: none;
}

#hzApp.is-loading .hz-loading {
    opacity: 1;
    animation: hz-bar 1s linear infinite;
}

#hzApp.is-loading .hz-results,
#hzApp.is-loading .hz-cats {
    opacity: .55;
    pointer-events: none;
    transition: opacity .2s;
}

@keyframes hz-bar {
    to { background-position: -200% 0; }
}

.hz-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

/* ---------- Ad card ---------- */
.hz-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--hz-line);
    border-radius: var(--hz-radius);
    background: var(--hz-surface);
    box-shadow: var(--hz-shadow);
    transition: transform .25s, box-shadow .25s, border-color .25s;
}

@media (hover: hover) {
    .hz-card:hover {
        transform: translateY(-4px);
        border-color: #d9ccf3;
        box-shadow: var(--hz-shadow-hover);
    }

    .hz-card:hover .hz-card__media img {
        transform: scale(1.05);
    }
}

.hz-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--hz-soft);
}

.hz-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}

.hz-card__ph {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #f6eefc 0%, #ebe3fa 100%);
    color: #c9b6ee;
    font-size: 2.4rem;
}

.hz-card__time {
    position: absolute;
    inset-block-start: 12px;
    inset-inline-start: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: calc(100% - 72px);
    padding: 3px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    color: #6f6a82;
    font-size: 15px;
    line-height: 1.6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* كالتصميم القديم: دائرة وردية صغيرة بقلب أبيض في المنتصف تماماً */
.hz-fav {
    position: absolute;
    inset-block-start: 12px;
    inset-inline-end: 12px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    background: #e894e6;
    color: #fff;
    font-size: 18px;
    line-height: 1;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
    cursor: pointer;
    transition: transform .2s, background-color .2s, color .2s;
}

/* أيقونات bootstrap تضيف vertical-align يزيحها عن المنتصف */
.hz-fav i {
    display: block;
    width: 1em;
    height: 1em;
    line-height: 1;
}

.hz-fav i::before {
    display: block;
    vertical-align: baseline;
    line-height: 1;
}

.hz-fav:hover {
    transform: scale(1.1);
}

.hz-fav.is-on {
    background: #fff;
    color: var(--hz-danger);
}

.hz-fav.is-on i {
    animation: hz-beat .35s ease;
}

@keyframes hz-beat {
    40% { transform: scale(1.35); }
}

.hz-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 6px;
    padding: 12px 14px 14px;
}

.hz-card__price {
    font-size: 1.2rem;
    line-height: 1.3;
}

.hz-card__price .price-with-currency {
    gap: 5px;
}

.hz-card__price .price-amount {
    font-weight: 400;
    font-size: 1.55rem;
    color: var(--hz-primary);
}

.hz-card__price .price-currency {
    width: 24px;
    height: 24px;
    filter: invert(30%) sepia(60%) saturate(2200%) hue-rotate(250deg) brightness(.95);
}

.hz-card__price--none {
    font-size: 1rem;
    color: var(--hz-muted);
}

.hz-card__title {
    font-size: 22px;
    line-height: 1.55;
    min-height: 3.1em;
}

.hz-card__title a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    color: var(--hz-ink);
    text-decoration: none;
}

/* The link covers the whole card so the entire card is clickable */
.hz-card__title a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hz-card__title a:hover {
    color: var(--hz-primary);
}

.hz-card__title a:focus-visible::after {
    outline: 2px solid var(--hz-primary);
    outline-offset: -2px;
    border-radius: var(--hz-radius);
}

.hz-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 12px;
    margin: auto 0 0;
    padding: 8px 0 0;
    border-top: 1px dashed var(--hz-line);
    list-style: none;
    color: var(--hz-muted);
    font-size: 16px;
}

.hz-card__meta li {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    max-width: 100%;
}

.hz-card__meta li span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hz-card__meta i {
    flex: none;
    color: var(--hz-accent);
}

/* List view */
html[data-hz-mode="list"] .hz-grid {
    grid-template-columns: minmax(0, 1fr);
}

html[data-hz-mode="list"] .hz-card {
    flex-direction: row;
}

html[data-hz-mode="list"] .hz-card__media {
    flex: 0 0 38%;
    max-width: 240px;
    aspect-ratio: auto;
    min-height: 130px;
}

html[data-hz-mode="list"] .hz-card__body {
    justify-content: center;
}

html[data-hz-mode="list"] .hz-card__title {
    min-height: 0;
}

html[data-hz-mode="list"] .hz-card__meta {
    margin-top: 0;
}

html[data-hz-mode="list"] .hz-fav {
    inset-inline-end: auto;
    inset-inline-start: 12px;
}

html[data-hz-mode="list"] .hz-card__time {
    display: none;
}

/* ---------- Empty state ---------- */
.hz-empty {
    display: grid;
    justify-items: center;
    gap: 10px;
    margin: 12px 0 8px;
    padding: 56px 20px;
    border: 1px dashed #d9ccf3;
    border-radius: 22px;
    background: var(--hz-surface);
    text-align: center;
}

.hz-empty__icon {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: var(--hz-soft);
    color: var(--hz-primary);
    font-size: 2.2rem;
}

.hz-empty h3 {
    font-size: 1.5rem;
}

.hz-empty p {
    max-width: 420px;
    margin: 0;
    color: var(--hz-muted);
}

.hz-empty__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

/* ---------- Pagination ---------- */
/* ---------- Infinite scroll ---------- */
.hz-more {
    display: grid;
    justify-items: center;
    gap: 10px;
    min-height: 64px;
    margin: 24px 0 8px;
    color: var(--hz-muted);
}

.hz-more__spinner {
    display: none;
    width: 28px;
    height: 28px;
    border: 3px solid #e6dcf7;
    border-top-color: #8145d8;
    border-radius: 50%;
    animation: hz-spin 0.7s linear infinite;
}

.hz-more.is-loading .hz-more__spinner {
    display: block;
}

.hz-more__text {
    margin: 0;
    font-size: 0.95rem;
}

.hz-more__text:empty {
    display: none;
}

@keyframes hz-spin {
    to { transform: rotate(360deg); }
}

.hz-pager-wrap {
    display: grid;
    justify-items: center;
    gap: 10px;
    margin: 28px 0 8px;
}

.hz-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.hz-pager__pages {
    display: none;
    align-items: center;
    gap: 8px;
}

.hz-pager__status {
    min-width: 72px;
    text-align: center;
    color: var(--hz-muted);
    direction: ltr;
}

.hz-pager__btn {
    display: inline-grid;
    place-items: center;
    min-width: 42px;
    height: 50px;
    padding: 0 10px;
    border: 1px solid var(--hz-line);
    border-radius: var(--hz-radius-sm);
    background: var(--hz-surface);
    color: var(--hz-ink);
    text-decoration: none;
    transition: border-color .2s, color .2s, background-color .2s;
}

a.hz-pager__btn:hover {
    border-color: var(--hz-primary);
    color: var(--hz-primary);
}

.hz-pager__btn.is-active {
    border-color: transparent;
    background: var(--hz-grad);
    color: #fff;
    box-shadow: 0 6px 14px -6px rgba(129, 69, 216, .7);
}

.hz-pager__btn.is-disabled {
    opacity: .4;
}

.hz-pager__btn.is-dots {
    border-color: transparent;
    background: transparent;
    min-width: 24px;
    padding: 0;
}

.hz-pager-summary {
    margin: 0;
    font-size: 18px;
    color: var(--hz-muted);
}

/* ==========================================================================
   Breakpoints
   ========================================================================== */
@media (min-width: 576px) {
    .hz-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }

    .hz-pager__pages {
        display: flex;
    }

    .hz-pager__status {
        display: none;
    }

    .hz-slide {
        aspect-ratio: 2.8 / 1;
    }

    .hz-slide > img {
        padding: 16px;
    }

    .hz-slide--cap {
        aspect-ratio: 2.4 / 1;
    }

    .hz-slide--cap > img {
        padding: 0;
    }

    .hz-slide__caption {
        padding: 28px 32px 48px;
    }
}

@media (min-width: 768px) {
    .hz-search {
        grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1fr) auto;
        margin-inline: 24px;
    }

    .hz-search--no-region {
        grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) auto;
    }

    .hz-field--q,
    .hz-search__btn,
    .hz-search--no-region .hz-field--city {
        grid-column: auto;
        grid-row: auto;
    }

    .hz-field--q {
        padding-inline-end: 14px;
    }

    .hz-search__btn {
        grid-row: auto;
        justify-self: stretch;
        align-self: stretch;
        width: auto;
        height: auto;
        min-width: 120px;
        margin: 0;
        padding: 0 22px;
        border-radius: var(--hz-radius-sm);
    }

    .hz-search__btn span {
        display: inline;
    }

    .hz-hero__nav {
        display: grid;
    }

    .hz-hero__brand {
        padding: 48px 48px 78px;
    }

    .hz-sheet__panel {
        inset-inline: auto;
        inset-block: auto;
        top: 50%;
        left: 50%;
        bottom: auto;
        width: min(560px, 92vw);
        max-height: 86dvh;
        border-radius: 22px;
        transform: translate(-50%, -50%);
        animation: hz-pop .25s cubic-bezier(.2, .8, .2, 1) both;
    }

    html[data-hz-mode="list"] .hz-card__media {
        flex-basis: 30%;
        min-height: 150px;
    }
}

@media (min-width: 992px) {
    .hz-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 24px;
    }

    .hz-slide {
        aspect-ratio: 4 / 1;
    }

    .hz-slide > img {
        padding: 18px;
    }

    .hz-slide--cap {
        aspect-ratio: 3.4 / 1;
    }

    .hz-slide--cap > img {
        padding: 0;
    }

    .hz-slide__caption {
        justify-content: center;
        padding: 0 64px;
        background: linear-gradient(to left, rgba(20, 10, 40, .72) 0%, rgba(20, 10, 40, .3) 45%, transparent 75%);
    }

    [dir="ltr"] .hz-slide__caption {
        background: linear-gradient(to right, rgba(20, 10, 40, .72) 0%, rgba(20, 10, 40, .3) 45%, transparent 75%);
    }

    html[data-hz-mode="list"] .hz-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    html[data-hz-mode="list"] .hz-card__body {
        padding: 16px 20px;
    }
}

@media (max-width: 575.98px) {
    .hz-hero__brand {
        padding: 22px 20px 54px;
    }

    .hz-hero__text p,
    .hz-hero__cta .hz-btn--outline-light {
        display: none;
    }

    .hz-hero__cta {
        margin-top: 14px;
    }

    .hz-hero__cta .hz-btn {
        height: 42px;
    }

    .hz-cats {
        margin-top: 16px;
    }

    .hz-toolbar {
        margin-top: 16px;
    }

    .hz-toolbar__tools {
        width: 100%;
    }

    .hz-toolbar .hz-select {
        flex: 1;
    }

    .hz-toolbar .hz-select select {
        width: 100%;
    }

    .hz-card__body {
        padding: 10px 11px 12px;
    }

    .hz-card__price .price-amount {
        font-size: 1.35rem;
    }

    .hz-card__price .price-currency {
        width: 20px;
        height: 20px;
    }

    .hz-fav {
        inset-block-start: 8px;
        inset-inline-end: 8px;
    }

    .hz-card__time {
        inset-block-start: 8px;
        inset-inline-start: 8px;
        padding: 2px 10px;
        font-size: 13px;
    }

    .hz-card__title {
        font-size: 19px;
    }

    html[data-hz-mode="list"] .hz-card__media {
        flex-basis: 40%;
        min-height: 120px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hz-home *,
    .hz-sheet__backdrop,
    .hz-sheet__panel {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}
