/* project-details.css - 99acres inspired styling */
:root {
    --pd-primary: #007aff;
    --pd-primary-hover: #0062cc;
    --pd-dark: #1a1a1b;
    --pd-gray: #727272;
    --pd-light-gray: #f2f2f2;
    --pd-border: #e8e8e8;
    --pd-bg-light: #f8f9fa;
    --pd-success: #2e7d32;
    --pd-rating-bg: #ffb400;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: #fcfcfc;
}

/* Hero Section */
.hero-wrapper {
    padding: 40px 0 30px;
    border-bottom: 1px solid var(--pd-border);
    background: #fff;
}

.pd-badge-container {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.pd-badge {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: var(--pd-primary);
    line-height: 1;
}

.pd-badge.rera {
    background: #e8f5e9;
    color: var(--pd-success);
    border: 1px solid #c8e6c9;
}

.pd-badge.brokerage {
    background: #e3f2fd;
    color: var(--pd-primary);
    border: 1px solid #bbdefb;
}

.pd-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--pd-dark);
    margin-bottom: 5px;
}

.pd-location {
    font-size: 1.1rem;
    color: var(--pd-gray);
    margin-bottom: 15px;
}

.pd-builder-name {
    font-weight: 700;
    color: var(--pd-dark);
}

.pd-rating-box {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

.pd-rating-badge {
    background: var(--pd-rating-bg);
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 14px;
}

.pd-rating-text {
    font-size: 14px;
    color: var(--pd-gray);
}

.pd-price-box {
    background: #f0f7ff;
    padding: 15px 20px;
    border-radius: 12px;
    border-left: 4px solid var(--pd-primary);
}

.pd-price-val {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--pd-dark);
}

.pd-price-label {
    font-size: 12px;
    color: var(--pd-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Gallery Carousel Styling */
.pd-gallery-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 500px;
}

.project-gallery-carousel .item {
    height: 500px;
}

.project-gallery-carousel .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fav-btn-mobile {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff4d4d;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 20;
    border: none;
    transition: transform 0.2s;
    cursor: pointer;
}

.fav-btn-mobile:active {
    transform: scale(0.9);
}

.share-btn-mobile {
    position: absolute !important;

    top: 67px !important;
    /* 15px + 42px (button height) + 10px gap */
    position: absolute;
    top: 15px;
    right: 15px;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pd-dark);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 20;
    border: none;
    transition: transform 0.2s;
    cursor: pointer;
}

.share-btn-mobile:active {
    transform: scale(0.9);
}

.gallery-count-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    z-index: 10;
}

.brokerage-badge-mobile {
    position: absolute;
   bottom: 51px;
     left: 15px;
    background: white;
    color: #0d6efd;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 15;

}

.owl-nav button.owl-prev,
.owl-nav button.owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px !important;
    height: 45px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    color: var(--pd-dark) !important;
    border-radius: 50% !important;
    font-size: 20px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    visibility: visible !important;
    opacity: 1 !important;
}

.owl-nav button:hover {
    background: #fff !important;
    color: var(--pd-primary) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.owl-prev {
    left: 20px;
}

.owl-next {
    right: 20px;
}

.owl-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.owl-dot span {
    background: rgba(255, 255, 255, 0.5) !important;
}

.owl-dot.active span {
    background: #fff !important;
    width: 25px !important;
}

/* Sticky Nav */
.pd-nav-wrapper {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1000;
    border-bottom: 1px solid var(--pd-border);
    box-shadow: 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    transition: top 0.3s;
}

.pd-nav {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    white-space: nowrap;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.pd-nav::-webkit-scrollbar {
    display: none;
}

.pd-nav-link {
    display: block;
    padding: 18px 0;
    color: var(--pd-gray);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    font-size: 15px;
}

.pd-nav-link:hover,
.pd-nav-link.active {
    color: var(--pd-primary);
    border-bottom-color: var(--pd-primary);
}

/* Common Section Styling */
.pd-section {
    padding: 40px 0;
    border-bottom: 1px solid var(--pd-border);
    scroll-margin-top: 100px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--pd-dark);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title i {
    color: var(--pd-primary);
    font-size: 1.2rem;
}

/* Overview Stats */
.pd-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.pd-stat-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--pd-border);
    transition: transform 0.3s;
}

