:root {
    --primary-color: #0d6efd;
    --primary-hover: #0b5ed7;
    --primary-light: #e7f1ff;
    --primary-surface: rgba(13, 110, 253, 0.07);
    --bg-light: #f8f9fb;
    --border-color: #e2e8f0;
    --text-dark: #1e293b;
    --text-muted: #64748b;
}

.pd-listing-page {
    min-height: 100vh;
    background: #f8fafc;
}

@media (min-width: 992px) {
    .pd-listing-page.container-fluid {
        padding-left: 60px;
        padding-right: 60px;
    }
}

.project-search-hero {
    background: transparent !important;
    border: none !important;
    position: relative;
    padding: 0 !important;
}

.project-search-hero::after {
    display: none;
}

.search-bar-container {
    border: 1px solid var(--border-color);
}

.search-bar-container select:focus,
.search-bar-container input:focus {
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
    border-color: var(--primary-color);
}

/* -------------------- DUAL COLUMN LAYOUT -------------------- */
.project-list-column {
    display: flex;
    flex-column: gap-4;
}

.project-heading-row {
    border-bottom: 2px solid #edf2f7;
    padding-bottom: 10px;
}

/* -------------------- FILTER PANEL -------------------- */
.sidebar-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

@media (min-width: 992px) {
    .pd-filter-column {
        position: sticky;
        top: calc(var(--pd-header-h, 72px) + 16px);
        align-self: flex-start;
        max-height: calc(100vh - var(--pd-header-h, 72px) - 28px);
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-gutter: stable;
        padding-bottom: 16px;
    }

    .pd-filter-column > * {
        flex-shrink: 0;
    }
}

.filter-chip {
    transition: all 0.2s ease;
    font-size: 12px;
    font-weight: 550;
    border: 1px solid #cbd5e1;
    color: var(--text-dark);
}

.filter-chip:hover {
    background-color: #f1f5f9;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.filter-chip.active {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.25);
}

/* -------------------- PROJECT CARDS -------------------- */
.project-card-new {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: row;
    align-items: stretch;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    min-height: 220px;
    height: auto;
}

.project-card-new:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    border-color: #cbd5e1;
}

.project-card-image-section {
    width: 35%;
    position: relative;
    flex: 0 0 35%;
    align-self: stretch;
    min-height: 220px;
    background: #e2e8f0;
    overflow: hidden;
}

.project-card-image-section a {
    display: block;
    width: 100%;
    height: 100%;
}

.project-card-image-section > img,
.project-card-image-section > video,
.project-card-image-section > .project-card-media-slider,
.project-card-image-section > .img-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.project-card-media-slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Desktop/tablet: first image only — no horizontal scroll */
.project-card-media-track {
    display: flex;
    width: 100%;
    height: 100%;
    overflow: hidden;
    scroll-snap-type: none;
    touch-action: auto;
}

.project-card-media-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
}

.project-card-media-slide:not(:first-child) {
    display: none;
}

.project-card-media-slide img,
.project-card-media-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.project-card-media-dots {
    display: none;
}

.project-card-image-section img,
.project-card-image-section video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-card-details-section {
    width: 65%;
    flex: 1 1 65%;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.75rem;
    min-width: 0;
}

.project-specs-flex {
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    padding: 10px 0;
    gap: 20px !important;
    align-items: center;
}

.project-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.project-card-developer {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 6px;
}

.project-card-developer i {
    color: #e28743;
}

.project-card-price-row {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-left: auto;
    position: relative;
    z-index: 5;
    flex-shrink: 0;
}

.project-card-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: #ef7a16;
    line-height: 1.1;
    white-space: nowrap;
}

.project-card-price-row .project-card-wishlist-btn {
    width: auto;
    height: auto;
    min-width: 0;
    padding: 4px;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #64748b;
    box-shadow: none;
}

.project-card-price-row .project-card-wishlist-btn i {
    font-size: 1.2rem;
    color: inherit;
}

.project-card-price-row .project-card-wishlist-btn:hover {
    border: none;
    background: transparent;
    color: #475569;
    transform: none;
}

.project-card-price-row .project-card-wishlist-btn.active,
.project-card-price-row .project-card-wishlist-btn.is-wishlisted,
.project-card-price-row .project-card-wishlist-btn.wishlist-added {
    border: none;
    background: transparent;
    color: #ef4444;
}

.project-card-price-row .project-card-wishlist-btn.active i,
.project-card-price-row .project-card-wishlist-btn.is-wishlisted i,
.project-card-price-row .project-card-wishlist-btn.wishlist-added i,
.project-card-price-row .project-card-wishlist-btn.wishlist-added .text-danger {
    color: #ef4444 !important;
}

