/* ================================
   SEARCH VIEW REDESIGN
================================ */

body.ah-modal-open {
    overflow: hidden;
}

.ahs-search-page {
    height: calc(100vh - 90px);
    background: #fff;
    overflow: hidden;
    color: #111;
}

.ahs-search-shell {
    display: grid;
    grid-template-columns: 54% 46%;
    height: 100%;
}

/* ================================
   RESULTADOS IZQUIERDA
================================ */

.ahs-results-scroll {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;

    padding: 30px 32px 40px;

    scrollbar-width: none;
}

.ahs-results-scroll::-webkit-scrollbar {
    display: none;
}

.ahs-results-inner {
    width: 100%;
}

.ahs-listings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 24px;

    width: 100%;
}

.ahs-card-col {
    width: 100%;
    min-width: 0;
}

/* ================================
   CARD
================================ */

.ahs-spot-card {
    display: block;

    background: #fbfbfd;

    border-radius: 18px;

    padding: 14px;

    color: #111;
    text-decoration: none;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.ahs-spot-card:hover {
    color: #111;
    text-decoration: none;

    transform: translateY(-2px);

    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.07);
}

/* ================================
   IMAGEN
================================ */

.ahs-spot-image-wrap {
    position: relative;

    height: 165px;

    border-radius: 13px;

    overflow: hidden;

    background: #eee;
}

.ahs-spot-image {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}

/* ================================
   BADGE TIPO
================================ */

.ahs-spot-badge {
    position: absolute;

    top: 10px;
    left: 12px;

    min-width: 150px;
    max-width: calc(100% - 82px);

    height: 26px;

    padding: 0 18px;

    border-radius: 999px;

    background: #fff;


    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 9px;
    font-weight: 900;

    letter-spacing: 0.18em;
    text-transform: uppercase;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    z-index: 2;
}

/* ================================
   BOTÓN CARRITO
================================ */

.ahs-cart-btn {
    position: absolute;

    top: 10px;
    right: 10px;

    width: 48px !important;
    height: 48px !important;

    min-width: 48px !important;
    min-height: 48px !important;

    padding: 0 !important;

    border: 0 !important;
    border-radius: 50% !important;

    background: #f8f1ef !important;

    color: #111 !important;

    display: flex !important;
    align-items: center;
    justify-content: center;

    line-height: 1 !important;

    cursor: pointer;

    z-index: 4;

    box-shadow: none !important;

    transition:
        transform 0.18s ease,
        background-color 0.18s ease,
        box-shadow 0.18s ease,
        color 0.18s ease;
}

.ahs-cart-btn::before,
.ahs-cart-btn::after {
    display: none !important;
    content: none !important;
}

.ahs-cart-btn i {
    margin: 0 !important;

    font-size: 24px !important;
    line-height: 1 !important;

    color: #111 !important;

    transition:
        transform 0.22s ease,
        color 0.22s ease;
}

.ahs-cart-btn:hover {
    transform: translateY(-2px) scale(1.05);

    background: #fff !important;

    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12) !important;
}

.ahs-cart-btn:hover i {
    color: #ec2ab3 !important;
    animation: ahsCartWiggle 0.35s ease;
}

.ahs-cart-btn:active {
    transform: scale(0.94);
}

