/* Pase de perfeccionamiento: favoritos, tarjetas, listados y microinteracciones */
[hidden],
.ar-favorites-empty[hidden],
.ar-favorites-toolbar[hidden],
.ar-favorites-grid[hidden] {
    display: none !important;
}

.ar-favorites-page {
    max-width: 1180px !important;
}

.ar-favorites-hero {
    overflow: hidden;
    position: relative;
}

.ar-favorites-hero::after {
    content: "";
    position: absolute;
    right: -120px;
    top: -120px;
    width: 280px;
    height: 280px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(143,189,51,.18), transparent 68%);
    pointer-events: none;
}

.ar-favorites-hero__counter {
    position: relative;
    z-index: 1;
}

.ar-favorites-toolbar {
    border-radius: 22px !important;
}

.ar-favorites-toolbar .ar-ui-button {
    min-height: 54px;
    border-radius: 16px;
    font-size: 16px;
}

.ar-favorites-empty {
    min-height: 430px;
    border-radius: 26px !important;
    padding: clamp(32px, 5vw, 58px) 24px !important;
}

.ar-favorites-empty > svg {
    width: 66px !important;
    height: 66px !important;
    color: #3f7f46;
    stroke-width: 1.7;
}

.ar-favorites-empty h2 {
    max-width: 720px;
    font-size: clamp(34px, 5vw, 54px) !important;
    line-height: 1.05;
    letter-spacing: -1.5px;
}

.ar-favorites-empty p {
    max-width: 660px !important;
    font-size: clamp(18px, 2.2vw, 22px);
}

.ar-favorites-empty__actions {
    width: min(620px, 100%);
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 12px !important;
}

.ar-favorites-empty__actions .ar-ui-button {
    min-height: 58px;
    border-radius: 18px;
    font-size: 18px;
}

.ar-favorites-grid {
    align-items: stretch;
}

.ar-favorite-card {
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.ar-favorite-card:hover {
    transform: translateY(-2px);
    border-color: #bfd9b2;
    box-shadow: 0 18px 45px rgba(20,30,40,.10) !important;
}

.ar-favorite-card__photo {
    position: relative;
}

.ar-favorite-card__photo::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 46%;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,.22));
    pointer-events: none;
}

.ar-favorite-card__body {
    display: grid;
    gap: 9px;
}

.ar-favorite-card__title {
    font-size: clamp(22px, 2.1vw, 29px) !important;
    letter-spacing: -.7px;
}

.ar-favorite-card__actions .ar-ui-button {
    min-height: 46px;
    border-radius: 14px;
}

/* Tarjeta de listado más clara y accionable */
.ar-list-card {
    isolation: isolate;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.ar-list-card:hover {
    transform: translateY(-2px);
}

.ar-card-photo {
    position: relative;
}

.ar-card-photo::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 34%;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,.26));
    pointer-events: none;
}

.ar-card-photo-count {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    border-radius: 999px;
    padding: 0 11px;
    background: rgba(255,255,255,.94);
    color: #172331;
    font-weight: 900;
    font-size: 13px;
    box-shadow: 0 6px 18px rgba(0,0,0,.14);
}

.ar-card-heading {
    padding-right: 48px;
}

.ar-card-location {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    line-height: 1.28;
}

.ar-card-location svg {
    margin-top: 2px;
    color: #3f7f46;
}

.ar-fav-button {
    border-radius: 14px !important;
    background: rgba(255,255,255,.96) !important;
    box-shadow: 0 6px 18px rgba(20,30,40,.10);
}

.ar-fav-button.is-active {
    background: #f1f8e9 !important;
    border-color: #cfe2bd !important;
    color: #244f29 !important;
}

.ar-card-features span,
.ar-card-badges span {
    min-height: 31px;
    border-radius: 999px !important;
    padding: 0 10px !important;
    background: #f8fafc;
    border: 1px solid #e5ebf1;
    color: #344252;
    font-weight: 750;
}

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

.ar-card-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-top: auto;
    padding-top: 16px;
}

.ar-card-price {
    position: static !important;
    display: grid;
    gap: 1px;
    text-align: left !important;
    color: #657382;
}

.ar-card-price span,
.ar-card-price small {
    font-size: 13px;
    font-weight: 750;
}

