/* ==================== */
/* MOBILE-FIRST: 1ST SECTION (HERO) */
/* ==================== */
.hero-section {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    background: #fff;
    padding-top: 0;
    min-height: 0;
}


@media (max-width: 767px) {
    .hero-section {
        width: 100%;
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }
    .hero-image-wrapper .hero-image {
        height: 280px;
        min-height: 40vh;
    }
    .top-bar {
        left: 0;
        right: 0;
        width: 100%;
        padding-left: env(safe-area-inset-left, 16px);
        padding-right: env(safe-area-inset-right, 16px);
    }
}


.cnvtunt{
    border: none;
}
/* Top Bar */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    padding: 12px 16px;
    gap: 12px;
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    max-width: 480px;
    margin: 0 auto;
}

.top-bar.scrolled {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
       /* margin-top: 2px;*/
}

.top-bar.scrolled .back-btn,
.top-bar.scrolled .icon-btn {
    box-shadow: none;
    background: #f5f5f5;
}

.top-bar.scrolled .search-box {
    box-shadow: none;
    background: #f5f5f5;
}

.back-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: transform 0.2s;
}

.back-btn:hover {
    transform: scale(1.05);
}

.search-box {
    flex: 1;
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 25px;
    padding: 10px 16px;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.search-box i {
    color: #999;
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    color: #333;
}

.search-box input::placeholder {
    color: #999;
}

.action-icons {
    display: flex;
    gap: 8px;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.2s;
}

.icon-btn:hover {
    transform: scale(1.05);
    background: #f0f0f0;
}

.icon-btn.liked i {
    color: #e74c3c;
}

/* Hero Image Wrapper: main image + carousel at bottom */
.hero-image-wrapper {
    position: relative;
    width: 100%;
    background: #111;
}

.hero-image-wrapper .hero-image {
    position: relative;
    width: 100%;
    height: 300px;
    cursor: pointer;
    overflow: hidden;
}

.hero-image-wrapper .hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
    transition: background 0.2s;
}

.hero-nav:hover {
    background: #fff;
}

.hero-nav.prev { left: 12px; }
.hero-nav.next { right: 12px; }

.image-counter {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    z-index: 5;
}

/* Category Slider - at bottom of main image */
.category-slider {
    position: relative;
    left: 0;
    right: 0;
    background: #fff;
    padding: 12px 5px;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}


/* Tablet */
@media (max-width: 768px) {
    .overview-card {
        padding: 10px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .overview-card {
 padding: 5px !important;

    }
}
.popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
}

.popup-overlay.active {
    display: flex;
}
.category-track {
    display: flex;
    gap: 12px;
    padding: 0 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.category-track::-webkit-scrollbar {
    display: none;
}

.category-item {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.category-item:hover {
    transform: scale(1.05);
}

.category-item.active {
    border-color: #2196F3;
}

.category-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.category-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
    font-size: 10px;
    font-weight: 500;
    text-align: center;
    padding: 12px 4px 4px;
}

.category-item.active .category-name {
    color: #fff;
    font-weight: 600;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -70%);
    color: #fff;
    font-size: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}



/* ==================== */
/* LIGHTBOX POPUP */
/* ==================== */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
}

/* Lightbox Header */
.lightbox-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
}

.lightbox-back {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f5f5f5;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-right: 12px;
}

.lightbox-header h3 {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
}

.lightbox-actions {
    display: flex;
    gap: 8px;
}

/* Category Navigation */
.lightbox-category-nav {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    overflow-x: auto;
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 64px;
    z-index: 10;
    scrollbar-width: none;
}

.lightbox-category-nav::-webkit-scrollbar {
    display: none;
}

.cat-nav-btn {
    flex-shrink: 0;
    padding: 8px 20px;
    border: none;
    background: #f5f5f5;
    border-radius: 20px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.cat-nav-btn:hover {
    background: #e0e0e0;
}

.cat-nav-btn.active {
    background: #333;
    color: #fff;
}

/* Gallery Content */
.lightbox-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    scroll-behavior: smooth;
}

.gallery-section {
    margin-bottom: 32px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 8px;
    /*border-bottom: 2px solid #2196F3;*/
    display: inline-block;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    transition: transform 0.2s;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item.video-item .play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 48px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* ==================== */
/* IMAGE VIEWER POPUP */
/* ==================== */
.image-viewer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.95);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.image-viewer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.image-viewer-container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.viewer-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #fff;
}

