/* =============================================================
   PIS Spaces Preview - [pis_spaces_preview]
   Rebuilt from Figma CSS export (Frame 2147226249)
   ============================================================= */

/* ------------------------------------------------------------------
   0. CSS VARIABLES - extracted from Figma tokens
   ------------------------------------------------------------------ */
.pis-spaces-preview {
    --pis-green: #22C55E;
    --pis-green-brand: #20B35D;
    --pis-green-dark: #004C40;
    --pis-red: #FF0202;
    --pis-red-bg: rgba(255, 2, 2, 0.1);
    --pis-slate-50: #F8FAFC;
    --pis-slate-100: #F1F5F9;
    --pis-slate-200: #E2E8F0;
    --pis-slate-300: #CBD5E1;
    --pis-slate-400: #94A3B8;
    --pis-slate-500: #64748B;
    --pis-slate-700: #475569;
    --pis-slate-900: #0F172A;
    --pis-gray-100: #EBEBEB;
    --pis-gray-200: #E5E7EB;
    --pis-gray-500: #6B7280;
    --pis-gray-700: #7C7C7C;
    --pis-gray-900: #111827;
    --pis-bg: #F4F4F4;
    --pis-font-heading: 'Montserrat', 'Poppins', sans-serif;
    --pis-font-body: 'Poppins', sans-serif;
    --pis-font-small: 'Poppins', sans-serif;
}

/* ------------------------------------------------------------------
   1. WRAPPER
   ------------------------------------------------------------------ */
.pis-spaces-preview {
    font-family: var(--pis-font-body);
    /* background: var(--pis-bg); */
    padding: 81.5px 20px;
    max-width: 1600px;
    margin: 0 auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 43.47px;
}

.pis-spaces-preview *,
.pis-spaces-preview *::before,
.pis-spaces-preview *::after {
    box-sizing: border-box;
}

/* ------------------------------------------------------------------
   2. TAB BAR
   ------------------------------------------------------------------ */
.pis-tabs-desc {
    font-family: var(--pis-font-heading);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--pis-gray-700);
    text-align: left;
    margin: 0 0 -28px 0;
    width: 100%;
    max-width: 1163px;
}

.pis-tabs {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
    max-width: 1163px;
}

.pis-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 24px 24px;
    gap: 0;
    background: #FFFFFF;
    border: 1px solid var(--pis-gray-200);
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    font-family: var(--pis-font-heading);
    min-height: 143px;
    isolation: isolate;
}

.pis-tab:hover {
    border-color: var(--pis-slate-300);
}

/* TAB locked hover — subtle pink like locked cards */
.pis-spaces-preview[data-unlocked="false"] .pis-tab:not(.active):hover {
    background: var(--pis-red-bg);
    border-color: var(--pis-red);
}

/* TAB locked active — same subtle pink */
.pis-spaces-preview[data-unlocked="false"] .pis-tab.active {
    background: var(--pis-red-bg);
    border: 1px solid var(--pis-red);
}
.pis-spaces-preview[data-unlocked="false"] .pis-tab.active .pis-tab-icon {
    color: var(--pis-red);
}
.pis-spaces-preview[data-unlocked="false"] .pis-tab.active .pis-tab-icon img {
    filter: brightness(0) saturate(100%) invert(12%) sepia(97%) saturate(7440%) hue-rotate(2deg) brightness(104%) contrast(117%);
}
.pis-spaces-preview[data-unlocked="false"] .pis-tab.active::after {
    background: var(--pis-red);
}

.pis-tab.active {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid var(--pis-green);
}

/* TAB unlocked hover — green tint like unlocked active */
.pis-spaces-preview[data-unlocked="true"] .pis-tab:not(.active):hover {
    background: rgba(34, 197, 94, 0.1);
    border-color: var(--pis-green);
}

/* Green dot indicator - top right */
.pis-tab.active::after {
    content: '';
    position: absolute;
    top: 14px;
    right: 14px;
    width: 8px;
    height: 8px;
    background: var(--pis-green);
    border-radius: 9999px;
    z-index: 3;
}

.pis-tab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: var(--pis-gray-500);
}

.pis-tab-icon svg {
    width: 28px;
    height: 26px;
}

.pis-tab-icon img {
    width: 28px;
    height: 26px;
    object-fit: contain;
}

.pis-tab.active .pis-tab-icon {
    color: var(--pis-green);
}

.pis-tab.active .pis-tab-icon img {
    filter: brightness(0) saturate(100%) invert(58%) sepia(65%) saturate(520%) hue-rotate(95deg) brightness(95%) contrast(92%);
}

.pis-tab-label {
    font-family: var(--pis-font-heading);
    font-weight: 700;
    font-size: 18px;
    line-height: 28px;
    text-align: center;
    color: var(--pis-gray-900);
}

.pis-tab-subtitle {
    font-family: var(--pis-font-heading);
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    color: var(--pis-gray-500);
    margin-top: 4px;
}