.ar-card-price strong {
    font-size: clamp(25px, 2.4vw, 34px) !important;
    line-height: .95;
    letter-spacing: -.7px;
    color: #172331 !important;
}

.ar-card-price--empty strong {
    font-size: 22px !important;
}

.ar-card-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 124px;
    min-height: 46px;
    border-radius: 999px;
    padding: 0 17px;
    background: #3f7f46;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 950;
    box-shadow: 0 8px 18px rgba(63,127,70,.20);
}

.ar-card-cta:hover {
    background: #356d3b;
}

.ar-photo-arrow {
    z-index: 4 !important;
    border-radius: 999px !important;
    backdrop-filter: blur(4px);
}

/* Home: reducir ruido de filtros cuando hay muchos servicios */
.ar-home-services {
    max-height: 94px;
    overflow: hidden;
    position: relative;
}

.ar-home-services::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 22px;
    background: linear-gradient(180deg, rgba(255,255,255,0), #fff);
    pointer-events: none;
}

.ar-home-main-search:focus-within .ar-home-services,
.ar-home-services:hover {
    max-height: none;
}

.ar-home-main-search:focus-within .ar-home-services::after,
.ar-home-services:hover::after {
    display: none;
}

@media (max-width: 1000px) {
    .ar-card-bottom {
        align-items: center;
    }
}

@media (max-width: 760px) {
    .ar-favorites-hero,
    .ar-favorites-toolbar,
    .ar-favorites-empty {
        margin-left: 0;
        margin-right: 0;
    }

    .ar-favorites-empty {
        min-height: 360px;
    }

    .ar-favorites-empty h2 {
        font-size: clamp(34px, 9vw, 44px) !important;
    }

    .ar-favorites-empty__actions {
        grid-template-columns: 1fr;
    }

    .ar-card-heading {
        padding-right: 44px;
    }

    .ar-card-description {
        margin-bottom: 12px !important;
    }

    .ar-card-features,
    .ar-card-badges {
        gap: 7px !important;
    }

    .ar-card-features span,
    .ar-card-badges span {
        min-height: 30px;
        font-size: 13px;
    }

    .ar-card-bottom {
        display: grid;
        grid-template-columns: 1fr;
        gap: 11px;
        padding-top: 14px;
    }

    .ar-card-cta {
        width: 100%;
        min-height: 50px;
        border-radius: 16px;
        font-size: 16px;
    }

    .ar-card-photo-count {
        left: 12px;
        bottom: 12px;
    }

    .ar-home-services {
        max-height: 144px;
    }
}

/* LISTING_EXISTING_CAROUSEL_POLISH_START */
.ar-card-photo {
    isolation: isolate;
    cursor: pointer;
    background: #eef3ea;
}

.ar-card-photo img[data-card-main-photo] {
    transform: translateZ(0);
    transition: opacity .18s ease, transform .28s ease, filter .28s ease;
    will-change: opacity, transform;
}

.ar-card-photo:hover img[data-card-main-photo] {
    transform: scale(1.018);
}

.ar-card-photo img[data-card-main-photo].is-loading-next {
    opacity: .72;
    transform: scale(1.01);
}

.ar-photo-arrow {
    width: 38px !important;
    height: 38px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: rgba(15, 23, 42, .46) !important;
    color: #fff !important;
    font-size: 30px !important;
    line-height: 1 !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .18) !important;
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity .18s ease, background .18s ease, transform .18s ease;
    z-index: 5 !important;
}

.ar-photo-arrow.prev {
    left: 12px !important;
}

.ar-photo-arrow.next {
    right: 12px !important;
}

.ar-card-photo:hover .ar-photo-arrow,
.ar-card-photo:focus-within .ar-photo-arrow {
    opacity: 1;
}

.ar-photo-arrow:hover {
    background: rgba(15, 23, 42, .68) !important;
    transform: translateY(-50%) scale(1.04) !important;
}

.ar-card-photo-count {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    padding: 5px 9px !important;
    border-radius: 999px !important;
    background: rgba(15, 23, 42, .58) !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 750 !important;
    line-height: 1 !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .14);
    backdrop-filter: blur(6px);
}

