
/*Nav Bar*/

#navbar .container {
    min-height: 72px;
}

#navbar a {
    flex-shrink: 0;
}

@media (max-width: 1023px) {
    #navbar .lg\:flex {
        display: none !important;
    }
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(15, 17, 21, 0.98);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.05);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.mobile-menu-close {
    position: absolute;
    top: 1.75rem;
    right: 1.75rem;

    padding: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;

    text-shadow: 0 0 6px rgba(255,255,255,0.15);

    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu-close:hover,
.mobile-menu-close:active {
    transform: scale(1.15);
    color: #c5a059;
}

.mobile-menu-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    padding: 3rem;
}

.mobile-menu-content a {
    font-size: 0.85rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    transition: color 0.3s ease;
}

.mobile-menu-content a:hover {
    color: #c5a059;
}

.mobile-menu-content button {
    margin-top: 3rem;
    align-self: flex-start;
    padding: 1rem 3rem;
    border: 1px solid rgba(255, 255, 255, 0.85);
    color: rgba(255, 255, 255, 0.95);
    background: transparent;

    font-size: 0.7rem;
    letter-spacing: 0.32em;
    font-weight: 600;
    text-transform: uppercase;

    box-shadow: inset 0 0 0 0 rgba(197,160,89,0.3);

    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-menu-content button:hover,
.mobile-menu-content button:active {
    background: #c5a059;
    border-color: #c5a059;
    color: #0f1115;

    box-shadow: inset 0 0 0 100px rgba(197,160,89,0.15);
}

.mobile-menu-content a::after {
    content: '';
    display: block;
    width: 0;
    height: 1px;
    background: #c5a059;
    margin-top: 0.75rem;
    transition: width 0.4s ease;
}

.mobile-menu-content a:hover::after {
    width: 3rem;
}

.mobile-nav-link {
    position: relative;
    color: rgba(255, 255, 255, 0.92);
}

.mobile-nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 1px;
    background: #c5a059;
    margin-top: 0.75rem;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-link.active::after {
    width: 3rem;
}

.mobile-nav-link.active {
    color: #c5a059;
}


@media (max-width: 768px) {
    .mobile-menu-content a {
        text-shadow: 0 0 1px rgba(255,255,255,0.15);
    }
}

/*line effect*/
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 1px;
    background: #c5a059;
    transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active::after {
    width: 100%;
}
.nav-link.active {
    color: #c5a059;
}

/*inquire fill effect*/
.nav-inquire {
    position: relative;
    overflow: hidden;
    transition: color 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 0;
}

.nav-inquire::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #c5a059;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
}

.nav-inquire span,
.nav-inquire {
    position: relative;
    z-index: 1;
}

.nav-inquire:hover {
    color: #0f1115;
    border-color: #c5a059;
}

.nav-inquire:hover::before {
    transform: scaleX(1);
}

/*end of nav bar*/

body {
    background-color: #0f1115;
    color: white;
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
}
.serif { font-family: 'Playfair Display', serif; }


.main-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.layout-viewer {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: row; 
    align-items: center;
    justify-content: space-between; 
    padding: 4rem; 
    background: radial-gradient(circle at center, #1a1d23 0%, #0f1115 100%);
    overflow: hidden;
    gap: 4rem; 
}
.text-section {
    flex: 1;
    text-align: left; 
    max-width: 450px;
}
.map-wrapper {
    position: relative;
    flex: 2; 
    height: 85vh; 
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}
.section-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 14px;
    fill: #1a1d23;
    pointer-events: none;
    text-anchor: middle;
    dominant-baseline: middle;
}
.apartment-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 10px;
    fill: rgba(197, 160, 89, 0.8);
    pointer-events: none;
    text-anchor: middle;
    dominant-baseline: middle;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}
.apartment:hover + .apartment-label,
.apartment-label:hover {
    opacity: 1;
    fill: #c5a059;
}
.map-wrapper:hover {
    transform: scale(1.05);
}
.map-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-height: none;
    filter: grayscale(0.1) brightness(1);
}
.interactive-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.hotspot {
    position: absolute;
    pointer-events: auto;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
}
.hotspot:hover {
    background: rgba(197, 160, 89, 0.15);
    box-shadow: inset 0 0 20px rgba(197, 160, 89, 0.2);
}


