/* 99acres Inspired Modern Design Tokens */
:root {
    --primary-navy: #092956;
    --action-blue: #0078db;
    --success-green: #28a745;
    --bg-light: #f5f7fa;
    --text-main: #2d3e50;
    --text-muted: #6b7c93;
    --border-color: #eaebec;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

body {
    background-color: var(--bg-light) !important;
    color: var(--text-main);
    font-family: 'Nunito', sans-serif;
}

/* Modern Card Styles */
.modern-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    margin-bottom: 24px;
}

.modern-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.modern-card .property-img {
    position: relative;
    overflow: hidden;
}

.modern-card .property-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.modern-card:hover .property-img img {
    transform: scale(1.05);
}

/* Badges */
.badge-custom {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-featured {
    background-color: #fff8e1;
    color: #fbc02d;
}

.badge-sale {
    background-color: #e3f2fd;
    color: #1976d2;
}

.badge-rent {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

/* Listing Details */
.modern-card .card-content {
    padding: 20px;
}

.modern-card .card-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-navy);
    margin-bottom: 4px;
}

.modern-card .card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.modern-card .card-location {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.modern-card .card-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 12px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.modern-card .meta-item {
    display: flex;
    flex-direction: column;
}

.modern-card .meta-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 2px;
}

.modern-card .meta-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

.modern-card .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-primary-modern {
    background-color: var(--action-blue);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    transition: background 0.3s ease;
}

.btn-primary-modern:hover {
    background-color: #005bb5;
    color: #fff;
}

/* Pill Selection Styles */
.pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.pill-item {
    padding: 10px 18px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 8px;
    margin-bottom: 8px;
}

.pill-item::before {
    content: "\2b"; /* Plus sign */
    font-size: 14px;
    font-weight: 400;
    color: #94a3b8;
    transition: all 0.2s;
}

.pill-item input {
    display: none;
}

.pill-item:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.pill-item.active {
    background: #f0f9ff;
    border-color: #bae6fd;
    color: #0369a1;
    font-weight: 600;
}

.pill-item.active::before {
    content: "\2713"; /* Checkmark */
    color: #0ea5e9;
    font-weight: 700;
}

.search-input-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.search-input-wrapper i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.search-input-wrapper .form-control {
    padding-left: 40px !important;
}

/* 99acres Style Property Listing Card */
.listing-card-99 {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eaeaeb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    margin-bottom: 24px;
    overflow: hidden;
    transition: all 0.3s ease;
    padding: 0 !important; /* Ensure no internal padding */
    display: flex;
    flex-direction: column; /* Mobile first */
    border-radius: 20px; /* Increased for mobile as requested */
}

@media (max-width: 768px) {
    .btn-99-outline, .btn-99-filled {
        font-size: 10px !important;
        padding: 5px 10px !important;
        letter-spacing: -0.2px;
        border-radius: 6px !important;
    }
    .footer-right {
        gap: 6px !important;
    }
}

@media (min-width: 992px) {
    .listing-card-99 {
        flex-direction: row;
        min-height: 260px;
        border-radius: 12px;
    }
    
    .listing-card-99:hover {
        transform: translateY(-8px);
        box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    }

    /* Auto-expand description slightly on hover */
    .listing-card-99:hover .listing-desc-text {
        -webkit-line-clamp: 2;
        color: #333;
    }
}