.ar-card-photo-count svg {
    width: 14px;
    height: 14px;
}

@media (max-width: 768px) {
    .ar-card-photo:hover img[data-card-main-photo] {
        transform: none;
    }

    .ar-photo-arrow {
        opacity: .66;
        width: 34px !important;
        height: 34px !important;
        font-size: 27px !important;
        background: rgba(15, 23, 42, .34) !important;
        box-shadow: 0 6px 16px rgba(0, 0, 0, .12) !important;
    }

    .ar-photo-arrow.prev {
        left: 8px !important;
    }

    .ar-photo-arrow.next {
        right: 8px !important;
    }

    .ar-card-photo-count {
        left: 9px !important;
        bottom: 9px !important;
        font-size: 11px !important;
        padding: 4px 8px !important;
    }
}
/* LISTING_EXISTING_CAROUSEL_POLISH_END */


/* AR_CARD_REAL_SLIDER_START */
.ar-card-photo[data-card-slider] {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    touch-action: pan-y;
    background: #eef3ea;
}

.ar-card-slider-viewport {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.ar-card-slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transform: translate3d(0, 0, 0);
    will-change: transform;
}

.ar-card-slider-slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    min-width: 100%;
    background: #eef3ea;
    overflow: hidden;
}

.ar-card-slider-image {
    width: 100% !important;
    height: 100% !important;
    min-height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    backface-visibility: hidden;
}

.ar-card-photo[data-card-slider] .ar-photo-arrow,
.ar-card-photo[data-card-slider] .ar-card-photo-count {
    z-index: 8;
}

.ar-card-photo[data-card-slider] .ar-photo-arrow {
    border: 0 !important;
    background: rgba(15, 23, 42, .42) !important;
    color: #fff !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .16) !important;
    backdrop-filter: blur(6px);
    transition: opacity .18s ease, background .18s ease, transform .18s ease;
}

.ar-card-photo[data-card-slider] .ar-card-photo-count {
    background: rgba(15, 23, 42, .58) !important;
    color: #fff !important;
    border-radius: 999px !important;
    backdrop-filter: blur(6px);
}

@media (hover: hover) {
    .ar-card-photo[data-card-slider] .ar-photo-arrow {
        opacity: 0;
    }

    .ar-card-photo[data-card-slider]:hover .ar-photo-arrow,
    .ar-card-photo[data-card-slider]:focus-within .ar-photo-arrow {
        opacity: 1;
    }

    .ar-card-photo[data-card-slider] .ar-photo-arrow:hover {
        background: rgba(15, 23, 42, .68) !important;
    }
}

@media (max-width: 768px) {
    .ar-card-photo[data-card-slider] .ar-photo-arrow {
        opacity: .58;
        background: rgba(15, 23, 42, .30) !important;
    }
}
/* AR_CARD_REAL_SLIDER_END */


/* AR_CARD_DRAG_REAL_START */
.ar-card-photo[data-card-slider] {
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior: contain;
}

.ar-card-photo[data-card-slider].is-card-slider-dragging {
    cursor: grabbing;
}

.ar-card-photo[data-card-slider] .ar-card-slider-track {
    will-change: transform;
}

.ar-card-photo[data-card-slider] .ar-card-slider-image {
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.ar-card-photo[data-card-slider].is-card-slider-dragging .ar-card-slider-image {
    pointer-events: none;
}

.ar-card-photo[data-card-slider].is-card-slider-touching .ar-photo-arrow {
    opacity: .35;
}

@media (max-width: 768px) {
    .ar-card-photo[data-card-slider] {
        touch-action: pan-y;
    }
}
/* AR_CARD_DRAG_REAL_END */


/* AR_PROPERTY_DRAG_GALLERY_START */
.ar-property-hero-drag,
.property-gallery-modal__stage.ar-property-drag-ready {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    touch-action: pan-y;
}

.ar-property-drag-viewport {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.ar-property-drag-track {
    display: flex;
    width: 100%;
    height: 100%;
    will-change: transform;
    transform: translate3d(-100%,0,0);
}

.ar-property-drag-slide {
    flex: 0 0 100%;
    min-width: 100%;
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: inherit;
}

.ar-property-drag-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center center;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
    border-radius: 0 !important;
}

.ar-property-drag-img--contain {
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain !important;
    object-position: center center;
    background: transparent !important;
    border-radius: 0 !important;
}

.property-gallery-modal__stage.ar-property-drag-ready {
    background: #05070a;
    border-radius: 0 !important;
}

.property-gallery-modal__stage.ar-property-drag-ready * {
    border-radius: 0 !important;
}

.ar-property-drag-arrow {
    position: absolute;
    top: 50%;
    z-index: 20;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, .42);
    color: #fff;
    font-size: 32px;
    line-height: 1;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(0,0,0,.18);
    backdrop-filter: blur(6px);
}