.close-viewer {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s;
}

.close-viewer:hover {
    background: rgba(255,255,255,0.2);
}

.viewer-counter {
    flex: 1;
    text-align: center;
    font-size: 16px;
}

.viewer-actions {
    display: flex;
    gap: 8px;
}

.viewer-actions .icon-btn {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.viewer-actions .icon-btn:hover {
    background: rgba(255,255,255,0.2);
}

.viewer-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
    min-height: 0;
}

.viewer-image-container {
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.viewer-image-container img {
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
    border-radius: 8px;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
}

.nav-btn:hover {
    background: rgba(255,255,255,0.2);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.viewer-thumbnails {
    display: flex;
    gap: 8px;
    padding: 16px;
    overflow-x: auto;
    justify-content: center;
    scrollbar-width: none;
}

.viewer-thumbnails::-webkit-scrollbar {
    display: none;
}

.viewer-thumbnail {
    flex-shrink: 0;
    width: 60px;
    height: 45px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: all 0.2s;
}

.viewer-thumbnail:hover {
    opacity: 0.8;
}

.viewer-thumbnail.active {
    border-color: #2196F3;
    opacity: 1;
}

.viewer-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==================== */
/* RESPONSIVE STYLES */
/* ==================== */

/* Tablet */
@media (min-width: 768px) {
    .hero-section,
    .property-info,
    .bottom-actions {
        max-width: 100%;
    }

    .top-bar {
        max-width: 768px;
    }

    .hero-image {
        height: 400px;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .category-item {
        width: 100px;
        height: 75px;
    }
}


/* Desktop */
@media (min-width: 1024px) {
   

    .hero-section {
        max-width: 100%;
        display: flex;
        flex-direction: column;
    }

    .top-bar {
        max-width: 1200px;
    }

    .hero-image {
        height: 500px;
    }

    .property-info {
        max-width: 100%;
        padding: 30px;
    }

    .tab-navigation {
        margin: 0 -30px;
        padding: 0 30px;
    }

    .bottom-actions {
        max-width: 600px;
    }

    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }

    .lightbox-content {
        padding: 24px 40px;
    }

    .nav-btn {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .prev-btn {
        left: 40px;
    }

    .next-btn {
        right: 40px;
    }

    .viewer-image-container img {
        max-height: 70vh;
    }

    .viewer-thumbnail {
        width: 80px;
        height: 60px;
    }
}

/* Large Desktop */
@media (min-width: 1400px) {
    .gallery-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .hero-image {
        height: 550px;
    }
}

/* Mobile Small */
@media (max-width: 768px) {
    .top-bar {
 padding: 6px 10px 5px 10px;
        gap: 3px;
        max-width: 100%;
    }

    .back-btn,
    .icon-btn {
        width: 30px;
        height: 30px;
    }

    .search-box {
        padding: 8px 12px;
    }

    .tab-navigation {
        top: 49px !important;
    }

    .hero-title {
        font-size: 24px;
    }

    .category-item {
        width: 70px;
        height: 52px;
    }

    .category-name {
        font-size: 9px;
        padding: 10px 2px 3px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .prev-btn {
        left: 10px;
    }

    .next-btn {
        right: 10px;
    }
}

/* Touch device optimizations */
@media (hover: none) {
    .category-item:hover,
    .gallery-item:hover,
    .icon-btn:hover,
    .back-btn:hover {
        transform: none;
    }
}

/* Smooth scrolling for category nav highlight */
.lightbox-content {
    scroll-padding-top: 150px;
}


/* ==================== */
/* SEARCH FILTER POPUP */
/* ==================== */
.search-filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.search-filter-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Search popup overlay: always on top like Share popup (override any other .search-filter-overlay rules) */
#searchFilterOverlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    height: auto !important;
    min-height: 100vh !important;
    z-index: 99999 !important;
    pointer-events: auto;
    background: rgba(0,0,0,0.5) !important;
    display: flex !important;
    align-items: flex-end;
    justify-content: center;
}
#searchFilterOverlay:not(.active) {
    pointer-events: none;
}

.search-filter-popup {
    background: #fff;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.search-filter-overlay.active .search-filter-popup {
    transform: translateY(0);
}

/* Search popup: same bottom-sheet style as share (mobile) */
@media (max-width: 767px) {
    .search-filter-overlay {
        align-items: flex-end;
    }
    .search-filter-popup {
        border-radius: 20px 20px 0 0;
        max-height: 85vh;
    }
}

.search-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}

.search-filter-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.close-search-filter {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f5f5f5;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #666;
    transition: all 0.2s;
}

.close-search-filter:hover {
    background: #e0e0e0;
}

.search-filter-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.search-input-large {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 12px;
    padding: 14px 16px;
    gap: 12px;
    margin-bottom: 24px;
}

.search-input-large i {
    color: #999;
    font-size: 18px;
}

.search-input-large input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 16px;
    color: #333;
}

