/* Zenperi — página principal (home), estilo day-use marketplace */

.zenperi-home {
    --zhome-primary: #0073aa;
    --zhome-secondary: #005177;
    --zhome-accent: #e8604c;
    color: #1f2937;
}
.zenperi-home h2 { font-size: 1.6rem; font-weight: 700; color: #111827; margin: 0 0 1.1rem; letter-spacing: -.3px; }

/* ===== Hero ===== */
.zhome-hero {
    position: relative;
    background: linear-gradient(135deg, var(--zhome-primary), var(--zhome-secondary));
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 5.5rem 1.25rem 6.5rem;
    border-radius: 0 0 28px 28px;
    margin-bottom: 1.75rem;
    text-align: center;
}
/* Overlay verde-escuro: garante contraste do texto branco mesmo sem foto
   (deixa o verde "encorpado") e escurece a foto de fundo quando houver.
   border-radius herdado p/ não vazar do canto arredondado; sem overflow:hidden
   no hero para o dropdown da busca não ser cortado. */
.zhome-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(6,38,28,.50), rgba(6,38,28,.68));
    z-index: 0;
}
.zhome-hero-inner { position: relative; z-index: 1; max-width: 1000px; margin: 0 auto; }
.zhome-hero h1 {
    font-size: 2.9rem; line-height: 1.08; margin: 0 0 .7rem; color: #fff;
    font-weight: 800; letter-spacing: -.5px;
    text-shadow: 0 2px 18px rgba(0,0,0,.35);
}
.zhome-hero p {
    font-size: 1.15rem; opacity: .96; margin: 0 0 2.2rem;
    text-shadow: 0 1px 10px rgba(0,0,0,.3);
}
@media (max-width: 600px) { .zhome-hero { padding: 3rem 1rem 4.5rem; } .zhome-hero h1 { font-size: 2rem; } }

