body.pf-device-mobile .t-search,
body.pf-device-tablet .t-search {
    padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px) + 16px);
}

@media (max-width: 767.98px) {
    body.pf-device-mobile .t-search .luxe-search-main {
        grid-template-columns: minmax(0, 1fr) 54px !important;
        align-items: stretch;
    }

    body.pf-device-mobile .t-search .luxe-btn-search {
        grid-column: 1 / -1;
        width: 100% !important;
        min-width: 0;
        min-height: 52px;
        justify-self: stretch;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.55rem;
        padding: 0 1rem !important;
    }

    body.pf-device-mobile .t-search .luxe-properties-grid,
    body.pf-device-mobile .t-search .luxe-properties-grid.list-view,
    body.map-view-active.pf-device-mobile .t-search .luxe-properties-grid,
    body.map-view-active.pf-device-mobile .t-search .luxe-properties-grid.list-view {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    body.map-view-active.pf-device-mobile .t-search .luxe-search-layout,
    body.map-view-active.pf-device-mobile .t-search .luxe-results-column {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
    }

    body.pf-device-mobile .t-search .luxe-mobile-bottom-bar .luxe-back-btn,
    body.pf-device-mobile .t-search .luxe-mobile-bottom-bar .luxe-action-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        line-height: 1 !important;
    }
}

body.pf-device-mobile .t-search .container-wide,
body.pf-device-tablet .t-search .container-wide {
    padding-left: 16px;
    padding-right: 16px;
}

