/*
 * Alojamientos — móvil portal (toolbar + tarjetas PC).
 */

body.page-alojamientos {
    background: #f7f9fe;
}

/* ── Main ── */
body.page-alojamientos .aloj-mobile-main {
    display: block;
    min-height: 100vh;
    padding-top: calc(4rem + env(safe-area-inset-top, 0px));
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
}

/* ── Toolbar: buscador + título (sin sticky, sin solapamientos) ── */
body.page-alojamientos .aloj-mobile-toolbar {
    background: #fff;
    border-bottom: 1px solid #e8edf5;
    padding: 0.75rem 1rem 0.875rem;
    box-shadow: 0 2px 10px rgba(0, 38, 96, 0.04);
}

body.page-alojamientos .aloj-mobile-search-form {
    position: relative;
    width: 100%;
    margin: 0 0 0.875rem;
}

body.page-alojamientos .aloj-mobile-search-row {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
    width: 100%;
}

body.page-alojamientos .aloj-mobile-search-field {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
}

body.page-alojamientos .aloj-mobile-search-form__icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    color: #94a3b8;
    pointer-events: none;
    line-height: 1;
    z-index: 1;
}

body.page-alojamientos .aloj-mobile-search-form__input {
    display: block;
    width: 100%;
    height: 2.75rem !important;
    min-height: 2.75rem !important;
    max-height: 2.75rem !important;
    margin: 0;
    padding: 0 0.875rem 0 2.5rem !important;
    border: 1px solid #d8dee8 !important;
    border-radius: 0.625rem !important;
    background: #f8fafc !important;
    font-size: 0.9375rem !important;
    line-height: 1.25 !important;
    color: #1a1b21 !important;
    box-shadow: none !important;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
}

body.page-alojamientos .aloj-mobile-search-form__input:focus {
    border-color: #003a8c !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(0, 58, 140, 0.1) !important;
}

body.page-alojamientos .aloj-mobile-search-form__input::placeholder {
    color: #94a3b8;
}

body.page-alojamientos .aloj-mobile-search-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    height: 2.75rem;
    padding: 0 0.875rem;
    border: none;
    border-radius: 0.625rem;
    background: #002660;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 38, 96, 0.2);
    transition: background 0.15s ease, transform 0.1s ease;
}

body.page-alojamientos .aloj-mobile-search-btn:active {
    transform: scale(0.97);
    background: #003a8c;
}

body.page-alojamientos .aloj-mobile-search-btn__icon {
    font-size: 1.125rem;
    line-height: 1;
}

body.page-alojamientos .aloj-mobile-search-btn__label {
    line-height: 1;
}

/* Sugerencias móvil */
body.page-alojamientos .aloj-mobile-suggest {
    display: none;
    margin-top: 0.5rem;
    max-height: min(52vh, 320px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    border: 1px solid #dbe4f3;
    border-radius: 0.75rem;
    box-shadow: 0 10px 28px rgba(0, 38, 96, 0.14);
    overscroll-behavior: contain;
}

body.page-alojamientos .aloj-mobile-suggest.show {
    display: block;
}

body.page-alojamientos .aloj-mobile-suggest__empty {
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
    color: #64748b;
    text-align: center;
}

body.page-alojamientos .aloj-mobile-suggest__item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.8rem 1rem;
    border: none;
    border-bottom: 1px solid #f1f5f9;
    background: #fff;
    font-size: 0.875rem;
    line-height: 1.35;
    color: #1a2c55;
    cursor: pointer;
}

body.page-alojamientos .aloj-mobile-suggest__item:last-child {
    border-bottom: none;
}

body.page-alojamientos .aloj-mobile-suggest__item:active,
body.page-alojamientos .aloj-mobile-suggest__item.is-active {
    background: #eef4ff;
}

body.page-alojamientos .aloj-mobile-suggest__item-type {
    display: block;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 0.15rem;
}

body.page-alojamientos .aloj-mobile-suggest__item-label {
    display: block;
    font-weight: 600;
    color: #002660;
}

body.page-alojamientos .aloj-mobile-suggest__footer {
    position: sticky;
    bottom: 0;
    padding: 0.5rem;
    background: linear-gradient(to top, #fff 85%, rgba(255, 255, 255, 0));
    border-top: 1px solid #eef2f8;
}

body.page-alojamientos .aloj-mobile-suggest__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
    padding: 0.7rem 1rem;
    border: none;
    border-radius: 0.5rem;
    background: #002660;
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: pointer;
}