.project-card-meta {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 8px;
}

.project-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.project-card-meta i {
    color: var(--primary-color);
}

.project-card-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.project-amenity-tag {
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
}

.project-card-amenity-stat {
    min-width: 0;
}

.project-card-amenity-icon {
    width: 32px;
    height: 32px;
    background: #f5f3ff;
    border-radius: 6px;
    flex-shrink: 0;
}

.project-card-amenity-icon i {
    font-size: 12px;
    color: #7c3aed;
}

.project-card-amenity-label {
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.project-card-amenity-value {
    font-size: 12px;
    color: #1e293b;
    display: block;
    line-height: 1.2;
    margin-top: 2px;
}

/* Badges styling */
.project-card-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.project-card-status-row {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-badge-custom {
    position: static;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    white-space: nowrap;
}

/* Image wishlist: hidden everywhere except mobile */
.project-card-wishlist-btn.project-card-wishlist-btn--image {
    display: none !important;
}

/* Mobile-only card pieces — hidden on desktop/tablet/macbook */
.project-card-mobile-status,
.project-card-mobile-top-actions,
.project-card-id-pill,
.project-card-mobile-header,
.project-card-mobile-location,
.project-card-mobile-desc,
.project-card-mobile-features,
.project-card-mobile-meta {
    display: none !important;
}

.project-card-rera {
    margin: 0.35rem 0 0.55rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: #64748b;
    line-height: 1.4;
    word-break: break-word;
}

.badge-verified {
    background: var(--primary-color);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(13, 110, 253, 0.2);
}

/* Actions Section */
.project-card-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
    padding-top: 0.35rem;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.btn-contact-property {
    height: 44px;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-contact-property:not(.is-connected):hover {
    background-color: var(--primary-hover) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.25);
}

.btn-contact-property.is-connected {
    background-color: #10b981 !important;
    border-color: #10b981 !important;
    color: white !important;
    cursor: default;
}

.project-card-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.project-card-title a,
.project-card-developer a,
.project-card-actions,
.project-card-price-row,
.project-card-mobile-meta,
.project-card-mobile-features {
    position: relative;
    z-index: 5;
}

.btn-detail-property {
    height: 44px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-detail-property:hover {
    background-color: var(--primary-light);
    color: var(--primary-hover);
}

.project-card-wishlist-btn {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 8px;
    border: 1px solid #94a3b8;
    background: #fff;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.2s ease;
    cursor: pointer;
}

.project-card-wishlist-btn i {
    font-size: 1rem;
    line-height: 1;
    color: inherit;
}

.project-card-wishlist-btn:hover {
    border-color: #64748b;
    background: #f8fafc;
    color: #475569;
}

.project-card-wishlist-btn.active,
.project-card-wishlist-btn.is-wishlisted,
.project-card-wishlist-btn.wishlist-added {
    border-color: #94a3b8;
    background: #fff;
    color: #ef4444;
}

.project-card-wishlist-btn.active i,
.project-card-wishlist-btn.is-wishlisted i,
.project-card-wishlist-btn.wishlist-added i,
.project-card-wishlist-btn.wishlist-added .text-danger {
    color: #ef4444 !important;
    font-weight: 900;
}

.project-card-share-btn {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.2s ease;
    cursor: pointer;
}

.project-card-share-btn i {
    font-size: 1rem;
    line-height: 1;
}

.project-card-share-btn:hover {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #2563eb;
}

/* -------------------- RESPONSIVE SIDEBAR MOBILE -------------------- */
@media (max-width: 991.98px) {

    .pd-filter-column {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 400px;
        height: 100%;
        background: #ffffff;
        z-index: 1050;
        transition: right 0.3s ease-in-out;
        overflow-y: auto;
        box-shadow: -10px 0 30px rgba(0,0,0,0.15);
    }
    
    .pd-filter-column.open {
        right: 0;
    }
    
    .filter-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(15, 23, 42, 0.4);
        backdrop-filter: blur(3px);
        z-index: 1040;
    }
    
    .filter-overlay.open {
        display: block;
    }
}

/* -------------------- ACTIVE FILTER CHIPS -------------------- */
.active-filter-chip {
    background-color: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #1e293b !important;
    transition: all 0.2s ease;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.active-filter-chip .btn-close {
    filter: none !important;
    opacity: 0.65;
    transition: opacity 0.2s ease;
}

.active-filter-chip .btn-close:hover {
    opacity: 0.95;
}

/* Override default chip counts look */
.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.filter-chip.active {
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.25);
}

/* Tablet + MacBook: keep price + heart on one line (smaller font if needed) */
@media (min-width: 768px) and (max-width: 1366px) {
    .project-card-header-row {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: flex-start !important;
        gap: 8px !important;
    }

    .project-card-header-info {
        flex: 1 1 auto;
        min-width: 0;
        max-width: 52%;
    }

    .project-card-price-row {
        flex: 0 1 auto;
        min-width: 0;
        max-width: 48%;
        margin-left: auto;
        display: inline-flex;
        align-items: center;
        justify-content: flex-end;
        gap: 6px;
        flex-wrap: nowrap;
    }

    .project-card-price {
        font-size: 0.9rem;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: right;
        flex: 1 1 auto;
        min-width: 0;
    }

    .project-card-price-row .project-card-wishlist-btn {
        flex-shrink: 0;
        padding: 2px 0 2px 2px;
    }

    .project-card-price-row .project-card-wishlist-btn i {
        font-size: 1.05rem;
    }
}

/* Explicitly keep image heart / mobile chrome off on tablet/desktop */
@media (min-width: 768px) {
    .project-card-wishlist-btn.project-card-wishlist-btn--image,
    .project-card-mobile-status,
    .project-card-mobile-top-actions,
    .project-card-id-pill,
    .project-card-mobile-header,
    .project-card-mobile-location,
    .project-card-mobile-desc,
    .project-card-mobile-features,
    .project-card-mobile-meta {
        display: none !important;
    }

    /* Do NOT force display:revert — it breaks Bootstrap flex (d-flex) on desktop */
    .project-card-desktop-only.project-card-header-row {
        display: flex !important;
    }

    .project-card-desktop-only.project-card-badges,
    .project-card-desktop-only.project-card-status-row {
        display: flex !important;
    }

    .project-card-desktop-only.project-card-image-overlay {
        display: block !important;
    }

    .project-card-desktop-only.project-card-share-btn {
        display: inline-flex !important;
    }

    .project-card-wishlist-btn.project-card-wishlist-btn--price {
        display: inline-flex !important;
    }

    .project-card-new {
        display: flex !important;
        flex-direction: row !important;
        align-items: stretch;
        height: auto;
        min-height: 220px;
        overflow: hidden;
    }

    .project-card-image-section {
        width: 35% !important;
        flex: 0 0 35% !important;
        align-self: stretch;
        min-height: 220px;
        position: relative;
        overflow: hidden;
    }

    .project-card-details-section {
        width: 65% !important;
        flex: 1 1 65% !important;
        min-width: 0;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .project-card-header-row {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: flex-start !important;
        gap: 12px !important;
        width: 100%;
    }

    .project-card-header-info {
        flex: 1 1 auto;
        min-width: 0;
    }

    .project-card-price-row {
        margin-left: auto;
        flex-shrink: 0;
    }

    .project-card-actions {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: 12px;
        margin-top: auto;
    }

    .project-card-desktop-desc {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 0.76rem;
        line-height: 1.45;
    }
}

/* Mobile-only project card UI (matches uploaded reference) */
@media (max-width: 767.98px) {
    .project-card-desktop-only {
        display: none !important;
    }

    .project-card-new {
        flex-direction: column !important;
        height: auto !important;
        min-height: 0;
        border-radius: 16px;
        overflow: hidden;
        cursor: pointer;
    }

    .project-card-image-section {
        width: 100% !important;
        flex: 0 0 auto !important;
        height: 220px !important;
        min-height: 220px !important;
        position: relative;
        z-index: 3;
        pointer-events: auto;
    }

    /* Let swipe/auto-slide work on images; details area stays clickable via overlay */
    .project-card-link-overlay {
        top: 220px;
    }

    /* Mobile-only: scrollable image slider + dots */
    .project-card-media-track {
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        touch-action: pan-x pan-y;
    }

    .project-card-media-track::-webkit-scrollbar {
        display: none;
    }

    .project-card-media-slide {
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .project-card-media-slide:not(:first-child) {
        display: block;
    }

    .project-card-media-dots {
        display: flex;
        position: absolute;
        left: 0;
        right: 0;
        bottom: 10px;
        z-index: 8;
        align-items: center;
        justify-content: center;
        gap: 6px;
        pointer-events: none;
    }

    .project-card-media-dots button {
        width: 7px;
        height: 7px;
        border: 0;
        border-radius: 50%;
        padding: 0;
        background-color: rgba(255, 255, 255, 0.55);
        opacity: 1;
        pointer-events: auto;
        transition: width 0.2s ease, background-color 0.2s ease;
    }

    .project-card-media-dots button.active {
        width: 18px;
        border-radius: 999px;
        background-color: #f18535;
    }

    .project-card-details-section {
        width: 100% !important;
        flex: 1 1 auto !important;
        padding: 14px 14px 14px !important;
        gap: 0.65rem;
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
    }

    .project-card-details-section > div {
        min-width: 0;
        max-width: 100%;
    }

    .project-card-image-overlay,
    .project-card-badges,
    .project-card-status-row,
    .project-card-header-row,
    .project-specs-flex,
    .project-specs-grid,
    .project-card-rera,
    .project-card-amenity-stat {
        display: none !important;
    }

    /* Status — top left */
    .project-card-mobile-status {
        display: inline-flex !important;
        align-items: center;
        gap: 6px;
        position: absolute;
        top: 12px;
        left: 12px;
        z-index: 12;
        padding: 6px 12px;
        border-radius: 999px;
        background: #16a34a;
        color: #fff;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.3px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        white-space: nowrap;
        pointer-events: none;
    }

    .project-card-mobile-status.is-ongoing {
        background: #f59e0b;
    }

    .project-card-mobile-status.is-default {
        background: #334155;
    }

    .project-card-mobile-status-dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #fff;
        flex-shrink: 0;
    }

    /* Share + heart — top right dark circles */
    .project-card-mobile-top-actions {
        display: flex !important;
        align-items: center;
        gap: 8px;
        position: absolute;
        top: 12px;
        right: 12px;
        z-index: 12;
        pointer-events: none;
    }

    .project-card-mobile-top-actions .project-card-mobile-icon-btn {
        pointer-events: auto;
    }

    .project-card-mobile-icon-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
        border: none;
        border-radius: 50%;
        background: rgba(15, 23, 42, 0.45);
        backdrop-filter: blur(4px);
        color: #fff !important;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        padding: 0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        cursor: pointer;
    }

    .project-card-mobile-icon-btn i {
        font-size: 0.95rem;
        color: #fff !important;
        line-height: 1;
    }

    .project-card-wishlist-btn.project-card-wishlist-btn--image.project-card-mobile-icon-btn {
        display: inline-flex !important;
        width: 36px;
        height: 36px;
        border: none;
        border-radius: 50%;
        background: rgba(15, 23, 42, 0.45);
        color: #fff !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }

    .project-card-wishlist-btn.project-card-wishlist-btn--image.wishlist-added,
    .project-card-wishlist-btn.project-card-wishlist-btn--image.active,
    .project-card-wishlist-btn.project-card-wishlist-btn--image.is-wishlisted {
        background: rgba(15, 23, 42, 0.45) !important;
        color: #ef4444 !important;
        border: none;
    }

    .project-card-wishlist-btn.project-card-wishlist-btn--image.wishlist-added i,
    .project-card-wishlist-btn.project-card-wishlist-btn--image.active i,
    .project-card-wishlist-btn.project-card-wishlist-btn--image.is-wishlisted i,
    .project-card-wishlist-btn.project-card-wishlist-btn--image.wishlist-added .text-danger {
        color: #ef4444 !important;
    }

    /* ID pill — bottom left on image */
    .project-card-id-pill {
        display: inline-flex !important;
        align-items: center;
        gap: 6px;
        position: absolute;
        left: 12px;
        bottom: 12px;
        z-index: 12;
        padding: 7px 11px;
        border: 0;
        border-radius: 8px;
        background: #fff;
        color: #1f2937;
        font-size: 12px;
        font-weight: 600;
        line-height: 1;
        box-shadow: 0 4px 14px rgba(15, 30, 69, 0.14);
        cursor: pointer;
        pointer-events: auto;
    }

    .project-card-id-pill i {
        color: #9ca3af;
        font-size: 12px;
    }

    .project-card-id-pill.is-copied {
        background: #ecfdf5;
        color: #065f46;
    }

    /* Title + price row */
    .project-card-mobile-header {
        display: flex !important;
        align-items: flex-start;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 6px;
    }

    .project-card-mobile-title {
        margin: 0;
        flex: 1 1 auto;
        min-width: 0;
        font-size: 1.15rem;
        font-weight: 800;
        color: #0f172a;
        line-height: 1.25;
    }

    .project-card-mobile-price {
        flex: 0 0 auto;
        max-width: 48%;
        text-align: right;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 1px;
    }

    .project-card-mobile-price-label {
        font-size: 0.68rem;
        font-weight: 600;
        color: #f18535;
        line-height: 1.2;
        white-space: nowrap;
    }

    .project-card-mobile-price-value {
        font-size: 0.92rem;
        font-weight: 800;
        color: #f18535;
        line-height: 1.2;
        white-space: nowrap;
    }

    .project-card-mobile-location {
        display: flex !important;
        align-items: center;
        gap: 6px;
        color: #94a3b8;
        font-size: 0.82rem;
        font-weight: 500;
        margin-bottom: 8px;
    }

    .project-card-mobile-location i {
        color: #94a3b8;
        font-size: 0.78rem;
    }

    .project-card-mobile-desc {
        display: -webkit-box !important;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin: 0 0 12px;
        font-size: 0.78rem;
        line-height: 1.45;
        color: #94a3b8;
    }

    .project-card-mobile-features {
        display: flex !important;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 8px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin-bottom: 0;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        touch-action: pan-x;
        overscroll-behavior-x: contain;
        position: relative;
        z-index: 6;
        pointer-events: auto;
    }

    .project-card-mobile-features::-webkit-scrollbar {
        display: none;
    }

    .project-card-mobile-feature {
        flex: 0 0 auto;
        width: max-content;
        min-width: max-content;
        max-width: none;
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 12px;
        background: #f8fafc;
        border: 1px solid #eef2f7;
        border-radius: 12px;
        white-space: nowrap;
    }

    .project-card-mobile-feature-icon {
        width: 30px;
        height: 30px;
        border-radius: 8px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        font-size: 12px;
    }

    .project-card-mobile-feature-icon.is-orange {
        background: #fff7ed;
        color: #f18535;
    }

    .project-card-mobile-feature-icon.is-blue {
        background: #eff6ff;
        color: #2563eb;
    }

    .project-card-mobile-feature-icon.is-green {
        background: #ecfdf5;
        color: #16a34a;
    }

    .project-card-mobile-feature-text {
        min-width: 0;
        flex: 0 0 auto;
    }

    .project-card-mobile-feature strong {
        display: block;
        font-size: 0.8rem;
        font-weight: 700;
        color: #0f172a;
        line-height: 1.2;
        white-space: nowrap;
        overflow: visible;
        text-overflow: unset;
        max-width: none;
    }

    .project-card-mobile-feature span {
        display: block;
        font-size: 0.68rem;
        color: #94a3b8;
        margin-top: 2px;
        white-space: nowrap;
    }

    .project-card-mobile-meta {
        display: flex !important;
        flex-wrap: nowrap;
        align-items: center;
        gap: 0;
        position: relative;
        z-index: 6;
        width: 100%;
        max-width: 100%;
        margin: 8px 0 0;
        padding: 0;
        box-sizing: border-box;
        color: #64748b;
        font-size: 0.72rem;
        font-weight: 500;
        line-height: 1.35;
        white-space: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        touch-action: pan-x;
        pointer-events: auto;
    }

    .project-card-mobile-meta::-webkit-scrollbar {
        display: none;
    }

    .project-card-mobile-meta > span {
        display: inline-flex;
        align-items: center;
        flex: 0 0 auto;
        gap: 5px;
        padding: 0 10px;
        border-right: 1px solid #cbd5e1;
        white-space: nowrap;
        max-width: none;
    }

    .project-card-mobile-meta > span:first-child {
        padding-left: 0;
    }

    .project-card-mobile-meta > span:last-child {
        border-right: 0;
        padding-right: 0;
    }

    .project-card-mobile-meta i {
        font-size: 0.7rem;
        color: #94a3b8;
        flex-shrink: 0;
    }

    .project-card-mobile-meta-rera strong {
        font-weight: 700;
        color: #475569;
        white-space: nowrap;
    }

    /* Hide Connect + View Details on mobile only (share stays on image) */
    .project-card-actions {
        display: none !important;
    }
}

/* Image Text Overlay Styles */
.project-card-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.85) 100%);
    padding: 24px 16px 16px;
    color: #ffffff;
    z-index: 5;
    pointer-events: none;
}

.project-card-image-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff !important;
    margin-bottom: 4px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-card-image-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.project-card-image-subtitle i {
    color: #ff9f43 !important;
    font-size: 12px;
}

/* Covered Area unit select — give arrow breathing room from "Sq Ft" */
#projectAreaUnit {
    padding-right: 1.75rem !important;
    background-position: right 0.15rem center !important;
    min-width: 4.5rem;
}

/* RERA toggle — stronger contrast when off so it stays visible */
#projectReraVerified.form-check-input {
    border-color: #94a3b8 !important;
    background-color: #e2e8f0 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%2364748b'/%3e%3c/svg%3e") !important;
}

#projectReraVerified.form-check-input:checked {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e") !important;
}

#projectReraVerified.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.2) !important;
}