.ar-property-drag-arrow--prev {
    left: 14px;
}

.ar-property-drag-arrow--next {
    right: 14px;
}

.ar-property-drag-view-all {
    position: absolute !important;
    right: 18px !important;
    bottom: 18px !important;
    z-index: 22 !important;
}

.ar-property-drag-ready.is-property-dragging,
.ar-property-hero-drag.is-property-dragging {
    cursor: grabbing;
}

@media (hover: hover) {
    .ar-property-drag-arrow {
        opacity: 0;
        transition: opacity .18s ease, background .18s ease, transform .18s ease;
    }

    .ar-property-hero-drag:hover .ar-property-drag-arrow {
        opacity: 1;
    }

    .ar-property-drag-arrow:hover {
        background: rgba(15, 23, 42, .68);
        transform: translateY(-50%) scale(1.04);
    }
}

@media (max-width: 768px) {
    .ar-property-drag-arrow {
        width: 36px;
        height: 36px;
        font-size: 28px;
        opacity: .45;
        background: rgba(15, 23, 42, .30);
    }

    .ar-property-drag-arrow--prev {
        left: 8px;
    }

    .ar-property-drag-arrow--next {
        right: 8px;
    }

    .ar-property-drag-view-all {
        right: 10px !important;
        bottom: 10px !important;
    }
}
/* AR_PROPERTY_DRAG_GALLERY_END */


/* AR_PROPERTY_DRAG_GALLERY_ALIGNMENT_FIX_START */
.property-gallery-modal .property-gallery-modal__stage.ar-property-drag-ready {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    background: #05070a !important;
    border-radius: 0 !important;
}

.property-gallery-modal .property-gallery-modal__stage.ar-property-drag-ready .ar-property-drag-viewport {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    background: #05070a !important;
    border-radius: 0 !important;
}

.property-gallery-modal .property-gallery-modal__stage.ar-property-drag-ready .ar-property-drag-track {
    height: 100% !important;
    min-height: 100% !important;
    align-items: stretch !important;
    background: #05070a !important;
}

.property-gallery-modal .property-gallery-modal__stage.ar-property-drag-ready .ar-property-drag-slide {
    height: 100% !important;
    min-height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #05070a !important;
    border-radius: 0 !important;
}

.property-gallery-modal .property-gallery-modal__stage.ar-property-drag-ready .ar-property-drag-img--contain {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    display: block !important;
    background: #05070a !important;
    border-radius: 0 !important;
}

.property-gallery-modal .property-gallery-modal__stage.ar-property-drag-ready *,
.property-gallery-modal .property-gallery-modal__stage.ar-property-drag-ready img {
    border-radius: 0 !important;
}
/* AR_PROPERTY_DRAG_GALLERY_ALIGNMENT_FIX_END */


/* AR_PROPERTY_FULLSCREEN_NO_BLACK_BOX_START */
.property-gallery-modal .property-gallery-modal__stage.ar-property-drag-ready {
    background: transparent !important;
    border-radius: 0 !important;
}

.property-gallery-modal .property-gallery-modal__stage.ar-property-drag-ready .ar-property-drag-viewport {
    background: transparent !important;
    border-radius: 0 !important;
}

.property-gallery-modal .property-gallery-modal__stage.ar-property-drag-ready .ar-property-drag-track {
    background: transparent !important;
}

.property-gallery-modal .property-gallery-modal__stage.ar-property-drag-ready .ar-property-drag-slide {
    background: transparent !important;
    border-radius: 0 !important;
}