.pd-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.pd-stat-icon {
    font-size: 1.5rem;
    color: var(--pd-primary);
    margin-bottom: 12px;
}

.pd-stat-val {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--pd-dark);
    display: block;
}

.pd-stat-label {
    font-size: 13px;
    color: var(--pd-gray);
}

/* Tabs for Units */
.pd-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--pd-border);
    padding-bottom: 1px;
}

.pd-tab-btn {
    border: none;
    background: none;
    padding: 10px 20px;
    font-weight: 600;
    color: var(--pd-gray);
    cursor: pointer;
    position: relative;
}

.pd-tab-btn.active {
    color: var(--pd-primary);
}

.pd-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--pd-primary);
}

.unit-card {
    border: 1px solid var(--pd-border);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.unit-card:hover {
    border-color: var(--pd-primary);
    background: #f0f7ff;
}

.unit-info h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.unit-info p {
    margin: 5px 0 0;
    font-size: 14px;
    color: var(--pd-gray);
}

.unit-price {
    text-align: right;
}

.unit-price .price {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--pd-dark);
}

.unit-price .size {
    font-size: 13px;
    color: var(--pd-gray);
}

/* Amenities */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.amenity-item {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid transparent;
}

.amenity-item i {
    width: 35px;
    height: 35px;
    background: #fff;
    color: var(--pd-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Specifications */
.spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.spec-category h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--pd-dark);
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--pd-light-gray);
}

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

.spec-list li {
    font-size: 14px;
    color: var(--pd-gray);
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
}

.spec-list li::before {
    content: '•';
    color: var(--pd-primary);
    font-weight: bold;
    margin-right: 8px;
}

/* Sidebar */
.pd-sidebar {
    position: sticky;
    top: 100px;
    z-index: 10;
}

.contact-card {
    background: #fff;
    padding: 25px;
    border-radius: 16px;
    border: 1px solid var(--pd-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.contact-card h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.form-control {
    border: 1px solid #ddd;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 15px;
}

.form-control:focus {
    border-color: var(--pd-primary);
    box-shadow: none;
}

.btn-primary {
    background: var(--pd-primary);
    border: none;
    padding: 12px;
    font-weight: 700;
    border-radius: 8px;
    width: 100%;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: var(--pd-primary-hover);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 991px) {
    .pd-sidebar {
        position: static;
        margin-top: 40px;
    }

    .pd-gallery-container {
        height: 350px;
    }

    .project-gallery-carousel .item {
        height: 350px;
    }

    .pd-title {
        font-size: 1.8rem;
    }

    .pd-price-val {
        font-size: 1.5rem;
    }

    /* Fix sticky nav z-index for mobile */
    .pd-nav-wrapper {
        top: 60px;
        /* Aligned with search bar if fixed */
        z-index: 1030;
    }
}

@media (max-width: 576px) {
    .hero-wrapper {
        padding-top: 20px;
    }

    .pd-price-box {
        margin-top: 20px;
    }

    .pd-stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .amenities-grid {
        grid-template-columns: 1fr;
    }

    .spec-grid {
        grid-template-columns: 1fr;
    }

    .pd-nav-wrapper {
        top: 110px;
        /* Clearance for header + search bar on some mobile states */
    }

    .pd-nav-link {
        font-size: 13px;
        padding: 12px 0;
    }

    .pd-nav {
        gap: 15px;
    }
}

/* Contact Actions */
.mobile-actions {
    display: none;
    /* Hidden by default on desktop */
    gap: 8px;
    align-items: center;
    /* margin-top: 15px; Removed for alignment next to title */
    justify-content: flex-end;
}

@media (max-width: 991px) {
    .mobile-actions {
        display: flex;
        /* Show on mobile */
        justify-content: flex-end;
        /* Align right */
        margin-top: 0;
    }
}

.action-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.action-btn:active {
    transform: scale(0.92);
}

.call-btn {
    background: #0066cc;
    color: #fff !important;
}

.whatsapp-btn {
    background: #25d366;
    color: #fff !important;
}

.action-btn i {
    font-size: 18px;
}