/* ------------------------------------------------------------------
   3. TAB CONTENT / PANEL
   ------------------------------------------------------------------ */
.pis-tab-content {
    display: none;
    width: 100%;
    max-width: 1163px;
}

.pis-tab-content.active {
    display: block;
}

.pis-panel {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 43.47px;
    position: relative;
    padding-left: calc(347.73px + 43.47px);
}

/* ------------------------------------------------------------------
   4. SIDEBAR
   ------------------------------------------------------------------ */
.pis-sidebar {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 347.73px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 28.98px;
    overflow: hidden;
}

.pis-sidebar-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 7px;
    width: 100%;
}

.pis-sidebar-header span {
    font-family: var(--pis-font-body);
    font-weight: 700;
    font-size: 12.68px;
    line-height: 18px;
    letter-spacing: 1.27px;
    text-transform: uppercase;
    color: var(--pis-gray-700);
    white-space: nowrap;
}

.pis-sidebar-header hr {
    flex: 1;
    border: none;
    height: 1px;
    background: var(--pis-slate-200);
    margin: 0;
}

/* ------------------------------------------------------------------
   5. SPACE CARDS
   ------------------------------------------------------------------ */
.pis-space-list {
    display: flex;
    flex-direction: column;
    gap: 14.49px;
    width: 100%;
    padding-right: 4px;
}

/* Subtle scrollbar for space list */
.pis-space-list::-webkit-scrollbar {
    width: 4px;
}
.pis-space-list::-webkit-scrollbar-track {
    background: transparent;
}
.pis-space-list::-webkit-scrollbar-thumb {
    background: var(--pis-slate-300);
    border-radius: 4px;
}

/* Keep form pinned at bottom of sidebar */
.pis-sidebar .pis-access-form {
    flex-shrink: 0;
    margin-top: auto;
}

.pis-space-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 10.87px;
    gap: 14.49px;
    background: #FFFFFF;
    border: 1px solid var(--pis-gray-100);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0px 0.91px 1.81px rgba(0, 0, 0, 0.05);
}

.pis-space-card:hover {
    border-color: var(--pis-slate-300);
}

/* LOCKED + Hover */
.pis-space-card.locked:hover {
    background: var(--pis-red-bg);
    border: 1px solid var(--pis-red);
    box-shadow: 0px 0.91px 1.81px rgba(0, 0, 0, 0.05);
}

/* LOCKED + Active */
.pis-space-card.active.locked {
    background: var(--pis-red-bg);
    border: 1px solid var(--pis-red);
    box-shadow: 0px 0.91px 1.81px rgba(0, 0, 0, 0.05);
}

/* UNLOCKED + Active */
.pis-space-card.active.unlocked {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid var(--pis-green);
    box-shadow: 0px 0.91px 1.81px rgba(0, 0, 0, 0.05);
}

/* UNLOCKED + Hover */
.pis-space-card.unlocked:hover {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid var(--pis-green);
    box-shadow: 0px 0.91px 1.81px rgba(0, 0, 0, 0.05);
}

/* Thumbnail */
.pis-thumb-wrap {
    position: relative;
    width: 72px;
    height: 72px;
    min-width: 72px;
    min-height: 72px;
    flex-shrink: 0;
    border: 1px solid var(--pis-slate-100);
    border-radius: 7px;
    overflow: hidden;
}

.pis-space-thumb {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center;
    display: block;
    min-width: 100%;
    min-height: 100%;
}

/* Locked sidebar thumbnails: soft blur teases the real room; hover/active clarifies (more clicks) */
.pis-space-card.locked .pis-space-thumb {
    transition: filter 0.35s ease, transform 0.35s ease;
    filter: blur(2px) saturate(1.12);
    transform: scale(1.03);
}

.pis-space-card.locked:hover .pis-space-thumb,
.pis-space-card.active.locked .pis-space-thumb {
    filter: blur(0.5px) saturate(1.08) brightness(1.04);
    transform: scale(1);
}

.pis-space-card.unlocked .pis-space-thumb {
    filter: none;
    transform: none;
}
.pis-space-card[data-index="1"] .pis-space-thumb[alt="Vision"]{
    object-position: 62% center !important;
}


/* Dark overlay on thumbnail when locked */
.pis-space-card.locked .pis-thumb-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
}

/* First card (active locked) gets teal overlay */
.pis-space-card.active.locked .pis-thumb-wrap::after,
.pis-space-card.locked:hover .pis-thumb-wrap::after {
    background: rgba(0, 76, 64, 0.3);
}

/* Lock badge on thumbnail */
.pis-lock-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    color: #fff;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pis-lock-badge svg {
    width: 9px;
    height: 11px;
}

/* Hide lock badge when unlocked */
.pis-space-card.unlocked .pis-lock-badge {
    display: none;
}