.property-gallery-modal .property-gallery-modal__stage.ar-property-drag-ready .ar-property-drag-img--contain {
    object-fit: contain !important;
    object-position: center center !important;
    background: transparent !important;
    border-radius: 0 !important;
}

.property-gallery-modal .property-gallery-modal__stage.ar-property-drag-ready *,
.property-gallery-modal .property-gallery-modal__stage.ar-property-drag-ready img {
    border-radius: 0 !important;
}
/* AR_PROPERTY_FULLSCREEN_NO_BLACK_BOX_END */


/* AR_PRO_FULLSCREEN_GALLERY_CONTROLS_START */
.property-gallery-modal__close,
#gallery-close {
    width: 42px !important;
    height: 42px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(255,255,255,.18) !important;
    background: rgba(255,255,255,.82) !important;
    color: rgba(10,15,20,.86) !important;
    font-size: 30px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    display: grid !important;
    place-items: center !important;
    box-shadow: 0 10px 28px rgba(0,0,0,.22) !important;
    backdrop-filter: blur(10px) saturate(130%);
    -webkit-backdrop-filter: blur(10px) saturate(130%);
    opacity: .88 !important;
    transition: opacity .18s ease, transform .18s ease, background .18s ease, box-shadow .18s ease !important;
}

.property-gallery-modal__close:hover,
#gallery-close:hover {
    opacity: 1 !important;
    transform: scale(1.04) !important;
    background: rgba(255,255,255,.95) !important;
    box-shadow: 0 14px 34px rgba(0,0,0,.28) !important;
}

.property-gallery-modal__arrow,
.property-gallery-modal .property-gallery-modal__arrow,
[data-gallery-prev],
[data-gallery-next] {
    width: 42px !important;
    height: 42px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(255,255,255,.16) !important;
    background: rgba(255,255,255,.72) !important;
    color: rgba(10,15,20,.82) !important;
    font-size: 34px !important;
    font-weight: 300 !important;
    line-height: 1 !important;
    display: grid !important;
    place-items: center !important;
    box-shadow: 0 10px 26px rgba(0,0,0,.20) !important;
    backdrop-filter: blur(10px) saturate(130%);
    -webkit-backdrop-filter: blur(10px) saturate(130%);
    opacity: .72 !important;
    transition: opacity .18s ease, transform .18s ease, background .18s ease, box-shadow .18s ease !important;
}

.property-gallery-modal__arrow:hover,
.property-gallery-modal .property-gallery-modal__arrow:hover,
[data-gallery-prev]:hover,
[data-gallery-next]:hover {
    opacity: .96 !important;
    background: rgba(255,255,255,.92) !important;
    box-shadow: 0 14px 34px rgba(0,0,0,.26) !important;
}

.property-gallery-modal__arrow.prev,
.property-gallery-modal__arrow[data-gallery-prev],
[data-gallery-prev] {
    left: 18px !important;
}

.property-gallery-modal__arrow.next,
.property-gallery-modal__arrow[data-gallery-next],
[data-gallery-next] {
    right: 18px !important;
}

.property-gallery-modal__counter {
    padding: 6px 10px !important;
    border-radius: 999px !important;
    background: rgba(0,0,0,.34) !important;
    color: rgba(255,255,255,.94) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: .02em !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

@media (hover: none) {
    .property-gallery-modal__arrow,
    .property-gallery-modal .property-gallery-modal__arrow,
    [data-gallery-prev],
    [data-gallery-next] {
        opacity: .42 !important;
    }

    .property-gallery-modal__arrow:active,
    .property-gallery-modal .property-gallery-modal__arrow:active,
    [data-gallery-prev]:active,
    [data-gallery-next]:active {
        opacity: .9 !important;
        transform: translateY(-50%) scale(.96) !important;
    }

    .property-gallery-modal__close,
    #gallery-close {
        opacity: .86 !important;
    }
}

