/* Página de resultados de casas (templates/homes/results.html). */
.hr-wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

.hr-hero {
    background: var(--pm-hero-bg, var(--brand-ink, #16213e));
    color: var(--pm-hero-text, #fff);
    padding: 52px 0 64px;
}
.hr-kicker { font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .8; margin: 0 0 10px; }
.hr-title { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 900; letter-spacing: -.03em; line-height: 1.05; margin: 0 0 12px; color: inherit; }
.hr-lead { font-size: 1.1rem; line-height: 1.55; max-width: 620px; opacity: .9; margin: 0 0 28px; }
.hr-summary { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.hr-summary span { background: rgba(255, 255, 255, .14); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: .95rem; }
.hr-search .hs-form { margin: 0; max-width: none; }

.hr-trust { background: #fff; border-bottom: 1px solid #e8ebf0; }
.hr-trust__list { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 auto; }
.hr-trust__list li { padding: 20px 16px; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid #e8ebf0; }
.hr-trust__list li:first-child { border-left: 0; padding-left: 0; }
.hr-trust__list strong { font-size: .98rem; color: var(--brand-ink, #16213e); }
.hr-trust__list span { font-size: .86rem; color: #5d6878; }

.hr-main { padding: 34px 0 60px; }

.hr-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 24px; }
.hr-toolbar__count strong { display: block; font-size: 1.4rem; font-weight: 900; color: var(--brand-ink, #16213e); letter-spacing: -.01em; }
.hr-toolbar__count span { color: #5d6878; }
.hr-toolbar__controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hr-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.hr-chip {
    display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px;
    border: 1px solid #d9dee6; background: #fff; color: var(--brand-ink, #16213e); font-weight: 700; font-size: .92rem; text-decoration: none;
}
.hr-chip:hover { border-color: var(--brand-accent, #c0336d); color: var(--brand-accent, #c0336d); text-decoration: none; }
.hr-chip.is-active { background: var(--brand-ink, #16213e); border-color: var(--brand-ink, #16213e); color: #fff; }
.hr-chip.is-active::before { content: "\2713"; margin-right: 6px; }
.hr-sort { display: flex; align-items: center; gap: 8px; margin: 0; font-size: .9rem; color: #5d6878; font-weight: 600; }
.hr-sort select {
    height: 40px; border-radius: 999px; border: 1px solid #d9dee6; padding: 0 36px 0 14px; font-weight: 700; color: var(--brand-ink, #16213e);
    appearance: none; -webkit-appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d6878' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 12px center / 14px;
}

.hr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.hr-card {
    display: flex; flex-direction: column; background: #fff; border-radius: 20px; overflow: hidden;
    border: 1px solid #e8ebf0; transition: box-shadow .2s ease, transform .2s ease;
}
.hr-card:hover { box-shadow: 0 22px 48px rgba(16, 24, 40, .12); transform: translateY(-3px); }
.hr-card__media { position: relative; aspect-ratio: 3 / 2; background: #eef1f5; }
.hr-card__slides { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hr-card__slides::-webkit-scrollbar { display: none; }
.hr-card__slides img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; display: block; }
.hr-card__nav {
    position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; border: 0;
    background: rgba(255, 255, 255, .92); color: #16213e; font-size: 1.5rem; line-height: 1; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .18); opacity: 0; transition: opacity .15s ease; cursor: pointer; padding: 0 0 3px;
}
.hr-card__nav--prev { left: 10px; }
.hr-card__nav--next { right: 10px; }
.hr-card:hover .hr-card__nav, .hr-card__nav:focus-visible { opacity: 1; }
.hr-card__badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; pointer-events: none; }
.hr-badge { background: #fff; color: #16213e; font-size: .76rem; font-weight: 800; padding: 5px 10px; border-radius: 999px; box-shadow: 0 4px 12px rgba(0, 0, 0, .15); }
.hr-card__count { position: absolute; right: 12px; bottom: 12px; background: rgba(16, 24, 40, .72); color: #fff; font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; pointer-events: none; }

.hr-card__body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.hr-card__place { margin: 0 0 4px; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-accent, #c0336d); }
.hr-card__title { font-size: 1.22rem; font-weight: 800; margin: 0 0 10px; color: var(--brand-ink, #16213e); line-height: 1.25; }
.hr-specs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 0; }
.hr-specs li { background: #f3f5f8; border-radius: 8px; padding: 4px 9px; font-size: .84rem; font-weight: 600; color: #3b4452; }
.hr-card__summary {
    font-size: .9rem; line-height: 1.5; color: #5d6878; margin: 0 0 16px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hr-card__foot { margin-top: auto; padding-top: 14px; border-top: 1px solid #eef0f4; }
.hr-price { display: flex; flex-direction: column; margin-bottom: 8px; }
.hr-price__total { font-size: 1.7rem; font-weight: 900; color: var(--brand-ink, #16213e); letter-spacing: -.02em; line-height: 1.1; }
.hr-price__basis { font-size: .86rem; color: #5d6878; font-weight: 600; }
.hr-price__night { font-size: .86rem; color: #5d6878; margin-top: 2px; }
.hr-price__pp { display: inline-block; align-self: flex-start; margin-top: 6px; font-size: .82rem; font-weight: 700; color: var(--brand-accent, #c0336d); background: color-mix(in srgb, var(--brand-accent, #c0336d) 9%, #fff); border-radius: 999px; padding: 3px 10px; }
.hr-cancel { margin: 0 0 14px; font-size: .86rem; font-weight: 700; color: #0f7b3f; }
.hr-cancel::before { content: "\2713"; margin-right: 6px; }

.hr-btn {
    display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: 999px;
    background: var(--brand-btn-bg, var(--brand-accent, #c0336d)); color: var(--brand-btn-text, #fff); font-weight: 800; font-size: 1rem;
    text-decoration: none; box-shadow: 0 10px 22px rgba(0, 0, 0, .12); transition: transform .15s ease, filter .15s ease;
}
.hr-btn:hover { color: var(--brand-btn-text, #fff); text-decoration: none; transform: translateY(-1px); filter: brightness(1.05); }
.hr-btn--block { display: flex; width: 100%; }

.hr-pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 36px 0 0; }
.hr-pager__item {
    min-width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px;
    border: 1px solid #d9dee6; background: #fff; font-weight: 700; color: var(--brand-ink, #16213e); text-decoration: none;
}
.hr-pager__item:hover { border-color: var(--brand-accent, #c0336d); text-decoration: none; }
.hr-pager__item.is-active { background: var(--brand-ink, #16213e); border-color: var(--brand-ink, #16213e); color: #fff; }

.hr-state { text-align: center; max-width: 620px; margin: 30px auto; padding: 44px 28px; background: #fff; border-radius: 20px; border: 1px solid #e8ebf0; }
.hr-state__title { font-size: 1.45rem; font-weight: 800; margin: 0 0 10px; color: var(--brand-ink, #16213e); }
.hr-state__text { color: #5d6878; margin: 0 0 22px; line-height: 1.55; }

.hr-legal { margin: 40px 0 0; font-size: .8rem; color: #7a8494; text-align: center; line-height: 1.6; }

@media (max-width: 1199.98px) {
    .hr-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767.98px) {
    .hr-hero { padding: 32px 0 40px; }
    .hr-trust__list { grid-template-columns: 1fr 1fr; }
    .hr-trust__list li { padding: 14px 10px; }
    .hr-trust__list li:nth-child(odd) { border-left: 0; padding-left: 0; }
    .hr-trust__list li:nth-child(n+3) { border-top: 1px solid #e8ebf0; }
    .hr-grid { grid-template-columns: 1fr; gap: 18px; }
    .hr-toolbar { flex-direction: column; align-items: stretch; }
    .hr-toolbar__controls { justify-content: space-between; }
    .hr-card__nav { opacity: 1; width: 32px; height: 32px; }
}

.hr-card__link { color: inherit; text-decoration: none; }
.hr-card__link:hover { color: var(--brand-accent, #c0336d); text-decoration: none; }

/* Filtro por características (tags de la API): uno o varios, combinados con "y". */
.hr-tags { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; margin: -8px 0 24px; }
.hr-tags__label { font-size: .85rem; font-weight: 800; color: #5d6878; text-transform: uppercase; letter-spacing: .06em; }
.hr-chip small { margin-left: 6px; font-weight: 700; color: #8a94a6; }
@media (max-width: 767.98px) {
    .hr-tags { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -20px; padding-right: 20px; }
    .hr-tags::-webkit-scrollbar { display: none; }
    .hr-tags .hr-chips { flex-wrap: nowrap; }
    .hr-tags .hr-chip { white-space: nowrap; }
}

/* Portada de casas (sin fechas): título de la grilla, intro y "elegí fechas" en vez del precio. */
.hr-toolbar__h { margin: 0; font-size: 1.4rem; font-weight: 900; color: var(--brand-ink, #16213e); letter-spacing: -.01em; }
.hr-intro { max-width: 860px; margin: -6px 0 26px; color: #3b4352; line-height: 1.6; }
.hr-price__ask { margin: 0 0 12px; font-weight: 800; color: var(--brand-ink, #16213e); }

