/* Property North Property Proof Map
   Scoped to .pnppm-root so it does not bleed into Elementor/global site styles.
*/

.pnppm-root,
.pnppm-root * {
    box-sizing: border-box;
}

.pnppm-root {
    --pnppm-brand: #14bfc3;
    --pnppm-dark: #061f2f;
    --pnppm-cream: #f8fbfc;
    --pnppm-white: #ffffff;
    --pnppm-ink: #061f2f;
    --pnppm-muted: rgba(255, 255, 255, 0.74);
    --pnppm-height: 720px;
    --pnppm-map-opacity: 1;
    --pnppm-overlay-opacity: 0;

    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 100%;
    min-height: var(--pnppm-height);
    font-family: inherit;
    color: var(--pnppm-white);
    background: var(--pnppm-dark);
}

.pnppm-mode-background {
    min-height: var(--pnppm-height);
    height: var(--pnppm-height);
    background: transparent;
}

.pnppm-map-shell {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: transparent;
}

.pnppm-map {
    width: 100%;
    height: 100%;
    min-height: inherit;
    opacity: var(--pnppm-map-opacity);
}

.pnppm-root::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: var(--pnppm-overlay-opacity);
    background: transparent;
}

.pnppm-overlay-none::after {
    display: none !important;
}

/* Built-in overlay versions. These are optional and controlled by shortcode/settings. */
.pnppm-overlay-soft::after {
    background:
        linear-gradient(90deg, rgba(6, 31, 47, 0.34) 0%, rgba(6, 31, 47, 0.18) 48%, rgba(6, 31, 47, 0.08) 100%),
        radial-gradient(circle at 16% 28%, rgba(20, 191, 195, 0.10), transparent 38%);
}

.pnppm-overlay-left-fade::after {
    background:
        linear-gradient(90deg, rgba(6, 31, 47, 0.74) 0%, rgba(6, 31, 47, 0.50) 33%, rgba(6, 31, 47, 0.14) 64%, rgba(6, 31, 47, 0.02) 100%);
}

.pnppm-overlay-center-spotlight::after {
    background:
        radial-gradient(circle at 52% 42%, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.06) 26%, rgba(6, 31, 47, 0.48) 100%),
        linear-gradient(90deg, rgba(6, 31, 47, 0.50), rgba(6, 31, 47, 0.08), rgba(6, 31, 47, 0.46));
}

.pnppm-overlay-split::after {
    background:
        linear-gradient(90deg, rgba(6, 31, 47, 0.74) 0%, rgba(6, 31, 47, 0.22) 28%, rgba(6, 31, 47, 0.04) 55%, rgba(6, 31, 47, 0.48) 100%);
}

.pnppm-overlay-premium::after {
    background:
        linear-gradient(90deg, rgba(6, 31, 47, 0.62) 0%, rgba(6, 31, 47, 0.22) 40%, rgba(6, 31, 47, 0.04) 64%, rgba(6, 31, 47, 0.38) 100%),
        radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.12), transparent 34%),
        radial-gradient(circle at 25% 80%, rgba(20, 191, 195, 0.16), transparent 34%);
}

.pnppm-overlay-dark::after {
    background:
        linear-gradient(90deg, rgba(6, 31, 47, 0.86) 0%, rgba(6, 31, 47, 0.64) 42%, rgba(6, 31, 47, 0.52) 100%),
        radial-gradient(circle at 24% 22%, rgba(20, 191, 195, 0.18), transparent 36%);
}

/* Leaflet override layer */
.pnppm-root .leaflet-container {
    width: 100%;
    height: 100%;
    font-family: inherit;
    background: #092538;
}

.pnppm-mode-background .leaflet-container {
    background: transparent !important;
}

.pnppm-root .leaflet-tile {
    transition: opacity 0.18s ease;
    will-change: opacity;
}

/* Map style versions */
.pnppm-style-clean .leaflet-tile {
    filter: none;
}

.pnppm-style-proof .leaflet-tile {
    filter: saturate(0.94) contrast(1.02) brightness(1.02);
}

.pnppm-style-bright .leaflet-tile {
    filter: saturate(1.08) contrast(0.98) brightness(1.12);
}

.pnppm-style-teal .leaflet-tile {
    filter: grayscale(0.28) sepia(0.10) saturate(0.92) hue-rotate(124deg) brightness(0.96) contrast(0.96);
}

.pnppm-style-mono .leaflet-tile {
    filter: grayscale(1) contrast(0.92) brightness(1.04);
}