@keyframes ahsCartWiggle {
    0% {
        transform: rotate(0deg);
    }

    35% {
        transform: rotate(-8deg);
    }

    70% {
        transform: rotate(8deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

/* ================================
   BODY CARD
================================ */

.ahs-spot-body {
    padding: 20px 0 4px;
}

.ahs-title-row {
    display: grid;
    grid-template-columns: 1fr 48px;

    align-items: start;

    gap: 10px;
}

.ahs-title-row h3 {
    margin: 0;

    font-size: 15px;
    line-height: 1.35;
    font-weight: 900;

    letter-spacing: 0.06em;
}

.ahs-address {
    margin: 10px 0 25px;

    color: #777;

    font-size: 12px;
    line-height: 1.4;

    letter-spacing: 0.08em;
}

/* ================================
   FAVORITOS
================================ */

.ahs-fav-btn {
    width: 48px !important;
    height: 48px !important;

    min-width: 48px !important;
    min-height: 48px !important;

    border: none !important;
    border-radius: 50% !important;

    background: #f1eeee !important;

    color: #6b6666 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 0 !important;
    margin: 0 !important;

    cursor: pointer;

    text-decoration: none !important;

    line-height: 1 !important;

    overflow: hidden !important;

    box-shadow: none !important;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        color 0.25s ease,
        box-shadow 0.25s ease;
}

.ahs-fav-btn::before,
.ahs-fav-btn::after {
    display: none !important;
    content: none !important;
}

.ahs-fav-icon {
    display: inline-block !important;

    opacity: 1 !important;
    visibility: visible !important;

    font-size: 29px !important;
    line-height: 1 !important;

    color: inherit !important;

    margin: 0 !important;
    padding: 0 !important;

    font-family: "Font Awesome 6 Free" !important;

    transition:
        transform 0.22s ease,
        color 0.22s ease;
}

.ahs-fav-icon.fa-regular {
    font-weight: 400 !important;
}

.ahs-fav-icon.fa-solid {
    font-weight: 900 !important;
}

.ahs-fav-btn:hover {
    background: #fff !important;

    color: #d21889 !important;

    transform: translateY(-3px) scale(1.06);

    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12) !important;
}

.ahs-fav-btn:hover .ahs-fav-icon {
    transform: scale(1.08);
}

.ahs-fav-btn:active {
    transform: scale(0.94);
}

.ahs-fav-btn.liked {
    animation: ahsFavPop 0.28s ease;
}

.ahs-heart-active {
    color: #d21889 !important;
}

@keyframes ahsFavPop {
    0% {
        transform: scale(0.9);
    }

    60% {
        transform: scale(1.12);
    }

    100% {
        transform: scale(1);
    }
}

/* ================================
   PRECIO
================================ */

.ahs-price-row {
    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 14px;
}

.ahs-price-row strong {
    font-size: 19px;
    font-weight: 900;

    letter-spacing: 0.08em;

    white-space: nowrap;
}

.ahs-price-row span {
    font-size: 14px;
    font-weight: 900;

    letter-spacing: 0.08em;

    white-space: nowrap;
}

/* ================================
   MAPA DERECHO
================================ */

.ahs-map-fixed {
    height: 100%;

    padding: 20px 20px 0px 8px;
}

.ahs-map-box {
    width: 100%;
    height: 100%;

    border-radius: 26px;

    overflow: hidden;

    background: #eee;
}

.ahs-map-box #map-container,
.ahs-map-box #map {
    width: 100%;
    height: 100%;
}

/* ================================
   BOTÓN FILTROS
================================ */

.ahs-filter-floating-btn {
    position: fixed;

    top: 150px;
    left: 10px;

    z-index: 1000;

    width: 56px;
    height: 56px;

    border: 0;
    border-radius: 50%;

    background: #2e2e2e;

    color: #fff;

    font-size: 24px;

    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.14);

    cursor: pointer;
}

/* ================================
   MODAL FILTROS - FINAL
================================ */

.ahs-filter-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
}

.ahs-filter-modal.is-open {
    display: block;
}

.ahs-filter-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
}

.ahs-filter-sheet {
    position: absolute;
    left: 0;
    top: 0;
    width: min(860px, 100%);
    height: 100vh;
    max-height: 100vh;
    background: #fff;
    border-radius: 0 34px 34px 0;
    overflow: hidden;
}

.ahs-filter-head {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 88px;
    padding: 24px 54px 17px;
    background: #fff;
    border-bottom: 1px solid #d8d8d8;
    text-align: center;
    z-index: 10;
}

.ahs-filter-head h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.ahs-filter-close {
    position: absolute;
    left: 24px;
    top: 18px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: #f4eeee;
    cursor: pointer;
}

.ahs-filter-body {
    position: absolute;
    top: 88px;
    left: 0;
    right: 0;
    bottom: 78px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 46px 44px 34px;
    scrollbar-width: none;
}

.ahs-filter-body::-webkit-scrollbar {
    display: none;
}

.ahs-filter-group {
    margin-bottom: 38px;
}

.ahs-filter-label {
    display: block;
    margin-bottom: 9px;
    color: #222;
    font-size: 16px;
}

.ahs-filter-select,
.ahs-date-input {
    width: 100%;
    height: 44px;
    border: 1px solid #d9d9d9;
    border-radius: 9px;
    padding: 0 15px;
    background: #fff;
    font-size: 15px;
}

.ahs-filter-title {
    margin: 0 0 17px;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 0.07em;
}

/* ================================
   CHECKBOX HIDDEN
================================ */

