/* Base Resets and Variables */
:root {
    --primary: #FF2B44;
    /* Standard brand red */
    --text-main: #1C1C1C;
    --text-sub: #7A7A7A;
    --bg-main: #FFFFFF;
    --bg-secondary: #F8F9FA;
    --gradient-purple: linear-gradient(135deg, #a393eb, #6A5ACD);
    --gradient-pink: linear-gradient(135deg, #ff9a9e, #fecfef);
    --gradient-blue: linear-gradient(135deg, #84fab0, #8fd3f4);
    --gradient-green: linear-gradient(135deg, #d4fc79, #96e6a1);
    --gradient-gold: linear-gradient(135deg, #f6d365, #fda085);

    --card-radius: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Manrope', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: none;
}

body {
    background-color: var(--bg-secondary);
    color: var(--text-main);
    display: flex;
    justify-content: center;
}

/* Mobile Application Container */
.app-container {
    width: 100%;
    max-width: 1200px;
    /* Desktop friendly width */
    margin: 0 auto;
    background-color: var(--bg-main);
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.05);
    overflow-x: hidden;
}

/* Header Section */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 10px 20px;
    background: var(--bg-main);
    position: sticky;
    top: 0;
    z-index: 100;
}

.location-picker {
    cursor: pointer;
}

.location-top {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 1.25rem;
    font-weight: 800;
}

.location-top i {
    font-size: 1.2rem;
}

.location-bottom {
    margin-top: 2px;
}

.location-address {
    font-size: 0.85rem;
    color: var(--text-sub);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
    display: block;
}

/* Brand Logo for Home Page */
.brand-logo {
    display: flex;
    align-items: baseline;
    gap: 0;
}

.brand-bold {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1e293b;
}

.brand-light {
    font-size: 1.6rem;
    font-weight: 500;
    color: #94a3b8;
}

/* Header Search Bar (Rent/Sale pages) */
.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px 14px;
    flex: 1;
    max-width: 400px;
    transition: border-color 0.2s;
}

.header-search:focus-within {
    border-color: #0ea5e9;
    background: #fff;
}

.header-search i {
    color: #94a3b8;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.header-search input {
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Manrope', sans-serif;
    font-size: 0.85rem;
    color: #333;
    width: 100%;
}

.header-search input::placeholder {
    color: #94a3b8;
}

.user-profile {
    cursor: pointer;
}

.profile-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: #fff;
    z-index: 1000;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.sidebar.active {
    right: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.sidebar-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.sidebar-content {
    padding: 20px;
    flex: 1;
}

.user-info {
    text-align: center;
    margin-bottom: 30px;
}

.large-profile {
    border-radius: 50%;
    margin-bottom: 10px;
}

.activity-links {
    list-style: none;
}

.activity-links li {
    padding: 15px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: color 0.2s;
}

.activity-links li:hover {
    color: var(--primary);
}

.activity-links li i {
    font-size: 1.2rem;
    color: var(--text-sub);
}

.activity-links .logout {
    color: var(--primary);
    margin-top: 20px;
    border: none;
}

.activity-links .logout i {
    color: var(--primary);
}

/* Overlays */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Slider Section */
.hero-slider {
    padding: 20px;
}

.swiper {
    width: 100%;
    height: 200px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.slide-content {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.slide-overlay {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 100%);
    width: 100%;
    height: 100%;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
}

.slide-overlay h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.slide-overlay p {
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.btn-primary {
    background: #fff;
    color: #000;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    width: max-content;
    cursor: pointer;
}

/* Swiper navigation tweaks */
.desktop-only {
    display: none;
    /* Hide arrows by default on mobile (swipe is enough) */
}

@media (min-width: 768px) {
    .desktop-only {
        display: flex;
    }

    .swiper-button-next,
    .swiper-button-prev {
        color: white;
        transform: scale(0.7);
    }
}

.swiper-pagination-bullet-active {
    background: white;
}

/* Categories Section */
.categories-section {
    padding: 10px 20px 20px 20px;
}

.section-heading {
    margin-bottom: 20px;
}

.section-heading h2 {
    font-size: 1.4rem;
    font-weight: 800;
}

.section-heading p {
    color: var(--text-sub);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Grid Layout — strict 2×2 */
.categories-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.cat-card {
    position: relative;
    border-radius: 16px;
    padding: 18px;
    height: 140px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s, box-shadow 0.2s;
}

.cat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.cat-text {
    color: #1C1C1C;
    font-weight: 800;
    font-size: 1rem;
    line-height: 1.3;
    position: relative;
    z-index: 2;
}

.cat-card img {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 55%;
    max-height: 65%;
    object-fit: contain;
    z-index: 1;
}

/* Card Colors */
.card-purple {
    background: #F0EDFF;
    border: 1px solid #EBE8FF;
}

.card-pink {
    background: #FFF0F5;
    border: 1px solid #FAEAEE;
}

.card-blue {
    background: #E8F4FF;
    border: 1px solid #E0EFFF;
}

.card-green {
    background: #E6FAEE;
    border: 1px solid #DEF5E8;
}

.card-gold {
    background: #FFF7E6;
    border: 1px solid #FDF0D9;
}

/* ============================================================
   HOME CONTENT WRAPPER — Desktop Two-Column Layout
   ============================================================ */
.home-content-wrapper {
    display: flex;
    flex-direction: column;
}

.home-slider-col {
    width: 100%;
}

.home-main-col {
    width: 100%;
}

@media (min-width: 768px) {
    .home-content-wrapper {
        flex-direction: row;
        gap: 20px;
        padding: 0 20px;
    }

    .home-slider-col {
        width: 50%;
        flex-shrink: 0;
    }

    .home-slider-col .hero-slider {
        height: 100%;
        border-radius: 16px;
        overflow: hidden;
    }

    .home-slider-col .slide-content {
        height: 100%;
        min-height: 380px;
    }

    .home-main-col {
        width: 50%;
    }

    .home-main-col .categories-section {
        padding: 10px 0 20px 0;
    }
}

/* Bottom Navigation */
.nav-padding {
    height: 80px;
    /* Space for fixed bottom nav */
}

.bottom-nav {
    position: fixed;
    bottom: 0px;
    width: 100%;
    max-width: 1200px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 15px 10px 20px 10px;
    border-top: 1px solid #eee;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.03);
    border-radius: 25px 25px 0 0;
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-sub);
    gap: 4px;
    transition: color 0.2s;
}

.nav-item i {
    font-size: 1.5rem;
}

.nav-item span {
    font-size: 0.75rem;
    font-weight: 600;
}

.nav-item.active {
    color: var(--primary);
}

/* Location Modal */
.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: white;
    padding: 25px;
    border-radius: 20px;
    z-index: 1001;
    width: 90%;
    max-width: 350px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    /* hidden by default */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.modal h3 {
    margin-bottom: 5px;
    font-weight: 800;
}

.modal p {
    color: var(--text-sub);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.location-types {
    display: flex;
    gap: 10px;
}

.location-types button {
    flex: 1;
    padding: 10px;
    border: 1px solid #eee;
    background: #f9f9f9;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    transition: background 0.2s;
}

.location-types button:hover {
    background: #eef2ff;
    border-color: #c7d2fe;
}

.location-types button i {
    font-size: 1.2rem;
    color: #4f46e5;
}

.detected-address {
    font-weight: 600;
    font-size: 0.85rem;
    margin-top: 5px;
    padding: 10px;
    background: #f0fdf4;
    border-radius: 8px;
    color: #166534;
}

.btn-close-modal {
    margin-top: 20px;
    width: 100%;
    padding: 12px;
    background: var(--text-main);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
}

/* Filter Bar */
.filter-bar {
    position: sticky;
    top: 75px;
    /* Adjust based on header height */
    background: var(--bg-main);
    z-index: 99;
    display: flex;
    gap: 10px;
    padding: 10px 20px;
    border-bottom: 1px solid #eee;
    overflow-x: auto;
}

.filter-bar::-webkit-scrollbar {
    display: none;
}

.filter-btn,
.sort-btn {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px 12px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    white-space: nowrap;
}

.sort-dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 140px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.1);
    z-index: 1;
    border-radius: 8px;
    top: 100%;
    left: 0;
    margin-top: 5px;
}

.sort-dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-weight: 500;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
    border-radius: 8px;
}

/* Property List Card */
.property-list {
    display: grid;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .property-list {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 20px;
        padding: 20px;
    }

    .property-list-card {
        border: 1px solid #eee;
        border-radius: 12px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    }
}

.property-list-card {
    display: flex;
    flex-direction: column;
    margin: 15px 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.property-list-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.prop-image-container {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.prop-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Card-level image slider */
.prop-image-container .swiper {
    width: 100%;
    height: 100%;
    border-radius: 0;
}

.prop-image-container .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.prop-image-container .swiper-pagination {
    top: 10px;
    bottom: auto;
    width: 100% !important;
    left: 0;
    transform: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    pointer-events: auto;
    /* No background, no pill */
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 0;
    padding: 0;
}

.prop-image-container .swiper-pagination-bullet {
    background: rgba(255,255,255,0.65);
    opacity: 1;
    width: 6px;
    height: 6px;
    margin: 0 2px !important;
    transition: width 0.25s, background 0.25s;
}

.prop-image-container .swiper-pagination-bullet-active {
    background: white;
    width: 18px;
    border-radius: 3px;
}

/* ── Card nav arrows ── */
/* Hidden on mobile by default */
.card-nav-prev,
.card-nav-next {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.22);
    cursor: pointer;
    z-index: 10;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s, transform 0.2s;
    opacity: 0;
    pointer-events: none;
}

.card-nav-prev { left: 8px; }
.card-nav-next { right: 8px; }

/* Override Swiper default arrow size/color */
.card-nav-prev::after,
.card-nav-next::after {
    font-size: 11px !important;
    color: #222 !important;
    font-weight: 900;
}

/* Show on desktop only */
@media (min-width: 640px) {
    .card-nav-prev,
    .card-nav-next {
        display: flex !important;
        pointer-events: auto;
        opacity: 0;
    }

    /* Reveal arrows on card hover */
    .prop-image-container:hover .card-nav-prev,
    .prop-image-container:hover .card-nav-next,
    .property-list-card:hover .card-nav-prev,
    .property-list-card:hover .card-nav-next {
        opacity: 1 !important;
        transform: translateY(-50%) scale(1);
    }

    /* Subtle scale on arrow hover */
    .card-nav-prev:hover,
    .card-nav-next:hover {
        background: #fff;
        transform: translateY(-50%) scale(1.08);
        box-shadow: 0 3px 12px rgba(0,0,0,0.28);
    }

    /* Disabled state */
    .card-nav-prev.swiper-button-disabled,
    .card-nav-next.swiper-button-disabled {
        opacity: 0.3 !important;
        pointer-events: none;
    }
}

.fav-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    color: white;
    font-size: 1.3rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.fav-icon.active i {
    color: var(--primary);
}

.deal-badge {
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 30px 10px 8px 10px;
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1.2;
}

/* Profile icon on property card */
.prop-profile-icon {
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 10;
    transition: transform 0.2s, box-shadow 0.2s;
}

.prop-profile-icon:hover {
    transform: scale(1.12);
    box-shadow: 0 3px 12px rgba(124, 58, 237, 0.5);
}

.prop-profile-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.prop-details {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.prop-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.prop-header h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.prop-header i {
    color: #999;
    cursor: pointer;
}

.prop-rating {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e1e1e;
    display: flex;
    align-items: center;
    gap: 3px;
    margin-bottom: 4px;
}

.prop-rating i {
    color: #16a34a;
}

.prop-tags {
    font-size: 0.8rem;
    color: var(--text-sub);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.prop-loc {
    font-size: 0.8rem;
    color: var(--text-sub);
}

/* Quick Action Buttons (below image slider) */
.sheet-quick-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 20px 4px 20px;
}

.quick-action-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6B7280;
    transition: all 0.2s ease;
    background: transparent;
}

.quick-action-btn:hover {
    background: #F3F4F6;
    color: #111827;
    border-color: #D1D5DB;
    transform: scale(1.05);
}

.quick-action-btn i {
    font-size: 1.5rem;
}

/* Bottom Sheet Modal */
.sheet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
}

.sheet-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ── Mobile: bottom-sheet slides up, single scrollable column ── */
.bottom-sheet {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    max-height: 92vh;
    background: #fff;
    border-radius: 20px 20px 0 0;
    z-index: 2001;
    transition: bottom 0.38s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s;
    opacity: 0;
    visibility: hidden;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.bottom-sheet.active {
    bottom: 0;
    opacity: 1;
    visibility: visible;
}

/* ── Desktop: centred two-column dialog ── */
@media (min-width: 640px) {
    .bottom-sheet {
        bottom: auto;
        left: 50%;
        top: 50%;
        width: 94%;
        max-width: 860px;
        max-height: 90vh;
        border-radius: 20px;
        transform: translate(-50%, -60%) scale(0.95);
        transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s;
    }
    .bottom-sheet.active {
        bottom: auto;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* ── Mobile: single scrollable column ── */
.sheet-inner {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    scroll-behavior: smooth;
    /* bottom padding so Book Visit button doesn't overlap content */
    padding-bottom: 80px;
}

/* ── Desktop: two columns ── */
@media (min-width: 640px) {
    .sheet-inner {
        flex-direction: row;
        align-items: flex-start;
        overflow-y: hidden;
        padding-bottom: 0;
    }
}

/* Left column */
.sheet-left-col {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    width: 100%;
}

@media (min-width: 640px) {
    .sheet-left-col {
        width: 52%;
        border-right: 1px solid #f0f0f0;
        overflow-y: auto;
        max-height: 90vh;
        -webkit-overflow-scrolling: touch;
    }
}

/* Right column */
.sheet-right-col {
    flex: 1;
    padding: 20px;
}

@media (min-width: 640px) {
    .sheet-right-col {
        overflow-y: auto;
        max-height: 90vh;
        -webkit-overflow-scrolling: touch;
    }
}


.sheet-close-btn {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 36px;
    height: 36px;
    background: rgba(28,28,28,0.85);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    z-index: 2010;
    border: none;
    backdrop-filter: blur(4px);
}

.sheet-content {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 100px;
    /* Space for fixed bottom bar */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
}

.sheet-image-box {
    width: 60%; /* Decreased by 20% from both sides */
    aspect-ratio: 4 / 3; /* Decreased height */
    position: relative;
    background: #000; /* Black screen background */
    border-radius: 12px;
    overflow: hidden;
    margin: 16px auto; /* Center the box */
    flex-shrink: 0; /* Prevents the image box from collapsing vertically in desktop flex layout */
}

.sheet-image-box img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Shows full image, whether portrait or landscape, without cropping */
}

.sheet-extra-icons {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 10px;
    font-size: 1.4rem;
}

.sheet-extra-icons i {
    cursor: pointer;
    background: white;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* ── Old sheet-extra-icons (kept hidden – replaced by top-bar) ── */
.sheet-extra-icons { display: none; }

/* ── Popup Top Bar ── */
.sheet-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 10px 16px;
    background: #fff;
    flex-shrink: 0;
}

.sheet-back-btn {
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #1c1c1c;
    border-radius: 50%;
    transition: background 0.2s;
    padding: 0;
}

.sheet-back-btn:hover {
    background: #f3f3f3;
}

.sheet-top-actions {
    display: flex;
    gap: 16px;
}

.sheet-action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.sheet-action-item span {
    font-size: 0.7rem;
    color: #555;
    font-weight: 600;
}

.sheet-action-btn {
    width: 36px;
    height: 36px;
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    color: #444;
}

.sheet-action-btn:hover {
    background: #eee;
    transform: scale(1.08);
}

/* ── Modal Swiper nav arrows (always visible, both mobile & desktop) ── */
.modal-nav-prev,
.modal-nav-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.22);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
}

.modal-nav-prev { left: 10px; }
.modal-nav-next { right: 10px; }

.modal-nav-prev::after,
.modal-nav-next::after {
    font-size: 11px !important;
    color: #222 !important;
    font-weight: 900;
}

.modal-nav-prev:hover,
.modal-nav-next:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 3px 12px rgba(0,0,0,0.28);
}

.modal-nav-prev.swiper-button-disabled,
.modal-nav-next.swiper-button-disabled {
    opacity: 0.3;
    pointer-events: none;
}

.sheet-dots {
    text-align: center;
    padding: 10px 0;
}

.sheet-dots span {
    display: inline-block;
    width: 25px;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    margin: 0 3px;
}

.sheet-dots span.active {
    background: #0ea5e9;
}

.sheet-details {
    padding: 10px 20px;
}

.sheet-brand {
    color: #0ea5e9;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.sheet-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.sheet-price {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 2px;
}

.sheet-price-sub {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 12px;
}

.sheet-desc {
    color: var(--text-sub);
    font-size: 0.9rem;
    line-height: 1.55;
    margin-bottom: 20px;
}

/* Property Specs Grid */
.prop-specs {
    display: flex;
    gap: 15px;
    margin: 15px 0 20px 0;
    padding-top: 15px;
    border-top: 1px dashed #e2e8f0;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #475569;
}

.spec-item i {
    font-size: 1.2rem;
    color: #0ea5e9;
}

/* Modal Action Row (Watch Demo + ADD) */
.modal-action-row {
    display: flex;
    gap: 12px;
    padding: 0 20px 20px 20px;
}

.btn-watch-demo {
    flex: 1;
    height: 48px;
    background: white;
    border: 1.5px solid #ddd;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #333;
}

.btn-add-modal {
    flex: 1;
    height: 48px;
    background: white;
    border: 1.5px solid #16a34a;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    color: #16a34a;
}

/* Standard Inclusions Box */
.inclusions-wrapper {
    padding: 0 20px 20px 20px;
}


/* Sheet modal Swiper slides */
.sheet-image-box .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sheet-image-box .swiper-pagination {
    bottom: 10px;
}

.sheet-image-box .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.5);
}

