/*
Theme Name: WP FloorMap Showcase
Theme URI: https://foreword.dev
Author: Foreword Development
Author URI: https://foreword.dev
Description: A luxury property demo theme for WP FloorMap — showcasing The Milo residences with the same design language as the plugin.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wpfm-showcase
*/

/* ----------------------------------------------------------------
   0. CSS Custom Properties
   ---------------------------------------------------------------- */
:root {
    --wpfms-primary: #3a2e28;
    --wpfms-primary-light: rgba(58, 46, 40, 0.07);
    --wpfms-primary-hover: #4d3f37;
    --wpfms-accent: #b8956a;
    --wpfms-text: #3d3330;
    --wpfms-text-muted: #7a6d66;
    --wpfms-text-light: #a69890;
    --wpfms-border: #ddd4cc;
    --wpfms-border-light: #e8e0d8;
    --wpfms-bg: #faf8f5;
    --wpfms-bg-soft: #f5f0eb;
    --wpfms-bg-muted: #efe9e3;
    --wpfms-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --wpfms-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --wpfms-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --wpfms-radius-sm: 6px;
    --wpfms-radius: 12px;
    --wpfms-radius-lg: 20px;
    --wpfms-radius-pill: 30px;
    --wpfms-font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    --wpfms-transition: 0.2s ease;
    --wpfms-max-width: 1200px;
    --wpfms-max-width-wide: 1400px;
}

/* ----------------------------------------------------------------
   1. Reset & Base
   ---------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--wpfms-font);
    color: var(--wpfms-text);
    background: var(--wpfms-bg);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--wpfms-primary);
    text-decoration: none;
    transition: color var(--wpfms-transition);
}

a:hover {
    color: var(--wpfms-primary-hover);
}

::selection {
    background: var(--wpfms-primary);
    color: #fff;
}

/* ----------------------------------------------------------------
   2. Typography
   ---------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--wpfms-primary);
    letter-spacing: -0.02em;
}

h1, h2 {
    font-family: 'Cormorant', Georgia, serif;
    font-weight: 500;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p {
    margin-bottom: 1rem;
}

.wpfms-label {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--wpfms-accent);
}

/* ----------------------------------------------------------------
   3. Layout Utilities
   ---------------------------------------------------------------- */
.wpfms-container {
    width: 100%;
    max-width: var(--wpfms-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.wpfms-container--wide {
    max-width: var(--wpfms-max-width-wide);
}

.wpfms-section {
    padding: 100px 0;
}

.wpfms-section--soft {
    background: var(--wpfms-bg-soft);
}

.wpfms-section--dark {
    background: var(--wpfms-primary);
    color: #fff;
}

.wpfms-section--dark h2,
.wpfms-section--dark h3 {
    color: #fff;
}

.wpfms-section--dark .wpfms-label {
    color: var(--wpfms-accent);
}

.wpfms-section--dark p {
    color: rgba(255, 255, 255, 0.75);
}

.wpfms-section-header {
    max-width: 640px;
    margin: 0 auto 56px;
    text-align: center;
}

.wpfms-section-header .wpfms-label {
    margin-bottom: 12px;
}

.wpfms-section-header p {
    color: var(--wpfms-text-muted);
    font-size: 1.0625rem;
    margin-top: 12px;
}

/* Decorative section divider */
.wpfms-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 0 auto 48px;
    max-width: 200px;
}

.wpfms-divider::before,
.wpfms-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--wpfms-border);
}

.wpfms-divider__accent {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--wpfms-accent);
    flex-shrink: 0;
}

/* Subtle grain texture overlay on body */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
}

/* ----------------------------------------------------------------
   4a. Top Bar (marketing links)
   ---------------------------------------------------------------- */
.wpfms-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    background: var(--wpfms-primary);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.wpfms-topbar.is-hidden {
    transform: translateY(-100%);
}

.wpfms-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--wpfms-max-width-wide);
    margin: 0 auto;
    padding: 0 24px;
    height: 36px;
}

/* Tiny pill buttons */
.wpfms-topbar__btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    font-size: 0.6875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--wpfms-radius-pill);
    transition: color var(--wpfms-transition), background var(--wpfms-transition), border-color var(--wpfms-transition);
    letter-spacing: 0.01em;
    line-height: 1.4;
    white-space: nowrap;
}

.wpfms-topbar__btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.2);
}

.wpfms-topbar__back svg {
    flex-shrink: 0;
}

