/* ==========================================================================
   Luxury Project Cards & Auto-Sliding Carousel Styles
   New Door Reality Pvt. Ltd.
   ========================================================================== */

/* Slider Container & Controls */
.project-slider-section {
    position: relative;
    padding: 30px 0 60px;
}

.project-slider-wrapper {
    position: relative;
    padding: 10px 10px 30px;
}

/* Header Controls (Title, Status Badge, Nav Buttons, View Switcher) */
.project-section-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #edf2f7;
}

.project-section-topbar .topbar-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.project-section-topbar .auto-slide-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
    padding: 5px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.project-section-topbar .auto-slide-badge .pulse-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse-green 1.8s infinite;
}

@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 7px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.project-section-topbar .topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* View Switcher Buttons */
.view-switch-btn-group {
    display: inline-flex;
    background: #f1f5f9;
    border-radius: 12px;
    padding: 4px;
    gap: 4px;
}

.view-switch-btn {
    border: none;
    background: transparent;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.view-switch-btn:hover {
    color: #1e293b;
}

.view-switch-btn.active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Navigation Buttons (Left & Right) */
.project-nav-buttons {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.slider-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.slider-nav-btn:hover {
    background: linear-gradient(135deg, #e67e22, #f39c12);
    border-color: #e67e22;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.35);
    transform: translateY(-2px);
}

/* Floating Side Navigation Buttons for Carousel */
.slider-side-arrow {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ffffff;
    color: #1e293b;
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    cursor: pointer;
    z-index: 20;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.slider-side-arrow.prev-arrow {
    left: -22px;
}

.slider-side-arrow.next-arrow {
    right: -22px;
}

.slider-side-arrow:hover {
    background: linear-gradient(135deg, #e67e22, #f39c12);
    color: #ffffff;
    border-color: #e67e22;
    box-shadow: 0 10px 25px rgba(230, 126, 34, 0.4);
    transform: translateY(-50%) scale(1.1);
}

@media (max-width: 991px) {
    .slider-side-arrow.prev-arrow {
        left: 5px;
    }
    .slider-side-arrow.next-arrow {
        right: 5px;
    }
}

/* Ensure all carousel items and grid cards have 100% equal height */
.projects-owl-carousel.owl-carousel .owl-stage {
    display: flex !important;
}

.projects-owl-carousel.owl-carousel .owl-item {
    display: flex !important;
    flex: 1 0 auto !important;
    height: auto !important;
}

.projects-owl-carousel.owl-carousel .owl-item .item {
    display: flex !important;
    width: 100% !important;
    height: 100% !important;
}

.projects-grid-view .col-xl-4,
.projects-grid-view .col-lg-6,
.projects-grid-view .col-md-6 {
    display: flex !important;
}

.ndr-project-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #edf2f7;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.07);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    width: 100%;
    position: relative;
    margin: 10px 5px 25px;
}

.ndr-project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 45px -10px rgba(0, 0, 0, 0.16);
    border-color: rgba(230, 126, 34, 0.3);
}

/* Card Image Area */
.ndr-card-img-wrap {
    position: relative;
    width: 100%;
    height: 215px;
    overflow: hidden;
    background: #1e293b;
}

.ndr-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ndr-project-card:hover .ndr-card-img {
    transform: scale(1.08);
}

/* Gradient Overlay at Bottom of Image */
.ndr-card-img-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.05) 30%, rgba(15, 23, 42, 0.65) 100%);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Image Badges */
.ndr-badge-status {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 5px 13px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.ndr-badge-status .status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
}

.ndr-badge-type {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 3;
    background: linear-gradient(135deg, #e67e22, #f39c12);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 5px 12px;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.4);
}

/* Location Overlay on Image Bottom */
.ndr-img-location {
    position: absolute;
    bottom: 14px;
    left: 16px;
    right: 16px;
    z-index: 3;
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 7px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ndr-img-location i {
    color: #f39c12;
    font-size: 14px;
}

/* Quick View floating action on image */
.ndr-img-overlay-link {
    position: absolute;
    inset: 0;
    z-index: 2;
}

/* Card Body */
.ndr-card-body {
    padding: 18px 20px 18px;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    background: #ffffff;
}

.ndr-card-top-content {
    display: flex;
    flex-direction: column;
}

.ndr-card-title {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 4px;
    color: #0f172a;
}

.ndr-card-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ndr-card-title a:hover {
    color: #e67e22;
}

.ndr-card-tagline {
    font-size: 13px;
    line-height: 1.4;
    color: #64748b;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Key Highlights Row */
.ndr-card-highlights {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 8px 0;
    margin-bottom: 0;
    border-top: 1px dashed #e2e8f0;
    border-bottom: none;
}

.ndr-highlight-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 600;
    color: #475569;
}

.ndr-highlight-item i {
    color: #e67e22;
    font-size: 12px;
}

/* Card Footer: Price & CTA Button */
.ndr-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

.ndr-card-price {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
    margin-right: 8px;
}

.ndr-card-price .price-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 600;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ndr-card-price .price-val {
    font-size: 15.5px;
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

/* Beautiful Details Button */
.ndr-btn-details {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff !important;
    padding: 10px 22px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    white-space: nowrap;
}

.ndr-btn-details i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.ndr-btn-details:hover {
    background: linear-gradient(135deg, #e67e22 0%, #f39c12 100%);
    box-shadow: 0 6px 18px rgba(230, 126, 34, 0.4);
    transform: translateY(-2px);
    color: #ffffff !important;
}

.ndr-btn-details:hover i {
    transform: translateX(4px);
}

/* ==========================================================================
   Owl Carousel Dots Styling
   ========================================================================== */
.projects-owl-carousel .owl-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 25px;
}

.projects-owl-carousel .owl-dots .owl-dot {
    border: none;
    background: transparent;
    padding: 0;
}

.projects-owl-carousel .owl-dots .owl-dot span {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.projects-owl-carousel .owl-dots .owl-dot.active span {
    width: 28px;
    border-radius: 12px;
    background: linear-gradient(135deg, #e67e22, #f39c12);
    box-shadow: 0 2px 8px rgba(230, 126, 34, 0.4);
}

/* Grid View Container (when toggled to Grid mode) */
.projects-grid-view {
    display: none;
}

.projects-grid-view.active {
    display: flex;
    flex-wrap: wrap;
}

.projects-slider-view.hidden {
    display: none !important;
}

/* ==========================================================================
   Project Category Filter / Navigation Buttons
   ========================================================================== */
.project-category-bar {
    margin-bottom: 30px;
    position: relative;
    z-index: 5;
}

.category-buttons-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 8px 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    max-width: 960px;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(12, 35, 64, 0.06);
}

.category-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 40px;
    font-size: 13.5px;
    font-weight: 600;
    color: #475569;
    text-decoration: none !important;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: all 0.28s cubic-bezier(0.165, 0.84, 0.44, 1);
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.category-filter-btn .btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #e67e22;
    transition: transform 0.28s ease, color 0.28s ease;
}

.category-filter-btn:hover {
    color: #0c2340 !important;
    background: #ffffff;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(12, 35, 64, 0.12);
}

.category-filter-btn:hover .btn-icon {
    transform: scale(1.18);
    color: #f39c12;
}

.category-filter-btn.active {
    background: linear-gradient(135deg, #0c2340 0%, #1e3a5f 100%);
    color: #ffffff !important;
    border-color: #0c2340;
    box-shadow: 0 6px 18px rgba(12, 35, 64, 0.3);
}

.category-filter-btn.active .btn-icon {
    color: #f39c12;
}

/* Mobile Responsive Horizontal Scrolling */
@media (max-width: 991px) {
    .category-buttons-wrapper {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding: 8px 10px;
        border-radius: 20px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: #cbd5e1 transparent;
    }

    .category-buttons-wrapper::-webkit-scrollbar {
        height: 4px;
    }

    .category-buttons-wrapper::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 4px;
    }

    .category-filter-btn {
        padding: 8px 15px;
        font-size: 13px;
        flex-shrink: 0;
    }
}

