/* ========================================
   DETAIL PAGE - REDESIGNED LAYOUT
   Matching the reference design image
   ======================================== */

/* Reset & Base for Detail Pages */
.detail-page-v2 {
    font-family: 'HelveticaNeue-Light', 'Helvetica Neue Light', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
    font-weight: 300;
    color: #343434;
    overflow-x: hidden;
    background: #ffffff;
}

/* Force header to always be in scrolled/sticky state on detail pages */
.detail-page-v2 header {
    position: fixed !important;
    top: 0 !important;
    bottom: auto !important;
    left: 0;
    right: 0;
    background: white !important;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    animation: none !important;
    transform: none !important;
}

.detail-page-v2 .header-top {
    display: flex !important;
    height: 32px;
}

.detail-page-v2 .logo-text-top {
    opacity: 1 !important;
}

.detail-page-v2 .header-main {
    height: 38px;
    background: white !important;
    overflow: visible;
}

.detail-page-v2 .nav-logo-img {
    height: 55px;
    margin-bottom: -26px;
}

/* Force dropdown to always open DOWNWARD on detail pages */
.detail-page-v2 .dropdown-menu {
    top: 100% !important;
    bottom: auto !important;
    border-top: 3px solid var(--primary-color) !important;
    border-bottom: none !important;
    transform: translateY(8px) !important;
}

.detail-page-v2 .nav-item:hover .dropdown-menu,
.detail-page-v2 .nav-item.active .dropdown-menu {
    transform: translateY(0) !important;
}

/* Force submenu to open to the right, aligned to top */
.detail-page-v2 .submenu {
    top: 0 !important;
    bottom: auto !important;
}

/* Push hero below the fixed header (32px top + 38px main = 70px) */
.detail-page-v2 .detail-hero {
    margin-top: 70px;
}

/* ========================================
   TOP BAR
   ======================================== */
.detail-topbar {
    background: #343434;
    text-align: center;
    padding: 10px 0;
}

.detail-topbar .topbar-text {
    color: #ffffff;
    font-size: 13px;
    letter-spacing: 0.15rem;
    font-weight: 400;
    text-transform: uppercase;
}

.detail-topbar .topbar-text strong {
    font-weight: 700;
}

/* ========================================
   NAVIGATION
   ======================================== */
.detail-navbar {
    background: #ffffff;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.detail-nav-links {
    display: flex;
    align-items: center;
    gap: 0;
}

.detail-nav-links a {
    text-decoration: none;
    color: #343434;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.05rem;
    padding: 18px 22px;
    text-transform: uppercase;
    transition: color 0.3s;
}

.detail-nav-links a:hover {
    color: #888;
}

.detail-nav-logo {
    padding: 0 25px;
    display: flex;
    align-items: center;
}

.detail-nav-logo img {
    height: 36px;
    width: auto;
    object-fit: contain;
}

/* ========================================
   HERO IMAGE
   ======================================== */
.detail-hero {
    width: 100%;
    height: 50vh;
    min-height: 300px;
    max-height: 500px;
    overflow: hidden;
    position: relative;
}

.detail-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(transparent, rgba(255, 255, 255, 0.85));
}

/* ========================================
   PROJECT INFO SECTION
   (Floor Plan + Details)
   ======================================== */
.detail-project-section {
    padding: 60px 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.detail-project-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 50px;
    align-items: start;
}

/* Floor plan / slider area */
.detail-floorplan {
    position: relative;
}

.detail-floorplan-slider {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f8f8;
    border: 1px solid #e8e8e8;
    aspect-ratio: 4/3;
    position: relative;
}