.wpfms-topbar__links {
    display: flex;
    gap: 6px;
}

/* WP Admin bar offset for topbar */
.admin-bar .wpfms-topbar {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .wpfms-topbar {
        top: 46px;
    }
}

/* ----------------------------------------------------------------
   4b. Header / Navigation
   ---------------------------------------------------------------- */
.wpfms-header {
    position: fixed;
    top: 36px;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, top 0.3s ease;
}

/* When topbar hides, header slides up */
.wpfms-topbar.is-hidden ~ .wpfms-header {
    top: 0;
}

.wpfms-header.scrolled {
    background: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: var(--wpfms-border-light);
    box-shadow: var(--wpfms-shadow-sm);
}

.wpfms-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    max-width: var(--wpfms-max-width-wide);
    margin: 0 auto;
    padding: 0 24px;
}

.wpfms-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Cormorant', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 300;
    color: #fff;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color 0.35s ease;
}

.wpfms-header.scrolled .wpfms-logo {
    color: var(--wpfms-primary);
}

/* Primary Navigation */
.wpfms-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.wpfms-nav a {
    display: block;
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    border-radius: var(--wpfms-radius-sm);
    transition: color var(--wpfms-transition), background var(--wpfms-transition);
    letter-spacing: 0.02em;
}

.wpfms-header.scrolled .wpfms-nav a {
    color: var(--wpfms-text-muted);
}

.wpfms-nav a:hover,
.wpfms-nav .current-menu-item a {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.wpfms-header.scrolled .wpfms-nav a:hover,
.wpfms-header.scrolled .wpfms-nav .current-menu-item a {
    color: var(--wpfms-primary);
    background: var(--wpfms-primary-light);
}

.wpfms-nav-cta a {
    background: var(--wpfms-bg) !important;
    color: var(--wpfms-primary) !important;
    border-radius: var(--wpfms-radius-pill);
    padding: 8px 24px;
}

.wpfms-header.scrolled .wpfms-nav-cta a {
    background: var(--wpfms-primary) !important;
    color: #fff !important;
}

.wpfms-nav-cta a:hover {
    opacity: 0.9;
}

/* Dropdowns */
.wpfms-has-dropdown {
    position: relative;
}

.wpfms-has-dropdown > a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.wpfms-dropdown-chevron {
    transition: transform var(--wpfms-transition);
}

.wpfms-has-dropdown.is-open .wpfms-dropdown-chevron {
    transform: rotate(180deg);
}

.wpfms-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 200px;
    padding: 8px 0;
    background: var(--wpfms-bg);
    border: 1px solid var(--wpfms-border-light);
    border-radius: var(--wpfms-radius);
    box-shadow: var(--wpfms-shadow-md);
    list-style: none;
    z-index: 100;
    animation: wpfmsDropIn 0.15s ease;
}

.wpfms-has-dropdown.is-open > .wpfms-dropdown {
    display: block;
}

/* Invisible bridge to prevent hover gap between trigger and menu */
.wpfms-has-dropdown.is-open::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 8px;
}

.wpfms-dropdown li {
    margin: 0;
}

.wpfms-dropdown a {
    display: block;
    padding: 10px 20px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--wpfms-text-muted) !important;
    border-radius: 0;
    background: transparent !important;
    transition: color var(--wpfms-transition), background var(--wpfms-transition);
}

.wpfms-dropdown a:hover {
    color: var(--wpfms-primary) !important;
    background: var(--wpfms-bg-soft) !important;
}

.wpfms-dropdown .current-menu-item a {
    color: var(--wpfms-primary) !important;
}

@keyframes wpfmsDropIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile dropdown: inline expand */
@media (max-width: 768px) {
    .wpfms-has-dropdown {
        position: static;
    }

    .wpfms-dropdown {
        position: static !important;
        box-shadow: none;
        border: none;
        margin: 0;
        padding: 0;
        background: transparent;
        animation: none;
        display: none;
    }

    .wpfms-has-dropdown.is-open > .wpfms-dropdown {
        display: block;
    }

    .wpfms-has-dropdown.is-open .wpfms-dropdown-chevron {
        transform: rotate(180deg);
    }

    .wpfms-dropdown a {
        padding: 10px 16px 10px 32px !important;
        font-size: 0.875rem !important;
        color: var(--wpfms-text-muted) !important;
    }

    .wpfms-dropdown a:hover {
        color: var(--wpfms-primary) !important;
    }
}