.sheet-image-box .swiper-pagination-bullet-active {
    background: white;
}

/* Fixed Bottom Bar inside Sheet */
.sheet-bottom-bar {
    /* Mobile: sticky at the bottom of the popup (outside scroll area) */
    position: sticky;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 14px 20px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.08);
    z-index: 10;
    /* On mobile this sits BELOW sheet-inner scroll area */
    flex-shrink: 0;
    margin-top: auto;
    box-sizing: border-box;
}

@media (min-width: 640px) {
    .sheet-bottom-bar {
        position: relative;
        box-shadow: none;
    }
}

.qty-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100px;
    height: 45px;
    border: 1px solid #0ea5e9;
    border-radius: 8px;
    padding: 0 10px;
    font-weight: 700;
    color: #0ea5e9;
    background: #f0f9ff;
}

.qty-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #0ea5e9;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
}

.btn-book {
    flex: 1;
    height: 45px;
    background: #0ea5e9;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}


/* =============================================
   PROFILE DROPDOWN (Top Right)
   ============================================= */
.user-profile-wrap {
    position: relative;
    flex-shrink: 0;
}
.profile-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    min-width: 220px;
    z-index: 3000;
    padding: 12px;
    animation: slideUpModal 0.2s cubic-bezier(0.25,1,0.5,1);
}
.profile-dropdown.open {
    display: block;
}
.profile-dd-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 0 8px;
}
.profile-dd-avatar img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}
.profile-dd-name {
    font-size: 0.9rem;
    font-weight: 800;
    color: #1c1c1c;
}
.profile-dd-sub {
    font-size: 0.75rem;
    color: #888;
    margin-top: 2px;
}
.profile-dd-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 8px 0;
}
.profile-dd-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 8px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    color: #1c1c1c;
    transition: background 0.15s;
}
.profile-dd-item:hover {
    background: #f0f9ff;
    color: #0ea5e9;
}
.profile-dd-item i {
    font-size: 1.1rem;
    color: #0ea5e9;
}