/* Remove dark overlay when unlocked */
.pis-space-card.unlocked .pis-thumb-wrap::after {
    display: none;
}

/* Space info text */
.pis-space-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    min-width: 0;
    flex: 1;
    height: 72px;
}

.pis-space-name {
    font-family: var(--pis-font-body);
    font-weight: 700;
    font-size: 12.68px;
    line-height: 18px;
    color: var(--pis-slate-900);
    text-transform: capitalize;
}

.pis-space-subtitle {
    font-family: var(--pis-font-body);
    font-weight: 400;
    font-size: 10.87px;
    line-height: 14px;
    color: var(--pis-slate-500);
}

/* Status badge */
.pis-space-status {
    display: inline-flex;
    align-items: center;
    font-family: var(--pis-font-body);
    font-weight: 700;
    font-size: 9.06px;
    line-height: 14px;
    padding: 1.81px 5.43px;
    border-radius: 4px;
    margin-top: 3.62px;
    width: fit-content;
}

.pis-space-status.locked {
    background: rgba(0, 76, 64, 0.1);
    color: var(--pis-green-dark);
}

.pis-space-status.unlocked {
    background: rgba(34, 197, 94, 0.15);
    color: var(--pis-green);
}

/* ------------------------------------------------------------------
   6. ACCESS FORM (Email gate)
   ------------------------------------------------------------------ */
.pis-access-form {
    background: var(--pis-green-brand);
    border-radius: 16px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    width: 100%;
    position: relative;
    isolation: isolate;
    box-shadow: 0px 20px 25px -5px rgba(0, 0, 0, 0.1),
                0px 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.pis-access-form h4 {
    font-family: var(--pis-font-body);
    font-weight: 700;
    font-size: 20px;
    line-height: 28px;
    color: #FFFFFF;
    margin: 0;
}

.pis-access-form > p {
    font-family: var(--pis-font-body);
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.pis-email-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    margin-top: 16px;
    margin-bottom: 16px;
}

.pis-email-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--pis-green-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 1;
}

.pis-email-icon svg {
    width: 20px;
    height: 16px;
}

input.pis-email-input {
    width: 100%;
    padding: 13px 16px 14px 48px !important;
    font-family: var(--pis-font-body);
    font-weight: 400;
    font-size: 14px;
    line-height: 21px;
    border: none;
    border-radius: 8px;
    background: #FFFFFF;
    color: var(--pis-gray-900);
    outline: none;
}

.pis-email-input::placeholder {
    color: var(--pis-gray-500);
}

.pis-email-input:focus {
    box-shadow: 0 0 0 2px var(--pis-green);
}

/* Multi-field unlock: names, email, phone (required) */
.pis-access-fields {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
    margin-top: 4px;
}

.pis-field-row--split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
}

@media (max-width: 380px) {
    .pis-field-row--split {
        grid-template-columns: 1fr;
    }
}

.pis-field {
    width: 100%;
}

.pis-field-label {
    display: block;
    font-family: var(--pis-font-small);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 6px;
    text-align: left;
}

.pis-req {
    text-decoration: none;
    font-weight: 700;
    color: #fff;
    border: none;
}

.pis-optional-hint {
    font-weight: 400;
    opacity: 0.75;
}

.pis-access-fields .pis-email-input-wrap {
    margin-top: 0;
    margin-bottom: 0;
}

input.pis-text-input {
    width: 100%;
    padding: 13px 16px 14px 16px !important;
    font-family: var(--pis-font-body);
    font-weight: 400;
    font-size: 14px;
    line-height: 21px;
    border: none;
    border-radius: 8px;
    background: #ffffff;
    color: var(--pis-gray-900);
    outline: none;
}

input.pis-text-input::placeholder {
    color: var(--pis-gray-500);
}

input.pis-text-input:focus {
    box-shadow: 0 0 0 2px var(--pis-green);
}

.pis-submit-btn {
    width: 100%;
    padding: 12px 0;
    font-family: var(--pis-font-body);
    font-weight: 700;
    font-size: 14px;
    line-height: 20px;
    color: #FFFFFF;
    background: #000000;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
}

.pis-submit-btn:hover {
    background: #1a1a1a;
}

.pis-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.pis-form-msg {
    font-family: var(--pis-font-body);
    font-size: 12px;
    color: #fff;
    text-align: center;
    padding: 4px 0;
    width: 100%;
}

.pis-form-msg.error {
    color: #FCA5A5;
}

.pis-privacy-note {
    font-family: var(--pis-font-small);
    font-weight: 400;
    font-size: 10px;
    line-height: 15px;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 4px;
    padding-top: 7.5px;
}

.pis-privacy-note svg {
    width: 8px;
    height: 10.5px;
}