/* Mobile nav toggle – animated hamburger/X */
.wpfms-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 1001;
}

.wpfms-nav-toggle__bar {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    margin: 5px auto;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, background 0.35s ease;
}

.wpfms-header.scrolled .wpfms-nav-toggle__bar {
    background: var(--wpfms-primary);
}

/* X state */
.wpfms-nav-toggle.is-active .wpfms-nav-toggle__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.wpfms-nav-toggle.is-active .wpfms-nav-toggle__bar:nth-child(2) {
    opacity: 0;
}

.wpfms-nav-toggle.is-active .wpfms-nav-toggle__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* WP Admin bar offset */
.admin-bar .wpfms-header {
    top: 68px; /* 32px admin bar + 36px topbar */
}

.admin-bar .wpfms-topbar.is-hidden ~ .wpfms-header {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .wpfms-header {
        top: 82px; /* 46px admin bar + 36px topbar */
    }

    .admin-bar .wpfms-topbar.is-hidden ~ .wpfms-header {
        top: 46px;
    }
}

/* ----------------------------------------------------------------
   5. Buttons
   ---------------------------------------------------------------- */
.wpfms-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--wpfms-font);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
    border: 2px solid transparent;
    border-radius: var(--wpfms-radius-pill);
    cursor: pointer;
    transition: all var(--wpfms-transition);
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.wpfms-btn--primary {
    background: var(--wpfms-primary);
    color: #fff;
}

.wpfms-btn--primary:hover {
    background: var(--wpfms-primary-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--wpfms-shadow-md);
}

.wpfms-btn--outline {
    background: transparent;
    color: var(--wpfms-primary);
    border-color: var(--wpfms-border);
}

.wpfms-btn--outline:hover {
    background: var(--wpfms-primary-light);
    border-color: var(--wpfms-primary);
    color: var(--wpfms-primary);
}

.wpfms-btn--ghost {
    background: transparent;
    color: var(--wpfms-text-muted);
    padding: 12px 16px;
}

.wpfms-btn--ghost:hover {
    color: var(--wpfms-primary);
    background: var(--wpfms-primary-light);
}

.wpfms-btn--large {
    padding: 16px 36px;
    font-size: 0.9375rem;
}

.wpfms-btn--white {
    background: #fff;
    color: var(--wpfms-primary);
}

.wpfms-btn--white:hover {
    background: var(--wpfms-bg-muted);
    color: var(--wpfms-primary);
    transform: translateY(-1px);
}

.wpfms-btn--glass {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.wpfms-btn--glass:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.wpfms-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ----------------------------------------------------------------
   6. Video Hero — The Milo
   ---------------------------------------------------------------- */
.milo-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.milo-hero__image-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.milo-hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: wpfmsKenBurns 25s ease alternate infinite;
}

@keyframes wpfmsKenBurns {
    0%   { transform: scale(1)   translate(0, 0); }
    100% { transform: scale(1.08) translate(-1%, -1%); }
}

.milo-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.35) 0%,
        rgba(0, 0, 0, 0.15) 40%,
        rgba(0, 0, 0, 0.4) 100%
    );
}

.milo-hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    padding: 0 24px;
    animation: wpfmsSlideUp 0.8s ease both;
}

.milo-hero__eyebrow {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--wpfms-accent);
    margin-bottom: 16px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.milo-hero__eyebrow::before,
.milo-hero__eyebrow::after {
    content: "";
    width: 32px;
    height: 1px;
    background: rgba(184, 149, 106, 0.5);
}