/* SVG Styling */
  
.apartment {
fill: rgba(197, 160, 89, 0);
stroke: rgba(197, 160, 89, 0.3);
stroke-width: 1;
transition: all 0.3s ease;
cursor: pointer;
pointer-events: all;
}

.apartment-group:hover .apartment {
fill: rgba(197, 160, 89, 0.6);
stroke: rgba(197, 160, 89, 1);
filter: drop-shadow(0 0 18px rgba(197,160,89,0.45));
}


.section-label {
font-family: 'Montserrat', sans-serif;
font-weight: 700;
font-size: 50px;
fill: #c5a059;
pointer-events: none; 
cursor: default;

transform-box: fill-box;
transform-origin: center;

transition:
    fill 0.3s ease,
    transform 0.3s ease,
    filter 0.3s ease;
}

.apartment-group:hover .section-label {
fill: #ffffff;
transform: scale(1.08);
filter:
    drop-shadow(0 0 6px rgba(197, 160, 89, 0.6))
    drop-shadow(0 0 14px rgba(197, 160, 89, 0.35));
}


.floorplan-label {
font-family: 'Montserrat', sans-serif;
font-weight: 600;
font-size: 60px;
letter-spacing: 0.15em;
text-transform: uppercase;

fill: #1a1d23;
cursor: pointer;
pointer-events: all;

transform-box: fill-box;
transform-origin: center;

transition:
    fill 0.3s ease,
    transform 0.3s ease,
    filter 0.3s ease;
}

.floorplan-group:hover .floorplan-label {
transform: scale(1.08);
filter:
    drop-shadow(0 0 6px rgba(197,160,89,0.6))
    drop-shadow(0 0 16px rgba(197,160,89,0.4));
}

/* mobile optimization*/
@media (max-width: 768px) {

    /* === Layout === */
    .layout-viewer {
        flex-direction: column;
        justify-content: flex-start;
        padding: 8rem 1.25rem 2rem;
        padding-bottom: 8rem;
        min-height: auto;
        overflow: visible;
    }

    .text-section {
        max-width: 100%;
        text-align: center;
        margin-bottom: 0.5rem;
    }

    
    /* === Container sanity === */
    .main-container {
        height: auto;
        min-height: 100vh;
    }

    /* === Map sizing === */
    .map-wrapper {
        width: 100%;
        height: auto;
        margin-top: 1rem;  
        overflow: visible;
        padding-bottom: 16rem;
    }

    #svg-container {
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: visible;
    }

    #svg-container svg {
       width: auto;
        height: auto;
        max-width: none;
        max-height: none;

        transform: rotate(90deg) scale(1.6);
        transform-origin: center;

    }
    

}
@media (hover: none) {
    .map-wrapper:hover {
        transform: none;
    }
}