/* Unlocked state for access form */
.pis-spaces-preview[data-unlocked="true"] .pis-access-form {
    background: linear-gradient(135deg, #116466 0%, #004C40 100%);
}

.pis-access-form .pis-unlocked-state {
    display: none;
}

.pis-spaces-preview[data-unlocked="true"] .pis-access-form .pis-locked-state {
    display: none;
}

.pis-spaces-preview[data-unlocked="true"] .pis-access-form .pis-unlocked-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.pis-unlocked-icon {
    width: 40px;
    height: 40px;
    background: rgba(93, 255, 131, 0.15);
    border: 1.5px solid rgba(93, 255, 131, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5dff83;
}

.pis-unlocked-icon svg {
    width: 18px;
    height: 18px;
}

.pis-unlocked-title {
    font-family: var(--pis-font-heading);
    font-weight: 700;
    font-size: 16px;
    line-height: 22px;
    color: #FFFFFF;
    margin: 0;
}

.pis-unlocked-text {
    font-family: var(--pis-font-body);
    font-weight: 400;
    font-size: 13px;
    line-height: 19px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.pis-unlocked-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 16px 0;
    background: var(--pis-green-brand);
    border-radius: 50px;
    font-family: var(--pis-font-body);
    font-weight: 700;
    font-size: 18px;
    line-height: 28px;
    color: #FFFFFF;
    text-decoration: none;
    transition: background 0.2s;
    cursor: pointer;
    border: none;
    margin-top: 4px;
}

.pis-unlocked-cta:hover {
    background: #1ca352;
}

.pis-unlocked-cta img {
    width: 16px;
    height: 23px;
    filter: brightness(0) invert(1);
}

.pis-unlocked-hint {
    font-family: var(--pis-font-small);
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

/* Mobile-only elements (hidden on desktop/tablet) */
.pis-mobile-form,
.pis-mobile-header,
.pis-hero-physical.pis-hero-physical--mobile {
    display: none;
}

/* ------------------------------------------------------------------
   7. PREVIEW AREA
   ------------------------------------------------------------------ */
.pis-preview {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    width: 100%;
}

.pis-preview-desc {
    font-family: var(--pis-font-heading);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--pis-gray-700);
    margin: 0 0 12px 0;
}

.pis-preview-iframe-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 12;
    border-radius: 22px 22px 0 0;
    overflow: hidden;
    background: #0f172a;
    border: 1px solid var(--pis-slate-200);
    border-bottom: none;
}

/* Blurred room photo behind the lock (same asset as sidebar thumb) — sells the tour before unlock */
.pis-preview-blur-stack {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.pis-preview-blur-img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%) scale(1.06);
    filter: blur(18px) saturate(1.1);
    opacity: 0.92;
}

.pis-preview-blur-scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(15, 23, 42, 0.35) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.58) 100%
    );
}

.pis-spaces-preview[data-unlocked="true"] .pis-preview-blur-stack {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .pis-preview-blur-img {
        filter: blur(10px) saturate(1.05);
    }
}

.pis-iframe {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 115%;
    border: none;
    display: block;
}

/* Hide blank iframe until unlock so blurred preview shows through */
.pis-spaces-preview[data-unlocked="false"] .pis-iframe {
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
}

.pis-spaces-preview[data-unlocked="true"] .pis-iframe {
    opacity: 1;
    visibility: visible;
}

/* Lock overlay */
.pis-preview-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    background: rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(2px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
}

/* Hide overlay when unlocked */
.pis-spaces-preview[data-unlocked="true"] .pis-preview-overlay {
    display: none;
}

.pis-lock-circle {
    width: 72px;
    height: 72px;
    background: var(--pis-red-bg);
    border: 1.81px solid var(--pis-red);
    backdrop-filter: blur(1.81px);
    border-radius: 9055px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    margin-bottom: 12px;
}

.pis-lock-circle svg {
    width: 22px;
    height: 27.5px;
}

/* Green circle when unlocked */
.pis-spaces-preview[data-unlocked="true"] .pis-lock-circle {
    background: rgba(34, 197, 94, 0.1);
    border-color: var(--pis-green);
}

.pis-overlay-title {
    font-family: var(--pis-font-body);
    font-weight: 900;
    font-size: 28px;
    line-height: 33px;
    color: #FFFFFF;
    margin: 0;
    text-align: center;
    padding-bottom: 7.24px;
}

.pis-overlay-text {
    font-family: var(--pis-font-body);
    font-weight: 500;
    font-size: 14.49px;
    line-height: 22px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    text-align: center;
}

/* Lock circle — clickable state */
.pis-lock-circle[role="button"] {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.pis-lock-circle[role="button"]:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 2, 2, 0.4);
}

/* Overlay popup form */
.pis-overlay-popup {
    background: #fff;
    border-radius: 20px;
    padding: 32px 28px 24px;
    max-width: 420px;
    width: 92%;
    text-align: center;
    margin-top: 18px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    animation: pis-popup-in 0.3s ease-out;
    position: relative;
}

@keyframes pis-popup-in {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: scale(1); }
}