.milo-hero__title {
    font-family: 'Cormorant', Georgia, serif;
    font-size: clamp(3.5rem, 9vw, 7rem);
    font-weight: 300;
    color: #fff;
    letter-spacing: 0.06em;
    line-height: 1;
    margin-bottom: 20px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.milo-hero__subtitle {
    font-size: 1.125rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    letter-spacing: 0.02em;
}

.milo-hero__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Floating stat cards on hero */
.milo-hero__float-card {
    position: absolute;
    z-index: 2;
    background: rgba(250, 248, 245, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--wpfms-radius);
    box-shadow: 0 8px 32px rgba(58, 46, 40, 0.2);
    padding: 16px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: wpfmsFloat 6s ease-in-out infinite;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.milo-hero__float-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.milo-hero__float-card--left {
    bottom: 15%;
    left: 5%;
    animation-delay: 0s;
}

.milo-hero__float-card--right {
    top: 20%;
    right: 5%;
    animation-delay: 3s;
}

.wpfms-float-stat {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wpfms-float-stat__icon {
    width: 40px;
    height: 40px;
    border-radius: var(--wpfms-radius-sm);
    background: var(--wpfms-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wpfms-float-stat__icon svg {
    width: 20px;
    height: 20px;
    color: var(--wpfms-primary);
}

.wpfms-float-stat__value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--wpfms-primary);
    line-height: 1.2;
}

.wpfms-float-stat__label {
    font-size: 0.75rem;
    color: var(--wpfms-text-light);
}

/* Scroll indicator */
.milo-hero__scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.milo-hero__scroll span {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    position: relative;
}

.milo-hero__scroll span::after {
    content: "";
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.6);
    animation: miloScrollDot 2s ease-in-out infinite;
}

@keyframes miloScrollDot {
    0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
    50% { opacity: 0.3; transform: translateX(-50%) translateY(12px); }
}

/* ----------------------------------------------------------------
   7. Introduction Section
   ---------------------------------------------------------------- */
.milo-intro__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.milo-intro__text .wpfms-label {
    margin-bottom: 12px;
}

.milo-intro__text h2 {
    margin-bottom: 20px;
}

.milo-intro__text p {
    color: var(--wpfms-text-muted);
    font-size: 1.0625rem;
    line-height: 1.7;
}

.milo-intro__details {
    display: flex;
    gap: 40px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--wpfms-border-light);
}

.milo-intro__detail-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--wpfms-primary);
    line-height: 1.2;
}

.milo-intro__detail-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--wpfms-text-light);
}

.milo-intro__image {
    border-radius: var(--wpfms-radius);
    overflow: hidden;
}

.milo-intro__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

/* ----------------------------------------------------------------
   8. Gallery Mosaic
   ---------------------------------------------------------------- */
.milo-gallery__mosaic {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 280px;
    gap: 16px;
}

.milo-gallery__item {
    border-radius: var(--wpfms-radius);
    overflow: hidden;
    position: relative;
}

.milo-gallery__item img,
.milo-gallery__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.milo-gallery__item:hover img,
.milo-gallery__item:hover .milo-gallery__video {
    transform: scale(1.04);
}

.milo-gallery__caption {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 24px;
    background: linear-gradient(0deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.milo-gallery__item:hover .milo-gallery__caption {
    opacity: 1;
}

.milo-gallery__caption span {
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.milo-gallery__item--tall {
    grid-row: span 2;
}

.milo-gallery__item--wide {
    grid-column: span 2;
}

/* ----------------------------------------------------------------
   9. Amenities
   ---------------------------------------------------------------- */
.milo-amenities__grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 64px;
    align-items: center;
}

.milo-amenities__image {
    border-radius: var(--wpfms-radius);
    overflow: hidden;
}

.milo-amenities__image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.milo-amenities__content .wpfms-label {
    margin-bottom: 12px;
}

.milo-amenities__content h2 {
    margin-bottom: 16px;
}

.milo-amenities__content > p {
    color: var(--wpfms-text-muted);
    font-size: 1.0625rem;
    margin-bottom: 28px;
}

.milo-amenities__list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.milo-amenities__list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--wpfms-text);
    padding: 14px 16px;
    background: var(--wpfms-bg-soft);
    border-radius: var(--wpfms-radius-sm);
    border: 1px solid var(--wpfms-border-light);
    transition: border-color var(--wpfms-transition), box-shadow var(--wpfms-transition), transform var(--wpfms-transition);
}

.milo-amenities__list li:hover {
    border-color: var(--wpfms-accent);
    box-shadow: var(--wpfms-shadow-sm);
    transform: translateY(-1px);
}

.milo-amenities__list li svg {
    flex-shrink: 0;
    color: var(--wpfms-accent);
}

/* ----------------------------------------------------------------
  10. Neighborhood (full-bleed image)
   ---------------------------------------------------------------- */
.milo-neighborhood {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.milo-neighborhood__image {
    position: absolute;
    inset: 0;
}

.milo-neighborhood__image img {
    width: 100%;
    height: 120%;
    object-fit: cover;
    margin-top: -10%;
}

.milo-neighborhood__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 70%);
}

.milo-neighborhood__content {
    position: relative;
    z-index: 1;
    max-width: 480px;
    padding: 80px 24px 80px 64px;
    color: #fff;
}