.search-input-large input::placeholder {
    color: #999;
}

.filter-section {
    margin-bottom: 24px;
}

.filter-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-chip {
    padding: 10px 18px;
    border: 1px solid #ddd;
    border-radius: 25px;
    background: #fff;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-chip:hover {
    border-color: #2196F3;
    color: #2196F3;
}



.budget-range {
    display: flex;
    align-items: center;
    gap: 12px;
}

.budget-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.budget-input:focus {
    border-color: #2196F3;
}

.budget-range span {
    color: #999;
    font-size: 14px;
}

.search-filter-actions {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid #eee;
    background: #fff;
    padding-bottom: 10px !important;
}

.reset-btn, .apply-btn {
    flex: 1;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.reset-btn {
    background: #fff;
    border: 2px solid #ddd;
    color: #666;
}

.reset-btn:hover {
    border-color: #999;
    color: #333;
}

.apply-btn {
    background: #b91c1c;
    border: none;
    color: #fff;
}

.apply-btn:hover {
    background: #1976D2;
}

/* ==================== */
/* SHARE POPUP */
/* ==================== */
.share-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.share-overlay.active {
    opacity: 1;
    visibility: visible;
}

.share-popup {
    background: #fff;
    width: 100%;
    max-width: 500px;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.share-overlay.active .share-popup {
    transform: translateY(0);
}

.share-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}

.share-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.close-share {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f5f5f5;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #666;
    transition: all 0.2s;
}

.close-share:hover {
    background: #e0e0e0;
}

.share-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 24px 20px 32px;
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.2s;
}

.share-option:hover {
    background: #f5f5f5;
}

.share-option i {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
}

.share-option[data-platform="whatsapp"] i {
    background: #25D366;
}

.share-option[data-platform="facebook"] i {
    background: #1877F2;
}

.share-option[data-platform="twitter"] i {
    background: #1DA1F2;
}

.share-option[data-platform="telegram"] i {
    background: #0088CC;
}

.share-option[data-platform="email"] i {
    background: #EA4335;
}

.share-option[data-platform="copy"] i {
    background: #666;
}

