/* ==========================================================================
   WPI Portfolio & Property Detail Pages
   Douglas Elliman / luxury brokerage aesthetic
   BEM naming with wpi- prefix

   IMPORTANT: All color/background-color/border-color use !important
   to override GeneratePress theme defaults (body { color: #222222 }).
   Uses hex values only — never CSS variables.
   ========================================================================== */


/* ==========================================================================
   GENERATEPRESS LAYOUT OVERRIDES
   Removes article wrapper, sidebar, padding, and width constraints.
   ========================================================================== */

body.wpi-portfolio-layout .site-content .content-area,
body.wpi-portfolio-layout.separate-containers .site-content .content-area {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
}

body.wpi-portfolio-layout .inside-article,
body.wpi-portfolio-layout.separate-containers .inside-article {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    border: none !important;
    box-shadow: none !important;
}

body.wpi-portfolio-layout .entry-content {
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.wpi-portfolio-layout .entry-header {
    display: none !important;
}

body.wpi-portfolio-layout #right-sidebar,
body.wpi-portfolio-layout .sidebar {
    display: none !important;
}

body.wpi-portfolio-layout .site-content,
body.wpi-portfolio-layout .grid-container {
    max-width: none !important;
}

/* Removed: 100vw width hack caused horizontal overflow/bounce on mobile */


/* ==========================================================================
   GLOBAL / SMOOTH SCROLL
   ========================================================================== */

html {
    scroll-behavior: smooth;
}

/* iOS-safe horizontal overflow prevention:
   A wrapper div with overflow:clip is the only reliable way
   to prevent horizontal scroll on iOS Safari.
   overflow:clip (not hidden) allows sticky positioning to still work. */
.wpi-portfolio-page,
.wpi-property-page {
    overflow-x: clip;
    overflow-y: visible;
    width: 100%;
}

.wpi-portfolio-page,
.wpi-property-page {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.wpi-portfolio-page *,
.wpi-property-page * {
    box-sizing: border-box;
}


/* ==========================================================================
   CONTAINER
   ========================================================================== */

.wpi-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}


/* ==========================================================================
   SECTIONS
   ========================================================================== */

/* Resources grid (3-col desktop, 1-col mobile) */
.wpi-resources-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* Area photo grids */
.wpi-area-grid-wpi { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; }
.wpi-area-grid-park { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }

/* Link pills */
.wpi-link-pills { display: flex; flex-wrap: wrap; gap: 12px; }

.wpi-section {
    padding: 80px 0;
    overflow: hidden;
}

.wpi-section--light {
    background-color: #f5f6f8 !important;
    color: #1a1a2e !important;
}

.wpi-section--dark {
    background-color: #0d1117 !important;
    color: #ffffff !important;
}

.wpi-section--white {
    background-color: #ffffff !important;
    color: #1a1a2e !important;
}

.wpi-section__title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    padding-bottom: 16px;
    position: relative;
    color: #1a1f3d !important;
}

.wpi-section__title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #c9a84c !important;
}

.wpi-section--dark .wpi-section__title,
.wpi-section__title--light {
    color: #ffffff !important;
}

.wpi-section__subtitle {
    font-size: 1.05rem;
    color: #6b7280 !important;
    margin-bottom: 40px;
    max-width: 700px;
}

.wpi-section__subtitle--light {
    color: rgba(255, 255, 255, 0.65) !important;
}


/* ==========================================================================
   HERO
   ========================================================================== */

.wpi-hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1a1f3d !important;
    color: #ffffff !important;
    overflow: hidden;
    text-align: center;
    padding: 60px 0;
}

.wpi-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(26, 31, 61, 0.85) 0%, rgba(26, 31, 61, 0.95) 100%);
    z-index: 1;
}

.wpi-hero__content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

.wpi-hero__logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-bottom: 32px;
}

.wpi-hero__logo-de {
    height: 50px;
    width: auto;
}

.wpi-hero__logo-bmn {
    height: 44px;
    width: auto;
}

.wpi-hero__offering {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #c9a84c !important;
    margin-bottom: 16px;
}