.milo-neighborhood__content h2 {
    color: #fff;
    margin-bottom: 16px;
}

.milo-neighborhood__content p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.0625rem;
    line-height: 1.7;
    margin-bottom: 28px;
}

/* ----------------------------------------------------------------
  11. Residences / WP FloorMap Explorer
   ---------------------------------------------------------------- */
.milo-residences {
    background: var(--wpfms-bg-soft);
}

.milo-residences__explorer {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Ensure FloorMap stretches full width */
.milo-residences__explorer .wpfm-explorer,
.milo-residences__explorer .wpfm-search-block,
.milo-residences__explorer .wpfm-portfolio-container {
    max-width: 100%;
}

.wpfm-filter-bar.wpfm-drawer-active {
    z-index: 9999;
}

/* ----------------------------------------------------------------
  12. Building Exterior (two-column bleed)
   ---------------------------------------------------------------- */
.milo-building__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.milo-building__image {
    overflow: hidden;
    max-height: 600px;
    position: relative;
    display: block;
    text-decoration: none;
}

.milo-building__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.milo-building__image:hover img {
    transform: scale(1.03);
}

.milo-building__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 50%);
    transition: background 0.4s ease;
    pointer-events: none;
}

.milo-building__image:hover .milo-building__overlay {
    background: linear-gradient(0deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.05) 60%);
}

.milo-building__label {
    position: absolute;
    bottom: 32px;
    left: 32px;
    color: #fff;
    font-family: 'Cormorant', Georgia, serif;
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 500;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 8px rgba(0,0,0,0.3);
    z-index: 1;
}

/* ----------------------------------------------------------------
  13. Contact / CTA
   ---------------------------------------------------------------- */
.milo-contact__box {
    background: var(--wpfms-primary);
    border-radius: var(--wpfms-radius-lg);
    padding: 72px 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.milo-contact__box::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(184, 149, 106, 0.08);
    pointer-events: none;
}

.milo-contact__box::after {
    content: "";
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    pointer-events: none;
}

.milo-contact__text {
    flex: 1;
}

.milo-contact__text h2 {
    color: #fff;
    margin-bottom: 12px;
}

.milo-contact__text p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 1.0625rem;
    margin-bottom: 0;
    max-width: 440px;
}

.milo-contact__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
}

/* ----------------------------------------------------------------
  14. Footer
   ---------------------------------------------------------------- */
/* Scroll-to-top button */
.wpfms-scroll-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 900;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--wpfms-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--wpfms-shadow-md);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
    pointer-events: none;
}

.wpfms-scroll-top.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.wpfms-scroll-top:hover {
    background: var(--wpfms-primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--wpfms-shadow-lg);
}

.wpfms-scroll-top svg {
    width: 18px;
    height: 18px;
}

.wpfms-footer {
    background: var(--wpfms-primary);
    color: rgba(255, 255, 255, 0.6);
    padding: 72px 0 0;
    margin-top: auto;
}

.wpfms-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.wpfms-footer__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-family: 'Cormorant', Georgia, serif;
    font-weight: 300;
    font-size: 1.5rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.wpfms-footer__tagline {
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.6;
    margin-bottom: 24px;
}

.wpfms-footer__social {
    display: flex;
    gap: 12px;
}

.wpfms-footer__social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    transition: all var(--wpfms-transition);
}

.wpfms-footer__social a:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.25);
    color: #fff;
}

.wpfms-footer__social a svg {
    width: 16px;
    height: 16px;
}

.wpfms-footer__heading {
    font-family: var(--wpfms-font);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.35);
    margin-bottom: 20px;
}

.wpfms-footer__col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wpfms-footer__col ul li a {
    color: rgba(255,255,255,0.55);
    font-size: 0.875rem;
    transition: color var(--wpfms-transition);
}

.wpfms-footer__col ul li a:hover {
    color: #fff;
}

.wpfms-footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.55);
    margin-bottom: 12px;
    line-height: 1.5;
}

.wpfms-footer__contact-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--wpfms-accent);
    opacity: 0.7;
}

.wpfms-footer__contact-item a {
    color: rgba(255,255,255,0.55);
    transition: color var(--wpfms-transition);
}

.wpfms-footer__contact-item a:hover {
    color: #fff;
}

.wpfms-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    gap: 16px;
}

.wpfms-footer__copy {
    font-size: 0.75rem;
    margin: 0;
    color: rgba(255,255,255,0.35);
}