/* Full Screen Gallery Modal */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(240, 248, 243, 0.98); /* Light greenish background as per reference */
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
}

.gallery-modal.active {
    opacity: 1;
    visibility: visible;
}

.gallery-close {
    position: absolute;
    top: 25px;
    right: 25px;
    background: none;
    border: none;
    color: #111;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 10000;
    transition: transform 0.2s;
}

.gallery-close:hover {
    transform: scale(1.1);
}

.gallery-main-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 20px 20px 20px;
    box-sizing: border-box;
}

.galleryMainSwiper {
    width: 100%;
    max-width: 800px;
    height: 60vh;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 25px;
}

.galleryMainSwiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Fill the rounded box perfectly */
}

.galleryThumbSwiper {
    width: 100%;
    max-width: 500px;
    height: 85px;
    box-sizing: border-box;
}

.galleryThumbSwiper .swiper-slide {
    width: 20%;
    height: 100%;
    opacity: 0.5;
    transition: opacity 0.3s, transform 0.2s;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
}

.galleryThumbSwiper .swiper-slide-thumb-active {
    opacity: 1;
    transform: scale(1.05);
}

.galleryThumbSwiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-nav-prev,
.gallery-nav-next {
    color: #111 !important;
    background: #ffffff !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin-top: -22px !important; /* center vertically based on new height */
}