.wpi-hero__title {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.15;
    color: #ffffff !important;
    margin-bottom: 16px;
}

.wpi-hero__title-line {
    display: block;
}

.wpi-hero__location {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7) !important;
    margin-bottom: 48px;
}

.wpi-hero__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.wpi-hero__stat {
    background-color: #ffffff !important;
    border-radius: 10px;
    padding: 20px 16px;
    text-align: center;
}

.wpi-hero__stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6b7280 !important;
    margin-bottom: 6px;
}

.wpi-hero__stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1f3d !important;
}

.wpi-hero__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
}

.wpi-hero__confidential {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4) !important;
    font-style: italic;
}


/* ==========================================================================
   STICKY NAV
   ========================================================================== */

.wpi-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #1a1f3d !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    width: 100%;
}

.wpi-nav__inner {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.wpi-nav__inner::-webkit-scrollbar {
    display: none;
}

.wpi-nav__link {
    display: inline-block;
    padding: 14px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.65) !important;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.wpi-nav__link:hover {
    color: #ffffff !important;
}

.wpi-nav__link--active {
    color: #c9a84c !important;
    border-bottom-color: #c9a84c !important;
}


/* ==========================================================================
   METRICS (light bg section)
   ========================================================================== */

.wpi-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.wpi-metric {
    background-color: #ffffff !important;
    border-radius: 10px;
    padding: 28px 24px;
    text-align: center;
    border-top: 3px solid #c9a84c !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.wpi-metric__value {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a1f3d !important;
    margin-bottom: 6px;
}

.wpi-metric__label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #6b7280 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


/* ==========================================================================
   HIGHLIGHTS (dark bg section)
   ========================================================================== */

.wpi-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.wpi-highlight {
    background-color: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 10px;
    padding: 28px 24px;
}

.wpi-highlight__icon {
    margin-bottom: 16px;
    color: #c9a84c !important;
}

.wpi-highlight__icon svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

.wpi-highlight__title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff !important;
    margin-bottom: 8px;
}

.wpi-highlight__text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75) !important;
}


/* ==========================================================================
   TABLES
   ========================================================================== */

.wpi-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 16px;
}

table.wpi-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

table.wpi-table thead {
    background-color: #1a1f3d !important;
}

table.wpi-table th {
    color: #ffffff !important;
    font-weight: 600;
    text-align: left;
    padding: 12px 16px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

table.wpi-table td {
    color: #1a1a2e !important;
    padding: 11px 16px;
    border-bottom: 1px solid #e2e4e9 !important;
}

table.wpi-table tbody tr:nth-child(even) {
    background-color: #f9fafb !important;
}

table.wpi-table tbody tr:nth-child(odd) {
    background-color: #ffffff !important;
}

table.wpi-table tbody tr[data-href] {
    cursor: pointer;
    transition: background-color 0.15s;
}

table.wpi-table tbody tr[data-href]:hover {
    background-color: #eef0f4 !important;
}

table.wpi-table tfoot {
    background-color: #1a1f3d !important;
}

table.wpi-table tfoot td,
table.wpi-table tfoot th {
    color: #ffffff !important;
    font-weight: 600;
    padding: 12px 16px;
}

table.wpi-table.wpi-table--compact th,
table.wpi-table.wpi-table--compact td {
    padding: 8px 12px;
    font-size: 0.82rem;
}

table.wpi-table.wpi-table--dark thead {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

table.wpi-table.wpi-table--dark th {
    color: #ffffff !important;
}

table.wpi-table.wpi-table--dark td {
    color: rgba(255, 255, 255, 0.85) !important;
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

table.wpi-table.wpi-table--dark tbody tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.04) !important;
}

table.wpi-table.wpi-table--dark tbody tr:nth-child(odd) {
    background-color: transparent !important;
}

.wpi-table-note {
    font-size: 0.8rem;
    font-style: italic;
    color: #6b7280 !important;
    margin-top: 8px;
}

.wpi-table-spacer td {
    padding: 4px 0 !important;
    border: none !important;
    background-color: transparent !important;
}

.wpi-table-noi td {
    background-color: rgba(201, 168, 76, 0.1) !important;
    font-weight: 600;
}

tr.wpi-rent-increase td {
    background-color: rgba(40, 167, 69, 0.08) !important;
}

.wpi-change-positive {
    color: #28a745 !important;
    font-weight: 600;
}

.wpi-summary-table {
    width: 100%;
    border-collapse: collapse;
}

.wpi-summary-table td {
    padding: 10px 16px;
    border-bottom: 1px solid #e2e4e9 !important;
    color: #1a1a2e !important;
}

.wpi-summary-table td:first-child {
    font-weight: 600;
    color: #1a1f3d !important;
    width: 50%;
}


/* ==========================================================================
   FINANCIAL TABS
   ========================================================================== */

.wpi-financials {
    margin-top: 24px;
}

.wpi-financials__tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    border-bottom: 2px solid #e2e4e9;
    overflow-x: auto;
}

