/* Ephiro Empty State (Stitch) — "Nenhum alojamento/passeio/evento encontrado".
 *
 * Partial que consome: Includes/empty-state.php
 *
 * Tudo e scoped em `.eph-empty` (nunca em `body`) para nao vazar para o resto
 * do tema. As classes `card`/`btn` do Bootstrap NAO sao usadas de proposito:
 * `Style/ephiro.css` redefine `.btn` e `.card` globalmente com cores e
 * paddings diferentes dos do Stitch.
 *
 * Tokens = paleta do Stitch ja usada em ads-stitch.css / stitch-shell.css.
 * Fontes (Manrope + Noto Serif) vem de stitch-shell.css / stitch-home.css.
 */
.eph-empty {
    --empty-ink: #1b1c1a;
    --empty-muted: #5e6766;
    --empty-teal: #002424;
    --empty-teal-soft: #0d3b3a;
    --empty-tint: #3c6564;
    --empty-ochre: #825500;
    --empty-gold: #fdbe62;
    --empty-gold-soft: #ffddb3;
    --empty-on-gold-soft: #291800;
    --empty-sand: #fbf9f6;
    --empty-surface: #efeeeb;
    --empty-surface-low: #f5f3f0;
    --empty-surface-high: #eae8e5;
    --empty-surface-lowest: #ffffff;
    --empty-outline: #717978;
}

/* ---- Coluna do grid ----
 * As listas vivem em `.row.row-cols-1.row-cols-md-3`, cujas regras
 * `.row-cols-md-3 > *` (mesma especificidade, sem ganho por media query)
 *shrinkariam o cartao para 1/3 da largura no breakpoint md.
 * `.row > .eph-empty-col` tem especificidade superior, por isso o cartao
 * mantem-se sempre a 100% — independentemente da ordem de carregamento. */
.row > .eph-empty-col,
.eph-empty-col {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
}

.eph-empty {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    padding: 32px 24px;
    overflow: hidden;
    border-radius: 24px;
    color: var(--empty-ink);
    background: var(--empty-surface-lowest);
    box-shadow: 0 12px 32px -4px rgba(13, 59, 58, 0.05), 0 1px 3px rgba(13, 59, 58, 0.02);
    font-family: 'Manrope', 'Segoe UI', sans-serif;
}

/* ---- Blobs decorativos (camada arquitectural do mockup) ---- */
.eph-empty__blob {
    position: absolute;
    z-index: 0;
    border-radius: 50%;
    pointer-events: none;
}

.eph-empty__blob--a {
    right: -6rem;
    bottom: -6rem;
    width: 24rem;
    height: 24rem;
    background: rgba(245, 243, 240, 0.7);
}

.eph-empty__blob--b {
    top: -4rem;
    left: 33.333%;
    width: 18rem;
    height: 18rem;
    background: rgba(255, 221, 179, 0.2);
    filter: blur(64px);
}

.eph-empty__inner {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 48rem;
    margin: 0 auto;
    text-align: center;
}

/* ---- Emblema (baobab + sol poente + chave/compasso) ---- */
.eph-empty__emblem {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 9rem;
    height: 9rem;
    margin-bottom: 24px;
}

.eph-empty__halo {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--empty-surface) 0%, rgba(253, 190, 98, 0.4) 100%);
    opacity: 0.7;
    animation: eph-empty-pulse 2.6s ease-in-out infinite;
}

@keyframes eph-empty-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.07);
        opacity: 1;
    }
}

.eph-empty__art {
    position: relative;
    width: 7rem;
    height: 7rem;
}

.eph-empty__art svg {
    display: block;
    width: 100%;
    height: 100%;
}

.eph-empty__chip {
    position: absolute;
    right: 0;
    bottom: -4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    color: #ffffff;
    background: var(--empty-gold);
    box-shadow: 0 4px 10px rgba(13, 59, 58, 0.18);
    font-size: 17px;
}