/* ===== Barra de busca (pílula multi-campo) ===== */
.zhome-search {
    display: flex;
    align-items: stretch;
    background: #fff;
    border-radius: 999px;
    box-shadow: 0 16px 48px rgba(0,0,0,.22);
    max-width: 980px;
    margin: 0 auto;
    padding: .45rem .45rem .45rem 0;
    text-align: left;
}
.zhome-search-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: .55rem 1.1rem;
    border-left: 1px solid #eef0f2;
    min-width: 0;
}
.zhome-search-field:first-child { border-left: none; }
.zhome-search-where { flex: 1.6; }
.zhome-search-time { flex: .8; }
.zhome-search-field label {
    font-size: .72rem;
    font-weight: 700;
    color: #374151;
    text-transform: none;
    margin-bottom: .1rem;
}
.zhome-search-field input {
    border: none;
    background: transparent;
    padding: 0;
    font: inherit;
    font-size: .95rem;
    color: #1f2937;
    outline: none;
    width: 100%;
    min-width: 0;
}
.zhome-search-field input::placeholder { color: #9ca3af; }
.zhome-search-btn {
    flex: 0 0 auto;
    align-self: center;
    width: 52px;
    height: 52px;
    margin-left: .35rem;
    border-radius: 50%;
    background: var(--zhome-accent);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: filter .15s;
}
.zhome-search-btn:hover { filter: brightness(.93); }
@media (max-width: 820px) {
    .zhome-search {
        flex-direction: column;
        border-radius: 18px;
        padding: .35rem;
        gap: .15rem;
    }
    .zhome-search-field { border-left: none; border-bottom: 1px solid #eef0f2; padding: .6rem .9rem; }
    .zhome-search-btn { width: 100%; border-radius: 12px; height: 46px; margin: .35rem 0 0; }
}

/* ===== Autocomplete da busca ===== */
.zhome-search-where { position: relative; }
.zhome-suggest {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 340px;
    max-width: 92vw;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 18px 48px rgba(0,0,0,.22);
    border: 1px solid #eef0f2;
    z-index: 50;
    padding: .35rem;
    text-align: left;
}
.zhome-suggest-item {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .6rem .7rem;
    border-radius: 10px;
    text-decoration: none !important;
    color: #1f2937;
}
.zhome-suggest-item:hover,
.zhome-suggest-item.is-active { background: #f3f4f6; color: #1f2937; }
.zhome-suggest-ico {
    flex: 0 0 auto;
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: #f3f4f6;
    color: var(--zhome-primary);
}
.zhome-suggest-ico svg { width: 18px; height: 18px; }
.zhome-suggest-prop { color: var(--zhome-accent); }
.zhome-suggest-text { display: flex; flex-direction: column; min-width: 0; }
.zhome-suggest-label { font-weight: 600; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zhome-suggest-sub { color: #6b7280; font-size: .8rem; }
@media (max-width: 820px) {
    .zhome-suggest { min-width: 0; width: 100%; }
}

/* ===== Selos de confiança ===== */
.zhome-trust {
    max-width: 1100px;
    margin: 0 auto 2.5rem;
    padding: 1.5rem 1rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    border-bottom: 1px solid #eef0f2;
}
.zhome-trust-item { display: flex; align-items: flex-start; gap: .7rem; }
.zhome-trust-ico {
    flex: 0 0 auto;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: #edf4f1; /* fallback p/ navegadores sem color-mix */
    background: color-mix(in srgb, var(--zhome-primary) 14%, #fff);
    color: var(--zhome-primary);
}
.zhome-trust-ico svg { width: 20px; height: 20px; }
.zhome-trust-txt { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.zhome-trust-txt strong { font-size: .95rem; color: #1f2937; }
.zhome-trust-txt span { color: #6b7280; font-size: .85rem; }
@media (max-width: 720px) { .zhome-trust { grid-template-columns: 1fr 1fr; } }

/* ===== Linhas (carrossel horizontal) ===== */
.zhome-section { max-width: 1200px; margin: 0 auto 2.5rem; padding: 0 1rem; }
.zhome-section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1rem; }
.zhome-section-head h2 { margin: 0; }
.zhome-seeall { color: var(--zhome-primary); text-decoration: none; font-weight: 600; white-space: nowrap; }

.zhome-row {
    display: grid;
    grid-auto-flow: column;
    /* Largura FIXA por card: um anúncio sozinho não estica pra largura toda */
    grid-auto-columns: minmax(250px, 280px);
    justify-content: start;
    gap: 1.1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: .5rem;
    -webkit-overflow-scrolling: touch;
}
.zhome-row > .zenperi-card { scroll-snap-align: start; }
.zhome-row::-webkit-scrollbar { height: 8px; }
.zhome-row::-webkit-scrollbar-thumb { background: #d8dbdf; border-radius: 999px; }
@media (min-width: 900px) {
    .zhome-row { grid-auto-columns: minmax(270px, 300px); }
}

/* ===== Categorias ===== */
.zhome-categories { margin-top: 1rem; }
.zhome-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .9rem; }
.zhome-cat {
    display: flex; align-items: center; gap: .75rem;
    padding: .9rem 1rem; border-radius: 14px;
    background: #fff; color: #1f2937; text-decoration: none;
    border: 1px solid #e6e9ed;
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.zhome-cat:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(0,0,0,.08);
    border-color: color-mix(in srgb, var(--zhome-primary) 40%, #e6e9ed);
    color: #1f2937;
}
.zhome-cat-ico {
    flex: 0 0 auto;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px;
    background: #edf4f1; /* fallback */
    background: color-mix(in srgb, var(--zhome-primary) 14%, #fff);
    color: var(--zhome-primary);
}
.zhome-cat-ico svg { width: 20px; height: 20px; }
.zhome-cat-text { display: flex; flex-direction: column; min-width: 0; }
.zhome-cat-name { font-weight: 700; font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zhome-cat-count { color: #6b7280; font-size: .82rem; margin-top: .1rem; }

/* ===== Como funciona ===== */
.zhome-how { text-align: center; }
.zhome-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 880px;
    margin: 0 auto;
}
.zhome-step { padding: .5rem; }
.zhome-step-n {
    display: inline-flex; align-items: center; justify-content: center;
    width: 52px; height: 52px; border-radius: 50%;
    background: var(--zhome-primary); color: #fff; font-weight: 700; font-size: 1.15rem;
    margin-bottom: .8rem;
    box-shadow: 0 6px 16px color-mix(in srgb, var(--zhome-primary) 35%, transparent);
}
.zhome-step h3 { margin: .2rem 0 .4rem; font-size: 1.15rem; }
.zhome-step p { color: #4b5563; margin: 0; }

/* ===== CTA anfitrião ===== */
.zhome-cta {
    background: linear-gradient(135deg, var(--zhome-secondary), var(--zhome-primary));
    color: #fff; border-radius: 16px; margin: 1rem 1rem 3rem;
    padding: 3rem 1.25rem; text-align: center;
}
.zhome-cta-inner { max-width: 720px; margin: 0 auto; }
.zhome-cta h2 { color: #fff; margin: 0 0 .5rem; }
.zhome-cta p { opacity: .95; margin: 0 0 1.5rem; font-size: 1.05rem; }
.zhome-cta-btn {
    display: inline-block; background: #fff; color: var(--zhome-secondary);
    padding: .85rem 2rem; border-radius: 999px; font-weight: 700; text-decoration: none;
    transition: transform .15s;
}
.zhome-cta-btn:hover { transform: translateY(-2px); color: var(--zhome-primary); }