.wpi-financials__tab {
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #6b7280 !important;
    background-color: transparent !important;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.2s, border-color 0.2s;
}

.wpi-financials__tab:hover {
    color: #1a1f3d !important;
}

.wpi-financials__tab--active {
    color: #ffffff !important;
    background-color: #1a1f3d !important;
    border-radius: 6px 6px 0 0;
    border-bottom-color: #1a1f3d !important;
}

.wpi-financials__panel {
    display: none;
}

.wpi-financials__panel--active {
    display: block;
}


/* ==========================================================================
   CHARTS
   ========================================================================== */

.wpi-chart-container {
    position: relative;
    max-height: 400px;
    margin-bottom: 24px;
}

.wpi-chart-container canvas {
    max-height: 400px;
}

.wpi-chart-container--wide {
    max-height: 500px;
}

.wpi-chart-container--wide canvas {
    max-height: 500px;
}

.wpi-chart-table-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}


/* ==========================================================================
   PROFORMA
   ========================================================================== */

.wpi-proforma {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.wpi-proforma__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e2e4e9;
    font-size: 0.95rem;
    color: #1a1a2e !important;
}

.wpi-proforma__row--noi {
    background-color: rgba(201, 168, 76, 0.1) !important;
    padding: 10px 12px;
    border-radius: 6px;
    border-bottom: none;
    font-weight: 700;
}

.wpi-proforma__divider {
    grid-column: 1 / -1;
    height: 1px;
    background-color: #e2e4e9 !important;
    margin: 8px 0;
}

.wpi-proforma__offer {
    grid-column: 1 / -1;
    background-color: #1a1f3d !important;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
}

.wpi-proforma__offer-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.7) !important;
    margin-bottom: 8px;
}

.wpi-proforma__offer-price {
    font-size: 2.4rem;
    font-weight: 700;
    color: #c9a84c !important;
    margin-bottom: 8px;
}

.wpi-proforma__offer-details {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7) !important;
}


/* ==========================================================================
   MARKET (dark bg section)
   ========================================================================== */

.wpi-market-charts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.wpi-market-chart {
    background-color: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 10px;
    padding: 24px;
}

.wpi-market-chart h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff !important;
    margin-bottom: 16px;
}

.wpi-market-takeaways {
    background-color: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 10px;
    padding: 24px;
}

.wpi-market-takeaways h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #c9a84c !important;
    margin-bottom: 16px;
}

.wpi-market-takeaways ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wpi-market-takeaways li {
    color: rgba(255, 255, 255, 0.85) !important;
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    font-size: 0.95rem;
}

.wpi-market-takeaways li::before {
    content: "\2022";
    color: #c9a84c !important;
    position: absolute;
    left: 0;
    font-weight: bold;
}


/* ==========================================================================
   WPI SECTION (light bg — What Property Intelligence)
   ========================================================================== */

.wpi-wpi-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.wpi-wpi-intro {
    font-size: 1rem;
    line-height: 1.7;
    color: #1a1a2e !important;
}

.wpi-wpi-turnover {
    margin-top: 32px;
}

.wpi-wpi-turnover h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #c9a84c !important;
    margin-bottom: 12px;
}

.wpi-wpi-chart {
    padding: 0;
}