.gallery-nav-prev::after,
.gallery-nav-next::after {
    font-size: 20px !important;
    font-weight: 900;
}

/* ============================================================
   FILTER POPUP - Swiggy-style
   Mobile: bottom sheet sliding up
   Desktop: left sidebar with grey overlay
   ============================================================ */
.filter-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.filter-overlay.active {
    opacity: 1;
    visibility: visible;
}
.filter-panel {
    position: fixed;
    z-index: 1101;
    background: #fff;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}
@media (max-width: 767px) {
    .filter-panel {
        bottom: 0; left: 0;
        width: 100%;
        height: 85vh;
        border-radius: 20px 20px 0 0;
        transform: translateY(100%);
        box-shadow: 0 -10px 40px rgba(0,0,0,0.15);
    }
    .filter-panel.active { transform: translateY(0); }
    .filter-panel::before {
        content: '';
        display: block;
        width: 40px; height: 4px;
        background: #ddd;
        border-radius: 2px;
        margin: 10px auto 0;
    }
}
@media (min-width: 768px) {
    .filter-panel {
        top: 0; left: 0;
        width: 480px;
        height: 100vh;
        border-radius: 0 16px 16px 0;
        transform: translateX(-100%);
        box-shadow: 10px 0 40px rgba(0,0,0,0.12);
    }
    .filter-panel.active { transform: translateX(0); }
}
.filter-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px 14px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}
.filter-panel-header h2 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #1c1c1c;
}
.filter-close-btn {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: none;
    background: #f5f5f5;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #666;
    transition: background 0.2s;
}
.filter-close-btn:hover { background: #e8e8e8; }
.filter-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}
.filter-categories {
    width: 140px;
    min-width: 140px;
    background: #fafafa;
    border-right: 1px solid #f0f0f0;
    overflow-y: auto;
    flex-shrink: 0;
}
@media (min-width: 768px) {
    .filter-categories { width: 160px; min-width: 160px; }
}
.filter-cat-item {
    padding: 16px 14px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}