.listing-card-99 {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@media (max-width: 768px) {
    .listing-title-main {
        font-size: 15px !important;
        line-height: 1.3 !important;
        margin-bottom: 2px !important;
        font-weight: 800 !important;
    }
    .listing-subtitle {
        font-size: 11px !important;
        margin-bottom: 8px !important;
        color: #777 !important;
    }
    .price-val { font-size: 17px !important; letter-spacing: -0.5px; }
    .area-val, .status-val { font-size: 13px !important; }
    .price-sub, .area-sub, .status-sub { font-size: 10px !important; opacity: 0.8; }
    .highlight-tag { 
        font-size: 9px !important; 
        padding: 2px 6px !important;
        background: #f1f5f9 !important;
        border-radius: 4px !important;
    }
    .badge-99 { font-size: 9px !important; padding: 2px 6px !important; }
    .listing-content-col { padding: 12px 15px !important; }
    .listing-price-row { gap: 15px !important; margin-bottom: 12px !important; }
}

.listing-card-99:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.listing-img-col {
    position: relative;
    background: #f8f9fa;
    min-height: 260px;
    width: 100%;
    overflow: hidden;
    flex-shrink: 0;
    border-radius: 20px 20px 0 0; /* Match card radius on mobile */
}

@media (min-width: 992px) {
    .listing-img-col {
        width: 35%; /* 35% on desktop */
        height: auto;
        border-radius: 12px 0 0 12px;
    }
}

.listing-img-main {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
    transition: transform 0.5s ease;
}

@media (min-width: 992px) {
    .listing-img-main {
        position: absolute;
        top: 0;
        left: 0;
    }
}
@media (max-width:768px){

.listing-img-main {
    width: 100% !important;
    height: 270px !important;
    /* object-fit: cover !important;
    display: block;
    transition: transform 0.5s ease; */
}
}

.listing-img-main.is-placeholder {
    object-fit: contain !important;
    padding: 20px;
    background: #fff;
}

/* Slick Slider Customization for Cards */
.property-slider {
    height: 100%;
}

.property-slider .slick-list, 
.property-slider .slick-track {
    height: 100%;
}

.property-slider .slick-prev,
.property-slider .slick-next {
    width: 30px;
    height: 30px;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s;
}

.listing-card-99:hover .property-slider .slick-prev,
.listing-card-99:hover .property-slider .slick-next {
    opacity: 1;
}

.property-slider .slick-prev { left: 10px; }
.property-slider .slick-next { right: 10px; }

.property-slider .slick-prev:before,
.property-slider .slick-next:before {
    font-family: 'FontAwesome';
    font-size: 20px;
    color: #fff;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.property-slider .slick-prev:before { content: '\f104'; }
.property-slider .slick-next:before { content: '\f105'; }

.property-slider .slick-dots {
    bottom: 10px;
}

.property-slider .slick-dots li button:before {
    color: #fff;
    font-size: 8px;
    opacity: 0.5;
}

.property-slider .slick-dots li.slick-active button:before {
    color: #fff;
    opacity: 1;
}

.listing-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: block;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}

.badge-99 {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-99-featured { background: #3b3b3b; color: #fff; }
.badge-99-seen { background: rgba(0,0,0,0.6); color: #fff; }

.listing-wishlist {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: all 0.2s;
}

.listing-wishlist:hover { background: #fff; color: #ff385c; }

.listing-content-col {
    padding: 20px 24px;
    width: 100%;
}

@media (max-width: 768px) {
    .listing-content-col {
        padding: 15px !important;
    }
    .listing-title-main {
        font-size: 16px !important;
        margin-bottom: 2px !important;
    }
    .listing-subtitle {
        font-size: 12px !important;
        margin-bottom: 10px !important;
    }
    .price-val { font-size: 16px !important; }
    .area-val, .status-val { font-size: 13px !important; }
    .price-sub, .area-sub, .status-sub { font-size: 10px !important; }
    .listing-price-row { gap: 15px !important; }
    .area-item, .status-item { padding-left: 10px !important; }
}

@media (min-width: 992px) {
    .listing-content-col {
        /* width: 65%; 65% on desktop */
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
}

.listing-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
}

.listing-title-main {
    font-size: 18px;
    font-weight: 800;
    color: #1b1b1b;
    margin: 0;
}

.listing-subtitle {
    font-size: 14px;
    color: #4a4a4a;
    margin-bottom: 16px;
}

.listing-price-row {
    display: flex !important;
    gap: 30px !important;
    margin-bottom: 16px !important;
    flex-wrap: nowrap !important;
}

.price-item { display: flex; flex-direction: column; }
.price-val { font-size: 20px; font-weight: 800; color: #1b1b1b; }
.price-sub { font-size: 12px; color: #727272; }

.area-item { display: flex; flex-direction: column; border-left: 1px solid #eee; padding-left: 20px; }
.area-val { font-size: 16px; font-weight: 700; color: #1b1b1b; }
.area-sub { font-size: 12px; color: #727272; }

.status-item { display: flex; flex-direction: column; border-left: 1px solid #eee; padding-left: 20px; }
.status-val { font-size: 14px; font-weight: 700; color: #1b1b1b; }
.status-sub { font-size: 12px; color: #727272; }

.listing-highlights {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.highlight-label { font-size: 13px; font-weight: 700; color: #4a4a4a; margin-right: 4px; }
.highlight-tag {
    background: #f0f4f8;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    color: #0078db;
    font-weight: 600;
}

.highlight-more {
    font-size: 13px;
    font-weight: 700;
    color: #0078db;
    cursor: pointer;
}

.listing-desc-row {
    position: relative;
    /* margin-bottom: 20px; */
    /* padding: 8px; */
    background: #fcfcfc;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.listing-card-99:hover .listing-desc-row {
    background: #f5f9ff;
}

.listing-desc-text {
    font-size: 13px;
    color: #4a4a4a;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding-right: 30px;
    transition: all 0.3s ease;
}

.listing-desc-text.expanded {
    position: absolute !important;
    top: -15px !important;
    left: -15px !important;
    width: calc(100% + 30px) !important;
    background: #ffffff !important;
    z-index: 1000 !important;
    padding: 20px !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15) !important;
    border-radius: 10px !important;
    border: 1px solid #eaeaeb !important;
    display: block !important;
    -webkit-line-clamp: unset !important;
    max-height: 400px;
    overflow-y: auto;
}

.listing-desc-text.expanded::after {
    content: 'View all details →';
    display: block;
    margin-top: 15px;
    color: #0078db;
    font-weight: 700;
    font-size: 13px;
    border-top: 1px solid #f0f0f0;
    padding-top: 10px;
}

.desc-expand-btn {
    position: absolute;
    top: 0;
    right: 0;
    cursor: pointer;
    color: #b2b2b2;
    transition: transform 0.3s;
    z-index: 1001; /* Stay above the popup */
}

.desc-expand-btn.active { transform: rotate(180deg); }

.listing-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.footer-left { display: flex; align-items: center; gap: 12px; }
.dealer-info { display: flex; flex-direction: column; }
.dealer-name { font-size: 13px; font-weight: 700; color: #1b1b1b; }
.post-time { font-size: 11px; color: #9b9b9b; }

.footer-right { 
    display: flex; 
    gap: 12px; 
    align-items: center;
}

.btn-99-outline {
    border: 1px solid #0078db !important;
    color: #0078db !important;
    background: #fff !important;
    padding: 10px 24px !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    transition: all 0.2s;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-99-outline:hover {
    background: #f0f7ff !important;
}

.btn-99-filled {
    background: #0078db !important;
    color: #fff !important;
    border: none !important;
    padding: 10px 28px !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    text-decoration: none !important;
}

.btn-99-filled:hover { background: #005bb5; color: #fff; }

/* Detail Page Grid */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.summary-item {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.summary-item i {
    font-size: 20px;
    color: var(--action-blue);
}

.summary-item .info {
    display: flex;
    flex-direction: column;
}

.summary-item .label {
    font-size: 12px;
    color: var(--text-muted);
}

.summary-item .value {
    font-size: 14px;
    font-weight: 700;
}

/* --- Detail Page Specifics --- */
.property-details-header {
    background: #fff;
    padding: 15px 0;
    margin-top: 108px;
    border-bottom: 1px solid #eaebec;
    margin-bottom: 20px;
}

.property-price-main {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-navy);
    margin-bottom: 5px;
}

.property-title-main {
    font-size: 1.5rem;
    color: #5e6c84;
    font-weight: 500;
    margin-bottom: 10px;
}

.section-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

.section-title-modern {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-navy);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.section-title-modern::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 4px;
    background: var(--action-blue);
    border-radius: 2px;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
    transition: all 0.2s;
}

.amenity-item:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.amenity-icon {
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--action-blue);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.sticky-sidebar {
    position: sticky;
    top: 100px;
}
/* Gallery & Swiper Customizations */
.main-nav-btn, .thumb-next, .thumb-prev {
    color: var(--action-blue) !important;
    transform: scale(0.6);
}

.thumbnail-slider {
    padding: 0 40px; /* Space for buttons */
}

.social-proof-float {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 16px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,120,219,0.1);
    animation: fadeInRight 0.8s ease-out;
}

.social-proof-float img {
    height: 20px;
    width: auto;
}

.social-proof-float span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.tab-pane-modern {
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    z-index: 1000;
}

.mobile-bottom-nav a {
    text-align: center;
    color: #666;
    text-decoration: none;
    font-size: 0.75rem;
    flex: 1;
}

.mobile-bottom-nav a i {
    display: block;
    font-size: 1.25rem;
    margin-bottom: 2px;
}

.mobile-bottom-nav a.active {
    color: var(--action-blue);
}

@media (min-width: 992px) {
    .mobile-bottom-nav {
        display: none;
    }
}

/* --- 99acres Style Fact Table --- */
.fact-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #eaebec;
    border-radius: 8px;
    overflow: hidden;
}
.fact-table td {
    padding: 20px;
    border: 1px solid #eaebec;
    vertical-align: top;
    width: 50%;
}
.fact-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 8px;
}
.fact-head i {
    font-size: 16px;
    color: var(--action-blue);
}
.fact-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.4;
}
.fact-sub {
    font-size: 11px;
    color: #999;
    font-weight: 400;
}

/* --- Tabbed Gallery --- */
.gallery-tabs {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    background: #fff;
    border-bottom: 1px solid #eaebec;
}
.gallery-tabs li {
    padding: 15px 25px;
    font-weight: 700;
    cursor: pointer;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}
.gallery-tabs li.active {
    color: var(--action-blue);
    border-bottom-color: var(--action-blue);
    background: #f8faff;
}
.gallery-content {
    height: 500px;
    background: #000;
    position: relative;
}

/* --- Multi-Step Modal --- */
.premium-modal .modal-content {
    border-radius: 16px;
    border: none;
    overflow: hidden;
}
.premium-modal .modal-header {
    background: var(--primary-navy);
    color: #fff !important;
    padding: 20px 30px;
}
.premium-modal .modal-header .modal-title{
    color: #fff !important;
}
.premium-modal .btn-close {
    filter: invert(1);
}
.form-step {
    display: none;
    animation: fadeIn 0.4s ease;
}
.form-step.active {
    display: block;
}
.selection-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

/* OTP Input Styling */
.otp-input-wrapper {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.otp-input {
    width: 50px;
    height: 60px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-navy);
    transition: all 0.3s ease;
}

.otp-input:focus {
    border-color: var(--action-blue);
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 120, 219, 0.1);
    transform: translateY(-2px);
}
.selection-item {
    flex: 1;
    position: relative;
}
.selection-item input {
    position: absolute;
    opacity: 0;
}
.selection-label {
    display: block;
    padding: 12px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}
.selection-item input:checked + .selection-label {
    border-color: var(--action-blue);
    background: #f0f7ff;
    color: var(--action-blue);
}

.optional-tag {
    display: inline-block;
    padding: 8px 15px;
    border: 1px solid #eee;
    border-radius: 20px;
    margin-right: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    cursor: pointer;
}
.optional-tag.active {
    background: var(--action-blue);
    color: #fff;
    border-color: var(--action-blue);
}

/* Social Proof Badge */
.social-proof-float {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 15px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 10;
    font-size: 13px;
    font-weight: 600;
}
.social-proof-float img {
    width: 24px;
    height: 24px;
}

/* Fixing spacing issue */
.overview-card.h-100 {
    display: flex;
    flex-direction: column;
}
.overview-card.h-100 .fact-table {
    flex-grow: 1;
}

/* --- Gallery Overlay Controls --- */
.gallery-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 12px;
    z-index: 100;
}

.gallery-control-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
}

.gallery-control-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
    color: var(--action-blue);
}

.gallery-control-btn i {
    pointer-events: none;
}

/* Animation for FadeIn */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* --- Fullscreen Enhancements --- */
.overview-card:fullscreen {
    background: #000 !important;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden;
}

.overview-card:fullscreen .gallery-content {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.overview-card:fullscreen .tab-pane-modern {
    height: 100% !important;
    width: 100% !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overview-card:fullscreen .tab-pane-modern img {
    max-height: 90vh;
    width: auto !important;
    object-fit: contain !important;
}

.overview-card:fullscreen .gallery-tabs {
    background: #111;
    border-bottom: 1px solid #333;
    padding: 15px 20px;
}

.overview-card:fullscreen .gallery-tabs li {
    color: #ccc;
}

.overview-card:fullscreen .gallery-tabs li.active {
    color: #fff;
    border-bottom-color: var(--action-blue);
}

.overview-card:fullscreen #gallery-thumbs {
    background: #111 !important;
    border-top: 1px solid #333 !important;
    padding: 15px !important;
}

.overview-card:fullscreen .social-proof-float {
    bottom: 30px;
    left: 30px;
}

/* Modern No Results State */
.no-results-99 {
    padding: 60px 20px;
    text-align: center;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eaeaeb;
    margin: 20px 0;
}

.no-results-icon {
    width: 80px;
    height: 80px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.no-results-icon i {
    font-size: 32px;
    color: #999;
}

.no-results-99 h4 {
    font-size: 20px;
    color: #2d2d2d;
    font-weight: 600;
    margin-bottom: 12px;
}

.no-results-99 p {
    color: #666;
    font-size: 14px;
    max-width: 400px;
    margin: 0 auto 24px;
    line-height: 1.6;
}

.btn-reset-filters {
    display: inline-block;
    padding: 10px 24px;
    background: #0078db;
    color: #fff;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-reset-filters:hover {
    background: #005bb5;
    color: #fff;
    transform: translateY(-2px);
}
/* Image Keyword Tags */
.img-keyword-tags {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    z-index: 5;
}

.img-tag-item {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    color: #1b1b1b;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.3);
}

/* Multiselect List Styles */
.multiselect-list {
    max-height: 300px;
    overflow-y: auto;
    padding: 0;
    margin: 0;
    list-style: none;
}

.multiselect-list li {
    padding: 12px 15px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #4a4a4a;
}

.multiselect-list li:hover {
    background-color: #f8f9fa;
    color: #0078db;
}

.multiselect-list li.selected {
    background-color: #f0f7ff;
    color: #0078db;
    font-weight: 700;
}

.multiselect-list li.selected::after {
    content: '\f00c';
    font-family: 'FontAwesome';
    margin-left: auto;
    font-size: 12px;
}

/* Range Container Styles */
.revamp-range-container {
    position: relative;
    width: 100%;
}

.range-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.range-display:hover, .range-display.active {
    border-color: #0073e1;
    background: #fff;
}

.range-display .range-text {
    font-size: 14px;
    color: #4a5568;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.range-display i {
    font-size: 12px;
    color: #a0aec0;
    transition: transform 0.2s;
}

.range-display.active i {
    transform: rotate(180deg);
}

.range-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 280px; /* Fixed width for better control */
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.range-dropdown.show {
    display: block;
    animation: slideDown 0.2s ease-out;
}

/* Custom Scrollbar for range lists */
.range-col::-webkit-scrollbar {
    width: 6px;
}
.range-col::-webkit-scrollbar-track {
    background: #f8fafc;
}
.range-col::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 3px;
}
.range-col::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

.range-cols {
    display: flex;
    border-bottom: 1px solid #f1f5f9;
}

.range-col {
    flex: 1;
    max-height: 250px;
    overflow-y: auto;
}

.range-col:first-child {
    border-right: 1px solid #f1f5f9;
}

.range-col-header {
    padding: 10px 15px;
    background: #f8fafc;
    font-size: 10px;
    font-weight: 700;
    color: #718096;
    text-transform: uppercase;
    position: sticky;
    top: 0;
    z-index: 2;
    border-bottom: 1px solid #edf2f7;
}

.range-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.range-list li {
    padding: 10px 15px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    color: #4a5568;
}

.range-list li:hover {
    background: #f1f5f9;
    color: #0073e1;
}

.range-list li.selected {
    background: #f0f7ff;
    color: #0073e1;
    font-weight: 700;
}

.range-footer {
    padding: 12px;
    text-align: right;
    background: #fff;
    border-top: 1px solid #f1f5f9;
}

.range-btn-done {
    background: #0073e1;
    color: #fff;
    border: none;
    padding: 8px 24px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.range-btn-done:hover {
    background: #005bb5;
    box-shadow: 0 4px 12px rgba(0, 115, 225, 0.2);
}

/* Multiselect List Tweaks */
.multiselect-list li {
    padding: 10px 15px;
    font-size: 13px;
}

.multiselect-list li.selected {
    background-color: #f0f7ff;
}


/* Keyword Search wrapper */
.search-input-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.search-input-wrapper i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
}

.search-input-wrapper .form-control {
    padding-left: 40px !important;
}

/* Pill Spacing */
.pill-group {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.pill-item {
    background: #f1f5f9;
    color: #475569;
    padding: 1px 6px;
    border-radius: 25px;
    font-size: 11px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
    user-select: none;
}

.pill-item:hover {
    background: #e2e8f0;
}

.pill-item.active {
    background: #f0f9ff;
    color: #000000;
    border-color: #a3daff;
}

.pill-item input {
    display: none;
}

/* Mobile Overrides */
@media (max-width: 768px) {
    .img-keyword-tags {
        bottom: 8px;
        left: 8px;
    }
    .img-tag-item {
        font-size: 10px;
        padding: 1px 6px;
    }
    .range-dropdown {
        position: fixed;
        bottom: 0;
        top: auto;
        left: 0;
        width: 100%;
        border-radius: 20px 20px 0 0;
    }
}

/* Property Description Expansion */
.listing-desc-row {
    position: relative;
    padding: 2px 0;
    border-top: 1px dashed #e2e8f0;
    margin-top: 2px;
}

.listing-desc-text {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.listing-desc-text.expanded {
    -webkit-line-clamp: unset;
    display: block;
    max-height: none;
    background: #ffffff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    z-index: 1000;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    font-size: 14px;
}

.expand-desc-btn {
    position: absolute;
    right: 0;
    bottom: 5px;
    background: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #0073e1;
    font-size: 11px;
    transition: all 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1001;
}

.expand-desc-btn:hover {
    background: #0073e1;
    color: #fff;
    transform: scale(1.1);
}