.ahs-hidden-check {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* ================================
   TIPOS DE SPOT
================================ */

.ahs-type-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.ahs-type-card {
    position: relative;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 94px;
    height: 94px;
    border: 1px solid #747474;
    border-radius: 16px;
    background: #fff;
    color: #6f6f6f;
    font-size: 38px;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.ahs-type-card i {
    display: block;
    line-height: 1;
}

.ahs-type-card:hover,
.ahs-hidden-check:checked + .ahs-type-card {
    border-color: #ec2ab3;
    color: #ec2ab3;
    box-shadow: 0 0 0 3px rgba(236, 42, 179, 0.12);
    transform: translateY(-2px);
}

/* ================================
   TOOLTIP
================================ */

.ahs-type-card::before {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 12px);
    transform: translateX(-50%) translateY(6px);
    min-width: max-content;
    max-width: 180px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #222;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.03em;
    text-align: center;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 40;
    transition:
        opacity 0.18s ease,
        transform 0.18s ease,
        visibility 0.18s ease;
}

.ahs-type-card::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: calc(100% + 6px);
    transform: translateX(-50%) translateY(6px);
    border-width: 6px 6px 0 6px;
    border-style: solid;
    border-color: #222 transparent transparent transparent;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 40;
    transition:
        opacity 0.18s ease,
        transform 0.18s ease,
        visibility 0.18s ease;
}

.ahs-type-card:hover::before,
.ahs-type-card:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ================================
   ETIQUETAS
================================ */

.ahs-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-start;
}

.ahs-tag-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 36px;
    min-height: 36px;
    flex: 0 0 auto;
    padding: 0 16px;
    border: 1px solid #555;
    border-radius: 999px;
    background: #fff;
    color: #000;
    font-size: 11px;
    letter-spacing: 0.16em;
    cursor: pointer;
    white-space: nowrap;
    line-height: 1;
    transition: all 0.2s ease;
}

.ahs-tag-card i {
    color: #d21889;
    font-size: 15px;
    line-height: 1;
}

.ahs-hidden-check:checked + .ahs-tag-card {
    background: #d9d9d9;
    color: #000;
}

.ahs-hidden-check:checked + .ahs-tag-card i {
    color: #b21818;
}

/* ================================
   RANGE / FECHAS
================================ */

.ahs-filter-help {
    margin: -8px 0 14px;
    color: #555;
    font-size: 14px;
}

.ahs-price-range {
    width: 100%;
    accent-color: #ec2ab3;
}

.ahs-price-values {
    display: flex;
    justify-content: space-between;
    margin-top: 14px;
    color: #666;
    font-size: 13px;
}

.ahs-price-values strong {
    display: inline-block;
    margin-top: 7px;
    padding: 12px 18px;
    border: 1px solid #ddd;
    border-radius: 999px;
    color: #333;
}

.ahs-date-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

/* ================================
   FOOTER FILTROS - FINAL
================================ */

.ahs-filter-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 78px;
    padding: 14px 24px;
    background: #fff;
    border-top: 1px solid #d8d8d8;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: center;
    z-index: 20;
}

.ahs-clear-filters,
.ahs-show-results {
    width: 100%;
    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;
    border: 0;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1 !important;
    white-space: nowrap;
}

.ahs-clear-filters {
    background: transparent;
    color: #111;
}

.ahs-show-results {
    padding: 0 26px;
    border-radius: 9px;
    background: #2e2e2e;
    color: #fff;
}

/* ================================
   PAGINACIÓN
================================ */

.ahs-pagination-wrap {
    margin-top: 32px;
}

.ahs-empty-state {
    padding: 40px;

    text-align: center;

    background: #fbfbfd;

    border-radius: 20px;
}

.ahs-loading {
    margin: 60px auto !important;

    width: 100px !important;
    height: 100px !important;
}

/* ================================
   RESPONSIVE
================================ */

@media (max-width: 1280px) {
    .ahs-search-shell {
        grid-template-columns: 56% 44%;
    }

    .ahs-listings-grid {
        grid-template-columns: repeat(2, minmax(250px, 1fr));
    }

    .ahs-price-row strong {
        font-size: 17px;
    }

    .ahs-price-row span {
        font-size: 13px;
    }
}

@media (max-width: 1050px) {
    .ahs-search-page {
        height: auto;
        overflow: visible;
    }

    .ahs-search-shell {
        display: flex;
        flex-direction: column;
    }

    .ahs-map-fixed {
        order: 1;
        height: 420px;
        padding: 86px 18px 24px;
    }

    .ahs-results-scroll {
        order: 2;
        height: auto;
        overflow: visible;
        padding: 0 18px 30px;
    }

    .ahs-map-box {
        border-radius: 30px;
    }
}