.pis-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: var(--pis-slate-100);
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    color: var(--pis-slate-500);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    padding: 0;
}

.pis-popup-close:hover {
    background: var(--pis-slate-200);
    color: var(--pis-slate-900);
}
.pis-overlay-popup h4 {
    font-family: var(--pis-font-heading);
    font-weight: 800;
    font-size: 20px;
    margin: 0 0 6px;
    color: var(--pis-gray-900);
}
.pis-overlay-popup > p {
    font-size: 13px;
    color: var(--pis-gray-500);
    margin: 0 0 20px;
    line-height: 1.5;
}
.pis-overlay-popup .pis-email-input-wrap {
    margin-bottom: 0;
}

.pis-field-label--popup {
    color: var(--pis-slate-700);
    font-size: 12px;
}

.pis-overlay-popup .pis-req {
    color: var(--pis-red);
}

.pis-overlay-popup .pis-access-fields {
    margin-top: 0;
    margin-bottom: 4px;
    gap: 10px;
}

.pis-overlay-popup input.pis-text-input,
.pis-overlay-popup input.pis-email-input {
    border: 1px solid var(--pis-slate-200);
    background: #fff;
}

.pis-overlay-popup input.pis-text-input:focus {
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.35);
}

.pis-overlay-popup .pis-email-icon {
    color: var(--pis-slate-400);
}
.pis-overlay-popup .pis-popup-submit {
    width: 100%;
    padding: 14px 24px;
    background: var(--pis-green);
    color: #fff;
    font-family: var(--pis-font-heading);
    font-weight: 700;
    font-size: 15px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.pis-overlay-popup .pis-popup-submit:hover {
    background: #16a34a;
}
.pis-overlay-popup .pis-popup-msg {
    margin-top: 10px;
    font-size: 13px;
}
.pis-overlay-popup .pis-popup-msg.error {
    color: var(--pis-red);
}
.pis-overlay-popup .pis-privacy-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 14px;
    font-size: 11px;
    color: var(--pis-slate-400);
}

/* Hide title/text when popup is open */
.pis-preview-overlay.popup-open .pis-overlay-title,
.pis-preview-overlay.popup-open .pis-overlay-text {
    display: none;
}
.pis-popup-email {
    padding: 13px 16px 14px 48px !important;
}

/* ------------------------------------------------------------------
   8. ROOM DETAILS CARD
   ------------------------------------------------------------------ */
.pis-room-details {
    background: #FFFFFF;
    border: 1px solid var(--pis-slate-200);
    border-top: none;
    border-radius: 0 0 22px 22px;
    padding: 36px;
    display: flex;
    flex-direction: column;
    gap: 21.73px;
    box-shadow: 0px 22.64px 45.28px -10.87px rgba(0, 0, 0, 0.25);
}

.pis-room-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.pis-room-title-group {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.pis-room-title {
    font-family: var(--pis-font-body);
    font-weight: 900;
    font-size: 27.17px;
    line-height: 33px;
    color: var(--pis-slate-900);
    margin: 0;
}

.pis-room-tagline {
    font-family: var(--pis-font-body);
    font-weight: 400;
    font-size: 16.3px;
    line-height: 25px;
    color: var(--pis-slate-500);
}

.pis-room-stats {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 14.48px;
    flex-shrink: 0;
}

.pis-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 7.24px 14.49px;
    background: var(--pis-slate-50);
    border: 1px solid var(--pis-slate-100);
    border-radius: 7px;
    min-width: 70px;
}

.pis-stat-value {
    font-family: var(--pis-font-body);
    font-weight: 500;
    font-size: 16.11px;
    line-height: 25px;
    text-align: center;
    color: var(--pis-green-dark);
}


.pis-stat-label {
    font-family: var(--pis-font-body);
    font-weight: 700;
    font-size: 9.06px;
    line-height: 14px;
    text-align: center;
    text-transform: uppercase;
    color: var(--pis-slate-400);
}

.pis-room-description {
    font-family: var(--pis-font-body);
    font-weight: 400;
    font-size: 16.3px;
    line-height: 26px;
    color: var(--pis-slate-700);
    margin: 0;
    max-width: 695px;
}

.pis-features-label {
    font-family: var(--pis-font-heading);
    font-weight: 600;
    font-size: 10.87px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--pis-slate-400);
    margin-bottom: -14px;
}

.pis-room-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10.87px;
    padding-top: 7.24px;
}

.pis-feature {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5.43px;
    font-family: var(--pis-font-body);
    font-weight: 600;
    font-size: 10.87px;
    line-height: 14px;
    color: var(--pis-slate-700);
    background: var(--pis-slate-100);
    border-radius: 9055px;
    padding: 5.43px 10.87px;
    border: none;
}

.pis-feature svg {
    width: 10.56px;
    height: 10.56px;
    color: var(--pis-slate-700);
    flex-shrink: 0;
}