.pnppm-style-night .leaflet-tile {
    filter: invert(0.86) hue-rotate(165deg) saturate(0.62) brightness(0.72) contrast(1.06);
}

.pnppm-no-tiles .leaflet-container {
    background:
        radial-gradient(circle at 55% 40%, rgba(20, 191, 195, 0.13), transparent 30%),
        linear-gradient(135deg, #061f2f 0%, #0b354a 100%) !important;
}

.pnppm-root .leaflet-control-attribution {
    opacity: 0.38;
    font-size: 10px;
}

/* Lightweight canvas pin layer */
.pnppm-canvas-pins {
    z-index: 420;
}

/* Content layer */
.pnppm-content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    min-height: var(--pnppm-height);
    margin: 0 auto;
    padding: clamp(72px, 7vw, 120px) clamp(18px, 4vw, 32px);
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.72fr);
    align-items: center;
    gap: clamp(28px, 6vw, 80px);
}

.pnppm-copy {
    max-width: 740px;
}

.pnppm-kicker,
.pnppm-card-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    color: var(--pnppm-brand);
    font-size: 12px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.pnppm-kicker::before,
.pnppm-card-kicker::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--pnppm-brand);
    box-shadow: 0 0 0 7px rgba(20, 191, 195, 0.16);
}

.pnppm-copy h1 {
    margin: 0;
    max-width: 760px;
    color: var(--pnppm-white);
    font-size: clamp(42px, 6vw, 82px);
    line-height: 0.95;
    letter-spacing: -0.055em;
    font-weight: 900;
}

.pnppm-copy p {
    margin: 24px 0 0;
    max-width: 650px;
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(16px, 1.35vw, 20px);
    line-height: 1.58;
    font-weight: 500;
}

.pnppm-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.pnppm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 14px 20px;
    border-radius: 999px;
    text-decoration: none !important;
    font-size: 15px;
    line-height: 1;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.pnppm-btn:hover {
    transform: translateY(-2px);
}

.pnppm-btn-primary {
    color: #06272d !important;
    background: var(--pnppm-brand);
    box-shadow: 0 18px 34px rgba(20, 191, 195, 0.26);
}

.pnppm-btn-secondary {
    color: var(--pnppm-white) !important;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
}

.pnppm-proof-card,
.pnppm-floating-card {
    width: min(100%, 420px);
    margin-left: auto;
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.13);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(22px);
}

.pnppm-stat-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.pnppm-stat-row > div {
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.pnppm-stat-row strong,
.pnppm-floating-card strong {
    display: block;
    color: var(--pnppm-white);
    font-size: clamp(36px, 4vw, 58px);
    line-height: 0.9;
    letter-spacing: -0.05em;
    font-weight: 950;
}

.pnppm-stat-row span,
.pnppm-floating-card span {
    display: block;
    margin-top: 9px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    line-height: 1.25;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.pnppm-status-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.pnppm-status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 9px 12px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 12px;
    line-height: 1;
    font-weight: 850;
}

.pnppm-admin-notice {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.86);
    color: #061f2f;
    font-size: 13px;
    line-height: 1.4;
}

.pnppm-floating-card {
    position: absolute;
    right: clamp(18px, 4vw, 44px);
    bottom: clamp(18px, 4vw, 44px);
    z-index: 2;
    width: auto;
    min-width: 230px;
}

/* Popups */
.pnppm-root .leaflet-popup-content-wrapper,
.pnppm-root .leaflet-popup-tip {
    border-radius: 16px;
    background: #ffffff;
    color: #061f2f;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.pnppm-root .leaflet-popup-content {
    margin: 0;
    width: 250px !important;
}

.pnppm-popup {
    overflow: hidden;
    border-radius: 16px;
}

.pnppm-popup img {
    display: block;
    width: 100%;
    height: 122px;
    object-fit: cover;
}

.pnppm-popup-body {
    padding: 14px;
}

.pnppm-popup-status {
    display: inline-flex;
    margin-bottom: 8px;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(20, 191, 195, 0.14);
    color: #006e76;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pnppm-popup-title {
    margin: 0;
    color: #061f2f;
    font-size: 16px;
    line-height: 1.18;
    font-weight: 900;
}

.pnppm-popup-meta,
.pnppm-popup-result {
    margin: 6px 0 0;
    color: #41515b;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 650;
}

.pnppm-popup a {
    display: inline-flex;
    margin-top: 10px;
    color: #008f96;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

/* DOM pin versions */
.pnppm-div-icon,
.pnppm-div-icon-sign,
.pnppm-div-icon-dot {
    background: transparent !important;
    border: 0 !important;
}

.pnppm-sold-sign {
    position: relative;
    width: 54px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: var(--pnppm-brand);
    border: 2px solid rgba(255, 255, 255, 0.92);
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.30);
    animation: pnppm-sign-rise 0.42s ease both;
}