.wpi-wpi-chart h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1f3d !important;
    margin-bottom: 16px;
}


/* ==========================================================================
   MAP
   ========================================================================== */

.wpi-map-container {
    height: 500px;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
}

.wpi-map-info {
    padding: 8px;
    font-size: 0.9rem;
}

.wpi-map-info__address {
    font-weight: 600;
    color: #1a1a2e !important;
    margin-bottom: 4px;
}

.wpi-map-info__link {
    color: #c9a84c !important;
    text-decoration: none;
    font-weight: 500;
}

.wpi-map-info__link:hover {
    text-decoration: underline;
}


/* ==========================================================================
   PROPERTY CARDS (light bg section)
   ========================================================================== */

.wpi-properties-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.wpi-property-card {
    display: block;
    background-color: #ffffff !important;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.wpi-property-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.wpi-property-card__image {
    position: relative;
    overflow: hidden;
    background-color: #e2e4e9 !important;
    aspect-ratio: 4 / 3;
}

.wpi-property-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background-color: #e2e4e9 !important;
}

.wpi-property-card__photo-count {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7) !important;
    color: #ffffff !important;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 20px;
}

.wpi-property-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #c9a84c !important;
    color: #1a1f3d !important;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 4px;
}

.wpi-property-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #6b7280 !important;
    font-size: 0.9rem;
}

.wpi-property-card__content {
    padding: 20px;
}

.wpi-property-card__address {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1a1f3d !important;
    margin-bottom: 4px;
}

.wpi-property-card__location {
    font-size: 0.85rem;
    color: #6b7280 !important;
    margin-bottom: 14px;
}

.wpi-property-card__details {
    display: flex;
    gap: 20px;
    margin-bottom: 14px;
}

.wpi-property-card__detail-value {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1f3d !important;
}

.wpi-property-card__detail-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280 !important;
}

.wpi-property-card__income {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid #e2e4e9 !important;
}

.wpi-property-card__income-label {
    font-size: 0.8rem;
    color: #6b7280 !important;
}

.wpi-property-card__income-value {
    font-size: 1rem;
    font-weight: 700;
    color: #c9a84c !important;
}


/* ==========================================================================
   TEAM (dark bg section)
   ========================================================================== */

.wpi-team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.wpi-team-card {
    background-color: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 10px;
    padding: 24px;
    text-align: center;
}

.wpi-team-card__role {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #c9a84c !important;
    margin-bottom: 8px;
}

.wpi-team-card__name {
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff !important;
    margin-bottom: 12px;
}

.wpi-team-card__phone a,
.wpi-team-card__email a {
    display: block;
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none;
    font-size: 0.88rem;
    line-height: 1.8;
    transition: color 0.2s;
}

.wpi-team-card__phone a:hover,
.wpi-team-card__email a:hover {
    color: #c9a84c !important;
}

.wpi-track-record {
    margin-top: 40px;
}

.wpi-track-record h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff !important;
    margin-bottom: 20px;
}


/* ==========================================================================
   CONTACT FORM (dark bg section)
   ========================================================================== */

.wpi-contact-form-wrapper {
    max-width: 640px;
    margin: 0 auto;
}

.wpi-contact-form-wrapper h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #ffffff !important;
    margin-bottom: 24px;
    text-align: center;
}

.wpi-contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wpi-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.wpi-form-field {
    display: flex;
    flex-direction: column;
}

.wpi-form-field label {
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8) !important;
    margin-bottom: 6px;
}

.wpi-form-field input,
.wpi-form-field textarea {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 6px;
    padding: 12px 14px;
    font-size: 0.95rem;
    color: #ffffff !important;
    transition: border-color 0.2s;
}

.wpi-form-field input::placeholder,
.wpi-form-field textarea::placeholder {
    color: rgba(255, 255, 255, 0.35) !important;
}

.wpi-form-field input:focus,
.wpi-form-field textarea:focus {
    outline: none;
    border-color: #c9a84c !important;
}

.wpi-form-field textarea {
    min-height: 120px;
    resize: vertical;
}

.wpi-form-field--checkbox {
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.wpi-form-field--checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #c9a84c;
}