body.page-alojamientos .aloj-mobile-suggest__submit:active {
    background: #003a8c;
}

/* ── Cabecera de resultados ── */
body.page-alojamientos .aloj-mobile-results-head {
    margin: 0;
}

body.page-alojamientos .aloj-mobile-results-head__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.625rem;
    margin-bottom: 0.25rem;
}

body.page-alojamientos .aloj-mobile-results-head h2 {
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
    font-size: 1.125rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: #002660;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.page-alojamientos .aloj-mobile-results-head__sub {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.35;
    color: #64748b;
}

body.page-alojamientos .aloj-mobile-filter-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    height: 2.125rem;
    padding: 0 0.75rem;
    border-radius: 9999px;
    border: 1px solid #c7d4ea;
    background: #fff;
    color: #002660;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 38, 96, 0.06);
    transition: background 0.15s ease, border-color 0.15s ease;
}

body.page-alojamientos .aloj-mobile-filter-btn:active {
    background: #f0f5ff;
    border-color: #003a8c;
}

body.page-alojamientos .aloj-mobile-filter-btn__icon {
    font-size: 1.05rem;
    line-height: 1;
}

body.page-alojamientos .aloj-mobile-filter-btn__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.125rem;
    height: 1.125rem;
    padding: 0 0.3rem;
    border-radius: 9999px;
    background: #002660;
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    line-height: 1;
}

/* ── Panel de filtros (bottom sheet) ── */
body.aloj-filter-sheet-open {
    overflow: hidden;
}

body.page-alojamientos .aloj-mobile-filter-sheet {
    position: fixed;
    inset: 0;
    z-index: 10050;
    pointer-events: none;
    visibility: hidden;
}

body.page-alojamientos .aloj-mobile-filter-sheet.is-open {
    pointer-events: auto;
    visibility: visible;
}

body.page-alojamientos .aloj-mobile-filter-sheet__backdrop {
    position: absolute;
    inset: 0;
    border: none;
    padding: 0;
    margin: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    transition: opacity 0.25s ease;
    cursor: pointer;
}

body.page-alojamientos .aloj-mobile-filter-sheet.is-open .aloj-mobile-filter-sheet__backdrop {
    opacity: 1;
}

body.page-alojamientos .aloj-mobile-filter-sheet__panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: min(88vh, 640px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 1rem 1rem 0 0;
    box-shadow: 0 -8px 32px rgba(0, 38, 96, 0.18);
    transform: translateY(100%);
    transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

body.page-alojamientos .aloj-mobile-filter-sheet.is-open .aloj-mobile-filter-sheet__panel {
    transform: translateY(0);
}

body.page-alojamientos .aloj-mobile-filter-sheet__handle {
    width: 2.5rem;
    height: 0.25rem;
    margin: 0.5rem auto 0;
    border-radius: 9999px;
    background: #dbe4f3;
    flex-shrink: 0;
}

body.page-alojamientos .aloj-mobile-filter-sheet__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem 0.5rem;
    flex-shrink: 0;
}

body.page-alojamientos .aloj-mobile-filter-sheet__header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 800;
    color: #002660;
}

body.page-alojamientos .aloj-mobile-filter-sheet__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    border-radius: 9999px;
    background: #f1f5f9;
    color: #475569;
    cursor: pointer;
}

body.page-alojamientos .aloj-mobile-filter-sheet__form {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 1rem 1rem;
}

body.page-alojamientos .aloj-mobile-filter-block {
    margin-bottom: 1.125rem;
}

body.page-alojamientos .aloj-mobile-filter-block__title {
    margin: 0 0 0.625rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}

body.page-alojamientos .aloj-mobile-filter-dates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.625rem;
}

body.page-alojamientos .aloj-mobile-filter-date-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

body.page-alojamientos .aloj-mobile-filter-date-field span {
    font-size: 0.75rem;
    font-weight: 600;
    color: #334155;
}

body.page-alojamientos .aloj-mobile-filter-date-input {
    width: 100%;
    height: 2.625rem;
    padding: 0 0.625rem;
    border: 1px solid #d8dee8;
    border-radius: 0.5rem;
    background: #f8fafc;
    font-size: 0.875rem;
    color: #1a1b21;
    box-sizing: border-box;
}

body.page-alojamientos .aloj-mobile-filter-counters {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

body.page-alojamientos .aloj-mobile-filter-counter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.875rem;
    color: #1e293b;
}

body.page-alojamientos .aloj-mobile-filter-counter:last-child {
    border-bottom: none;
}

