/* Bloque avanzado de ficha: compartir modal, calendario navegable, SEO cercano y tacto móvil */
.property-share-modal {
    position: fixed;
    inset: 0;
    z-index: 10020;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(12, 22, 16, .46);
    backdrop-filter: blur(6px);
}

.property-share-modal.is-open {
    display: flex;
}

.property-share-modal__dialog {
    position: relative;
    width: min(760px, 100%);
    max-height: min(88vh, 820px);
    overflow: auto;
    border: 1px solid #dce3eb;
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 28px 90px rgba(10, 20, 30, .28);
    padding: clamp(20px, 3vw, 30px);
}

.property-share-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    border: 1px solid #dce3eb;
    border-radius: 999px;
    background: #fff;
    color: #172331;
    cursor: pointer;
    transform: rotate(45deg);
}

.property-share-modal__close svg {
    width: 18px;
    height: 18px;
}

.property-share-modal__head {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding-right: 44px;
    margin-bottom: 18px;
}

.property-share-modal__icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 17px;
    background: #f1f8e9;
    color: #244f29;
}

.property-share-modal__icon svg {
    width: 24px;
    height: 24px;
}

.property-share-modal h2 {
    margin: 0 0 5px !important;
    color: #132515;
    font-size: clamp(28px, 3.5vw, 42px) !important;
    line-height: 1.02;
    letter-spacing: -1px;
}

.property-share-modal p {
    margin: 0;
    color: #657382;
    font-size: 16px;
    line-height: 1.45;
}

.property-share-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.property-share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 54px;
    border: 1px solid #dce3eb;
    border-radius: 16px;
    padding: 0 16px;
    background: #fff;
    color: #172331 !important;
    text-decoration: none !important;
    font-weight: 950;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 7px 18px rgba(20,30,40,.06);
}

.property-share-button:hover {
    transform: translateY(-1px);
    border-color: #cfe2bd;
    background: #fbfff6;
}

.property-share-button__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.property-share-button__icon svg,
.property-share-button svg {
    width: 20px;
    height: 20px;
}

.property-share-button--whatsapp {
    background: #f1f8e9;
    border-color: #cfe2bd;
    color: #244f29 !important;
}

.property-share-button--facebook {
    background: #f4f7ff;
    border-color: #d7e1ff;
}

.property-share-button--x {
    background: #f8fafc;
}

.property-share-button--submit {
    width: 100%;
    min-height: 52px;
    background: #3f7f46;
    color: #fff !important;
    border-color: #3f7f46;
}

.property-share-recommend {
    border: 1px solid #dce3eb;
    border-radius: 20px;
    overflow: hidden;
    background: #fbfcfd;
}

.property-share-recommend__toggle {
    width: 100%;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    background: transparent;
    color: #172331;
    cursor: pointer;
    text-align: left;
}

.property-share-recommend__toggle > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 950;
    font-size: 17px;
}

.property-share-recommend__toggle small {
    color: #657382;
    font-weight: 750;
}

.property-share-recommend__panel {
    border-top: 1px solid #dce3eb;
    padding: 16px;
    background: #fff;
}

.property-recommend-form {
    display: grid;
    gap: 12px;
}

.property-recommend-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.property-recommend-form p {
    margin: 0;
}

.property-recommend-form label,
.property-recommend-privacy {
    color: #344252;
    font-weight: 800;
}

.property-recommend-form input,
.property-recommend-form textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #dce3eb;
    border-radius: 14px;
    padding: 12px 13px;
    font: inherit;
}

.property-recommend-form textarea {
    resize: vertical;
}

.property-recommend-privacy {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 2px 0 4px;
    font-size: 14px;
    line-height: 1.35;
}

.property-recommend-privacy input {
    width: auto;
    margin-top: 4px;
    flex: 0 0 auto;
}

.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
}

.form-error {
    color: #b91c1c;
    font-weight: 800;
    display: block;
    margin-top: 4px;
}

.public-calendar-section-head,
.property-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.public-calendar-section-head h2,
.property-section-head h2 {
    margin-bottom: 6px !important;
}

.public-calendar-controls {
    display: flex;
    gap: 8px;
    flex: 0 0 auto;
}