@media (max-width: 768px) {
    .property-gallery-modal__close,
    #gallery-close {
        width: 40px !important;
        height: 40px !important;
        font-size: 29px !important;
        top: 18px !important;
        right: 18px !important;
    }

    .property-gallery-modal__arrow,
    .property-gallery-modal .property-gallery-modal__arrow,
    [data-gallery-prev],
    [data-gallery-next] {
        width: 38px !important;
        height: 38px !important;
        font-size: 31px !important;
        background: rgba(255,255,255,.58) !important;
        box-shadow: 0 8px 22px rgba(0,0,0,.18) !important;
    }

    .property-gallery-modal__arrow.prev,
    .property-gallery-modal__arrow[data-gallery-prev],
    [data-gallery-prev] {
        left: 12px !important;
    }

    .property-gallery-modal__arrow.next,
    .property-gallery-modal__arrow[data-gallery-next],
    [data-gallery-next] {
        right: 12px !important;
    }

    .property-gallery-modal__counter {
        top: 24px !important;
        left: 18px !important;
        font-size: 13px !important;
    }
}
/* AR_PRO_FULLSCREEN_GALLERY_CONTROLS_END */

/* AR_PRO_PORTAL_POLISH_20260526_START */

/* Logo real */
.ar-site-logo,
.ar-footer-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.ar-site-logo img {
    display: block;
    height: 54px;
    width: auto;
    max-width: 280px;
}

.ar-footer-logo img {
    display: block;
    height: 42px;
    width: auto;
    max-width: 240px;
}

/* En cabeceras verdes usamos logo blanco */
.ar-public-header .ar-site-logo--white img,
.site-header .ar-site-logo--white img,
header .ar-site-logo--white img {
    filter: none;
}

/* Si queda texto antiguo junto al logo, lo compactamos */
.ar-public-header__brand,
.ar-header-brand,
.site-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Home: menos texto, más usabilidad */
.ar-home-hero h1,
.ar-home-main-title,
.ar-home-search-card h1 {
    font-size: clamp(38px, 4.4vw, 64px) !important;
    line-height: .96 !important;
    letter-spacing: -0.055em !important;
    max-width: 820px !important;
    margin-bottom: 18px !important;
}

.ar-home-hero p,
.ar-home-lead,
.ar-home-search-card p {
    font-size: clamp(17px, 1.35vw, 21px) !important;
    line-height: 1.38 !important;
    max-width: 760px !important;
    color: #536354 !important;
}

.ar-home-search-card {
    padding: clamp(24px, 3vw, 42px) !important;
    border-radius: 24px !important;
}

.ar-home-search-card .ar-home-services {
    max-height: 86px;
    overflow: hidden;
    position: relative;
}

.ar-home-search-card .ar-home-services::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 36px;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(255,255,255,0), #fff);
}

/* Botones home más finos */
.ar-home-search-card button,
.ar-home-search-card a,
.ar-search-button,
.ar-search-button-light,
.ar-ui-button {
    font-weight: 750 !important;
}

/* Listados: más refinados, menos mastodónticos */
.ar-results-head h1,
.ar-listing-title,
.ar-search-title {
    font-size: clamp(34px, 3.4vw, 52px) !important;
    line-height: 1.05 !important;
    letter-spacing: -0.045em !important;
    margin-bottom: 18px !important;
}

.ar-list-card {
    min-height: 236px !important;
    height: auto !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 28px rgba(21, 35, 25, .07) !important;
}

@media (min-width: 1001px) {
    .ar-list-card {
        grid-template-columns: minmax(300px, 390px) minmax(0, 1fr) !important;
    }

    .ar-card-photo,
    .ar-card-photo img,
    .ar-card-photo [data-card-main-photo] {
        height: 236px !important;
        min-height: 236px !important;
        max-height: 236px !important;
    }

    .ar-card-body {
        padding: 22px 26px !important;
        min-height: 236px !important;
    }

    .ar-card-title {
        font-size: clamp(25px, 2vw, 34px) !important;
        line-height: 1.03 !important;
        letter-spacing: -0.035em !important;
        background: transparent !important;
        padding: 0 !important;
        border-radius: 0 !important;
        color: #132235 !important;
        font-weight: 800 !important;
    }

    .ar-card-description {
        font-size: 15.5px !important;
        line-height: 1.42 !important;
        max-height: 66px !important;
        overflow: hidden !important;
        margin: 8px 0 12px !important;
    }

    .ar-card-features,
    .ar-card-badges {
        gap: 8px !important;
    }

    .ar-card-features span,
    .ar-card-badges span {
        font-size: 13.5px !important;
        padding: 6px 10px !important;
    }

    .ar-card-price strong {
        font-size: 31px !important;
        line-height: 1 !important;
    }

    .ar-card-cta {
        min-width: 118px !important;
        height: 44px !important;
        border-radius: 999px !important;
    }
}