body.pf-device-mobile .t-search .luxe-filter-bar,
body.pf-device-tablet .t-search .luxe-filter-bar {
    position: sticky;
    top: var(--header-offset, 0px);
    z-index: 1030;
    padding: 0.35rem 0 0.55rem;
    background: rgba(251, 249, 244, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

body.pf-device-mobile .t-search .luxe-search-main,
body.pf-device-tablet .t-search .luxe-search-main {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 0.6rem;
}

body.pf-device-mobile .t-search .luxe-filter-form,
body.pf-device-tablet .t-search .luxe-filter-form {
    display: grid;
    gap: 0.8rem;
}

body.pf-device-mobile .t-search .luxe-filter-location,
body.pf-device-mobile .t-search .luxe-toggle-btn,
body.pf-device-mobile .t-search .luxe-btn-search,
body.pf-device-mobile .t-search .luxe-action-btn,
body.pf-device-mobile .t-search .luxe-back-btn,
body.pf-device-mobile .t-search .luxe-field-select,
body.pf-device-tablet .t-search .luxe-filter-location,
body.pf-device-tablet .t-search .luxe-toggle-btn,
body.pf-device-tablet .t-search .luxe-btn-search,
body.pf-device-tablet .t-search .luxe-action-btn,
body.pf-device-tablet .t-search .luxe-back-btn,
body.pf-device-tablet .t-search .luxe-field-select {
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(44, 37, 24, 0.1);
}

body.pf-device-mobile .t-search .luxe-advanced-panel,
body.pf-device-mobile .t-search .luxe-sidebar-card,
body.pf-device-mobile .t-search .luxe-custom-filters-card,
body.pf-device-tablet .t-search .luxe-advanced-panel,
body.pf-device-tablet .t-search .luxe-sidebar-card,
body.pf-device-tablet .t-search .luxe-custom-filters-card {
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(44, 37, 24, 0.1);
    box-shadow: 0 16px 34px rgba(44, 37, 24, 0.1);
}

body.pf-device-mobile .t-search .luxe-results-header,
body.pf-device-tablet .t-search .luxe-results-header {
    display: grid;
    gap: 0.9rem;
    margin-bottom: 0.75rem;
}

body.pf-device-mobile .t-search .luxe-results-title,
body.pf-device-tablet .t-search .luxe-results-title {
    font-size: 1.18rem !important;
    line-height: 1.12;
}

body.pf-device-mobile .t-search .luxe-results-count,
body.pf-device-tablet .t-search .luxe-results-count {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

body.pf-device-mobile .t-search .luxe-results-actions,
body.pf-device-tablet .t-search .luxe-results-actions {
    display: flex;
    gap: 0.55rem;
    overflow-x: auto;
    padding-bottom: 0.15rem;
    scrollbar-width: none;
}

body.pf-device-mobile .t-search .luxe-results-actions::-webkit-scrollbar,
body.pf-device-tablet .t-search .luxe-results-actions::-webkit-scrollbar {
    display: none;
}

body.pf-device-mobile .t-search .luxe-view-toggle,
body.pf-device-tablet .t-search .luxe-view-toggle {
    flex: 0 0 auto;
}

body.pf-device-mobile .t-search .luxe-search-layout,
body.pf-device-tablet .t-search .luxe-search-layout {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

body.pf-device-mobile .t-search .luxe-results-column,
body.pf-device-mobile .t-search .luxe-sidebar-column,
body.pf-device-tablet .t-search .luxe-results-column,
body.pf-device-tablet .t-search .luxe-sidebar-column {
    width: 100%;
    min-width: 0;
}

body.pf-device-mobile .t-search .luxe-properties-grid,
body.pf-device-tablet .t-search .luxe-properties-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

body.pf-device-mobile .t-search .property-card-modern,
body.pf-device-tablet .t-search .property-card-modern {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(44, 37, 24, 0.08);
    box-shadow: 0 14px 26px rgba(44, 37, 24, 0.07);
    background: rgba(255, 255, 255, 0.98);
}

body.pf-device-mobile .t-search .luxe-map-container,
body.pf-device-tablet .t-search .luxe-map-container {
    min-height: 240px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 14px 26px rgba(44, 37, 24, 0.08);
}

body.pf-device-mobile .t-search .luxe-sidebar-column,
body.pf-device-tablet .t-search .luxe-sidebar-column {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(90vw, 380px);
    max-width: 380px;
    height: 100vh;
    z-index: 1045;
    overflow-y: auto;
    padding: calc(env(safe-area-inset-top, 0px) + 16px) 16px calc(env(safe-area-inset-bottom, 0px) + 24px);
    background: linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(245, 239, 226, 0.98));
    border-left: 1px solid rgba(44, 37, 24, 0.1);
    box-shadow: -24px 0 48px rgba(44, 37, 24, 0.16);
    transform: translateX(104%);
    transition: transform 0.28s ease;
}

body.pf-device-mobile .t-search .luxe-sidebar-column.active,
body.pf-device-tablet .t-search .luxe-sidebar-column.active {
    transform: translateX(0);
}

body.pf-device-mobile .t-search .luxe-sidebar-content,
body.pf-device-tablet .t-search .luxe-sidebar-content {
    display: grid;
    gap: 1rem;
}

body.pf-device-mobile .t-search .luxe-results-actions,
body.pf-device-tablet .t-search .luxe-results-actions {
    flex-wrap: nowrap;
}

body.pf-device-mobile .t-search .luxe-view-toggle,
body.pf-device-mobile .t-search #mapViewBtn,
body.pf-device-tablet .t-search .luxe-view-toggle,
body.pf-device-tablet .t-search #mapViewBtn {
    flex: 0 0 auto;
}

body.pf-device-mobile .t-search .pagination-wrapper,
body.pf-device-tablet .t-search .pagination-wrapper {
    padding-bottom: 0.5rem;
}

body.pf-device-mobile .t-search .luxe-mobile-bottom-bar,
body.pf-device-tablet .t-search .luxe-mobile-bottom-bar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 78px;
    padding: 0.75rem;
    border-radius: 24px;
    background: rgba(255, 251, 244, 0.94);
    border: 1px solid rgba(44, 37, 24, 0.12);
    box-shadow: 0 20px 42px rgba(44, 37, 24, 0.18);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

body.pf-device-mobile .t-search .luxe-mobile-bottom-bar .luxe-back-btn,
body.pf-device-tablet .t-search .luxe-mobile-bottom-bar .luxe-back-btn {
    flex: 0 0 46px;
    width: 46px;
    min-width: 46px;
}

body.pf-device-mobile .t-search .luxe-mobile-bottom-bar .luxe-mobile-actions-group,
body.pf-device-tablet .t-search .luxe-mobile-bottom-bar .luxe-mobile-actions-group {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
    flex: 1 1 auto;
    margin-left: auto;
}

body.pf-device-mobile .t-search .luxe-mobile-bottom-bar .luxe-action-btn,
body.pf-device-mobile .t-search .luxe-mobile-bottom-bar .luxe-back-btn,
body.pf-device-tablet .t-search .luxe-mobile-bottom-bar .luxe-action-btn,
body.pf-device-tablet .t-search .luxe-mobile-bottom-bar .luxe-back-btn {
    width: 46px;
    min-width: 46px;
    min-height: 46px;
    border-radius: 16px;
}

@media (max-width: 767.98px) {
    body.pf-device-mobile .t-search .luxe-search-main,
    body.pf-device-tablet .t-search .luxe-search-main {
        grid-template-columns: 1fr auto;
    }

    body.pf-device-mobile .t-search .luxe-btn-search,
    body.pf-device-tablet .t-search .luxe-btn-search {
        grid-column: 1 / -1;
        justify-content: center;
    }

    body.pf-device-mobile .t-search .luxe-map-container,
    body.pf-device-tablet .t-search .luxe-map-container {
        min-height: 220px;
    }
}

@media (max-width: 1024px) {
    body.pf-device-mobile .t-search .luxe-results-actions,
    body.pf-device-tablet .t-search .luxe-results-actions {
        display: flex !important;
        align-items: center;
        gap: 0.55rem;
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    body.pf-device-mobile .t-search .luxe-view-toggle,
    body.pf-device-tablet .t-search .luxe-view-toggle {
        display: flex;
        align-items: center;
        gap: 0.55rem;
        flex: 0 0 auto;
    }

    body.pf-device-mobile .t-search .luxe-results-actions .luxe-action-btn,
    body.pf-device-mobile .t-search .luxe-results-actions .luxe-back-btn,
    body.pf-device-tablet .t-search .luxe-results-actions .luxe-action-btn,
    body.pf-device-tablet .t-search .luxe-results-actions .luxe-back-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.45rem;
        min-height: 46px;
        padding: 0 0.9rem;
        border-radius: 16px;
        white-space: nowrap;
        width: auto !important;
    }

    body.pf-device-mobile .t-search #gridViewBtn,
    body.pf-device-mobile .t-search #mapViewBtn,
    body.pf-device-tablet .t-search #gridViewBtn,
    body.pf-device-tablet .t-search #mapViewBtn {
        display: inline-flex !important;
    }

    body.pf-device-mobile .t-search .luxe-results-actions .luxe-action-label,
    body.pf-device-tablet .t-search .luxe-results-actions .luxe-action-label {
        font-size: 0.78rem;
        font-weight: 700;
        line-height: 1;
    }

    body.pf-device-mobile .t-search #listViewBtn,
    body.pf-device-mobile .t-search #mapListBtn,
    body.pf-device-mobile .t-search .luxe-map-view-controls,
    body.pf-device-mobile .t-search .luxe-mobile-map-toggle,
    body.pf-device-tablet .t-search #listViewBtn,
    body.pf-device-tablet .t-search #mapListBtn,
    body.pf-device-tablet .t-search .luxe-map-view-controls,
    body.pf-device-tablet .t-search .luxe-mobile-map-toggle {
        display: none !important;
    }

    body.pf-device-mobile .t-search .luxe-map-container,
    body.pf-device-tablet .t-search .luxe-map-container {
        display: none !important;
        width: 100%;
        margin-bottom: 1rem;
        min-height: 300px;
    }

    body.map-view-active.pf-device-mobile .t-search .luxe-map-container,
    body.map-view-active.pf-device-tablet .t-search .luxe-map-container {
        display: block !important;
    }

    body.pf-device-mobile .t-search .luxe-properties-grid,
    body.pf-device-mobile .t-search .luxe-properties-grid.list-view,
    body.pf-device-tablet .t-search .luxe-properties-grid,
    body.pf-device-tablet .t-search .luxe-properties-grid.list-view {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        align-items: start;
    }

    body.pf-device-mobile .t-search .property-card-modern,
    body.pf-device-tablet .t-search .property-card-modern {
        display: flex;
        flex-direction: column;
        min-width: 0;
    }

    body.pf-device-mobile .t-search .card-image-container,
    body.pf-device-tablet .t-search .card-image-container {
        aspect-ratio: 4 / 3;
        min-height: 0;
    }

    body.pf-device-mobile .t-search .card-image-link,
    body.pf-device-mobile .t-search .card-image,
    body.pf-device-tablet .t-search .card-image-link,
    body.pf-device-tablet .t-search .card-image {
        width: 100%;
        height: 100%;
    }

    body.pf-device-mobile .t-search .card-image,
    body.pf-device-tablet .t-search .card-image {
        object-fit: cover;
        display: block;
    }

    body.pf-device-mobile .t-search .card-image-overlay,
    body.pf-device-tablet .t-search .card-image-overlay {
        padding: 0.75rem;
        gap: 0.25rem;
    }

    body.pf-device-mobile .t-search .card-content,
    body.pf-device-tablet .t-search .card-content {
        padding: 0.78rem;
    }

    body.pf-device-mobile .t-search .card-title,
    body.pf-device-tablet .t-search .card-title {
        font-size: 0.88rem;
        line-height: 1.3;
    }

    body.pf-device-mobile .t-search .card-title a,
    body.pf-device-tablet .t-search .card-title a {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    body.pf-device-mobile .t-search .card-price,
    body.pf-device-tablet .t-search .card-price {
        font-size: 0.98rem;
    }

    body.pf-device-mobile .t-search .card-location,
    body.pf-device-mobile .t-search .card-specs,
    body.pf-device-mobile .t-search .card-agent,
    body.pf-device-tablet .t-search .card-location,
    body.pf-device-tablet .t-search .card-specs,
    body.pf-device-tablet .t-search .card-agent {
        font-size: 0.72rem;
    }

    body.pf-device-mobile .t-search .card-actions,
    body.pf-device-tablet .t-search .card-actions {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.45rem;
    }

    body.pf-device-mobile .t-search .card-actions > *,
    body.pf-device-tablet .t-search .card-actions > * {
        min-height: 40px;
        padding: 0.5rem 0.35rem;
        font-size: 0.72rem;
        border-radius: 12px;
    }

    body.pf-device-mobile .t-search .luxe-mobile-bottom-bar,
    body.pf-device-tablet .t-search .luxe-mobile-bottom-bar {
        flex-wrap: nowrap;
        justify-content: space-between;
        overflow: hidden;
    }
}

@media (max-width: 767.98px) {
    body.pf-device-mobile .t-search .luxe-results-column .luxe-properties-grid,
    body.pf-device-mobile .t-search .luxe-results-column .luxe-properties-grid.list-view,
    body.map-view-active.pf-device-mobile .t-search .luxe-results-column .luxe-properties-grid,
    body.map-view-active.pf-device-mobile .t-search .luxe-results-column .luxe-properties-grid.list-view {
        grid-template-columns: 1fr !important;
        width: 100% !important;
        gap: 1rem !important;
    }

    body.map-view-active.pf-device-mobile .t-search .luxe-results-column {
        width: 100% !important;
        max-width: none !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        overflow: visible !important;
    }
}

body.pf-device-mobile .t-search .luxe-filter-bar,
body.pf-device-tablet .t-search .luxe-filter-bar {
    top: 0 !important;
    margin-top: 0 !important;
}

@media (max-width: 1024px) {
    body.pf-device-mobile .t-search .card-actions,
    body.pf-device-tablet .t-search .card-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        justify-content: stretch;
        align-items: center;
    }

    body.pf-device-mobile .t-search .card-actions > *,
    body.pf-device-tablet .t-search .card-actions > * {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 52px !important;
        padding: 0 !important;
        border-radius: 14px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0 !important;
        font-size: 0 !important;
        line-height: 1 !important;
    }

    body.pf-device-mobile .t-search .card-actions svg,
    body.pf-device-tablet .t-search .card-actions svg {
        width: 18px !important;
        height: 18px !important;
        flex: 0 0 auto;
    }

    body.pf-device-mobile .t-search .card-action-label,
    body.pf-device-tablet .t-search .card-action-label {
        display: none !important;
    }

    body.pf-device-mobile .t-search .card-agent,
    body.pf-device-tablet .t-search .card-agent {
        margin-top: 0.8rem;
        padding-top: 0.8rem;
        gap: 0.75rem;
        min-height: 58px;
    }

    body.pf-device-mobile .t-search .agent-avatar,
    body.pf-device-tablet .t-search .agent-avatar {
        width: 42px;
        height: 42px;
        min-width: 42px;
        border-radius: 14px;
        border-width: 1px;
    }

    body.pf-device-mobile .t-search .agent-avatar-placeholder,
    body.pf-device-tablet .t-search .agent-avatar-placeholder {
        border-radius: 14px;
        background: linear-gradient(135deg, rgba(44, 37, 24, 0.96), rgba(183, 165, 106, 0.88));
        color: #fff9ef;
        font-size: 0.84rem;
    }

    body.pf-device-mobile .t-search .agent-info,
    body.pf-device-tablet .t-search .agent-info {
        min-width: 0;
        gap: 0.18rem;
    }

    body.pf-device-mobile .t-search .agent-name,
    body.pf-device-tablet .t-search .agent-name {
        display: block;
        font-size: 0.82rem;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    body.pf-device-mobile .t-search .agent-text,
    body.pf-device-tablet .t-search .agent-text {
        font-size: 0.7rem;
        line-height: 1.3;
        color: rgba(44, 37, 24, 0.58);
    }
}