.pnppm-sold-sign::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -9px;
    width: 10px;
    height: 10px;
    background: rgba(6, 31, 47, 0.88);
    transform: translateX(-50%) rotate(45deg);
    z-index: -1;
}

.pnppm-sold-sign span {
    display: block;
    color: inherit;
    font-size: 9px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: 0.08em;
}

.pnppm-pin-mini-sign {
    width: 44px;
    height: 18px;
    border-radius: 6px;
}

.pnppm-pin-mini-sign span {
    font-size: 8px;
}

.pnppm-pin-dot {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: var(--pnppm-brand);
    border: 2px solid #ffffff;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);
    animation: pnppm-dot-rise 0.36s ease both;
}

.pnppm-pin-classic {
    position: relative;
    width: 34px;
    height: 34px;
    border-radius: 999px 999px 999px 4px;
    transform: rotate(-45deg);
    background: var(--pnppm-brand);
    border: 3px solid #ffffff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
    animation: pnppm-pin-rise 0.5s ease both;
}

.pnppm-pin-classic::after {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 999px;
    background: #ffffff;
}

.pnppm-sold-sign.status-sold,
.pnppm-pin-dot.status-sold,
.pnppm-pin-classic.status-sold {
    background: #14bfc3;
}

.pnppm-sold-sign.status-for-sale,
.pnppm-pin-dot.status-for-sale,
.pnppm-pin-classic.status-for-sale {
    background: #4caf2f;
}

.pnppm-sold-sign.status-under-offer,
.pnppm-pin-dot.status-under-offer,
.pnppm-pin-classic.status-under-offer {
    background: #f5af2b;
}

.pnppm-sold-sign.status-leased,
.pnppm-sold-sign.status-managed,
.pnppm-pin-dot.status-leased,
.pnppm-pin-dot.status-managed,
.pnppm-pin-classic.status-leased,
.pnppm-pin-classic.status-managed {
    background: #7d8dff;
}

.pnppm-sold-sign.status-appraised,
.pnppm-pin-dot.status-appraised,
.pnppm-pin-classic.status-appraised {
    background: #ffffff;
    color: #061f2f;
    border-color: var(--pnppm-brand);
}

@keyframes pnppm-sign-rise {
    from { opacity: 0; transform: translateY(8px) scale(0.88); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes pnppm-dot-rise {
    from { opacity: 0; transform: translateY(7px) scale(0.72); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes pnppm-pin-rise {
    from { opacity: 0; transform: translateY(10px) rotate(-45deg) scale(0.78); }
    to { opacity: 1; transform: translateY(0) rotate(-45deg) scale(1); }
}

@media (max-width: 1024px) {
    .pnppm-content {
        grid-template-columns: 1fr;
        align-items: end;
        padding-top: 80px;
        padding-bottom: 64px;
    }

    .pnppm-proof-card {
        margin-left: 0;
        width: min(100%, 520px);
    }

    .pnppm-overlay-soft::after,
    .pnppm-overlay-left-fade::after,
    .pnppm-overlay-premium::after,
    .pnppm-overlay-dark::after {
        background:
            linear-gradient(180deg, rgba(6, 31, 47, 0.74) 0%, rgba(6, 31, 47, 0.50) 50%, rgba(6, 31, 47, 0.72) 100%),
            radial-gradient(circle at 18% 12%, rgba(20, 191, 195, 0.16), transparent 32%);
    }
}

@media (max-width: 767px) {
    .pnppm-root {
        min-height: max(620px, var(--pnppm-height));
    }

    .pnppm-content {
        min-height: max(620px, var(--pnppm-height));
        padding: 64px 18px 32px;
        gap: 26px;
    }

    .pnppm-copy h1 {
        font-size: clamp(38px, 12vw, 54px);
    }

    .pnppm-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .pnppm-btn {
        width: 100%;
    }

    .pnppm-proof-card {
        padding: 18px;
        border-radius: 22px;
    }

    .pnppm-stat-row {
        gap: 10px;
    }

    .pnppm-stat-row > div {
        padding: 14px;
    }

    .pnppm-floating-card {
        left: 18px;
        right: 18px;
        bottom: 18px;
        width: auto;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .pnppm-sold-sign,
    .pnppm-pin-dot,
    .pnppm-pin-classic,
    .pnppm-btn {
        animation: none !important;
        transition: none !important;
    }
}
