/* =========================================================
   MASTER PLAN LAYOUT PAGE — PREMIUM DESIGN
   Matches floor-plan & location-map visual language
   ========================================================= */

:root {
    --mp-navy: #0d1b2a;
    --mp-gold: #d7b56d;
    --mp-grey: #f5f5f7;
    --mp-text: #555;
}

/* --- HERO --- */
.mp-hero {
    position: relative;
    height: 60vh;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.mp-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    animation: mpHeroZoom 20s ease-out forwards;
}

@keyframes mpHeroZoom {
    0%   { transform: scale(1); }
    100% { transform: scale(1.08); }
}

.mp-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(13,27,42,0.88) 0%,
        rgba(13,27,42,0.5) 50%,
        rgba(13,27,42,0.8) 100%);
}

.mp-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 80px 5% 0;
}

/* Breadcrumb */
.mp-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
    font-family: sans-serif;
    font-size: 13px;
    animation: mpFadeDown .8s .1s both;
}

.mp-breadcrumb a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.3s;
}
.mp-breadcrumb a:hover { color: var(--mp-gold); }

.mp-breadcrumb__sep {
    color: rgba(255,255,255,0.3);
    font-size: 10px;
}

.mp-breadcrumb__current {
    color: var(--mp-gold);
    font-weight: 600;
}

.mp-hero__eyebrow {
    color: var(--mp-gold);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin: 0 0 14px;
    font-weight: 700;
    font-family: sans-serif;
    animation: mpFadeDown .8s .2s both;
}

.mp-hero__title {
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    font-family: 'Georgia', serif;
    margin: 0 0 16px;
    letter-spacing: .02em;
    animation: mpFadeDown .8s .4s both;
}

.mp-hero__sub {
    font-size: 15px;
    font-family: sans-serif;
    color: rgba(255,255,255,0.65);
    letter-spacing: .18em;
    text-transform: uppercase;
    margin: 0;
    animation: mpFadeDown .8s .6s both;
}

/* Scroll indicator */
.mp-hero__scroll {
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 1px; height: 70px;
    background: rgba(255,255,255,0.12);
    z-index: 2;
    overflow: hidden;
}

.mp-hero__scroll span {
    display: block;
    width: 100%; height: 50%;
    background: var(--mp-gold);
    animation: mpScrollDrop 2s cubic-bezier(.77,0,.175,1) infinite;
}

@keyframes mpScrollDrop {
    0%  { transform: translateY(-100%); }
    50% { transform: translateY(100%); }
    100%{ transform: translateY(200%); }
}

@keyframes mpFadeDown {
    0%   { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* --- SHARED ELEMENTS --- */
.mp-label {
    display: block;
    font-size: 12px;
    font-family: sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--mp-gold);
    margin-bottom: 14px;
}

.mp-heading {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-family: 'Georgia', serif;
    color: var(--mp-navy);
    margin: 0 0 10px;
}

.mp-gold-rule {
    width: 50px;
    height: 3px;
    background: var(--mp-gold);
    margin: 16px auto 0;
}

.mp-body-sm {
    font-size: 15px;
    line-height: 1.7;
    color: var(--mp-text);
    max-width: 640px;
    margin: 24px auto 0;
    font-family: sans-serif;
}

/* --- INTRO --- */
.mp-intro {
    padding: 10vh 5%;
    background: #fff;
    text-align: center;
}

.mp-intro__inner {
    max-width: 800px;
    margin: 0 auto;
}

.mp-intro__text {
    font-size: 17px;
    line-height: 1.85;
    color: var(--mp-text);
    margin: 30px 0 0;
    font-family: sans-serif;
}

.mp-intro__text strong {
    color: var(--mp-navy);
}

/* --- MASTER PLAN IMAGE (Dark Section) --- */
.mp-plan-section {
    background: var(--mp-navy);
    padding: 8vh 5%;
    position: relative;
    overflow: hidden;
}

.mp-plan-section::before {
    content: '';
    position: absolute;
    top: -150px; right: -150px;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(215,181,109,.07) 0%, transparent 70%);
    pointer-events: none;
}

.mp-plan-section::after {
    content: '';
    position: absolute;
    bottom: -120px; left: -100px;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(215,181,109,.05) 0%, transparent 70%);
    pointer-events: none;
}

.mp-plan__inner {
    max-width: 1100px;
    margin: 0 auto;
}

.mp-plan__frame {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.06);
    background: rgba(255,255,255,.03);
    cursor: pointer;
    transition: transform .5s cubic-bezier(.16,1,.3,1),
                box-shadow .5s cubic-bezier(.16,1,.3,1);
}

.mp-plan__frame:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 60px rgba(0,0,0,.35);
}

.mp-plan__frame img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform .8s cubic-bezier(.16,1,.3,1);
}

.mp-plan__frame:hover img {
    transform: scale(1.03);
}

.mp-plan__hover {
    position: absolute;
    inset: 0;
    background: rgba(13,27,42,.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity .4s ease;
    gap: 10px;
}

.mp-plan__hover i {
    color: var(--mp-gold);
    font-size: 18px;
}

.mp-plan__frame:hover .mp-plan__hover {
    opacity: 1;
}

/* --- HIGHLIGHTS (Stats Panel) --- */
.mp-highlights {
    background: var(--mp-navy);
    padding: 0 5% 10vh 5%;
    position: relative;
    overflow: hidden;
}

.mp-highlights__inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.mp-highlights__header {
    margin-bottom: 50px;
}

.mp-highlights__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.mp-stat {
    text-align: center;
    padding: 40px 20px;
    border-radius: 16px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.06);
    transition: transform .4s ease, background .4s ease;
}