.share-option span {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

/* Copy success animation */
.share-option.copied i {
    background: #4CAF50 !important;
}

.share-option.copied span {
    color: #4CAF50;
}

/* ==================== */
/* NO MORE IMAGES SECTION */
/* ==================== */
.no-more-images {
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 40px;
}

.no-more-content {
    max-width: 300px;
    margin: 0 auto;
}

.no-more-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.no-more-icon i {
    font-size: 32px;
    color: #999;
}

.no-more-images h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.no-more-images p {
    font-size: 14px;
    color: #999;
    margin-bottom: 24px;
}

.back-to-top-btn {
    padding: 12px 24px;
    background: #2196F3;
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.back-to-top-btn:hover {
    background: #1976D2;
    transform: translateY(-2px);
}

.back-to-top-btn i {
    font-size: 12px;
}

/* Search box clickable cursor */
.search-box {
    cursor: pointer;
}

.search-box input {
    cursor: pointer;
}

/* Desktop search filter popup */
@media (min-width: 768px) {
    .search-filter-overlay {
        align-items: center;
    }

    .search-filter-popup {
        border-radius: 20px;
        /*max-height: 80vh;*/
    }

    .share-overlay {
        align-items: center;
    }

    .share-popup {
        border-radius: 20px;
    }

    .share-options {
        grid-template-columns: repeat(6, 1fr);
    }
}



.filter-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid #e8d4d4;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

/* hide checkbox */
.filter-chip input {
    display: none;
}

/* checked = active look */
.filter-chip:has(input:checked) {
    background: #b91c1c;
    color: #fff;
    border-color: #b91c1c;
}

/* row */
.budget-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

/* dropdown */
.budget-select {
    flex: 1;
    min-width: 0; /* VERY IMPORTANT (prevents overflow) */
    padding: 10px 8px;
    border-radius: 999px;
    border: 1px solid #e8d4d4;
    font-size: 13px;
    background: #fff;
}

/* "to" text */
.budget-to {
    flex-shrink: 0;
    font-size: 13px;
    color: #666;
}



.tab-navigation {
    display: flex;
    gap: 12px;
    overflow-x: auto;          /* Horizontal scroll enable */
    white-space: nowrap;       /* Buttons wrap na ho */
    scroll-behavior: smooth;
    position: sticky;
    top: 69px;
    z-index: 20;
    background: #fff;
       margin-left: -8px;
       margin-right: -8px;
       padding-left: 8px;
        padding-right: 8px;
        /*padding-top: 8px;
        padding-bottom: 8px;*/
}

/* Scrollbar Hide (Optional - Premium Look) */
.tab-navigation::-webkit-scrollbar {
    display: none;
}
.tab-navigation {
    -ms-overflow-style: none;
    scrollbar-width: none;
}



.tab-btn:hover {
    background: #0066ff;
    color: #fff;
}
  
   
   
    /* =========================
  Full address property type COMMON POPUP CSS
========================= */

/* CLICKABLE TEXT */
.custom-short-address,
.custom-short-type{
    cursor: pointer;
    color: #0d6efd;
    font-weight: 600;
}

/* COMMON OVERLAY */
.custom-location-popup,
.custom-type-popup{
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: rgba(0,0,0,0.45);

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    visibility: hidden;

    transition: .25s ease;

    z-index: 999999;
}

/* SHOW POPUP */
.custom-location-popup.show,
.custom-type-popup.show{
    opacity: 1;
    visibility: visible;
}

/* COMMON POPUP BOX */
.custom-location-popup-box,
.custom-type-popup-box{
    background: #fff;

    border-radius: 14px;

    overflow: hidden;

    transform: scale(.8);
    transition: .25s ease;

    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}

/* WIDTH */
.custom-location-popup-box{
    width: 280px;
}

.custom-type-popup-box{
    width: 300px;
}

/* SCALE EFFECT */
.custom-location-popup.show .custom-location-popup-box,
.custom-type-popup.show .custom-type-popup-box{
    transform: scale(1);
}
/* COMMON HEADER */
.custom-location-popup-header,
.custom-type-popup-header{
    height: 52px;
    padding: 0 15px;

    background: #C41E3A;

    color: #fff;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* HEADER TITLE */
.custom-location-popup-header h3,
.custom-type-popup-header h3{
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

/* COMMON CLOSE BUTTON */
.custom-location-close,
.custom-type-close{
    width: 28px;
    height: 28px;

    border: none;
    border-radius: 50%;

    background: #fff;

    color: #C41E3A;

    cursor: pointer;

    font-size: 14px;
    font-weight: bold;
}

/* COMMON BODY */
.custom-location-popup-body,
.custom-type-popup-body{
    padding: 18px;
}

/* LOCATION CONTENT */
.custom-location-content{
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.custom-location-icon{
    color: #C41E3A;
    font-size: 18px;
    margin-top: 2px;
}

.custom-location-text{
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: #444;
    word-break: break-word;
}

/* TYPE LIST */
.custom-type-list{
    margin: 0;
    padding-left: 18px;
}

.custom-type-list li{
    font-size: 14px;
    color: #444;
    margin-bottom: 10px;
    line-height: 1.5;
}
/*end*/
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px);}
    to { opacity: 1; transform: translateY(0);}
}


.type-list {
    padding-left: 18px;
    margin: 0;
}

.type-list li {
    margin-bottom: 6px;
    font-size: 14px;
}

    .property-description-wrapper{
    margin-top:10px;
    padding-left: 5px;
    padding-right: 5px;
}

.property-description{
    font-size:15px;
    line-height:1.8;
    color:#444;
    margin-bottom:10px;
}

.read-more-btn{
    border:none;
    background:none;
    color:#007bff;
    font-weight:600;
    cursor:pointer;
    padding:0;
    font-size:14px;
}

.read-more-btn:hover{
    text-decoration:underline;
}


   /* <!--project video section-->*/
        
.project-video-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    background: #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: 0.4s ease;
}

.project-video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.video-thumbnail {
    width: 100%;
    height: 230px;
    object-fit: cover;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: linear-gradient(45deg, #ff3c3c, #ff0000);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    box-shadow: 0 8px 20px rgba(255,0,0,0.4);
    transition: 0.3s;
}

.project-video-card:hover .play-btn {
    transform: translate(-50%, -50%) scale(1.1);
}

.video-title {
    padding: 12px 15px;
    font-weight: 600;
    background: #fff;
}



    /* Full screen overlay */
.search-filter-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
}

/* Popup full height */
.search-filter-popup {
    display: flex;
    flex-direction: column;
   /* height: 100vh; *//* important */
    background: #fff;
}

/* Header fixed */
.search-filter-header {
    flex-shrink: 0;
}

/* Content scrollable */
.search-filter-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    padding-bottom: 10px; /* space for buttons */
}