/* Carrusel listados: evitar imágenes gigantes y roturas de altura */
.ar-card-photo {
    isolation: isolate;
    background: #eef3ea !important;
}

.ar-card-photo img,
.ar-card-photo [data-card-main-photo] {
    width: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
}

.ar-card-photo-count {
    z-index: 8 !important;
}

/* Si el carrusel crea track/slides, que respete altura de tarjeta */
.ar-card-photo .ar-drag-viewport,
.ar-card-photo .ar-listing-drag-viewport,
.ar-card-photo .ar-swipe-viewport {
    height: 100% !important;
    max-height: inherit !important;
    overflow: hidden !important;
}

.ar-card-photo .ar-drag-track,
.ar-card-photo .ar-listing-drag-track,
.ar-card-photo .ar-swipe-track {
    height: 100% !important;
}

.ar-card-photo .ar-drag-slide,
.ar-card-photo .ar-listing-drag-slide,
.ar-card-photo .ar-swipe-slide {
    height: 100% !important;
    min-width: 100% !important;
}

/* Ficha: fotos verticales mejor centradas en cabecera */
.property-gallery__main,
.property-gallery__main img {
    background: #eef3ea;
}

.property-gallery__main img {
    object-position: center center !important;
}

@media (min-width: 900px) {
    .property-gallery__main {
        max-height: 520px !important;
    }

    .property-gallery__main img {
        max-height: 520px !important;
        object-fit: cover !important;
        object-position: center center !important;
    }
}

@media (max-width: 768px) {
    .property-gallery__main img {
        object-position: center center !important;
    }
}

/* Barra inferior de acciones: solo móvil. En escritorio no pinta nada ahí. */
@media (min-width: 901px) {
    .property-mobile-sticky-actions,
    .mobile-sticky-actions,
    .property-sticky-actions,
    .property-bottom-actions {
        display: none !important;
    }

    body {
        padding-bottom: 0 !important;
    }
}

/* Footer: logo y respiración profesional */
.ar-public-footer,
footer {
    border-top: 0 !important;
}

.ar-public-footer h3,
footer h3 {
    letter-spacing: -0.02em;
}

/* Desktop: header más compacto tipo portal */
@media (min-width: 1000px) {
    .ar-public-header,
    .site-header,
    header {
        min-height: auto;
    }

    .ar-public-header nav a,
    header nav a {
        font-size: 15px !important;
        font-weight: 750 !important;
    }
}

/* Móvil: home y listados menos gigantes */
@media (max-width: 768px) {
    .ar-site-logo img {
        height: 42px;
        max-width: 220px;
    }

    .ar-home-hero h1,
    .ar-home-main-title,
    .ar-home-search-card h1 {
        font-size: clamp(36px, 11vw, 48px) !important;
        line-height: .98 !important;
        letter-spacing: -0.05em !important;
    }

    .ar-home-hero p,
    .ar-home-lead,
    .ar-home-search-card p {
        font-size: 18px !important;
        line-height: 1.42 !important;
    }

    .ar-results-head h1,
    .ar-listing-title,
    .ar-search-title {
        font-size: clamp(34px, 10vw, 44px) !important;
        line-height: 1.04 !important;
    }

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

    .ar-card-photo,
    .ar-card-photo img,
    .ar-card-photo [data-card-main-photo] {
        height: 255px !important;
        min-height: 255px !important;
        max-height: 255px !important;
    }

    .ar-card-body {
        padding: 18px !important;
    }

    .ar-card-title {
        font-size: clamp(28px, 8vw, 38px) !important;
        line-height: 1.02 !important;
        letter-spacing: -0.045em !important;
        background: transparent !important;
        padding: 0 !important;
        font-weight: 850 !important;
    }

    .ar-card-description {
        font-size: 17px !important;
        line-height: 1.38 !important;
        max-height: 96px !important;
        overflow: hidden !important;
    }
}

/* AR_PRO_PORTAL_POLISH_20260526_END */