.wpfms-footer__copy a {
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--wpfms-transition);
}

.wpfms-footer__copy a:hover {
    color: #fff;
}

.wpfms-footer__links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.wpfms-footer__links a {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.75rem;
    transition: color var(--wpfms-transition);
    letter-spacing: 0.02em;
}

.wpfms-footer__links a:hover {
    color: #fff;
}

/* ----------------------------------------------------------------
  15. Page Content (standard WordPress pages)
   ---------------------------------------------------------------- */
.wpfms-page {
    padding-top: 108px; /* 36px topbar + 72px header */
}

.wpfms-page-header {
    padding: 64px 0 48px;
    text-align: center;
    background: var(--wpfms-bg-soft);
    border-bottom: 1px solid var(--wpfms-border-light);
}

.wpfms-page-header h1 {
    margin-bottom: 0;
}

.wpfms-page-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 24px;
}

.wpfms-page-content p {
    font-size: 1.0625rem;
    line-height: 1.7;
}

.wpfms-page-content--wide {
    max-width: var(--wpfms-max-width-wide);
}

/* WordPress block overrides */
.wp-block-shortcode,
.wpfm-explorer,
.wpfm-search-block,
.wpfm-portfolio-container {
    max-width: 100%;
}

.wpfms-page-content .wp-block-shortcode {
    margin: 32px -24px;
}

/* Full-width template */
.page-template-template-fullwidth .wpfms-page-content {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.page-template-template-fullwidth .wpfms-page-content > * {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

.page-template-template-fullwidth .wpfms-page-content > .wp-block-shortcode,
.page-template-template-fullwidth .wpfms-page-content > .wpfm-explorer,
.page-template-template-fullwidth .wpfms-page-content > .wpfm-search-block,
.page-template-template-fullwidth .wpfms-page-content > .wpfm-portfolio-container,
.page-template-template-fullwidth .wpfms-page-content > .alignfull,
.page-template-template-fullwidth .wpfms-page-content > .alignwide {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

/* ----------------------------------------------------------------
  16. Properties Template
   ---------------------------------------------------------------- */
.milo-properties-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.milo-properties-hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.milo-properties-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.25) 50%, rgba(0,0,0,0.5) 100%);
}

.milo-properties-hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 120px 24px 60px;
}

.milo-properties-hero__content h1 {
    color: #fff;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-top: 12px;
    text-shadow: 0 2px 16px rgba(0,0,0,0.25);
}

.milo-properties-stats {
    padding: 48px 0;
    background: var(--wpfms-bg-soft);
    border-bottom: 1px solid var(--wpfms-border-light);
}

.milo-properties-stats__grid {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.milo-properties-stats .wpfms-float-stat {
    background: var(--wpfms-bg);
    border: 1px solid var(--wpfms-border-light);
    border-radius: var(--wpfms-radius);
    padding: 20px 28px;
    box-shadow: var(--wpfms-shadow-sm);
}

/* Properties template: full-width content like fullwidth template */
.page-template-template-properties .wpfms-page-content {
    max-width: 100%;
    padding: 0;
}

.page-template-template-properties .wpfms-page-content > * {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

.page-template-template-properties .wpfms-page-content > .wp-block-shortcode,
.page-template-template-properties .wpfms-page-content > .wpfm-explorer,
.page-template-template-properties .wpfms-page-content > .wpfm-search-block,
.page-template-template-properties .wpfms-page-content > .wpfm-portfolio-container,
.page-template-template-properties .wpfms-page-content > .alignfull,
.page-template-template-properties .wpfms-page-content > .alignwide {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

/* Inquiry Form */
.milo-inquiry__box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.milo-inquiry__text h2 {
    margin-bottom: 12px;
}

.milo-inquiry__text p {
    color: var(--wpfms-text-muted);
    max-width: 400px;
}

.milo-inquiry__form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.milo-inquiry__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.milo-inquiry__field label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--wpfms-text);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.milo-inquiry__field input,
.milo-inquiry__field textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--wpfms-font);
    font-size: 0.9375rem;
    color: var(--wpfms-text);
    background: var(--wpfms-bg);
    border: 1px solid var(--wpfms-border);
    border-radius: var(--wpfms-radius-sm);
    transition: border-color var(--wpfms-transition), box-shadow var(--wpfms-transition);
}

