/* Properties pages — mobile layout (listing + detail only) */

@media (max-width: 768px) {
    .fa-layout--properties,
    .fa-layout--property-detail {
        overflow-x: clip;
        max-width: 100%;
    }

    .fa-layout--properties .adonis-fa-new-main,
    .fa-layout--property-detail .adonis-fa-new-main {
        overflow-x: clip;
    }

    /* ── Listing (/greece-property-projects/) ── */
    .fa-layout--properties .fa-proplist-section {
        padding-top: 1.5rem;
        padding-bottom: calc(2.5rem + env(safe-area-inset-bottom, 0px));
    }

    .fa-layout--properties .adonis-fa-new-container,
    .fa-layout--property-detail .adonis-fa-new-container {
        padding-inline: clamp(0.85rem, 4vw, 1.25rem);
        max-width: 100%;
        box-sizing: border-box;
    }

    .fa-layout--properties .fa-proplist-shell,
    .fa-layout--properties .fa-proplist-glass {
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Override inline carousel — stack cards vertically */
    .fa-layout--properties .fa-proplist-glass .fa-proplist-grid,
    .fa-layout--properties .fa-proplist-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        gap: 1rem !important;
        overflow-x: visible !important;
        flex-wrap: wrap !important;
        scroll-snap-type: none !important;
        padding-bottom: 0 !important;
    }

    .fa-layout--properties .fa-proplist-glass .fa-featprop-card,
    .fa-layout--properties .fa-featprop-card {
        flex: none !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: auto !important;
        height: auto !important;
        scroll-snap-align: unset !important;
    }

    .fa-layout--properties .fa-proplist-glass .fa-featprop-media,
    .fa-layout--properties .fa-featprop-media {
        min-height: clamp(210px, 52vw, 320px) !important;
        aspect-ratio: 4 / 5 !important;
        flex: none !important;
    }

    .fa-layout--properties .fa-proplist-glass .fa-featprop-body {
        padding: 1rem 1.05rem 1.15rem;
    }

    .fa-layout--properties .fa-proplist-glass .fa-featprop-name {
        font-size: 1rem;
        line-height: 1.45;
    }

    .fa-layout--properties .fa-proplist-glass .fa-featprop-btn {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }

    /* ── Detail hero ── */
    .fa-layout--property-detail .fa-prop-hero {
        height: clamp(240px, 42vh, 360px);
        min-height: 240px;
        max-height: none;
    }

    .fa-layout--property-detail .fa-prop-hero-content {
        padding: 1.15rem 1rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
    }

    .fa-layout--property-detail .fa-prop-title {
        font-size: clamp(1.35rem, 6vw, 1.75rem);
        line-height: 1.35;
    }

    .fa-layout--property-detail .fa-prop-tagline {
        font-size: 0.92rem;
        line-height: 1.65;
    }

    .fa-layout--property-detail .fa-prop-badges {
        flex-wrap: wrap;
        gap: 0.45rem;
        margin-top: 0.75rem;
    }

    .fa-layout--property-detail .fa-prop-badge {
        font-size: 0.78rem;
        padding: 0.4rem 0.75rem;
    }

    /* ── Detail content ── */
    .fa-layout--property-detail .fa-prop-content {
        padding: 1.35rem clamp(0.85rem, 4vw, 1.15rem) calc(2rem + env(safe-area-inset-bottom, 0px));
        box-sizing: border-box;
    }

    .fa-layout--property-detail .fa-prop-main,
    .fa-layout--property-detail .fa-prop-about {
        min-width: 0;
        max-width: 100%;
    }

    .fa-layout--property-detail .fa-prop-desc,
    .fa-layout--property-detail .fa-prop-desc--html,
    .fa-layout--property-detail .fa-prop-desc--html p,
    .fa-layout--property-detail .fa-prop-desc--html li {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .fa-layout--property-detail .fa-prop-overview {
        grid-template-columns: 1fr !important;
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .fa-layout--property-detail .fa-prop-overview > * {
        min-width: 0;
        max-width: 100%;
    }

    .fa-layout--property-detail .fa-overview-box {
        padding: 1.15rem 1rem;
        border-radius: 18px;
        box-sizing: border-box;
    }

    .fa-layout--property-detail .fa-overview-features {
        grid-template-columns: 1fr !important;
        gap: 0.55rem;
    }

    .fa-layout--property-detail .fa-overview-feature {
        min-width: 0;
        max-width: 100%;
        padding: 0.65rem 0.7rem;
        box-sizing: border-box;
    }

    .fa-layout--property-detail .fa-overview-feature-text b,
    .fa-layout--property-detail .fa-overview-feature-text span {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .fa-layout--property-detail .fa-overview-grid {
        grid-template-columns: 1fr !important;
        gap: 0.55rem;
    }

    .fa-layout--property-detail .fa-overview-stat {
        min-width: 0;
        max-width: 100%;
        padding: 0.7rem 0.75rem;
        box-sizing: border-box;
    }

    .fa-layout--property-detail .fa-overview-stat-text b,
    .fa-layout--property-detail .fa-overview-stat-text span {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .fa-layout--property-detail .fa-overview-price {
        font-size: clamp(1.55rem, 7vw, 2rem);
    }

    .fa-layout--property-detail .fa-overview-actions {
        flex-direction: column;
        gap: 0.65rem;
    }

    .fa-layout--property-detail .fa-overview-actions .fa-prop-cta,
    .fa-layout--property-detail .fa-overview-actions .fa-prop-contact-btn {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }

    .fa-layout--property-detail .fa-prop-bento {
        grid-template-columns: 1fr !important;
        grid-auto-rows: auto;
        gap: 0.75rem;
    }

    .fa-layout--property-detail .fa-bento--price,
    .fa-layout--property-detail .fa-bento--cta,
    .fa-layout--property-detail .fa-bento--sq {
        grid-column: auto !important;
        grid-row: auto !important;
    }

    .fa-layout--property-detail .fa-prop-specs {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.65rem;
    }

    .fa-layout--property-detail .fa-prop-features {
        grid-template-columns: 1fr !important;
        gap: 0.65rem;
    }

    .fa-layout--property-detail .fa-prop-feature {
        min-width: 0;
    }

    .fa-layout--property-detail .fa-gallery {
        grid-template-columns: 1fr !important;
    }

    .fa-layout--property-detail .fa-gallery-thumbs {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .fa-layout--property-detail .fa-prop-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.65rem;
    }

    .fa-layout--property-detail .fa-units-wrapper {
        display: none;
    }

    .fa-layout--property-detail .fa-units-mobile {
        display: flex;
    }

    .fa-layout--property-detail .fa-unit-card {
        box-sizing: border-box;
    }

    .fa-layout--property-detail .fa-unit-card-specs {
        grid-template-columns: 1fr;
        gap: 0.45rem;
    }

    .fa-layout--property-detail .fa-prop-related {
        padding: 2.5rem clamp(0.85rem, 4vw, 1.15rem) calc(2.5rem + env(safe-area-inset-bottom, 0px));
    }

    .fa-layout--property-detail .fa-prop-related-grid {
        grid-template-columns: 1fr !important;
        max-width: 100% !important;
        gap: 1rem;
        padding-inline: 0;
    }

    .fa-layout--property-detail .fa-related-card {
        max-width: 100%;
    }

    .fa-layout--property-detail .fa-prop-location {
        padding-inline: 0;
        box-sizing: border-box;
    }

    .fa-layout--property-detail .fa-prop-distances {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .fa-layout--property-detail .fa-prop-map {
        border-radius: 16px;
        overflow: hidden;
    }

    .fa-layout--property-detail .fa-prop-progress {
        padding: 1.25rem 1rem;
    }

    .fa-layout--property-detail .fa-progress-timeline {
        flex-direction: column;
        gap: 1.25rem;
        padding: 0;
    }

    .fa-layout--property-detail .fa-progress-timeline::before {
        display: none;
    }

    .fa-layout--property-detail .fa-progress-step {
        flex-direction: row;
        gap: 0.85rem;
        justify-content: flex-start;
    }

    .fa-layout--property-detail .fa-progress-label {
        margin-top: 0;
        text-align: right;
        max-width: none;
    }
}

@media (max-width: 420px) {
    .fa-layout--property-detail .fa-prop-specs {
        grid-template-columns: 1fr !important;
    }
}