/* Bottom buttons always visible */
.search-filter-actions {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding: 8px 16px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    z-index: 10;
}

/* buttons full width mobile */
.search-filter-actions button {
    flex: 1;
}

.search-filter-popup {
   /* max-width: 500px;*/
    margin: auto;
    border-radius: 12px;
}



/* overlay hidden by default */
.search-filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: none; /* ❗ important */
}

/* show class */
.search-filter-overlay.show {
    display: block; /* ❗ important */
}

.search-filter-popup {
    background: #fff;
    width: 400px;
    margin: 50px auto;
    padding: 20px;
}

.hero-image {
    position: relative;
    overflow: hidden;
}

.hero-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1.2s ease-in-out, transform 4s linear;
}

/* visible image */
.hero-img.active {
    opacity: 1;
    transform: scale(1.05); /* slow zoom (video feel) */
}

.add-review-btn {
    padding: 8px 16px;
    background: #C41E3A;
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.add-review-btn:hover {
    background: #1976D2;
}



.reviews-slider {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 0 16px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
}

.reviews-slider::-webkit-scrollbar {
    display: none;
}

.review-card {
    flex-shrink: 0;
    width: 280px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.review-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.reviewer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reviewer-info {
    flex: 1;
}

.reviewer-info h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 2px;
}

.review-rating i {
    color: #FFB800;
    font-size: 12px;
}

.review-rating span {
    margin-left: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #666;
}

.review-date {
    font-size: 11px;
    color: #999;
    white-space: nowrap;
}

.review-text {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* ==================== */
/* ADD REVIEW POPUP */
/* ==================== */
.review-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.review-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.review-popup {
    background: #fff;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.review-popup-overlay.active .review-popup {
    transform: translateY(0);
}

.review-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}

.review-popup-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.close-review-popup {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f5f5f5;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #666;
}

.review-popup-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.rating-input {
    text-align: center;
    margin-bottom: 24px;
}

.rating-input label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
    color: #333;
}

.star-rating {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.star-rating i {
    font-size: 32px;
    color: #ddd;
    cursor: pointer;
    transition: all 0.2s;
}

.star-rating i:hover,
.star-rating i.active {
    color: #FFB800;
    transform: scale(1.1);
}

.rating-text {
    font-size: 13px;
    color: #999;
}

.review-input-group {
    margin-bottom: 20px;
}

.review-input-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
}

.review-input-group input,
.review-input-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
}

.review-input-group input:focus,
.review-input-group textarea:focus {
    border-color: #2196F3;
}

.review-input-group textarea {
    resize: none;
}

.review-popup-actions {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid #eee;
}

.cancel-review-btn,
.submit-review-btn {
    flex: 1;
    padding: 14px 20px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.cancel-review-btn {
    background: #c41e3a;
    border: 1px solid #c41e3a;
    color: #fff;
}

.cancel-review-btn:hover {
    background: #f5f5f5;
}

.submit-review-btn {
    background: #c41e3a;
    border: none;
    color: #fff;
}

.submit-review-btn:hover {
    background: #1976D2;
}
