/*
 * AlojamientosRurales - Home
 * CSS único y específico de la portada pública.
 */

.ar-home-release {
    gap: 26px !important;
}

/* Hero / buscador */
.ar-public-shell.ar-home-release > .ar-home-hero,
.ar-home-release .ar-home-hero {
    position: relative !important;
    isolation: isolate !important;
    display: block !important;
    margin: 0 !important;
    padding: clamp(44px, 5vw, 68px) 0 clamp(52px, 5.4vw, 76px) !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
}

.ar-public-shell.ar-home-release > .ar-home-hero::before,
.ar-home-release .ar-home-hero::before {
    content: "" !important;
    position: absolute !important;
    z-index: -1 !important;
    left: 50% !important;
    top: -34px !important;
    bottom: 0 !important;
    width: 100vw !important;
    transform: translateX(-50%) !important;
    border-radius: 0 !important;
    background:
        radial-gradient(circle at 8% 0%, rgba(139, 195, 74, .24), transparent 36%),
        radial-gradient(circle at 94% 6%, rgba(59, 132, 70, .18), transparent 40%),
        linear-gradient(180deg, #edf7e6 0%, #f5faf0 46%, rgba(248, 251, 245, 0) 100%) !important;
    pointer-events: none !important;
}

.ar-public-shell.ar-home-release > .ar-home-hero::after,
.ar-home-release .ar-home-hero::after {
    content: "" !important;
    position: absolute !important;
    z-index: -1 !important;
    left: 50% !important;
    top: -34px !important;
    width: 100vw !important;
    height: 1px !important;
    transform: translateX(-50%) !important;
    background: rgba(190, 214, 176, .62) !important;
    pointer-events: none !important;
}

.ar-home-release .ar-home-hero__content {
    width: min(650px, 100%) !important;
    margin: 0 auto !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    text-align: left !important;
}

.ar-home-release .ar-home-hero h1 {
    display: block !important;
    max-width: none !important;
    margin: 0 0 13px !important;
    color: #132515 !important;
    font-size: clamp(26px, 3.3vw, 40px) !important;
    line-height: 1.08 !important;
    letter-spacing: -.65px !important;
    text-align: left !important;
    white-space: nowrap !important;
    text-shadow: none !important;
}

.ar-home-release .ar-home-hero h1::after {
    content: "" !important;
    display: block !important;
    width: 58px !important;
    height: 4px !important;
    margin-top: 12px !important;
    border-radius: 999px !important;
    background: linear-gradient(90deg, #3b8446, #9bc43f) !important;
}

.ar-home-release .ar-home-main-search,
.ar-home-release .ar-home-main-search__row {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.ar-home-release .ar-home-main-search__row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 246px 118px !important;
    gap: 10px !important;
    align-items: stretch !important;
}

.ar-home-release .ar-search-input-wrap,
.ar-home-release .ar-home-persons-control,
.ar-home-release .ar-home-primary-button {
    height: 52px !important;
    min-height: 52px !important;
    border-radius: 14px !important;
}

.ar-home-release .ar-search-input-wrap,
.ar-home-release .ar-home-persons-control {
    border: 1px solid #d1dde5 !important;
    background: rgba(255, 255, 255, .97) !important;
    box-shadow: 0 10px 24px rgba(20, 30, 40, .06) !important;
}

.ar-home-release .ar-search-input-wrap {
    display: grid !important;
    grid-template-columns: 46px minmax(0, 1fr) !important;
    align-items: center !important;
}

.ar-home-release .ar-search-icon {
    position: static !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 46px !important;
    height: 100% !important;
    color: #8f9aa6 !important;
    transform: none !important;
    pointer-events: none !important;
}

.ar-home-release .ar-search-input-wrap::after {
    display: none !important;
    content: none !important;
}

.ar-home-release .ar-home-main-search__row .ar-search-input {
    grid-column: 2 !important;
    width: 100% !important;
    height: 50px !important;
    min-height: 50px !important;
    padding: 0 14px 0 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #172331 !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    text-align: left !important;
    box-shadow: none !important;
}

.ar-home-release .ar-home-main-search__row .ar-search-input::placeholder {
    color: #8f9aa6 !important;
    font-weight: 400 !important;
    text-align: left !important;
}

.ar-home-release .ar-home-main-search__row .ar-suggest-box {
    grid-column: 1 / -1 !important;
}

.ar-home-release .ar-home-persons-control {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 0 10px 0 12px !important;
    overflow: hidden !important;
}

.ar-home-release .ar-home-persons-label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: 0 !important;
}

.ar-home-release .ar-home-persons-label svg {
    width: 19px !important;
    height: 19px !important;
    flex: 0 0 auto !important;
    fill: #9aa4af !important;
}

.ar-home-release .ar-home-persons-label strong {
    color: #344252 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
}

.ar-home-release .ar-home-persons-counter {
    display: inline-grid !important;
    grid-template-columns: 30px 44px 30px !important;
    align-items: center !important;
    justify-content: end !important;
    gap: 4px !important;
}

.ar-home-release .ar-home-persons-counter output {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 44px !important;
    color: #344252 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    text-align: center !important;
}

.ar-home-release .ar-home-persons-step,
.ar-home-release .ar-home-main-search__row .ar-home-persons-step,
.ar-home-release .ar-home-persons-control .ar-home-persons-step,
.ar-home-release .ar-home-persons-counter .ar-home-persons-step {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    max-width: 30px !important;
    max-height: 30px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: #f4f6f5 !important;
    color: #425164 !important;
    font-size: 20px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    box-shadow: none !important;
    cursor: pointer !important;
    touch-action: manipulation !important;
    user-select: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

.ar-home-release .ar-home-persons-step:hover,
.ar-home-release .ar-home-persons-step:focus-visible {
    background: #eaf5e3 !important;
    color: #244f29 !important;
}

.ar-home-release .ar-home-primary-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 0 !important;
    background: linear-gradient(180deg, #3f8b4b 0%, #31783c 100%) !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 850 !important;
    text-align: center !important;
    box-shadow: 0 14px 28px rgba(37, 104, 50, .26) !important;
    touch-action: manipulation !important;
}

.ar-home-release .ar-home-primary-button:hover,
.ar-home-release .ar-home-primary-button:focus-visible {
    background: linear-gradient(180deg, #367d42 0%, #2b6e35 100%) !important;
    color: #fff !important;
}

/* Secciones: filosofía abierta, sin cajas envolventes */
.ar-home-release .ar-home-section {
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.ar-home-release .ar-home-section__head {
    display: block !important;
    margin: 0 0 14px !important;
    padding: 0 !important;
}

.ar-home-release .ar-home-section__head h2,
.ar-home-release .ar-home-info-card h2 {
    margin: 0 !important;
    color: #132515 !important;
    font-size: clamp(24px, 2.45vw, 32px) !important;
    line-height: 1.12 !important;
    letter-spacing: -.75px !important;
}

.ar-home-release .ar-home-section__head p,
.ar-home-release .ar-home-info-card p {
    margin: 8px 0 0 !important;
    color: #657382 !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
}

.ar-home-release .ar-home-section-link {
    display: none !important;
}

.ar-home-release .ar-home-big-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 36px !important;
    padding: 0 12px !important;
    border: 1px solid #dce6ee !important;
    border-radius: 999px !important;
    color: #244f29 !important;
    font-size: 14px !important;
    font-weight: 850 !important;
    text-decoration: none !important;
}

/* Cards de alojamientos en Home: mismo lenguaje visual que listados, proporción de portada */
.ar-home-release .ar-home-card-list {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 16px !important;
}

.ar-home-release .ar-home-card-list--compact {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.ar-home-release .ar-home-card-list .ar-list-card {
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
    height: 100% !important;
    margin: 0 !important;
    border: 1px solid #dfe7ed !important;
    border-radius: 20px !important;
    background: #fff !important;
    overflow: hidden !important;
    box-shadow: 0 10px 26px rgba(20, 30, 40, .06) !important;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease !important;
}

.ar-home-release .ar-home-card-list .ar-list-card:hover {
    transform: translateY(-2px) !important;
    border-color: #cfe2bd !important;
    box-shadow: 0 16px 36px rgba(20, 30, 40, .09) !important;
}

.ar-home-release .ar-home-card-list .ar-card-photo-wrap {
    position: relative !important;
    overflow: hidden !important;
    background: #eef3ea !important;
}

.ar-home-release .ar-home-card-list .ar-card-photo,
.ar-home-release .ar-home-card-list .ar-card-photo img,
.ar-home-release .ar-home-card-list .ar-card-slider-viewport,
.ar-home-release .ar-home-card-list .ar-card-slider-track,
.ar-home-release .ar-home-card-list .ar-card-slider-slide {
    min-height: 0 !important;
    height: 188px !important;
}

.ar-home-release .ar-home-card-list .ar-card-photo {
    border-radius: 0 !important;
}

.ar-home-release .ar-home-card-list .ar-card-slider-image {
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
}

.ar-home-release .ar-home-card-list .ar-card-photo-wrap > .ar-fav-button {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    z-index: 12 !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 999px !important;
}

.ar-home-release .ar-home-card-list .ar-card-body {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    min-height: 0 !important;
    padding: 15px !important;
}

.ar-home-release .ar-home-card-list .ar-card-heading {
    padding-right: 0 !important;
}

.ar-home-release .ar-home-card-list .ar-card-title {
    display: block !important;
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #172331 !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    line-height: 1.16 !important;
    letter-spacing: -.35px !important;
    text-decoration: none !important;
}

.ar-home-release .ar-home-card-list .ar-card-location {
    display: flex !important;
    align-items: flex-start !important;
    gap: 6px !important;
    margin: 7px 0 0 !important;
    color: #566474 !important;
    font-size: 13px !important;
    line-height: 1.3 !important;
}

.ar-home-release .ar-home-card-list .ar-card-location svg {
    flex: 0 0 auto !important;
    width: 15px !important;
    height: 15px !important;
    margin-top: 1px !important;
    color: #3f7f46 !important;
}

.ar-home-release .ar-home-card-list .ar-card-location__short {
    display: none !important;
}

.ar-home-release .ar-home-card-list .ar-card-description {
    display: -webkit-box !important;
    max-height: 42px !important;
    margin: 10px 0 0 !important;
    overflow: hidden !important;
    color: #5f6d7c !important;
    font-size: 13px !important;
    line-height: 1.55 !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ar-home-release .ar-home-card-list .ar-card-features {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    margin: 12px 0 0 !important;
}

.ar-home-release .ar-home-card-list .ar-card-features span,
.ar-home-release .ar-home-card-list .ar-card-badges span {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    min-height: 27px !important;
    padding: 0 8px !important;
    border: 1px solid #e5ebf1 !important;
    border-radius: 999px !important;
    background: #f8fafc !important;
    color: #344252 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}

.ar-home-release .ar-home-card-list .ar-card-badges {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    margin-top: 10px !important;
}

.ar-home-release .ar-home-card-list .ar-card-badges span.green {
    background: #f1f8e9 !important;
    border-color: #cfe2bd !important;
    color: #244f29 !important;
}

.ar-home-release .ar-home-card-list .ar-card-bottom {
    display: block !important;
    margin-top: auto !important;
    padding-top: 14px !important;
}

.ar-home-release .ar-home-card-list .ar-card-price--inline {
    position: static !important;
    display: block !important;
    margin: 0 !important;
    color: #657382 !important;
    text-align: left !important;
}

.ar-home-release .ar-home-card-list .ar-card-price--inline span {
    display: inline !important;
    color: #657382 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.25 !important;
}

.ar-home-release .ar-home-card-list .ar-card-price--inline strong {
    display: inline !important;
    color: #172331 !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    letter-spacing: -.25px !important;
}

.ar-home-release .ar-home-card-list .ar-card-price--empty strong {
    font-size: 20px !important;
}

.ar-home-release .ar-home-card-list .ar-card-cta {
    display: none !important;
}

/* Bloques informativos */
.ar-home-release .ar-home-split {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px !important;
}

.ar-home-release .ar-home-info-card {
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Directorio de provincias */
.ar-home-release .ar-home-section--directory {
    padding: 0 !important;
    overflow: visible !important;
}

.ar-home-release .ar-home-province-directory {
    background: transparent !important;
}

.ar-home-release .ar-home-province-directory > summary {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 18px !important;
    min-height: 0 !important;
    padding: 0 !important;
    cursor: pointer !important;
    list-style: none !important;
}

.ar-home-release .ar-home-province-directory > summary::-webkit-details-marker {
    display: none !important;
}

.ar-home-release .ar-home-province-directory > summary strong {
    display: block !important;
    color: #132515 !important;
    font-size: clamp(21px, 2.2vw, 28px) !important;
    line-height: 1.12 !important;
    letter-spacing: -.65px !important;
}

.ar-home-release .ar-home-province-directory > summary small {
    display: block !important;
    margin-top: 4px !important;
    color: #657382 !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
}

.ar-home-release .ar-home-directory-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    min-height: 38px !important;
    padding: 0 13px !important;
    border: 1px solid #cfe2bd !important;
    border-radius: 999px !important;
    background: #f1f8e9 !important;
    color: #244f29 !important;
    font-size: 14px !important;
    font-weight: 900 !important;
}

.ar-home-release .ar-home-directory-toggle::after {
    content: "↓";
    margin-left: 8px;
    font-size: 13px;
    line-height: 1;
}

.ar-home-release .ar-home-province-directory[open] .ar-home-directory-toggle::after {
    content: "↑";
}

.ar-home-release .ar-home-province-directory[open] .ar-home-directory-toggle span {
    font-size: 0 !important;
}

.ar-home-release .ar-home-province-directory[open] .ar-home-directory-toggle span::before {
    content: "Ocultar";
    font-size: 14px;
}

.ar-home-release .ar-home-province-directory__grid {
    border-top: 1px solid #edf1f4 !important;
    padding: 18px 0 0 !important;
}

.ar-home-release .ar-home-all-provinces {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)) !important;
    gap: 10px !important;
}

.ar-home-release .ar-home-all-provinces .province-card {
    min-height: 74px !important;
    padding: 13px !important;
    border-radius: 16px !important;
    box-shadow: 0 5px 16px rgba(20, 30, 40, .035) !important;
}

.ar-home-release .ar-home-all-provinces .province-card strong {
    font-size: 16px !important;
}

.ar-home-release .ar-home-all-provinces .province-card .muted {
    font-size: 13px !important;
}

@media (max-width: 1180px) {
    .ar-home-release .ar-home-card-list {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 900px) {
    .ar-home-release .ar-home-main-search__row,
    .ar-home-release .ar-home-split {
        grid-template-columns: 1fr !important;
    }

    .ar-home-release .ar-home-card-list,
    .ar-home-release .ar-home-card-list--compact {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 760px) {
    .ar-home-release {
        width: min(100%, calc(100vw - 18px)) !important;
        gap: 28px !important;
    }

    .ar-public-shell.ar-home-release > .ar-home-hero,
    .ar-home-release .ar-home-hero {
        padding-top: 48px !important;
        padding-bottom: 60px !important;
    }

    .ar-public-shell.ar-home-release > .ar-home-hero::before,
    .ar-home-release .ar-home-hero::before {
        top: -34px !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: auto !important;
        border-radius: 0 !important;
        background:
            radial-gradient(circle at 0% 0%, rgba(139, 195, 74, .26), transparent 40%),
            radial-gradient(circle at 100% 8%, rgba(59, 132, 70, .16), transparent 44%),
            linear-gradient(180deg, #edf7e6 0%, #f5faf0 54%, rgba(248, 251, 245, 0) 100%) !important;
    }

    .ar-public-shell.ar-home-release > .ar-home-hero::after,
    .ar-home-release .ar-home-hero::after {
        top: -34px !important;
    }

    .ar-home-release .ar-home-hero h1 {
        margin-bottom: 13px !important;
        font-size: clamp(22px, 5.9vw, 28px) !important;
        line-height: 1.08 !important;
        letter-spacing: -.4px !important;
        white-space: nowrap !important;
    }

    .ar-home-release .ar-search-input-wrap,
    .ar-home-release .ar-home-persons-control,
    .ar-home-release .ar-home-primary-button {
        height: 50px !important;
        min-height: 50px !important;
        border-radius: 13px !important;
    }

    .ar-home-release .ar-search-input-wrap {
        grid-template-columns: 44px minmax(0, 1fr) !important;
    }

    .ar-home-release .ar-search-icon {
        width: 44px !important;
    }

    .ar-home-release .ar-home-main-search__row .ar-search-input {
        height: 48px !important;
        min-height: 48px !important;
    }

    .ar-home-release .ar-home-card-list,
    .ar-home-release .ar-home-card-list--compact {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }

    .ar-home-release .ar-home-card-list .ar-list-card {
        border-radius: 20px !important;
    }

    .ar-home-release .ar-home-card-list .ar-card-photo,
    .ar-home-release .ar-home-card-list .ar-card-photo img,
    .ar-home-release .ar-home-card-list .ar-card-slider-viewport,
    .ar-home-release .ar-home-card-list .ar-card-slider-track,
    .ar-home-release .ar-home-card-list .ar-card-slider-slide {
        height: 224px !important;
    }

    .ar-home-release .ar-home-card-list .ar-card-body {
        padding: 17px 17px 20px !important;
    }

    .ar-home-release .ar-home-card-list .ar-card-title {
        font-size: 23px !important;
        font-weight: 820 !important;
        line-height: 1.08 !important;
        letter-spacing: -.35px !important;
    }

    .ar-home-release .ar-home-card-list .ar-card-location {
        margin-top: 8px !important;
        color: #4f5b69 !important;
        font-size: 17px !important;
        line-height: 1.25 !important;
    }

    .ar-home-release .ar-home-card-list .ar-card-location__full {
        display: none !important;
    }

    .ar-home-release .ar-home-card-list .ar-card-location__short {
        display: inline !important;
    }

    .ar-home-release .ar-home-card-list .ar-card-description {
        display: none !important;
    }

    .ar-home-release .ar-home-card-list .ar-card-features {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px 18px !important;
        margin: 18px 0 0 !important;
    }

    .ar-home-release .ar-home-card-list .ar-card-features span {
        min-height: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        color: #172331 !important;
        font-size: 15px !important;
        font-weight: 500 !important;
        line-height: 1.25 !important;
    }

    .ar-home-release .ar-home-card-list .ar-card-features svg {
        width: 22px !important;
        height: 22px !important;
        color: #334155 !important;
        stroke-width: 1.8 !important;
    }

    .ar-home-release .ar-home-card-list .ar-card-badges {
        margin-top: 14px !important;
    }

    .ar-home-release .ar-home-card-list .ar-card-bottom {
        padding-top: 20px !important;
    }

    .ar-home-release .ar-home-card-list .ar-card-price--inline span {
        font-size: 15px !important;
        font-weight: 500 !important;
        color: #4f5b69 !important;
        white-space: normal !important;
    }

    .ar-home-release .ar-home-card-list .ar-card-price--inline strong {
        font-size: 24px !important;
        font-weight: 800 !important;
        color: #0f172a !important;
        letter-spacing: -.25px !important;
    }

    .ar-home-release .ar-home-province-directory > summary {
        display: grid !important;
        gap: 12px !important;
    }

    .ar-home-release .ar-home-directory-toggle {
        width: 100% !important;
    }

    .ar-home-release .ar-home-province-directory__grid {
        padding: 14px 0 0 !important;
    }
}