/* ------------------------------------------------------------------
   HERO SECTION
   ------------------------------------------------------------------ */
.pis-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 27px;
    width: 100%;
    max-width: 1152px;
    margin-bottom: 48px;
    background: #f8faf9;
    border: 1px solid #e8eeeb;
    border-radius: 20px;
    padding: 48px 22px;
    box-sizing: border-box;
}

/* Title Area */
.pis-hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
    max-width: 896px;
}

.pis-hero-heading {
    font-family: 'Montserrat', var(--pis-font-heading);
    font-weight: 700;
    font-size: 44px;
    line-height: 60px;
    letter-spacing: -1.5px;
    color: var(--pis-slate-900);
    margin: 0;
}

.pis-hero-heading span {
    color: var(--pis-green-brand);
}

.pis-hero-subtitle {
    font-family: var(--pis-font-body);
    font-weight: 400;
    font-size: 20px;
    line-height: 32px;
    color: var(--pis-slate-700);
    margin: 16px 0 0;
    max-width: 760px;
}

/* Dual Panel Container */
.pis-hero-dual {
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 1152px;
    border: 1px solid var(--pis-slate-200);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0px 25px 50px -12px rgba(0, 76, 64, 0.1);
}

/* Left Panel - Physical Tour */
.pis-hero-physical {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 48px;
    min-height: 600px;
    overflow: hidden;
}

.pis-hero-physical-bg {
    position: absolute;
    inset: 0;
    background: url('https://pluginspaces.com.au/wp-content/uploads/2026/02/Background-Image-1.jpg') center/cover no-repeat;
    z-index: 0;
}

.pis-hero-physical-gradient {
    position: absolute;
    inset: 0;
    /* background: linear-gradient(0deg, rgba(0,0,0,0.8) 35%, rgba(0,0,0,0.3) 100%); */
    background: linear-gradient(0deg, rgba(0,0,0,0.4) 35%, rgba(0,0,0,0.2) 100%);
    z-index: 1;
}

.pis-hero-physical-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    max-width: 448px;
    padding-top: 67px;
}

/* Right Panel - Virtual Tour */
.pis-hero-virtual {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 48px;
    min-height: 600px;
    overflow: hidden;
    background: linear-gradient(95.47deg, #061A19 1.38%, #116466 62.7%, #20B35D 144.06%);
}

.pis-hero-virtual-decor {
    position: absolute;
    width: 256px;
    height: 256px;
    border-radius: 9999px;
    pointer-events: none;
}

.pis-hero-virtual-decor--top {
    right: -96px;
    top: -96px;
    background: rgba(255,255,255,0.05);
    filter: blur(32px);
}

.pis-hero-virtual-decor--bottom {
    left: -96px;
    bottom: -96px;
    background: rgba(0,0,0,0.2);
    filter: blur(32px);
}

.pis-hero-virtual-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    max-width: 448px;
    padding-top: 67px;
}

/* Shared Panel Styles */
.pis-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(6px);
    border-radius: 9999px;
    font-family: var(--pis-font-body);
    font-weight: 600;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #FFFFFF;
}

.pis-hero-badge svg {
    width: 12px;
    height: 10px;
    flex-shrink: 0;
}

.pis-hero-panel-title {
    font-family: var(--pis-font-body);
    font-weight: 700;
    font-size: 36px;
    line-height: 45px;
    letter-spacing: 1px;
    color: #FFFFFF;
    margin: 0;
}

.pis-hero-panel-title span {
    color: var(--pis-green-brand);
}

.pis-hero-panel-desc {
    font-family: var(--pis-font-body);
    font-weight: 300;
    font-size: 18px;
    line-height: 29px;
    color: #FFFFFF;
    margin: 0;
}

.pis-hero-label {
    font-family: var(--pis-font-body);
    font-weight: 700;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--pis-slate-300);
    padding-left: 4px;
    margin-top: auto;
}

.pis-hero-helper {
    font-family: var(--pis-font-body);
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
    color: #EBEBEB;
    text-align: center;
    width: 100%;
     margin-bottom: 55px;
}

/* Physical Tour Button */
.pis-hero-physical-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 16px 0;
    background: var(--pis-green-brand);
    border-radius: 50px;
    font-family: var(--pis-font-body);
    font-weight: 700;
    font-size: 14px;
    line-height: 24px;
    color: #FFFFFF;
    text-decoration: none;
    transition: background 0.2s;
    /* margin-top: 24px; */
   
}

.pis-hero-physical-btn:hover {
    background: #1ca352;
}

.pis-hero-physical-btn img {
    width: 16px;
    height: 23px;
    filter: brightness(0) invert(1);
}

/* Virtual Tour Form */
.pis-hero-form {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    gap: 16px !important;
    width: 100%;
}

.pis-hero-form .pis-locked-state {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
}

.pis-access-fields--hero {
    margin-top: 0;
    gap: 12px;
}

.pis-field-row--hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
}