@media (max-width: 700px) {
    .ahs-listings-grid {
        grid-template-columns: 1fr;
    }

    .ahs-results-scroll {
        padding-top: 82px;
    }

    .ahs-spot-image-wrap {
        height: 190px;
    }

    .ahs-filter-floating-btn {
        top: 105px;
        left: 18px;
        width: 54px;
        height: 54px;
        font-size: 22px;
    }

    .ahs-filter-sheet {
        width: 100%;
        height: 88vh;
        max-height: 88vh;
        top: auto;
        bottom: 0;
        border-radius: 26px 26px 0 0;
    }

    .ahs-filter-head {
        height: 82px;
    }

    .ahs-filter-body {
        top: 82px;
        bottom: 78px;
        padding: 30px 22px 24px;
    }

    .ahs-filter-footer {
        height: 78px;
        padding: 12px 16px;
        grid-template-columns: 1fr 1fr;
    }

    .ahs-clear-filters,
    .ahs-show-results {
        height: 48px !important;
        min-height: 48px !important;
        max-height: 48px !important;
        font-size: 13px;
    }

    .ahs-filter-title {
        font-size: 22px;
    }

    .ahs-type-card {
        width: 82px;
        height: 82px;
        font-size: 32px;
    }

    .ahs-date-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================= */

.ahs-type-img {
    width: 48px;
    height: 48px;
    display: block;
    object-fit: contain;
    transition:
        transform 0.2s ease,
        filter 0.2s ease;
}

.ahs-type-card:hover .ahs-type-img,
.ahs-hidden-check:checked + .ahs-type-card .ahs-type-img {
    transform: scale(1.06);
}

/* ================================*/
.ah-map-card {
    position: relative;
    width: 270px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
    font-family: inherit;
}

.ah-map-card__close {
    position: absolute;

    top: 12px;
    left: 12px;

    width: 38px;
    height: 38px;

    border: none;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.95);

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    z-index: 20;

    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);

    transition: 0.25s;
}

.ah-map-card__close:hover {
    transform: scale(1.05);
}

.ah-map-card__close i {
    font-size: 14px;
    color: #121826;
}

.ah-map-card__image-wrap {
    position: relative;
    display: block;
    height: 150px;
    overflow: hidden;
}

.ah-map-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ah-map-card__badge {
    position: absolute;
    top: 14px;
    left: 14px;

    background: #fff;

    border: 2px solid;

    border-radius: 999px;

    padding: 7px 14px;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 0.14em;

    text-transform: uppercase;

    backdrop-filter: blur(10px);
}

.ah-map-card__top-actions {
    position: absolute;
    top: 12px;
    right: 12px;
}

.ah-map-card__fav {
    width: 42px;
    height: 42px;

    border: none;

    border-radius: 50%;

    background: #fff;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 18px;

    cursor: pointer;

    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);

    transition: 0.25s;
}

.ah-map-card__fav i {
    color: #d4d4d4;
    transition: 0.25s;
}

.ah-map-card__fav.is-favorite i {
    color: #e91e63;
}

.ah-map-card__fav:hover {
    transform: scale(1.06);
}

.ah-map-card__content {
    padding: 16px 18px 18px;
}

.ah-map-card__title {
    display: block;

    font-size: 17px;
    font-weight: 700;

    line-height: 1.35;

    color: #121826;

    text-decoration: none;

    margin-bottom: 10px;
}

.ah-map-card__address {
    font-size: 14px;
    line-height: 1.5;
    color: #7b8191;

    margin-bottom: 16px;
}

.ah-map-card__price {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.ah-map-card__price strong {
    font-size: 24px;
    font-weight: 800;
    color: #121826;
}

.ah-map-card__price span {
    font-size: 14px;
    font-weight: 600;
    color: #121826;
}

.infoBox {
    overflow: visible !important;
    background: transparent !important;
    box-shadow: none !important;
}

.infoBox .map-box {
    background: transparent !important;
    box-shadow: none !important;
}

.infoBox > img {
    z-index: 9999;
}


.ah-marker-mask-icon {
    width: 27px;
    height: 27px;
    display: block;
    background-color: currentColor;

    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;

    -webkit-mask-position: center;
    mask-position: center;

    -webkit-mask-size: contain;
    mask-size: contain;
}

.map-marker-container:hover .ah-marker-mask-icon {
    background-color: #fff !important;
}


.map-marker-container .face {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