.wpi-form-field--checkbox label {
    margin-bottom: 0;
}

.wpi-form-status {
    text-align: center;
    padding: 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    display: none;
}

.wpi-form-status.success {
    display: block;
    background-color: rgba(40, 167, 69, 0.15) !important;
    color: #28a745 !important;
    border: 1px solid rgba(40, 167, 69, 0.3) !important;
}

.wpi-form-status.error {
    display: block;
    background-color: rgba(220, 53, 69, 0.15) !important;
    color: #dc3545 !important;
    border: 1px solid rgba(220, 53, 69, 0.3) !important;
}

.wpi-contact-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5) !important;
}


/* ==========================================================================
   DISCLAIMER
   ========================================================================== */

.wpi-disclaimer {
    background-color: #1a1f3d !important;
    padding: 40px 0;
    text-align: center;
}

.wpi-disclaimer p {
    font-size: 0.78rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.5) !important;
    max-width: 800px;
    margin: 0 auto;
}


/* ==========================================================================
   BUTTONS
   ========================================================================== */

.wpi-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
    line-height: 1;
}

.wpi-btn:hover {
    transform: translateY(-1px);
}

.wpi-btn--gold {
    background-color: #c9a84c !important;
    color: #1a1f3d !important;
    border-color: #c9a84c !important;
}

.wpi-btn--gold:hover {
    background-color: #b08f3a !important;
    border-color: #b08f3a !important;
}

.wpi-btn--outline {
    background-color: transparent !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

.wpi-btn--outline:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: #ffffff !important;
}

.wpi-btn--sm {
    padding: 8px 18px;
    font-size: 0.82rem;
}

.wpi-btn--full {
    width: 100%;
}


/* ==========================================================================
   LIGHTBOX (created by JS)
   ========================================================================== */

.wpi-lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background-color: rgba(0, 0, 0, 0.92) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.wpi-lightbox-overlay--open {
    opacity: 1;
    pointer-events: auto;
}

.wpi-lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: #ffffff !important;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    padding: 8px;
    line-height: 1;
}

.wpi-lightbox-close:hover {
    color: #c9a84c !important;
}

.wpi-lightbox-prev,
.wpi-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #ffffff !important;
    font-size: 2.5rem;
    cursor: pointer;
    padding: 16px;
    z-index: 10;
    transition: color 0.2s;
}

.wpi-lightbox-prev {
    left: 12px;
}

.wpi-lightbox-next {
    right: 12px;
}

.wpi-lightbox-prev:hover,
.wpi-lightbox-next:hover {
    color: #c9a84c !important;
}

.wpi-lightbox-image-wrap {
    max-width: 90vw;
    max-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wpi-lightbox-image {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 4px;
}

.wpi-lightbox-counter {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.85rem;
    margin-top: 12px;
}

.wpi-lightbox-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    overflow-x: auto;
    max-width: 90vw;
    padding: 4px 0;
}

.wpi-lightbox-thumb {
    width: 56px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.5;
    border: 2px solid transparent !important;
    transition: opacity 0.2s, border-color 0.2s;
    flex-shrink: 0;
}

.wpi-lightbox-thumb:hover {
    opacity: 0.8;
}

.wpi-lightbox-thumb--active {
    opacity: 1;
    border-color: #c9a84c !important;
}


/* ==========================================================================
   GALLERY (property detail)
   ========================================================================== */