.mp-stat:hover {
    transform: translateY(-6px);
    background: rgba(255,255,255,.06);
}

.mp-stat__number {
    font-size: clamp(2rem, 3vw, 3rem);
    font-family: 'Georgia', serif;
    color: var(--mp-gold);
    margin-bottom: 12px;
}

.mp-stat__line {
    width: 40px; height: 2px;
    background: var(--mp-gold);
    margin: 0 auto 16px;
    opacity: .5;
    transition: width .4s ease, opacity .4s ease;
}

.mp-stat:hover .mp-stat__line {
    width: 60px;
    opacity: 1;
}

.mp-stat__label {
    font-family: sans-serif;
    font-size: 13px;
    color: rgba(255,255,255,.6);
    text-transform: uppercase;
    letter-spacing: .15em;
}

/* --- AMENITIES --- */
.mp-amenities {
    padding: 10vh 5%;
    background: var(--mp-grey);
}

.mp-amenities__inner {
    max-width: 1200px;
    margin: 0 auto;
}

.mp-amenities__header {
    text-align: center;
    margin-bottom: 60px;
}

.mp-amenities__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.mp-amenity-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px 32px;
    text-align: center;
    box-shadow: 0 6px 24px rgba(0,0,0,.03);
    border: 1px solid rgba(0,0,0,.04);
    transition: transform .5s cubic-bezier(.16,1,.3,1),
                box-shadow .5s cubic-bezier(.16,1,.3,1),
                border-color .3s ease;
    position: relative;
    overflow: hidden;
}

.mp-amenity-card::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: var(--mp-gold);
    transform: scaleX(0);
    transition: transform .5s cubic-bezier(.16,1,.3,1);
}

.mp-amenity-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,.08);
    border-color: rgba(215,181,109,.2);
}

.mp-amenity-card:hover::before {
    transform: scaleX(1);
}

.mp-amenity-card__icon {
    width: 64px; height: 64px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: rgba(215,181,109,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--mp-gold);
    transition: background .4s ease, transform .4s ease, color .4s ease;
}

.mp-amenity-card:hover .mp-amenity-card__icon {
    background: var(--mp-gold);
    color: #fff;
    transform: scale(1.1) rotate(5deg);
}

.mp-amenity-card h4 {
    font-size: 18px;
    color: var(--mp-navy);
    margin: 0 0 12px;
    font-family: 'Georgia', serif;
}

.mp-amenity-card p {
    font-size: 14px;
    line-height: 1.7;
    color: #777;
    margin: 0;
    font-family: sans-serif;
}

/* --- CTA --- */
.mp-cta {
    padding: 10vh 5%;
    background: var(--mp-navy);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.mp-cta::before,
.mp-cta::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(215,181,109,.04);
    pointer-events: none;
}

.mp-cta::before {
    width: 500px; height: 500px;
    top: -200px; left: -200px;
    animation: mpFloat 12s ease-in-out infinite;
}

.mp-cta::after {
    width: 350px; height: 350px;
    bottom: -120px; right: -80px;
    animation: mpFloat 9s ease-in-out infinite reverse;
}

@keyframes mpFloat {
    0%, 100% { transform: translate(0,0) scale(1); }
    50% { transform: translate(15px,-20px) scale(1.05); }
}

.mp-cta__inner {
    position: relative; z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.mp-cta__title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-family: 'Georgia', serif;
    color: #fff;
    margin: 0 0 16px;
}

.mp-cta__text {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255,255,255,.6);
    margin: 0 0 40px;
    font-family: sans-serif;
}

.mp-cta__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.mp-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    font-family: sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    text-decoration: none;
    border-radius: 8px;
    transition: all .3s ease;
}

.mp-cta__btn--primary {
    background: var(--mp-gold);
    color: var(--mp-navy);
}

.mp-cta__btn--primary:hover {
    background: #e8c87e;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(215,181,109,.3);
}

.mp-cta__btn--secondary {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,.2);
}

.mp-cta__btn--secondary:hover {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.4);
    transform: translateY(-3px);
}

.mp-cta__partner {
    margin-top: 40px;
    font-size: 13px;
    color: rgba(255,255,255,.45);
    font-family: sans-serif;
}

.mp-cta__partner strong {
    color: var(--mp-gold);
}

/* --- LIGHTBOX --- */
.mp-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0,0,0,.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
}

.mp-lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.mp-lightbox__close {
    position: absolute;
    top: 24px; right: 32px;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    z-index: 10001;
    transition: color .3s;
}

.mp-lightbox__close:hover { color: var(--mp-gold); }

.mp-lightbox__img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    transform: scale(.9);
    transition: transform .4s cubic-bezier(.16,1,.3,1);
}

.mp-lightbox.active .mp-lightbox__img {
    transform: scale(1);
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .mp-highlights__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .mp-amenities__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mp-hero {
        height: 50vh;
        min-height: 360px;
    }
    .mp-hero__content { padding-top: 60px; }

    .mp-highlights__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .mp-stat { padding: 28px 16px; }

    .mp-amenities__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .mp-cta__actions {
        flex-direction: column;
        align-items: center;
    }

    .mp-cta__btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}