.milo-inquiry__field input:focus,
.milo-inquiry__field textarea:focus {
    outline: none;
    border-color: var(--wpfms-accent);
    box-shadow: 0 0 0 3px rgba(184, 149, 106, 0.15);
}

.milo-inquiry__field input::placeholder,
.milo-inquiry__field textarea::placeholder {
    color: var(--wpfms-text-light);
}

.milo-inquiry__field textarea {
    resize: vertical;
    min-height: 100px;
}

.milo-inquiry__form .wpfms-btn {
    align-self: flex-start;
}

@media (max-width: 768px) {
    .milo-inquiry__box {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .milo-inquiry__row {
        grid-template-columns: 1fr;
    }
}

/* ----------------------------------------------------------------
  17. 404
   ---------------------------------------------------------------- */
.wpfms-404 {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 24px;
}

.wpfms-404__code {
    font-size: clamp(5rem, 12vw, 10rem);
    font-weight: 800;
    color: var(--wpfms-bg-muted);
    line-height: 1;
    margin-bottom: 16px;
}

.wpfms-404 h1 {
    font-size: 1.75rem;
    margin-bottom: 12px;
}

.wpfms-404 p {
    color: var(--wpfms-text-muted);
    margin-bottom: 24px;
}

/* ----------------------------------------------------------------
  17. Animations
   ---------------------------------------------------------------- */
@keyframes wpfmsSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes wpfmsFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes wpfmsFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Scroll-triggered animations */
.wpfms-animate {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.wpfms-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.wpfms-animate-delay-1 { transition-delay: 0.15s; }
.wpfms-animate-delay-2 { transition-delay: 0.3s; }
.wpfms-animate-delay-3 { transition-delay: 0.45s; }

/* ----------------------------------------------------------------
  18. Responsive
   ---------------------------------------------------------------- */
@media (max-width: 1024px) {
    .wpfms-page-content,
    .wpfms-page-content--wide {
        padding-left: 0;
        padding-right: 0;
    }

    .milo-intro__grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .milo-gallery__mosaic {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 240px;
    }

    .milo-gallery__item--tall {
        grid-row: span 1;
    }

    .milo-gallery__item--wide {
        grid-column: span 2;
    }

    .milo-amenities__grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .milo-neighborhood__content {
        padding-left: 40px;
    }

    .milo-building__grid {
        grid-template-columns: 1fr;
    }

    .milo-building__image {
        max-height: 400px;
    }

    .milo-contact__box {
        flex-direction: column;
        text-align: center;
        padding: 56px 32px;
    }

    .milo-contact__text p {
        max-width: 100%;
    }

    .milo-contact__actions {
        flex-direction: row;
    }

    .milo-hero__float-card {
        display: none;
    }

    .wpfms-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .milo-amenities__list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .wpfms-nav {
        display: none;
    }

    .wpfms-nav-toggle {
        display: block;
    }

    .wpfms-nav.is-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--wpfms-bg);
        border-bottom: 1px solid var(--wpfms-border-light);
        box-shadow: var(--wpfms-shadow-md);
        padding: 8px 0;
        gap: 0;
    }

    .wpfms-nav.is-open > li > a {
        color: var(--wpfms-text-muted) !important;
        padding: 12px 24px;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .wpfms-nav.is-open > li > a:hover {
        color: var(--wpfms-primary) !important;
        background: var(--wpfms-bg-soft);
    }

    .wpfms-section {
        padding: 64px 0;
    }

    .milo-hero__title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .milo-gallery__mosaic {
        grid-template-columns: 1fr;
        grid-auto-rows: 220px;
    }

    .milo-gallery__item--wide {
        grid-column: span 1;
    }

    .milo-intro__details {
        flex-wrap: wrap;
        gap: 24px;
    }

    .milo-residences__explorer {
        padding-left: 0;
        padding-right: 0;
        margin-left: 0;
        margin-right: 0;
    }

    .milo-neighborhood {
        min-height: 400px;
    }

    .milo-neighborhood__content {
        padding: 48px 24px;
    }

    .milo-contact__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .wpfms-footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .wpfms-footer__social {
        justify-content: center;
    }

    .wpfms-footer__col ul {
        align-items: center;
    }

    .wpfms-footer__contact-item {
        justify-content: center;
    }

    .wpfms-footer__bottom {
        flex-direction: column;
        text-align: center;
    }

    .wpfms-scroll-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .milo-hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .milo-hero__actions .wpfms-btn {
        justify-content: center;
    }
}