.wpi-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.wpi-gallery__item {
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.wpi-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.wpi-gallery__item:hover img {
    transform: scale(1.05);
}


/* ==========================================================================
   PROPERTY DETAIL (page-wpi-property.php)
   ========================================================================== */

/* Breadcrumb */
.wpi-breadcrumb {
    background-color: #f5f6f8 !important;
    padding: 12px 0;
    font-size: 0.85rem;
}

.wpi-breadcrumb ol {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.wpi-breadcrumb li {
    color: #6b7280 !important;
}

.wpi-breadcrumb li + li::before {
    content: "/";
    margin-right: 8px;
    color: #6b7280 !important;
}

.wpi-breadcrumb a {
    color: #c9a84c !important;
    text-decoration: none;
    font-weight: 500;
}

.wpi-breadcrumb a:hover {
    text-decoration: underline;
}

/* Property Hero */
.wpi-property-hero__image {
    position: relative;
    height: 50vh;
    min-height: 350px;
    background-size: cover;
    background-position: center;
    background-color: #1a1f3d !important;
}

.wpi-property-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
}

.wpi-property-hero__content {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.wpi-property-hero__title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff !important;
    margin-bottom: 8px;
}

.wpi-property-hero__subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Property Overview Stats */
.wpi-property-overview {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    padding: 32px 0;
}

.wpi-property-stat {
    background-color: #ffffff !important;
    border-radius: 8px;
    padding: 20px 16px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.wpi-property-stat__value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1f3d !important;
    margin-bottom: 4px;
}

.wpi-property-stat__label {
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280 !important;
}

/* Property Description */
.wpi-property-description {
    font-size: 1rem;
    line-height: 1.8;
    color: #1a1a2e !important;
    max-width: 800px;
}

/* Property Features */
.wpi-property-features {
    margin-top: 24px;
}

.wpi-property-features h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1f3d !important;
    margin-bottom: 16px;
}

.wpi-property-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 2;
    column-gap: 32px;
}

.wpi-property-features li {
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    color: #1a1a2e !important;
    font-size: 0.95rem;
}

.wpi-property-features li::before {
    content: "\2022";
    color: #c9a84c !important;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Property Costs */
.wpi-property-costs {
    margin-top: 24px;
}

.wpi-property-costs h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1f3d !important;
    margin-bottom: 16px;
}

.wpi-property-costs__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.wpi-property-costs__item {
    background-color: #f5f6f8 !important;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.wpi-property-costs__item--total {
    background-color: #1a1f3d !important;
}

.wpi-property-costs__item--total .wpi-property-costs__label {
    color: rgba(255, 255, 255, 0.7) !important;
}

.wpi-property-costs__item--total .wpi-property-costs__value {
    color: #ffffff !important;
}

.wpi-property-costs__label {
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280 !important;
    margin-bottom: 4px;
}

.wpi-property-costs__value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1f3d !important;
}

/* Back Navigation */
.wpi-back-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    border-top: 1px solid #e2e4e9 !important;
}

.wpi-back-nav a {
    color: #c9a84c !important;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.wpi-back-nav a:hover {
    text-decoration: underline;
}

/* Property CTA */
.wpi-property-cta {
    background-color: #0d1117 !important;
    padding: 60px 0;
    text-align: center;
}

.wpi-property-cta h3 {
    color: #ffffff !important;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.wpi-property-cta p {
    color: rgba(255, 255, 255, 0.7) !important;
    margin-bottom: 24px;
}


/* ==========================================================================
   ANIMATION
   IMPORTANT: Do NOT set opacity:0 here — that was the original display bug.
   Only set transition properties so JS can animate when scrolling.
   ========================================================================== */

.wpi-animate {
    transition: opacity 0.6s ease, transform 0.6s ease;
}


/* ==========================================================================
   RESPONSIVE — 1024px
   ========================================================================== */