.public-calendar-controls button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid #dce3eb;
    border-radius: 14px;
    background: #fff;
    color: #172331;
    cursor: pointer;
}

.public-calendar-controls button:hover {
    border-color: #cfe2bd;
    background: #f1f8e9;
}

.public-calendar-shell,
.public-unit-calendar-shell {
    position: relative;
    overflow: hidden;
}

.public-calendar-track,
.public-unit-calendar-track {
    display: grid !important;
    grid-auto-flow: column;
    grid-auto-columns: minmax(280px, calc(50% - 7px));
    grid-template-columns: none !important;
    gap: 14px !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 2px 2px 10px;
    -webkit-overflow-scrolling: touch;
}

.public-calendar-track .calendar-box,
.public-unit-calendar-track .calendar-box {
    scroll-snap-align: start;
    min-width: 0;
}

.calendar-box {
    border: 1px solid #dce3eb !important;
    border-radius: 18px !important;
    background: #fff;
    padding: 14px !important;
}

.calendar-box h2 {
    font-size: 18px !important;
    margin: 0 0 10px !important;
}

.calendar-day {
    min-height: 34px;
    border-radius: 9px;
}

.property-nearby-section {
    background: linear-gradient(180deg, #fff, #fbfcfd) !important;
}

.property-nearby-head p {
    margin: 0;
    color: #657382;
    font-size: 16px;
    line-height: 1.45;
}

.property-nearby-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.property-nearby-card {
    border: 1px solid #dce3eb;
    border-radius: 20px;
    background: #fff;
    padding: 18px;
}

.property-nearby-card h3 {
    margin: 0 0 12px;
    color: #132515;
    font-size: 20px;
    line-height: 1.12;
}

.property-nearby-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.property-nearby-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    border: 1px solid #e1e8ee;
    border-radius: 999px;
    padding: 0 11px;
    background: #fbfcfd;
    color: #244f29;
    text-decoration: none;
    font-weight: 850;
    font-size: 14px;
}

.property-nearby-links a:hover {
    border-color: #cfe2bd;
    background: #f1f8e9;
}

.property-nearby-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #edf3f8;
    color: #536170;
    font-size: 12px;
}

@media(max-width: 900px) {
    .property-nearby-grid {
        grid-template-columns: 1fr;
    }

    .public-calendar-track,
    .public-unit-calendar-track {
        grid-auto-columns: minmax(274px, 86%);
    }
}

@media(max-width: 760px) {
    .property-share-modal {
        align-items: flex-end;
        padding: 0;
    }

    .property-share-modal__dialog {
        width: 100%;
        max-height: 88vh;
        border-radius: 24px 24px 0 0;
        border-bottom: 0;
        padding: 20px 16px calc(18px + env(safe-area-inset-bottom));
    }

    .property-share-modal__head {
        padding-right: 42px;
    }

    .property-share-grid {
        grid-template-columns: 1fr;
    }

    .property-share-button {
        min-height: 52px;
        font-size: 16px;
    }

    .property-share-recommend__toggle {
        display: grid;
    }

    .property-recommend-grid {
        grid-template-columns: 1fr;
    }

    .public-calendar-section-head,
    .property-section-head {
        display: grid;
    }

    .public-calendar-controls {
        justify-content: flex-start;
    }

    .public-calendar-track,
    .public-unit-calendar-track {
        grid-auto-columns: minmax(268px, 92%);
        gap: 10px !important;
        margin-right: -16px;
    }

    .calendar-day {
        min-height: 38px;
        font-size: 15px;
    }

    .property-nearby-card {
        padding: 16px;
    }
}

/* AR_HIDE_PROPERTY_BOTTOM_ACTIONS_DESKTOP_START */
@media (min-width: 901px) {
    .property-mobile-sticky-actions,
    .mobile-sticky-actions,
    .property-sticky-actions,
    .property-bottom-actions,
    .property-action-dock,
    .property-floating-actions,
    .property-mobile-bottom-bar,
    .property-contact-sticky,
    .property-quick-actions--mobile,
    [data-mobile-sticky-actions],
    [data-property-mobile-actions] {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    body {
        padding-bottom: 0 !important;
    }
}
/* AR_HIDE_PROPERTY_BOTTOM_ACTIONS_DESKTOP_END */