/* ---- Badge curado ---- */
.eph-empty__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 4px 12px;
    border-radius: 999px;
    color: var(--empty-on-gold-soft);
    background: rgba(255, 221, 179, 0.5);
    font-size: 10px;
    font-weight: 700;
    line-height: 14px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.eph-empty__badge::before {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--empty-ochre);
    content: '';
}

/* ---- Headline + copy ---- */
.eph-empty__title {
    margin: 0 0 16px;
    color: var(--empty-teal);
    font-family: 'Noto Serif', Georgia, 'Times New Roman', serif;
    font-size: 32px;
    font-weight: 500;
    line-height: 40px;
    letter-spacing: -0.01em;
}

.eph-empty__text {
    max-width: 42rem;
    margin: 0 0 32px;
    color: var(--empty-muted);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
}

/* ---- Cluster de accoes ---- */
.eph-empty__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
}

.eph-empty__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    box-sizing: border-box;
    padding: 12px 24px;
    border: 0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    letter-spacing: 0.01em;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.eph-empty__btn:hover {
    transform: translateY(-1px);
}

.eph-empty__btn:active {
    transform: scale(0.97);
}

.eph-empty__btn--primary {
    color: #ffffff;
    background: var(--empty-teal-soft);
    box-shadow: 0 4px 10px rgba(13, 59, 58, 0.22);
}

.eph-empty__btn--primary:hover {
    color: #ffffff;
    background: var(--empty-tint);
    box-shadow: 0 8px 18px rgba(13, 59, 58, 0.26);
}

.eph-empty__btn--ghost {
    color: var(--empty-ink);
    background: var(--empty-surface-high);
}

.eph-empty__btn--ghost:hover {
    color: var(--empty-ink);
    background: var(--empty-surface);
}

.eph-empty__btn--quiet {
    padding-right: 20px;
    padding-left: 20px;
    color: var(--empty-teal);
    background: transparent;
}

.eph-empty__btn--quiet:hover {
    color: var(--empty-ochre);
    background: var(--empty-surface-low);
}

.eph-empty__btn .fa-solid,
.eph-empty__btn .fa-regular,
.eph-empty__btn .fa-brands {
    font-size: 18px;
}

.eph-empty__btn--ghost .fa-solid,
.eph-empty__btn--ghost .fa-regular {
    color: var(--empty-ochre);
}

.eph-empty__btn--quiet .eph-empty__btn-ico {
    color: var(--empty-teal-soft);
    font-size: 18px;
}

/* ---- Focus visivel (acessibilidade) ---- */
.eph-empty__btn:focus-visible {
    outline: 3px solid rgba(212, 154, 66, 0.45);
    outline-offset: 2px;
}

/* ---- Responsive (equivale ao p-8 md:p-14 lg:p-16 do mockup) ---- */
@media (min-width: 768px) {
    .eph-empty {
        padding: 56px 48px;
    }
}

@media (min-width: 992px) {
    .eph-empty {
        padding: 64px;
    }

    .eph-empty__actions {
        width: auto;
    }
}

@media (max-width: 575.98px) {
    .eph-empty {
        padding: 28px 18px;
        border-radius: 20px;
    }

    .eph-empty__emblem {
        width: 7.5rem;
        height: 7.5rem;
        margin-bottom: 20px;
    }

    .eph-empty__art {
        width: 5.5rem;
        height: 5.5rem;
    }

    .eph-empty__title {
        font-size: 24px;
        line-height: 32px;
    }

    .eph-empty__text {
        margin-bottom: 24px;
        font-size: 15px;
        line-height: 23px;
    }

    .eph-empty__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .eph-empty__btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {

    .eph-empty__halo {
        animation: none;
    }

    .eph-empty__btn,
    .eph-empty__btn:hover,
    .eph-empty__btn:active {
        transition: none;
        transform: none;
    }
}