@media (max-width: 1024px) {
    .wpi-hero__stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .wpi-metrics {
        grid-template-columns: repeat(2, 1fr);
    }

    .wpi-highlights {
        grid-template-columns: repeat(2, 1fr);
    }

    .wpi-team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .wpi-property-overview {
        grid-template-columns: repeat(3, 1fr);
    }

    .wpi-property-costs__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .wpi-chart-table-split {
        grid-template-columns: 1fr;
    }

    .wpi-proforma {
        grid-template-columns: 1fr;
    }

    .wpi-market-charts {
        grid-template-columns: 1fr;
    }

    .wpi-wpi-split {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================================
   RESPONSIVE — 768px
   ========================================================================== */

@media (max-width: 768px) {
    .wpi-section {
        padding: 56px 0;
    }

    .wpi-hero {
        min-height: 70vh;
        padding: 48px 0;
    }

    .wpi-hero__title {
        font-size: 2.2rem;
    }

    .wpi-hero__stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .wpi-hero__stat-value {
        font-size: 1.3rem;
    }

    .wpi-hero__cta {
        flex-direction: column;
    }

    .wpi-hero__cta .wpi-btn {
        width: 100%;
    }

    .wpi-hero__logos {
        gap: 20px;
    }

    .wpi-hero__logo-de {
        height: 38px;
    }

    .wpi-hero__logo-bmn {
        height: 34px;
    }

    .wpi-section__title {
        font-size: 1.6rem;
    }

    .wpi-metrics {
        grid-template-columns: 1fr;
    }

    .wpi-highlights {
        grid-template-columns: 1fr;
    }

    .wpi-properties-grid {
        grid-template-columns: 1fr;
    }

    .wpi-team-grid {
        grid-template-columns: 1fr 1fr;
    }

    .wpi-form-row {
        grid-template-columns: 1fr;
    }

    .wpi-gallery {
        grid-template-columns: repeat(3, 1fr);
    }

    .wpi-property-overview {
        grid-template-columns: repeat(2, 1fr);
    }

    .wpi-property-costs__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .wpi-property-features ul {
        columns: 1;
    }

    .wpi-property-hero__title {
        font-size: 1.7rem;
    }

    .wpi-back-nav {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .wpi-proforma__offer-price {
        font-size: 1.8rem;
    }

    .wpi-lightbox-prev,
    .wpi-lightbox-next {
        font-size: 1.8rem;
        padding: 10px;
    }

    .wpi-lightbox-prev {
        left: 4px;
    }

    .wpi-lightbox-next {
        right: 4px;
    }

    /* Stack all multi-column grids to single column on mobile */
    .wpi-resources-grid,
    .wpi-area-grid-wpi,
    .wpi-area-grid-park {
        grid-template-columns: 1fr !important;
    }

    /* Fix wide items spanning on mobile */
    .wpi-area-grid-wpi > *,
    .wpi-area-grid-park > * {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }

    /* Prevent any element from exceeding viewport width */
    .wpi-portfolio-page img,
    .wpi-property-page img {
        max-width: 100% !important;
        height: auto !important;
    }

    /* Table wrapper must scroll horizontally, not overflow */
    .wpi-table-wrapper {
        max-width: 100vw;
        margin-left: -16px;
        margin-right: -16px;
        padding-left: 16px;
        padding-right: 16px;
    }

    /* Market charts single column */
    .wpi-market-charts {
        grid-template-columns: 1fr !important;
    }

    /* WPI split single column */
    .wpi-wpi-split {
        grid-template-columns: 1fr !important;
    }

    /* Chart/table split single column */
    .wpi-chart-table-split {
        grid-template-columns: 1fr !important;
    }

    /* Proforma single column */
    .wpi-proforma {
        grid-template-columns: 1fr !important;
    }

    /* Nav horizontal scroll */
    .wpi-nav__inner {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .wpi-nav__link {
        white-space: nowrap;
        padding: 12px 14px !important;
        font-size: 11px !important;
    }
}


/* ==========================================================================
   RESPONSIVE — 480px
   ========================================================================== */

@media (max-width: 480px) {
    .wpi-container {
        padding: 0 16px;
    }

    .wpi-section {
        padding: 40px 0;
    }

    .wpi-hero {
        min-height: 60vh;
        padding: 36px 0;
    }

    .wpi-hero__title {
        font-size: 1.7rem;
    }

    .wpi-hero__location {
        font-size: 1rem;
    }

    .wpi-hero__stats {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .wpi-hero__stat {
        padding: 14px 10px;
    }

    .wpi-hero__stat-value {
        font-size: 1.1rem;
    }

    .wpi-hero__stat-label {
        font-size: 0.65rem;
    }

    .wpi-hero__logos {
        flex-direction: column;
        gap: 12px;
    }

    .wpi-section__title {
        font-size: 1.4rem;
    }

    .wpi-metric__value {
        font-size: 1.6rem;
    }

    .wpi-team-grid {
        grid-template-columns: 1fr;
    }

    .wpi-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .wpi-property-overview {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .wpi-property-costs__grid {
        grid-template-columns: 1fr;
    }

    .wpi-property-hero__image {
        height: 35vh;
        min-height: 250px;
    }

    .wpi-property-hero__title {
        font-size: 1.4rem;
    }

    .wpi-property-hero__content {
        bottom: 24px;
    }

    .wpi-nav__link {
        padding: 12px 12px;
        font-size: 0.78rem;
    }

    .wpi-lightbox-thumbs {
        gap: 4px;
    }

    .wpi-lightbox-thumb {
        width: 44px;
        height: 32px;
    }

    table.wpi-table th,
    table.wpi-table td {
        padding: 8px 10px;
        font-size: 0.8rem;
    }

    .wpi-btn {
        padding: 12px 20px;
        font-size: 0.85rem;
    }
}


/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    .wpi-nav,
    .wpi-hero__cta,
    .wpi-contact-form-wrapper,
    .wpi-lightbox-overlay,
    .wpi-back-nav,
    .wpi-property-cta {
        display: none !important;
    }

    .wpi-hero {
        min-height: auto;
        padding: 32px 0;
        background-color: #ffffff !important;
        color: #1a1a2e !important;
    }

    .wpi-hero__overlay {
        display: none;
    }

    .wpi-hero__title {
        color: #1a1a2e !important;
        font-size: 1.8rem;
    }

    .wpi-hero__offering {
        color: #6b7280 !important;
    }

    .wpi-hero__location {
        color: #6b7280 !important;
    }

    .wpi-hero__stat {
        border: 1px solid #e2e4e9 !important;
    }

    .wpi-hero__confidential {
        color: #6b7280 !important;
    }

    .wpi-section--dark {
        background-color: #ffffff !important;
        color: #1a1a2e !important;
    }

    .wpi-section--dark .wpi-section__title,
    .wpi-section__title--light {
        color: #1a1a2e !important;
    }

    .wpi-section__subtitle--light {
        color: #6b7280 !important;
    }

    .wpi-highlight {
        background-color: #f5f6f8 !important;
        border-color: #e2e4e9 !important;
    }

    .wpi-highlight__title {
        color: #1a1a2e !important;
    }

    .wpi-highlight__text {
        color: #1a1a2e !important;
    }

    .wpi-team-card {
        background-color: #f5f6f8 !important;
        border-color: #e2e4e9 !important;
    }

    .wpi-team-card__name {
        color: #1a1a2e !important;
    }

    .wpi-team-card__phone a,
    .wpi-team-card__email a {
        color: #1a1a2e !important;
    }

    .wpi-team-card__role {
        color: #6b7280 !important;
    }

    .wpi-market-chart,
    .wpi-market-takeaways {
        background-color: #f5f6f8 !important;
        border-color: #e2e4e9 !important;
    }

    .wpi-market-chart h3 {
        color: #1a1a2e !important;
    }

    .wpi-market-takeaways h3 {
        color: #1a1a2e !important;
    }

    .wpi-market-takeaways li {
        color: #1a1a2e !important;
    }

    .wpi-disclaimer {
        background-color: #f5f6f8 !important;
    }

    .wpi-disclaimer p {
        color: #6b7280 !important;
    }

    .wpi-proforma__offer {
        background-color: #f5f6f8 !important;
    }

    .wpi-proforma__offer-label {
        color: #6b7280 !important;
    }

    .wpi-proforma__offer-price {
        color: #1a1f3d !important;
    }

    .wpi-proforma__offer-details {
        color: #6b7280 !important;
    }

    table.wpi-table.wpi-table--dark td {
        color: #1a1a2e !important;
        border-bottom-color: #e2e4e9 !important;
    }

    table.wpi-table.wpi-table--dark tbody tr:nth-child(even) {
        background-color: #f9fafb !important;
    }

    .wpi-property-card {
        box-shadow: none;
        border: 1px solid #e2e4e9 !important;
        break-inside: avoid;
    }

    .wpi-property-hero__image {
        height: auto;
        min-height: 200px;
    }

    .wpi-section {
        padding: 32px 0;
    }

    .wpi-map-container {
        height: 300px;
    }

    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}
