/* =======================================
   EXPLORE FLOOR PLANNER — 3D EMBED
   The 3D tool (floor-planner/*.html) is a
   fully self-contained standalone file with
   its own dark background/UI, so it's framed
   in an iframe rather than merged into the
   page — keeps its Three.js canvas/controls
   isolated from common.css and the rest of
   the DOM.
   ======================================= */

.fp-embed-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 80vh;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.08);
    background: #2e2a25;
}

/* Fullscreen is requested on this wrapper (not the bare <iframe>) so the
   Enter/Exit buttons below — siblings of the iframe — stay part of the
   fullscreened subtree instead of being dropped by the browser. Without
   this override the element keeps its boxed 16:9/80vh sizing and just gets
   centered on a black backdrop instead of actually filling the screen. */
.fp-embed-frame:fullscreen,
.fp-embed-frame:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
    max-height: none;
    aspect-ratio: unset;
    border-radius: 0;
}

.fp-embed-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Overlay CTA on top of the 3D embed. */
.fp-enter-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 30px;
    border: none;
    border-radius: 999px;
    background: var(--grad-main);
    color: #ffffff;
    font-family: "Poppins", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    cursor: pointer;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.fp-enter-btn:hover {
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.4);
}

.fp-enter-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Hidden by default — only shown once .fp-embed-frame is actually the
   fullscreen element (JS toggles .is-fullscreen on fullscreenchange).
   Pinned to a corner, out of the way of the 3D scene/orbit controls
   underneath, rather than centered like the Enter button. */
.fp-exit-btn {
    display: none;
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    background: rgba(20, 20, 20, 0.55);
    backdrop-filter: blur(6px);
    color: #ffffff;
    font-family: "Poppins", sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.fp-exit-btn:hover { background: rgba(20, 20, 20, 0.75); }

.fp-exit-btn svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fp-embed-frame.is-fullscreen .fp-enter-btn { display: none; }
.fp-embed-frame.is-fullscreen .fp-exit-btn { display: inline-flex; }

.fp-hint-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 28px;
    list-style: none;
    margin: 22px 0 0;
    padding: 0;
    text-align: center;
}

.fp-hint-row li {
    font-size: 0.88rem;
    color: var(--text-gray);
}

.fp-hint-row strong {
    color: var(--text-dark);
    font-weight: 700;
}

@media (max-width: 700px) {
    .fp-embed-frame { aspect-ratio: 4 / 5; max-height: 70vh; }
    .fp-hint-row { flex-direction: column; gap: 8px; }}