@media (max-width: 520px) {
    .pis-field-row--hero-split {
        grid-template-columns: 1fr;
    }
}

.pis-field-label--hero {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 6px;
}

.pis-hero-form .pis-optional-hint {
    opacity: 0.65;
    font-weight: 400;
}

input.pis-hero-field {
    width: 100%;
    padding: 16px 20px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 50px !important;
    font-family: var(--pis-font-body);
    font-size: 15px;
    line-height: 22px;
    color: #ffffff !important;
    outline: none;
}

input.pis-hero-field::placeholder {
    color: var(--pis-slate-400);
}

input.pis-hero-field:focus {
    border-color: rgba(255, 255, 255, 0.45) !important;
    box-shadow: none !important;
}

.pis-hero-email-wrap {
    position: relative;
    width: 100%;
}

.pis-hero-email-icon {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 16px;
    color: var(--pis-slate-400);
    pointer-events: none;
}

input.pis-hero-email {
    width: 100%;
    padding: 18px 16px 18px 48px !important;
    background: rgba(255,255,255,0.1) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    border-radius: 50px !important;
    font-family: var(--pis-font-body);
    font-size: 16px;
    line-height: 24px;
    color: #FFFFFF !important;
}

input.pis-hero-email::placeholder {
    color: var(--pis-slate-400);
}

input.pis-hero-email:focus {
    border-color: rgba(255,255,255,0.4) !important;
    box-shadow: none !important;
}

.pis-hero-virtual-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 16px 0 !important;
    background: #FFFFFF !important;
    border-radius: 50px !important;
    font-family: var(--pis-font-body);
    font-weight: 700;
    font-size: 14px;
    line-height: 24px;
    color: var(--pis-green-brand) !important;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.pis-hero-virtual-btn:hover {
    background: #f0f0f0 !important;
}

.pis-hero-virtual-btn svg {
    width: 16px;
    height: 20px;
    color: var(--pis-green-brand);
}

/* Hero unlocked state overrides */
.pis-hero-form .pis-unlocked-state {
    align-items: center;
    text-align: center;
    width: 100%;
}

.pis-hero-form .pis-unlocked-icon {
    background: rgba(93,255,131,0.15);
    border-color: rgba(93,255,131,0.4);
}

/* Trust Indicators */
.pis-hero-trust {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding-top: 0px;
    opacity: 0.5;
}

.pis-hero-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pis-hero-trust-item svg {
    width: 18px;
    height: 20px;
    color: #555555;
    flex-shrink: 0;
}

.pis-hero-trust-item span {
    font-family: 'Inter', var(--pis-font-small);
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    color: #555555;
}

/* ------------------------------------------------------------------
   9. RESPONSIVE - >1200px
   ------------------------------------------------------------------ */
@media (max-width: 1200px) {
    .pis-spaces-preview {
        padding: 60px 40px;
        gap: 40px;
    }

    .pis-hero-heading {
        font-size: 36px;
        line-height: 48px;
    }

    .pis-hero-physical,
    .pis-hero-virtual {
        padding: 36px;
        min-height: 520px;
    }

    .pis-hero-panel-title {
        font-size: 28px;
        line-height: 36px;
    }
}

/* ------------------------------------------------------------------
   10. RESPONSIVE - Tablet
   ------------------------------------------------------------------ */
@media (max-width: 968px) {
    .pis-spaces-preview {
        padding: 40px 24px;
        gap: 32px;
    }

    .pis-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .pis-tab {
        min-height: 100px;
        padding: 16px;
        border-radius: 16px;
    }

    .pis-panel {
        flex-direction: column;
        gap: 24px;
        padding-left: 0;
        position: static;
    }

    .pis-sidebar {
        position: static;
        width: 100%;
        padding: 0;
        overflow: visible;
    }

    .pis-space-list {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: visible;
        gap: 8px;
        padding-bottom: 4px;
        flex: unset;
        min-height: unset;
        padding-right: 0;
    }

    .pis-space-card {
        min-width: 240px;
        flex-shrink: 0;
    }

    .pis-room-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .pis-room-details {
        padding: 24px;
        box-shadow: 0px 10px 20px -5px rgba(0, 0, 0, 0.15);
    }

    /* --- Tablet: Hero section --- */
    .pis-hero-dual {
        flex-direction: column;
    }

    .pis-hero-physical-content,
    .pis-hero-virtual-content {
        padding-top: 0;
    }

    .pis-hero-physical,
    .pis-hero-virtual {
        min-height: 400px;
        padding: 32px;
    }

    .pis-hero-physical {
        border-radius: 20px 20px 0 0;
    }

    .pis-hero-virtual {
        border-radius: 0 0 20px 20px;
    }

    .pis-hero-heading {
        font-size: 32px;
        line-height: 42px;
    }

    .pis-hero-subtitle {
        font-size: 15px;
    }

    .pis-hero-panel-title {
        font-size: 26px;
        line-height: 34px;
    }

    .pis-hero-trust {
        flex-wrap: wrap;
        gap: 24px;
    }
}