body.page-alojamientos .aloj-mobile-filter-counter__ctrl {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

body.page-alojamientos .aloj-mobile-filter-counter__ctrl span {
    min-width: 1.25rem;
    text-align: center;
    font-weight: 700;
    color: #002660;
}

body.page-alojamientos .aloj-mobile-filter-counter__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid #dbe4f3;
    border-radius: 9999px;
    background: #fff;
    color: #002660;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
}

body.page-alojamientos .aloj-mobile-filter-checks {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

body.page-alojamientos .aloj-mobile-filter-check {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 0.75rem;
    border: 1px solid #e8edf5;
    border-radius: 0.5rem;
    background: #fafbfc;
    font-size: 0.875rem;
    color: #1e293b;
    cursor: pointer;
}

body.page-alojamientos .aloj-mobile-filter-check input {
    width: 1rem;
    height: 1rem;
    accent-color: #002660;
    flex-shrink: 0;
}

body.page-alojamientos .aloj-mobile-filter-sheet__actions {
    position: sticky;
    bottom: 0;
    padding-top: 0.75rem;
    background: linear-gradient(to top, #fff 80%, rgba(255, 255, 255, 0));
}

body.page-alojamientos .aloj-mobile-filter-sheet__apply {
    display: block;
    width: 100%;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 0.625rem;
    background: #002660;
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: pointer;
}

body.page-alojamientos .aloj-mobile-filter-sheet__apply:active {
    background: #003a8c;
}

body.page-alojamientos .aloj-mobile-filter-sheet__clear {
    display: block;
    margin-top: 0.625rem;
    text-align: center;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
}

/* ── Grid de tarjetas ── */
body.page-alojamientos .aloj-mobile-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem;
}

body.page-alojamientos .aloj-mobile-grid .aloj-card {
    border-radius: 0.875rem;
    box-shadow: 0 4px 16px rgba(0, 38, 96, 0.07);
    overflow: hidden;
}

body.page-alojamientos .aloj-mobile-grid .aloj-card-title {
    font-size: 1.125rem !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
}

body.page-alojamientos .aloj-mobile-grid .aloj-brisa-title,
body.page-alojamientos .aloj-mobile-grid .aloj-arena-title,
body.page-alojamientos .aloj-mobile-grid .aloj-selva-title,
body.page-alojamientos .aloj-mobile-grid .aloj-atardecer-title {
    font-size: 1.125rem;
    line-height: 1.25;
}

body.page-alojamientos .aloj-mobile-grid .aloj-card .relative.h-48 {
    height: 10.5rem;
}

body.page-alojamientos .aloj-mobile-grid .aloj-card .p-6,
body.page-alojamientos .aloj-mobile-grid .aloj-brisa-body,
body.page-alojamientos .aloj-mobile-grid .aloj-arena-body,
body.page-alojamientos .aloj-mobile-grid .aloj-selva-body,
body.page-alojamientos .aloj-mobile-grid .aloj-atardecer-body {
    padding: 1rem !important;
}

body.page-alojamientos .aloj-mobile-grid .aloj-amenities-box,
body.page-alojamientos .aloj-mobile-grid .aloj-brisa-amenities-box,
body.page-alojamientos .aloj-mobile-grid .aloj-arena-amenities-box,
body.page-alojamientos .aloj-mobile-grid .aloj-selva-amenities-box,
body.page-alojamientos .aloj-mobile-grid .aloj-atardecer-amenities-box {
    margin-bottom: 0.875rem !important;
}

body.page-alojamientos .aloj-mobile-grid a.bg-primary,
body.page-alojamientos .aloj-mobile-grid .aloj-brisa-cta,
body.page-alojamientos .aloj-mobile-grid .aloj-arena-cta,
body.page-alojamientos .aloj-mobile-grid .aloj-selva-cta,
body.page-alojamientos .aloj-mobile-grid .aloj-atardecer-cta {
    color: #fff !important;
}

body.page-alojamientos .aloj-mobile-grid a.bg-primary {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.7rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ── Cabecera portal ── */
body.page-alojamientos.nz-user-portal header.aloj-portal-header {
    display: block !important;
}

body.page-alojamientos.nz-user-portal header.aloj-portal-header .max-w-7xl {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

body.page-alojamientos.nz-user-portal header.aloj-portal-header img[alt="Netzerd"] {
    height: 2rem;
    max-width: 6.5rem;
    object-fit: contain;
}

@media (min-width: 768px) {
    body.page-alojamientos .aloj-mobile-main {
        display: none !important;
    }
}