.detail-floorplan-slider-inner {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.detail-floorplan-slider-inner img {
    width: 33.333%;
    height: 100%;
    object-fit: cover;
}

.detail-floorplan-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.detail-floorplan-dots .dot {
    width: 8px;
    height: 8px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.detail-floorplan-dots .dot.active {
    background: #343434;
}

/* Project info (right side) */
.detail-project-info {
    padding-top: 5px;
}

.detail-project-info .badge-label {
    display: inline-block;
    font-size: 0.6rem;
    letter-spacing: 0.1rem;
    color: #555;
    font-weight: 500;
    text-transform: uppercase;
    border: 1px solid #bbb;
    border-radius: 980px;
    padding: 3px 14px;
    margin-bottom: 14px;
}

.detail-project-info h2 {
    font-size: 2rem;
    color: #343434;
    font-weight: 300;
    line-height: 1.15;
    margin-bottom: 18px;
}

.detail-project-info h2 strong {
    font-weight: 700;
}

.detail-project-info .project-desc {
    font-size: 0.82rem;
    line-height: 1.75;
    color: #666;
    margin-bottom: 30px;
    font-weight: 300;
}

/* Room Specs Grid (like the image: 3 Kamar Tidur, 2 Kamar Mandi, etc.) */
.detail-room-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.room-spec-card {
    background: #dcdcdc;
    border-radius: 12px;
    padding: 18px 16px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.room-spec-card:hover {
    background: #d0d0d0;
    transform: translateY(-2px);
}

.room-spec-card .spec-number {
    font-size: 2rem;
    font-weight: 700;
    color: #343434;
    line-height: 1;
    margin-bottom: 4px;
}

.room-spec-card .spec-text {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.08rem;
    color: #666;
    font-weight: 500;
    line-height: 1.4;
}

/* ========================================
   FREE CUSTOM SECTION
   ======================================== */
.detail-custom-section {
    padding: 60px 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.detail-custom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.detail-custom-info {
    order: 1;
}

.detail-custom-info .badge-label {
    display: inline-block;
    font-size: 0.6rem;
    letter-spacing: 0.1rem;
    color: #555;
    font-weight: 500;
    text-transform: uppercase;
    border: 1px solid #bbb;
    border-radius: 980px;
    padding: 3px 14px;
    margin-bottom: 14px;
}

.detail-custom-info h3 {
    font-size: 1.8rem;
    color: #343434;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

.detail-custom-info p {
    font-size: 0.82rem;
    line-height: 1.75;
    color: #666;
    font-weight: 300;
}

.detail-custom-image {
    order: 2;
}

.detail-custom-image img {
    width: 100%;
    border-radius: 8px;
    object-fit: contain;
}

/* ========================================
   SITEPLAN / AVAILABILITY SECTION
   ======================================== */
.detail-siteplan-section {
    padding: 60px 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.detail-siteplan-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.detail-siteplan-image {
    order: 1;
}

.detail-siteplan-image img {
    width: 100%;
    border-radius: 8px;
    object-fit: contain;
}

.detail-siteplan-info {
    order: 2;
}

.detail-siteplan-info .badge-label {
    display: inline-block;
    font-size: 0.6rem;
    letter-spacing: 0.1rem;
    color: #555;
    font-weight: 500;
    text-transform: uppercase;
    border: 1px solid #bbb;
    border-radius: 980px;
    padding: 3px 14px;
    margin-bottom: 14px;
}

.detail-siteplan-info h3 {
    font-size: 1.8rem;
    color: #343434;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

.detail-siteplan-info p {
    font-size: 0.82rem;
    line-height: 1.75;
    color: #666;
    font-weight: 300;
}

/* ========================================
   BOOK NOW / CTA SECTION
   ======================================== */
.detail-cta-section {
    position: relative;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 40px;
    background: #343434;
}

.detail-cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.25;
    filter: grayscale(40%);
}

.detail-cta-section .cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.btn-book-now {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 18px 70px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.25rem;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 999px;
    transition: all 0.3s ease;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
}

.btn-book-now:hover {
    background: #ffffff;
    color: #343434;
    border-color: #ffffff;
    transform: scale(1.03);
}

/* ========================================
   DETAIL FOOTER
   ======================================== */
.detail-footer {
    background: #343434;
    color: white;
    padding: 50px 30px 30px;
}

.detail-footer .footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.detail-footer .footer-logo-text {
    font-size: 1.3rem;
    color: #ffffff;
    font-weight: 300;
    letter-spacing: 0.15rem;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.detail-footer .footer-logo-text strong {
    font-weight: 700;
}

.detail-footer .footer-tagline {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 30px;
}

.detail-footer .footer-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.detail-footer .footer-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.05rem;
    text-transform: uppercase;
    transition: color 0.3s;
}

.detail-footer .footer-links a:hover {
    color: #ffffff;
}

.detail-footer .footer-bottom-text {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 0.05rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
}

/* ========================================
   BACKGROUND PATTERN OVERLAY (subtle)
   ======================================== */
.detail-project-section,
.detail-custom-section,
.detail-siteplan-section {
    position: relative;
}

/* ========================================
   ANIMATIONS
   ======================================== */
.detail-fade-in {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.detail-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 900px) {
    .detail-project-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .detail-custom-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .detail-custom-info {
        order: 1;
    }

    .detail-custom-image {
        order: 2;
    }

    .detail-siteplan-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .detail-siteplan-image {
        order: 2;
    }

    .detail-siteplan-info {
        order: 1;
    }

    .detail-project-info h2 {
        font-size: 1.6rem;
    }

    .detail-custom-info h3,
    .detail-siteplan-info h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 600px) {
    .detail-nav-links a {
        font-size: 10px;
        padding: 18px 12px;
    }

    .detail-nav-logo {
        padding: 0 12px;
    }

    .detail-nav-logo img {
        height: 28px;
    }

    .detail-hero {
        height: 35vh;
        min-height: 200px;
    }

    .detail-project-section,
    .detail-custom-section,
    .detail-siteplan-section {
        padding: 40px 20px;
    }

    .room-spec-card .spec-number {
        font-size: 1.5rem;
    }

    .detail-cta-section {
        height: 200px;
    }

    .btn-book-now {
        padding: 14px 35px;
        font-size: 12px;
    }
}

.next-phase-link {
    display: inline-block;
    margin-top: 15px;
    color: #343434;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    border-bottom: 2px solid #343434;
    padding-bottom: 2px;
    transition: all 0.3s ease;
}

.next-phase-link:hover {
    padding-right: 10px;
}

/* ========================================
   FACILITIES SECTION
   ======================================== */
.detail-facilities-section {
    padding: 70px 0;
    background: #f8f8f8;
}

.detail-facilities-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.detail-facilities-header {
    text-align: center;
    margin-bottom: 40px;
}

.detail-facilities-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #343434;
    margin-top: 8px;
}

.detail-facilities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.facility-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.facility-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.facility-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    display: block;
}

.facility-card h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #343434;
    margin-bottom: 6px;
}

.facility-card p {
    font-size: 0.78rem;
    color: #888;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .detail-facilities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .detail-facilities-section {
        padding: 50px 0;
    }

    .facility-card {
        padding: 20px 14px;
    }
}