/* ------------------------------------------------------------------
   10b. RESPONSIVE - Hero physical swap (≤900px)
   ------------------------------------------------------------------ */
@media (max-width: 900px) {
    .pis-hero-dual .pis-hero-physical {
        display: none;
    }

    .pis-hero-physical.pis-hero-physical--mobile {
        display: flex;
        border-radius: 20px;
        width: 100%;
        order: 99;
    }
}

/* ------------------------------------------------------------------
   11. RESPONSIVE - Mobile
   ------------------------------------------------------------------ */
@media (max-width: 600px) {
    .pis-spaces-preview {
        padding: 24px 16px;
        gap: 24px;
    }

    .pis-tabs-desc {
        margin-bottom: -12px;
    }

    .pis-tabs {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .pis-tab {
        padding: 12px 8px;
        min-height: 80px;
        border-radius: 12px;
    }

    .pis-tab-label {
        font-size: 13px;
        line-height: 20px;
    }

    .pis-tab-subtitle {
        font-size: 11px;
    }

    .pis-tab-icon svg {
        width: 22px;
        height: 20px;
    }

    /* --- Mobile: show mobile-only form & header --- */
    .pis-mobile-form {
        display: flex !important;
        width: 100%;
        order: 10;
    }

    .pis-hero-physical--mobile {
        order: 11;
    }

    /* .pis-hero-physical--mobile .pis-hero-physical-btn {
        margin-top: auto;
    } */

    .pis-hero-helper {
        margin-bottom: 0;
    }

    .pis-mobile-header {
        display: flex !important;
        width: 100%;
        order: 4;
    }

    .pis-tab-content {
        order: 5;
    }

    /* Hide per-tab sidebar form & header on mobile */
    .pis-sidebar .pis-access-form {
        display: none !important;
    }

    .pis-sidebar .pis-sidebar-header {
        display: none;
    }

    /* --- Mobile: stack cards vertically (like screenshot 2) --- */
    .pis-space-list {
        flex-direction: column;
        overflow-x: visible;
    }

    .pis-space-card {
        min-width: unset;
        width: 100%;
    }

    .pis-thumb-wrap {
        width: 56px;
        height: 56px;
    }

    .pis-preview-iframe-wrap {
        border-radius: 12px 12px 0 0;
        aspect-ratio: 3 / 5 !important;
    }

    .pis-room-details {
        border-radius: 0 0 12px 12px;
        padding: 16px;
    }

    .pis-overlay-title {
        font-size: 20px;
        line-height: 26px;
    }

    .pis-overlay-text {
        font-size: 12px;
    }

    .pis-room-title {
        font-size: 22px;
        line-height: 28px;
    }

    .pis-room-description {
        font-size: 14px;
        line-height: 22px;
    }

    .pis-stat {
        padding: 6px 10px;
        min-width: 60px;
    }

    .pis-stat-value {
        font-size: 16px;
    }

    .pis-feature {
        font-size: 10px;
        padding: 4px 8px;
    }

    .pis-access-form {
        padding: 20px 16px;
    }

    .pis-lock-circle {
        width: 56px;
        height: 56px;
    }

    .pis-lock-circle svg {
        width: 16px;
        height: 20px;
    }

    /* --- Mobile: Hero section --- */
    .pis-hero {
        gap: 20px;
    }

    .pis-hero-dual {
        flex-direction: column;
    }

    .pis-hero-dual .pis-hero-physical {
        display: none;
    }

    .pis-hero-virtual {
        border-radius: 20px;
    }

    .pis-hero-heading {
        font-size: 26px;
        line-height: 34px;
    }

    .pis-hero-subtitle {
        font-size: 14px;
        line-height: 22px;
    }

    .pis-hero-physical,
    .pis-hero-virtual {
        min-height: 450px;
        padding: 12px;
    }

    .pis-hero-panel-title {
        font-size: 22px;
        line-height: 30px;
    }

    .pis-hero-panel-desc {
        font-size: 13px;
        line-height: 20px;
    }

    .pis-hero-badge {
        font-size: 9px;
        padding: 4px 10px;
    }

    .pis-hero-cta {
        padding: 12px 20px;
        font-size: 13px;
    }

    /* .pis-hero-email-wrap {
        padding: 10px 14px;
    } */

    .pis-hero-email-wrap input {
        font-size: 13px;
    }

    .pis-hero-trust {
        gap: 16px;
        margin-top: -10px !important;
        flex-wrap: nowrap;
    }

    .pis-hero-trust-item {
        font-size: 11px;
        gap: 6px;
        width: fit-content;
    }

    .pis-hero-trust-item span {
        font-size: 10px;
    }

    .pis-hero-trust-item svg {
        width: 14px;
        height: 14px;
    }
}