/* Modal Overlay */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 17, 21, 0.98);
    z-index: 100;
    display: flex;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    transform: scale(1.1);
}
.modal.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}
.modal-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    padding: 4rem;
}
.modal-image-container {
    flex: 1.5;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.modal-image {
    max-width: 95%;
    max-height: 90vh;
    object-fit: contain;
    transform: translateX(-50px);
    opacity: 0;
    transition: all 0.8s 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal.active .modal-image {
    transform: translateX(0);
    opacity: 1;
}
.modal-details {
    flex: 1;
    padding-left: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transform: translateX(50px);
    opacity: 0;
    transition: all 0.8s 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal.active .modal-details {
    transform: translateX(0);
    opacity: 1;
}
.close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    z-index: 110;
    cursor: pointer;
    transition: all 0.3s ease;
}
.close-btn:hover {
    transform: rotate(90deg) scale(1.2);
    color: #c5a059;
}
/* Animations */
@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
.animate-slide-right {
    animation: slideInRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #c5a059;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}
#svg-container {
width: 100%;
height: 100%;
}
#master-layout {
width: 100%;
height: 100%;
display: block;
}

.image-viewer {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.image-viewer.active {
    opacity: 1;
    pointer-events: auto;
}

.image-viewer img {
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
}

.image-viewer .close-btn {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 2100;
    cursor: pointer;
}

/*modal responsive optimization*/
@supports (height: 100dvh) {
    .modal-content {
        max-height: 90dvh;
    }
}
@media (max-height: 900px) {
    .modal-image {
        max-height: 70vh;
        object-fit: contain;
    }
}
@media (max-width: 768px) {
    .modal-content {
        display: block;
    }

    .modal-image-container {
        margin-bottom: 2rem;
    }

    .modal-content {
        overflow-y: auto;
    }

    
    .modal-details {
        text-align: center;
    }

    .modal-details span,
    .modal-details p,
    .modal-details h2 {
        text-align: center;
    }

    .modal-details .flex {
        justify-content: center;
    }

    .modal-image-container {
        padding-top: 3.5rem;
    }
    .modal-details .pt-8 {
        align-items: center;
    }

    .modal-details .pt-8 button {
        max-width: 320px;
    }
    .close-btn,
    .close-btn svg {
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }
    .close-btn:hover,
    .close-btn:hover svg {
        transform: none !important;
    }
    .close-btn:active {
        opacity: 0.6;
    }

}
@media (max-height: 700px) and (max-width: 768px) {
    .modal-image {
        max-height: 35vh;
    }
}

@media (max-width: 480px) {
    .modal-details .pt-8 {
        flex-direction: column;
    }

    .modal-details .pt-8 button {
        width: 100%;
    }
}



/*design section*/
.design-living-section {
    position: relative;
    padding: 140px 0 120px; 
    overflow: hidden;

    background:
        radial-gradient(
            circle at 25% 25%,
            rgba(255, 255, 255, 0.04),
            transparent 45%
        ),
        radial-gradient(
            circle at 75% 70%,
            rgba(0, 0, 0, 0.35),
            transparent 55%
        ),
        linear-gradient(
            180deg,
            #5a100f 0%,
            #671311 40%,
            #3e0c0b 100%
        );
}





.design-heading {
    font-family: 'Playfair Display', serif;
    font-size: 58px; 
    font-style: italic;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 36px;
}


.design-text {
    max-width: 760px;
    margin: 0 auto 70px; 
    text-align: center;
}

.design-text p {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 300;
    line-height: 1.9;
    margin-bottom: 22px;
    font-size: 16px;
}



/* Slider */
.slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    max-width: 1100px;     
    margin: 0 auto 60px;
}

.slider-track {
    display: flex;
    gap: 40px;
    will-change: transform;
    transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}

.slider-track img {
    width: 520px;
    height: 420px;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 14px;
    filter: brightness(0.92) contrast(1.02);
}

.design-closing {
    max-width: 600px;
    margin: 0 auto 90px;
    text-align: center;
    
    display: block;              
    margin-bottom: 1rem;         
    font-size: 11px;             
    letter-spacing: 0.5em;       
    text-transform: uppercase;   
    color: #c5a059; 
}

/*sedeeq logo*/
.designer-mark {
    margin-top: 70px;
    text-align: center;
    opacity: 0.55;
}

.designer-mark span {
    display: block;
    margin-bottom: 16px;

    font-size: 10px;
    letter-spacing: 0.45em;
    text-transform: uppercase;
    font-weight: 500;

    color: rgba(255, 255, 255, 0.45);
}

.designer-mark img {
    display: block;
    margin: 0 auto;

    height: 56px;         
    max-width: 240px;       
    width: auto;

    filter: grayscale(100%) brightness(1.05) contrast(0.95);
    opacity: 0.82;

    transition:
        filter 0.6s ease,
        opacity 0.6s ease;
}

.designer-mark:hover img {
    filter: grayscale(100%) brightness(1.8) contrast(1);
    opacity: 0.95;
}






.gold-text {
    display: block;              
    margin-bottom: 1rem;         
    font-size: 11px;             
    letter-spacing: 0.5em;       
    text-transform: uppercase;   
    color: #c5a059; 
}


/*footer related*/
.copy-link {
    position: relative;
    cursor: pointer;
}

.copy-link::after {
    content: attr(data-hover);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: #111;
    color: #fff;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.copy-link:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

.contact-icon {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
    color: #c5a059;
}