.filter-cat-item:hover { background: #f0f0f0; color: #333; }
.filter-cat-item.active {
    background: #fff;
    color: var(--primary);
    border-left-color: var(--primary);
    font-weight: 700;
}
.filter-options {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
}
.filter-options::-webkit-scrollbar { width: 3px; }
.filter-options::-webkit-scrollbar-thumb { background: #ddd; border-radius: 3px; }
.filter-option-group { display: none; }
.filter-option-group.active { display: block; }
.filter-option-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}
.filter-option-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
    cursor: pointer;
    transition: color 0.15s;
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
}
.filter-option-item:hover { color: #000; }
.filter-check {
    width: 20px; height: 20px;
    border: 2px solid #ccc;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}
.filter-option-item.selected .filter-check {
    background: var(--primary);
    border-color: var(--primary);
}
.filter-option-item.selected .filter-check::after {
    content: '\2713';
    color: #fff;
    font-size: 0.75rem;
    font-weight: 900;
}
.filter-radio {
    width: 20px; height: 20px;
    border: 2px solid #ccc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}
.filter-option-item.selected .filter-radio {
    border-color: var(--primary);
}
.filter-option-item.selected .filter-radio::after {
    content: '';
    width: 10px; height: 10px;
    background: var(--primary);
    border-radius: 50%;
}
.filter-price-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}
.price-chip {
    padding: 8px 16px;
    border: 1.5px solid #e0e0e0;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: #555;
    background: #fff;
}
.price-chip:hover { border-color: #bbb; }
.price-chip.selected {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.filter-panel-footer {
    display: flex;
    gap: 12px;
    padding: 14px 20px;
    border-top: 1px solid #f0f0f0;
    background: #fff;
    flex-shrink: 0;
}
.filter-clear-btn {
    flex: 1;
    padding: 13px;
    border: none;
    background: none;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
    border-radius: 10px;
    transition: background 0.2s;
}
.filter-clear-btn:hover { background: #fff0f2; }
.filter-apply-btn {
    flex: 1;
    padding: 13px;
    border: none;
    background: var(--primary);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s;
}
.filter-apply-btn:hover { background: #e0223a; }
.filter-btn .filter-count {
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    min-width: 18px; height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
}

/* ============================================================
   LOCATION PANEL - Swiggy-style
   Mobile: bottom sheet | Desktop: left sidebar
   ============================================================ */
.location-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.location-overlay.active { opacity: 1; visibility: visible; }

.location-panel {
    position: fixed;
    z-index: 1101;
    background: #fff;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}
@media (max-width: 767px) {
    .location-panel {
        bottom: 0; left: 0;
        width: 100%;
        height: 90vh;
        border-radius: 20px 20px 0 0;
        transform: translateY(100%);
        box-shadow: 0 -10px 40px rgba(0,0,0,0.15);
    }
    .location-panel.active { transform: translateY(0); }
    .location-panel::before {
        content: '';
        display: block;
        width: 40px; height: 4px;
        background: #ddd;
        border-radius: 2px;
        margin: 10px auto 0;
    }
}
@media (min-width: 768px) {
    .location-panel {
        top: 0; left: 0;
        width: 420px;
        height: 100vh;
        border-radius: 0 16px 16px 0;
        transform: translateX(-100%);
        box-shadow: 10px 0 40px rgba(0,0,0,0.12);
    }
    .location-panel.active { transform: translateX(0); }
}

/* Header */
.loc-panel-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px 14px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}
.loc-close-btn {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: none;
    background: #f5f5f5;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #666;
    transition: background 0.2s;
    flex-shrink: 0;
}
.loc-close-btn:hover { background: #e8e8e8; }
.loc-panel-header h2 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #1c1c1c;
}

/* Search Box */
.loc-search-wrap {
    padding: 14px 20px;
    flex-shrink: 0;
}
.loc-search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f5f5f5;
    border-radius: 12px;
    padding: 12px 16px;
    border: 1.5px solid transparent;
    transition: border-color 0.2s, background 0.2s;
}
.loc-search-box:focus-within {
    border-color: #ddd;
    background: #fff;
}
.loc-search-box i { color: #999; font-size: 1.2rem; }
.loc-search-input {
    border: none;
    background: none;
    outline: none;
    flex: 1;
    font-size: 0.95rem;
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    color: #333;
}
.loc-search-input::placeholder { color: #aaa; }

/* Body (scrollable) */
.loc-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}
.loc-panel-body::-webkit-scrollbar { width: 3px; }
.loc-panel-body::-webkit-scrollbar-thumb { background: #ddd; border-radius: 3px; }

/* GPS Button */
.loc-gps-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}
.loc-gps-btn:hover { background: #f8f8ff; }
.loc-gps-icon {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #EEF2FF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.loc-gps-icon i { color: #4361ee; font-size: 1.1rem; }
.loc-gps-text { font-size: 0.95rem; font-weight: 600; color: #4361ee; }
.loc-gps-sub { font-size: 0.78rem; color: #999; font-weight: 500; }

/* Section Label */
.loc-section-label {
    padding: 14px 20px 8px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* Recent Location Item */
.loc-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    cursor: pointer;
    transition: background 0.15s;
}
.loc-item:hover { background: #fafafa; }
.loc-item-icon {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.loc-item-icon i { color: #666; font-size: 1rem; }
.loc-item-text {
    flex: 1;
    font-size: 0.92rem;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.loc-item-arrow {
    color: #ccc;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* City List Item */
.loc-city-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid #f8f8f8;
}
.loc-city-item:hover { background: #fafafa; }
.loc-city-item span {
    font-size: 0.92rem;
    font-weight: 500;
    color: #333;
}
.loc-city-item i { color: #ccc; font-size: 1rem; }

/* All Cities link */
.loc-all-link {
    padding: 14px 20px 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #4361ee;
    cursor: pointer;
}
.loc-all-link:hover { text-decoration: underline; }

/* GPS loading spinner */
.loc-detecting {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: #f0fdf4;
    color: #166534;
    font-size: 0.85rem;
    font-weight: 600;
}
.loc-detecting i { animation: spin 1s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }

/* ============================================================
   BROKER PROFILE ICON — in detail sheet top bar
   ============================================================ */
.sheet-broker-profile-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: visible;
    cursor: pointer;
    border: 2.5px solid #7c3aed;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
}

/* Larger invisible tap target for easy clicking */
.sheet-broker-profile-icon::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.sheet-broker-profile-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 12px rgba(124, 58, 237, 0.4);
}

.sheet-broker-profile-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

/* ============================================================
   BROKER PROFILE ICON ON PROPERTY CARDS
   ============================================================ */
.broker-profile-icon {
    position: absolute;
    top: 8px;
    right: 40px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    z-index: 5;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.broker-profile-icon:hover {
    transform: scale(1.12);
    box-shadow: 0 3px 12px rgba(124, 58, 237, 0.5);
}

.broker-profile-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ============================================================
   BROKER PROFILE FULL-SCREEN POPUP
   ============================================================ */

/* Dark backdrop overlay */
.broker-profile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.broker-profile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.broker-profile-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f8f9fb;
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.35s;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    visibility: hidden;
    pointer-events: none;
}

.broker-profile-popup.active {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
}

/* ── Popup Header ── */
.broker-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.broker-popup-header h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #1c1c1c;
    margin: 0;
    letter-spacing: -0.3px;
}

.broker-popup-back {
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #1c1c1c;
    border-radius: 50%;
    transition: background 0.2s;
    padding: 0;
}

.broker-popup-back:hover {
    background: #f3f3f3;
}

/* ── Popup Content (scrollable) ── */
.broker-popup-content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    padding-bottom: 30px;
}

/* ── Profile Card ── */
.broker-popup-profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 20px 24px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}

.broker-popup-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 14px;
    border: 3px solid #7c3aed;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.25);
}

.broker-popup-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.broker-popup-name {
    font-size: 1.3rem;
    font-weight: 800;
    color: #1c1c1c;
    margin: 0 0 4px;
    letter-spacing: -0.3px;
}

.broker-popup-company {
    font-size: 0.85rem;
    color: #888;
    font-weight: 600;
    margin: 0 0 18px;
}

/* ── Action Buttons (Call / WhatsApp) ── */
.broker-popup-actions {
    display: flex;
    gap: 12px;
    width: 100%;
    max-width: 340px;
}

.broker-popup-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.broker-call-btn {
    background: #fff;
    border: 1.5px solid #e2e8f0;
    color: #1c1c1c;
}

.broker-call-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.broker-wa-btn {
    background: #25D366;
    border: 1.5px solid #25D366;
    color: #fff;
}

.broker-wa-btn:hover {
    background: #22c55e;
    border-color: #22c55e;
}

.broker-popup-action-btn i {
    font-size: 1.1rem;
}

/* ── Rent / Sale Tabs ── */
.broker-popup-tabs {
    display: flex;
    gap: 12px;
    padding: 18px 20px 0;
    background: #fff;
}

.broker-popup-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 50px;
    border: 2px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}

.broker-popup-tab.active {
    background: #7c3aed;
    border-color: #7c3aed;
    color: #fff;
}

.broker-popup-tab:not(.active):hover {
    border-color: #7c3aed;
    color: #7c3aed;
}

.broker-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0 4px;
}

.broker-popup-tab.active .broker-tab-count {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.broker-popup-tab:not(.active) .broker-tab-count {
    background: #f1f5f9;
    color: #64748b;
}

/* ── Properties Grid ── */
.broker-popup-properties {
    padding: 18px 16px 0;
}

.broker-popup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
}

@media (min-width: 640px) {
    .broker-popup-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 18px;
    }
}

.broker-popup-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.broker-popup-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.broker-popup-card-img {
    width: 100%;
    height: 130px;
    position: relative;
    overflow: hidden;
    background: #f0f0f0;
}

.broker-popup-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.broker-card-type {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.broker-card-type.rent {
    background: rgba(37, 99, 235, 0.9);
    color: #fff;
}

.broker-card-type.sale {
    background: rgba(234, 88, 12, 0.9);
    color: #fff;
}

.broker-popup-card-info {
    padding: 10px 12px 14px;
}

.broker-popup-card-id {
    font-size: 0.6rem;
    color: #a0aec0;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.broker-popup-card-info h4 {
    font-size: 0.88rem;
    font-weight: 800;
    color: #1c1c1c;
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.broker-popup-card-price {
    font-size: 0.85rem;
    font-weight: 800;
    color: #7c3aed;
    margin: 0 0 6px;
}

.broker-popup-card-specs {
    display: flex;
    gap: 10px;
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 600;
    margin: 0 0 4px;
}

.broker-popup-card-specs span {
    display: flex;
    align-items: center;
    gap: 3px;
}

.broker-popup-card-specs i {
    font-size: 0.85rem;
    color: #94a3b8;
}

.broker-popup-card-loc {
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.broker-popup-card-loc i {
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* ── Empty State ── */
.broker-popup-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #94a3b8;
}

.broker-popup-empty i {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.broker-popup-empty p {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
}

/* ── Desktop: Popup as centered dialog ── */
@media (min-width: 768px) {
    .broker-profile-popup {
        top: 50%;
        left: 50%;
        width: 92%;
        max-width: 680px;
        height: 88vh;
        border-radius: 20px;
        transform: translate(-50%, -50%) scale(0.92);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
        transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s, visibility 0.3s;
    }

    .broker-profile-popup.active {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
}


/* Card Swiper Overrides */
.prop-image-container .card-nav-prev,
.prop-image-container .card-nav-next {
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #111;
    background: #ffffff;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    margin-top: -16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.prop-image-container .card-nav-prev:after,
.prop-image-container .card-nav-next:after {
    font-size: 16px;
    font-weight: 900;
}
.property-list-card:hover .card-nav-prev,
.property-list-card:hover .card-nav-next {
    opacity: 1;
}
.prop-image-container .swiper-pagination {
    top: 10px;
    bottom: auto !important;
}
.prop-image-container .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.6);
    opacity: 1;
    width: 6px;
    height: 6px;
    margin: 0 3px !important;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.prop-image-container .swiper-pagination-bullet-active {
    background: #ffffff;
    width: 8px;
    height: 8px;
}

/* ============================================================
   PROPERTY ACCORDIONS & AD BANNER
   ============================================================ */
.property-accordions {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 20px;
    border-top: 1px solid #e0f2fe;
    border-bottom: 1px solid #e0f2fe;
    padding: 10px 0;
}

.accordion-item {
    background: #fff;
    border: none;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    cursor: pointer;
    background: #fff;
}

.acc-title-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.acc-icon {
    width: 44px;
    height: 44px;
    background: #e0f2fe;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0284c7;
    font-size: 1.4rem;
}

.acc-title-left span {
    font-size: 1.15rem;
    font-weight: 500;
    color: #111;
}

.acc-chevron {
    font-size: 1.4rem;
    color: #888;
    transition: transform 0.3s ease;
}

.accordion-item.active .acc-chevron {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0 0 16px 0;
    display: none;
    font-size: 0.95rem;
    color: #444;
    line-height: 1.5;
}

.accordion-item.active .accordion-content {
    display: block;
}

/* Detail Table Rows (Key-Value pairs inside accordions) */
.detail-table {
    width: 100%;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 4px 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row .detail-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #222;
}

.detail-row .detail-value {
    font-size: 0.9rem;
    font-weight: 400;
    color: #888;
    text-align: right;
}


.ad-banner-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 10px;
    background: #fff;
    margin-top: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-banner-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

/* ============================================================
   PROPERTY MAIN CARD & HIGHLIGHTS
   ============================================================ */
.prop-main-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.key-highlights-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.highlights-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.hl-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hl-item span {
    font-size: 0.85rem;
    font-weight: 600;
    color: #111;
}

.hl-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #5eead4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d9488;
    background: transparent;
}

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

/* -- MOBILE: Up to 480px -- */
@media (max-width: 480px) {
    .app-container {
        max-width: 100%;
        box-shadow: none;
    }

    .app-header {
        padding: 14px 16px 8px 16px;
        gap: 8px;
    }

    .brand-bold, .brand-light {
        font-size: 1.3rem;
    }

    .header-search {
        max-width: none;
        padding: 7px 12px;
    }

    .header-search input {
        font-size: 0.8rem;
    }

    .location-top {
        font-size: 1.05rem;
    }

    .location-address {
        max-width: 160px;
        font-size: 0.75rem;
    }

    .profile-icon {
        width: 38px;
        height: 38px;
    }

    .hero-slider {
        padding: 0 12px;
    }

    .slide-content {
        height: 180px;
        border-radius: 14px;
    }

    .slide-overlay h2 {
        font-size: 1.2rem;
    }

    .slide-overlay p {
        font-size: 0.8rem;
    }

    .categories-section {
        padding: 8px 12px 16px 12px;
    }

    .section-heading h2 {
        font-size: 1.15rem;
    }

    .categories-grid {
        gap: 8px;
    }

    .cat-card {
        height: 120px;
        padding: 14px;
        border-radius: 14px;
    }

    .cat-text {
        font-size: 0.85rem;
    }

    .cat-card img {
        width: 50%;
        max-height: 60%;
    }

    .filter-row {
        padding: 0 12px;
        gap: 6px;
    }

    .filter-btn, .sort-dropdown .sort-btn, .apply-fast-btn {
        font-size: 0.75rem;
        padding: 6px 12px;
    }

    .property-list-card {
        margin: 10px 12px;
        border-radius: 14px;
    }

    .prop-info {
        padding: 12px;
    }

    .prop-title {
        font-size: 1rem;
    }

    .prop-meta {
        font-size: 0.75rem;
    }

    .bottom-nav {
        padding: 10px 8px 16px 8px;
        border-radius: 20px 20px 0 0;
    }

    .nav-item span {
        font-size: 0.65rem;
    }

    .nav-item i {
        font-size: 1.2rem;
    }

    .nav-padding {
        height: 70px;
    }

    .prop-main-card {
        padding: 12px;
    }

    .sheet-title {
        font-size: 1.1rem;
    }

    .detail-row {
        padding: 11px 0;
    }

    .detail-row .detail-label,
    .detail-row .detail-value {
        font-size: 0.8rem;
    }

    .acc-icon {
        width: 38px;
        height: 38px;
        font-size: 1.2rem;
    }

    .acc-title-left span {
        font-size: 1rem;
    }

    .highlights-grid {
        gap: 8px;
    }

    .hl-item {
        padding: 8px 10px;
    }

    .hl-item span {
        font-size: 0.75rem;
    }

    .ad-banner-container {
        padding: 8px;
    }
}

/* -- TABLET: 481px to 768px -- */
@media (min-width: 481px) and (max-width: 768px) {
    .app-container {
        max-width: 100%;
    }

    .app-header {
        padding: 16px 20px 10px 20px;
    }

    .header-search {
        max-width: 280px;
    }

    .slide-content {
        height: 240px;
    }

    .categories-grid {
        gap: 14px;
    }

    .cat-card {
        height: 140px;
    }

    .property-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding: 16px;
    }

    .property-list-card {
        margin: 0;
        border: 1px solid #eee;
        border-radius: 14px;
    }

    .sheet-right-col {
        max-height: none;
    }
}

/* -- DESKTOP: 769px and up -- */
@media (min-width: 769px) {
    .app-container {
        max-width: 1200px;
    }

    .app-header {
        padding: 20px 30px 12px 30px;
    }

    .brand-bold, .brand-light {
        font-size: 1.8rem;
    }

    .header-search {
        max-width: 420px;
    }

    .location-top {
        font-size: 1.3rem;
    }

    .location-address {
        max-width: 300px;
    }

    .profile-icon {
        width: 48px;
        height: 48px;
    }

    .slide-content {
        height: 320px;
    }

    .slide-overlay h2 {
        font-size: 2rem;
    }

    .categories-section {
        padding: 15px 25px 25px 25px;
    }

    .section-heading h2 {
        font-size: 1.6rem;
    }

    .cat-card {
        height: 160px;
        padding: 22px;
    }

    .cat-text {
        font-size: 1.15rem;
    }

    .filter-row {
        padding: 0 25px;
    }

    .property-list {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 20px;
        padding: 20px 25px;
    }

    .property-list-card {
        margin: 0;
        border: 1px solid #eee;
        border-radius: 14px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    }

    .property-list-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    }

    .bottom-nav {
        max-width: 1200px;
        border-radius: 25px 25px 0 0;
    }

    .nav-item span {
        font-size: 0.8rem;
    }

    .nav-item i {
        font-size: 1.5rem;
    }

    .sheet-body {
        max-width: 1200px;
    }

    .detail-row .detail-label,
    .detail-row .detail-value {
        font-size: 0.95rem;
    }

    .acc-title-left span {
        font-size: 1.2rem;
    }

    .highlights-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* -- LARGE DESKTOP: 1200px and up -- */
@media (min-width: 1200px) {
    .app-container {
        border-left: 1px solid #f0f0f0;
        border-right: 1px solid #f0f0f0;
    }

    .property-list {
        grid-template-columns: repeat(3, 1fr);
    }

    .slide-content {
        height: 380px;
    }
}

/* Embed Mode (for broker iframe) */
body.embed-mode {
    background: transparent !important;
}
body.embed-mode > *:not(#propertyModal) {
    display: none !important;
}
body.embed-mode #propertyModal {
    display: flex !important;
    position: static !important;
    width: 100% !important;
    height: 100vh !important;
    background: #f8fafc !important;
    z-index: 1 !important;
}
body.embed-mode #propertyModal .modal-content {
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    border-radius: 0 !important;
    margin: 0 !important;
    transform: none !important;
    max-height: 100vh !important;
}
body.embed-mode #propertyModal .modal-close {
    display: none !important; /* Broker app has its own close button */
}