/* hosp.ejs — hospedagem: reservas + cards acomodação */
:root {
    --brand: #0d9488;
    --brand-lt: #ccfbf1;
    --brand-dk: #0f766e;
    --accent: #f97316;
}

body {
    font-family: 'Inter', 'DM Sans', system-ui, sans-serif;
}

/* Formulário de reserva no hero */
.form-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0 12px;
}

.form-section-label {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--brand);
    background: var(--brand-lt);
    padding: 3px 10px;
    border-radius: 100px;
    white-space: nowrap;
}

.form-section-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

.date-row,
.people-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 575.98px) {
    .date-row,
    .people-row {
        grid-template-columns: 1fr;
    }

    .hcard-actions {
        grid-template-columns: 1fr;
    }
}

/* Cards de acomodação */
.hcard {
    background: var(--surface);
    border-radius: var(--r-xl);
    border: 1px solid var(--border);
    box-shadow: var(--sh-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--t), box-shadow var(--t);
}

.hcard:hover {
    transform: translateY(-5px);
    box-shadow: var(--sh-lg);
}

.hcard-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.hcard-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}

.hcard:hover .hcard-img img {
    transform: scale(1.05);
}

.hcard-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .04em;
    color: #fff;
}

.hcard-star {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fbbf24;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .72rem;
    box-shadow: 0 2px 8px rgba(251, 191, 36, .4);
}

.hcard-city {
    position: absolute;
    bottom: 12px;
    left: 12px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: .72rem;
    font-weight: 700;
    color: #fff;
    background: rgba(0, 0, 0, .45);
    padding: 3px 10px;
    border-radius: 100px;
    backdrop-filter: blur(4px);
}

.hcard-body {
    padding: 18px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hcard-title {
    font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-900);
}

.hcard-desc {
    font-size: .85rem;
    color: var(--text-500);
    line-height: 1.6;
    flex: 1;
}

.hcard-price {
    font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--brand);
    padding: 8px 0;
    border-top: 1px solid var(--border);
}

.hcard-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    margin-top: 4px;
}

.hosp-acom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: var(--sp-md);
}

/* Skeleton acomodações */
.sk-hcard {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    overflow: hidden;
}

.sk-hcard-img {
    aspect-ratio: 16/10;
    position: relative;
}

.sk-hcard-body {
    padding: 18px 20px 20px;
}

.sk-hcard-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.sk-hcard-btn-main {
    height: 40px;
    border-radius: var(--r-md);
}

.sk-hcard-btn-view {
    height: 40px;
    width: 60px;
    border-radius: var(--r-md);
}

@media (max-width: 767.98px) {
    #sk_produtos > .c-xl > div:last-child,
    #sk_ofertas1 > .c-xl > div:last-child {
        grid-template-columns: 1fr;
    }

    #sk_produtos .sk-hcard:nth-child(n+2),
    #sk_ofertas1 .sk-icard:nth-child(n+2) {
        display: none;
    }
}
