﻿/* CELESTIA — FLOOR PLAN page (white paper: the plans are white; CI kept through midnight ink, Cormorant / Jost type
   and rose-gold accents). Sizes are design pixels of the stage (1080 tall). */
.fp { --ink: #1A1F3D; --ink2: #5C6282; --mute: #8B90AA; --rose: #C48E77; --rose2: #D9A58F; --hair: rgba(26, 31, 61, .1);
  background: #FFFFFF; color: var(--ink); user-select: none; -webkit-user-select: none; }

/* ---------- pan / zoom viewer: a 4096 x 4096 plan frame (image + SVG buttons + markers) ---------- */
.fp-view { position: absolute; inset: 0; overflow: hidden; touch-action: none; cursor: grab; background: #FFFFFF; }
.fp-view.grab { cursor: grabbing; }
.pz-c { position: absolute; left: 0; top: 0; width: 4096px; height: 4096px; transform-origin: 0 0; will-change: transform; }
.pz-c.ease { transition: transform .75s cubic-bezier(.6, 0, .2, 1); }
/* changing the plan (floorplan.js › swap) is at once: .now = no fades while it happens */
.pz-c.now img, .pz-c.now .tile-layer { transition: none !important; }
.pz-c img { position: absolute; inset: 0; width: 4096px; height: 4096px; display: block; -webkit-user-drag: none; pointer-events: none; transition: opacity .5s ease; }
.pz-c img.fade { opacity: 0; }
.pz-c.tiled > img { opacity: 0; }   /* a tiled plan from the Console (tile-layer.js) is in: the app's own picture hides */
.pz-c svg.hits { position: absolute; z-index: 2; inset: 0; width: 4096px; height: 4096px; overflow: visible; }
.pz-m { position: absolute; z-index: 3; inset: 0; pointer-events: none; }

/* unit + villa buttons (Unit States): invisible until opened; sold / hold stay coloured and can't be tapped */
/* the colour fades through its opacity: fading "fill" from aqua at .5 to transparent ran at full strength first (a
   bright flash when a popup closed) */
.u { fill: aqua; fill-opacity: 0; stroke: none; cursor: pointer; transition: fill .25s ease, fill-opacity .25s ease; }
.u.sel { fill-opacity: .5; }
.u.sold { fill: rgba(220, 38, 38, .55); fill-opacity: 1; stroke: #DC2626; stroke-width: 4px; cursor: not-allowed; }
.u.hold { fill: rgba(75, 85, 99, .85); fill-opacity: 1; stroke: #374151; stroke-width: 4px; cursor: not-allowed; }
.u.off, .mc.off { display: none; }
/* the tower on the master plan */
.mc { fill: transparent; stroke: none; cursor: pointer; transition: fill .3s; }
.mc:hover { fill: rgba(217, 165, 143, .14); }

/* tower badge (keeps its size on screen at any zoom) */
.mk { position: absolute; pointer-events: auto; transform: translate(-50%, -50%) scale(var(--inv, 1)); transform-origin: 50% 50%; cursor: pointer; }
.mk .pill { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px 0 8px; border-radius: 999px; white-space: nowrap; box-shadow: 0 12px 28px rgba(10, 13, 38, .2); transition: transform .25s; }
.mk:active .pill { transform: scale(.95); }
.mk .tx { display: flex; flex-direction: column; gap: 3px; }
.mk .pill b { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 20px; letter-spacing: .18em; line-height: 1; }
.mk .pill small { font-size: 9.5px; font-weight: 500; letter-spacing: .14em; }
.mk .pill small em { font-style: normal; font-size: 11px; color: #2F8F68; }
.mk .ic { width: 32px; height: 32px; flex: none; border-radius: 99px; display: flex; align-items: center; justify-content: center; background: rgba(217, 165, 143, .14); }
.cm .pill { background: rgba(255, 255, 255, .96); color: #1A1F3D; border: 1px solid rgba(196, 142, 119, .8); }
.cm .pill small { color: #5C6282; }
.mk.off { display: none; }

/* ---------- page chrome ---------- */
.fp-head { position: absolute; z-index: 3; top: 150px; left: 64px; pointer-events: none; }
.fp-eye { display: flex; align-items: center; gap: 14px; font-size: 13px; font-weight: 500; letter-spacing: .44em; color: var(--rose); }
.fp-eye i { width: 44px; height: 1px; background: var(--rose); }
.fp-head h2 { margin: 16px 0 0; font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: 60px; line-height: 1; letter-spacing: .02em; }
.fp-head h2 em { color: var(--rose); }
.fp-head p { margin: 10px 0 0; font-family: 'Noto Sans Thai', sans-serif; font-weight: 300; font-size: 17px; color: var(--ink2); }

/* page tabs: bottom right, on the menu button's line (right hand) */
.fp-tabs { position: absolute; z-index: 4; bottom: 61px; right: 64px; display: flex; gap: 3px; padding: 4px; border-radius: 999px; border: 1px solid var(--hair); background: rgba(255, 255, 255, .9); box-shadow: 0 8px 24px rgba(26, 31, 61, .07); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.fp-tabs button { height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; font-size: 10px; font-weight: 500; letter-spacing: .26em; color: var(--ink2); transition: background .4s, color .4s; }
.fp-tabs button span { margin-left: 8px; font-family: 'Noto Sans Thai', sans-serif; font-weight: 300; font-size: 12px; letter-spacing: 0; }
.fp-tabs button.on { background: var(--ink); color: #F2EEF6; box-shadow: 0 6px 18px rgba(26, 31, 61, .25); }
.fp-tabs button.on span { color: #F4D3C2; }
.fp-tabs button[hidden] { display: none; }
.fp.narrow .fp-tabs button { padding: 0 13px; }
.fp.narrow .fp-tabs button span { display: none; }

/* condo floor list: right side, for the right hand on a touch screen */
.fp-floors { position: absolute; z-index: 3; right: 64px; top: 130px; bottom: 196px; width: 168px; display: flex; flex-direction: column; opacity: 0; transform: translateX(20px); pointer-events: none; transition: opacity .5s, transform .5s; }
.fp.condo .fp-floors { opacity: 1; transform: none; pointer-events: auto; }
.fp-floors .scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 8px 20px 4px; touch-action: pan-y;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 18px, #000 calc(100% - 26px), transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 18px, #000 calc(100% - 26px), transparent 100%); }
.fp-floors .scroll::-webkit-scrollbar { width: 3px; } .fp-floors .scroll::-webkit-scrollbar-thumb { background: rgba(196, 142, 119, .5); border-radius: 3px; }
.fp-floors h4 { margin: 14px 0 6px 6px; font-size: 10px; font-weight: 500; letter-spacing: .3em; color: var(--rose); }
.fp-floors h4 small { display: block; margin-top: 2px; font-family: 'Noto Sans Thai', sans-serif; font-weight: 300; font-size: 11px; letter-spacing: 0; color: var(--mute); }
.fp-floors button { width: 100%; height: 46px; margin-bottom: 4px; padding: 0 14px; border: 1px solid transparent; border-radius: 12px; background: transparent; display: flex; align-items: center; justify-content: space-between; color: var(--ink); transition: background .3s, border-color .3s; }
.fp-floors button b { font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 400; letter-spacing: .04em; }
.fp-floors button .dots { display: flex; gap: 4px; }
.fp-floors button .dots i { width: 7px; height: 7px; border-radius: 99px; border: 1px solid var(--rose); }
.fp-floors button .dots i.hold { background: #4B5563; border-color: #4B5563; }
.fp-floors button .dots i.sold { background: #DC2626; border-color: #DC2626; }
.fp-floors button:active { background: #F7F3F1; }
.fp-floors button.on { background: var(--ink); color: #F2EEF6; border-color: var(--ink); box-shadow: 0 8px 22px rgba(26, 31, 61, .22); }
.fp-floors button.on .dots i { border-color: #F4D3C2; }

/* condo: unit type legend, bottom left (types not on the floor on screen fade back) */
.fp-types { position: absolute; z-index: 3; left: 64px; bottom: 52px; width: 300px; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .5s, transform .5s; }
.fp.condo .fp-types { opacity: 1; transform: none; }
.fp-types h4 { margin: 0 0 6px; font-size: 10px; font-weight: 500; letter-spacing: .32em; color: var(--rose); }
.fp-types h4 small { margin-left: 10px; font-family: 'Noto Sans Thai', sans-serif; font-size: 11px; font-weight: 300; letter-spacing: 0; color: var(--mute); }
.fp-types ul { list-style: none; margin: 0; padding: 0; }
.fp-types li { display: flex; align-items: center; gap: 10px; height: 30px; border-bottom: 1px solid var(--hair); font-size: 12px; color: var(--ink2); transition: opacity .4s; }
.fp-types li:last-child { border-bottom: 0; }
.fp-types li.dim { opacity: .35; }
.fp-types li i { flex: none; width: 13px; height: 13px; border-radius: 4px; }
.fp-types li b { width: 22px; font-size: 11px; font-weight: 500; letter-spacing: .1em; color: var(--ink); }
.fp-types li em { margin-left: auto; font-family: 'Cormorant Garamond', serif; font-size: 18px; font-style: normal; color: var(--ink); }
.fp-types li em small { font-family: 'Noto Sans Thai', sans-serif; font-size: 11px; color: var(--ink2); }

/* ---------- UNIT MATRIX: the plan, popups and the zoom / recentre buttons step aside ---------- */
.fp-mx { position: absolute; inset: 0; z-index: 2; opacity: 0; visibility: hidden; transition: opacity .5s, visibility 0s .5s; }
.fp.matrix .fp-mx { opacity: 1; visibility: visible; transition: opacity .5s; }
.fp.matrix .fp-view, .fp.finder .fp-view { pointer-events: none; }   /* stays as the white paper behind */
.fp.matrix .pz-c, .fp.matrix .fp-pops, .fp.matrix .fp-cfab, .fp.matrix .fp-cmp,
.fp.finder .pz-c, .fp.finder .fp-pops, .fp.finder .fp-cfab, .fp.finder .fp-cmp,
.fp.matrix .tile-canvas, .fp.finder .tile-canvas { visibility: hidden; }   /* the plan drawn on a canvas (phones) */
.fp.matrix .fp-zoom, .fp.finder .fp-zoom { display: none; }
.mx-scroll { position: absolute; left: 420px; right: 64px; top: 140px; bottom: 124px; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; padding: 0 10px 24px 0;
  -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 30px), transparent 100%); mask-image: linear-gradient(180deg, #000 calc(100% - 30px), transparent 100%); }
.mx-scroll .um-grid { --cw: 210px; justify-content: center; }   /* compact cells, centred in the space */
.mx-scroll .um-u { height: 46px; }
.mx-scroll::-webkit-scrollbar { width: 3px; } .mx-scroll::-webkit-scrollbar-thumb { background: rgba(196, 142, 119, .5); border-radius: 3px; }
.mx-sum { position: absolute; left: 64px; top: 300px; bottom: 124px; width: 310px; overflow-y: auto; touch-action: pan-y; }
.mx-big { display: flex; align-items: flex-end; gap: 12px; }
.mx-big b { font-family: 'Cormorant Garamond', serif; font-size: 76px; font-weight: 300; line-height: .8; color: var(--ink); }
.mx-big span { font-family: 'Cormorant Garamond', serif; font-size: 26px; color: var(--ink2); }
.mx-big small { display: block; margin-top: 6px; font-family: Jost, 'Noto Sans Thai', sans-serif; font-size: 10px; font-weight: 500; letter-spacing: .28em; color: var(--rose); }
.mx-bar { display: flex; height: 6px; margin: 18px 0 14px; border-radius: 9px; overflow: hidden; background: rgba(26, 31, 61, .08); }
.mx-bar i { height: 100%; transition: width .6s; }
.mx-bar i.sold { background: #DC2626; } .mx-bar i.hold { background: #4B5563; }
.mx-leg, .mx-types { list-style: none; margin: 0; padding: 0; }
.mx-leg li { display: flex; align-items: center; gap: 10px; height: 34px; border-bottom: 1px solid var(--hair); font-size: 11px; font-weight: 500; letter-spacing: .26em; }
.mx-leg li i { width: 12px; height: 12px; border-radius: 4px; border: 1px solid rgba(47, 143, 104, .35); background: #E9F6EE; }
.mx-leg li.hold i { background: #4B5563; border-color: #4B5563; } .mx-leg li.sold i { background: #DC2626; border-color: #DC2626; }
.mx-leg small { font-family: 'Noto Sans Thai', sans-serif; font-size: 12px; font-weight: 300; letter-spacing: 0; color: var(--ink2); }
.mx-leg b, .mx-types em { margin-left: auto; font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 400; font-style: normal; letter-spacing: 0; }
.mx-sum h4 { margin: 24px 0 8px; font-size: 10px; font-weight: 500; letter-spacing: .32em; color: var(--rose); }
.mx-sum h4 small { margin-left: 10px; font-family: 'Noto Sans Thai', sans-serif; font-size: 11px; font-weight: 300; letter-spacing: 0; color: var(--mute); }
.mx-types li { display: flex; align-items: center; gap: 10px; height: 32px; font-family: 'Noto Sans Thai', Jost, sans-serif; font-size: 12px; color: var(--ink2); }
.mx-types li i { width: 12px; height: 12px; border-radius: 4px; }
.mx-types li b { width: 22px; font-family: Jost, sans-serif; font-size: 11px; font-weight: 500; letter-spacing: .1em; color: var(--ink); }
.mx-types em { font-size: 18px; color: var(--ink); }
.mx-sum .um-villas { grid-template-columns: 1fr; }
.mx-hint { margin: 18px 0 0; font-family: 'Noto Sans Thai', sans-serif; font-size: 12px; font-weight: 300; color: var(--mute); }

/* ---------- UNIT FINDER: the customer's wishes (left), the units / villas that fit (right) ---------- */
.fp-fd { position: absolute; inset: 0; z-index: 2; opacity: 0; visibility: hidden; transition: opacity .5s, visibility 0s .5s; }
.fp.finder .fp-fd { opacity: 1; visibility: visible; transition: opacity .5s; }
.fd-form { position: absolute; left: 64px; top: 290px; bottom: 40px; width: 420px; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; padding-right: 8px; }
.fd-form section { margin-bottom: 16px; }
.fd-form h4 { margin: 0 0 8px; font-size: 10px; font-weight: 500; letter-spacing: .32em; color: var(--rose); }
.fd-form h4 small { margin-left: 10px; font-family: 'Noto Sans Thai', sans-serif; font-size: 11px; font-weight: 300; letter-spacing: 0; color: var(--mute); }
.fd-in { display: flex; align-items: center; gap: 10px; height: 46px; margin-bottom: 6px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--hair); background: #FFF; }
.fd-in:focus-within { border-color: var(--rose); box-shadow: 0 0 0 3px rgba(217, 165, 143, .2); }
.fd-in span { width: 118px; font-family: 'Noto Sans Thai', sans-serif; font-size: 13px; color: var(--ink2); }
.fd-in input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; text-align: right; font-family: 'Cormorant Garamond', serif; font-size: 22px; color: var(--ink); user-select: text; -webkit-user-select: text; }
.fd-in em { font-family: 'Noto Sans Thai', sans-serif; font-style: normal; font-size: 12px; color: var(--mute); }
.fd-cap { margin: 8px 2px 0; font-family: 'Noto Sans Thai', sans-serif; font-size: 13px; color: var(--ink2); }
.fd-cap b { font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 500; color: var(--ink); }
.fd-cap small { display: block; margin-top: 2px; font-size: 11px; font-weight: 300; color: var(--mute); }
.fd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fd-chips button { height: 36px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--hair); background: #FFF; font-family: 'Noto Sans Thai', sans-serif; font-size: 13px; color: var(--ink2); transition: background .25s, color .25s, border-color .25s; }
.fd-chips button.on { background: var(--ink); border-color: var(--ink); color: #F2EEF6; }
.fd-reset { height: 36px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--rose); background: none; font-family: 'Noto Sans Thai', sans-serif; font-size: 13px; color: var(--rose); }
.fd-res { position: absolute; left: 540px; right: 64px; top: 130px; bottom: 124px; display: flex; flex-direction: column; }
.fd-bar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--hair); }
.fd-count { display: flex; align-items: flex-end; gap: 12px; }
.fd-count b { font-family: 'Cormorant Garamond', serif; font-size: 54px; font-weight: 300; line-height: .85; }
.fd-count span { font-family: 'Noto Sans Thai', sans-serif; font-size: 14px; color: var(--ink2); }
.fd-count small { display: block; font-size: 11px; font-weight: 300; color: var(--mute); }
.fd-sort { display: flex; align-items: center; gap: 4px; font-family: 'Noto Sans Thai', sans-serif; font-size: 12px; color: var(--mute); }
.fd-sort span { margin-right: 6px; }
.fd-sort button { height: 30px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--hair); background: #FFF; font-family: inherit; font-size: 12px; color: var(--ink2); }
.fd-sort button.on { border-color: var(--rose); color: var(--rose); }
.fd-note { flex-basis: 100%; margin: 0; font-family: 'Noto Sans Thai', sans-serif; font-size: 12px; color: #9A6A2E; }
.fd-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; padding: 14px 6px 24px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); grid-auto-rows: max-content; gap: 10px; align-content: start;
  -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 30px), transparent 100%); mask-image: linear-gradient(180deg, #000 calc(100% - 30px), transparent 100%); }
.fd-card { position: relative; padding: 14px 14px 12px 20px; border-radius: 14px; border: 1px solid var(--hair); background: #FFF; overflow: hidden; }
.fd-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--tc); }
.fd-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.fd-top b { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 500; letter-spacing: .06em; }
.fd-top span { font-family: 'Noto Sans Thai', sans-serif; font-size: 12px; color: var(--ink2); white-space: nowrap; }
.fd-type { margin-top: 2px; font-size: 9.5px; font-weight: 500; letter-spacing: .2em; color: var(--rose); }
.fd-facts { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-family: 'Noto Sans Thai', sans-serif; font-size: 12px; color: var(--ink2); }
.fd-facts li:last-child { flex-basis: 100%; }
.fd-facts b { font-family: 'Cormorant Garamond', serif; font-size: 18px; font-weight: 500; color: var(--ink); }
.fd-price { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--hair); font-family: 'Cormorant Garamond', serif; font-size: 18px; color: var(--ink); }
.fd-act { display: flex; gap: 6px; margin-top: 10px; }
.fd-act button { height: 34px; border-radius: 99px; font-size: 10px; font-weight: 500; letter-spacing: .2em; display: flex; align-items: center; gap: 6px; }
.fd-open { flex: 1; justify-content: center; border: 1px solid var(--ink); background: var(--ink); color: #F2EEF6; font-family: 'Noto Sans Thai', Jost, sans-serif; letter-spacing: 0 !important; font-size: 12px !important; }
.fd-qr { padding: 0 12px; border: 1px solid var(--ink); background: #FFF; color: var(--ink); }
.fd-empty { grid-column: 1 / -1; padding: 60px 0; text-align: center; font-family: 'Noto Sans Thai', sans-serif; color: var(--ink2); }
.fd-empty b { display: block; font-family: 'Cormorant Garamond', 'Noto Sans Thai', serif; font-size: 26px; font-weight: 400; color: var(--ink); }
/* before any wish is picked: an invitation instead of the whole list */
.fd-start { grid-column: 1 / -1; margin: auto; padding: 120px 0 0; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; font-family: 'Noto Sans Thai', sans-serif; color: var(--ink2); }
.fd-start svg { margin-bottom: 8px; }
.fd-start b { font-family: 'Cormorant Garamond', serif; font-size: 36px; font-weight: 300; letter-spacing: .04em; color: var(--ink); }
.fd-start b em { color: var(--rose); }
.fd-start span { font-size: 15px; }
.fd-start button { margin-top: 14px; height: 38px; padding: 0 18px; border-radius: 99px; border: 1px solid var(--hair); background: #FFF; font-family: inherit; font-size: 13px; color: var(--ink2); }
.fd-count.idle b { color: var(--mute); }

/* Sky View package from the Console (VIEW button of a unit popup) */
.fp-pano { position: absolute; inset: 0; z-index: 20; background: #05071A; }
.fp-pano iframe { width: 100%; height: 100%; border: 0; display: block; }
.fp-pano .tag { position: absolute; left: 28px; top: calc(24px + var(--sat, 0px)); padding: 6px 14px; border-radius: 99px; background: rgba(5, 7, 26, .7); border: 1px solid rgba(217, 165, 143, .6); color: #F4D3C2; font-size: 11px; letter-spacing: .3em; }
.fp-pano button { position: absolute; right: 28px; top: calc(24px + var(--sat, 0px)); width: 54px; height: 54px; border-radius: 99px; border: 1px solid rgba(242, 238, 246, .4); background: rgba(5, 7, 26, .7); color: #F2EEF6; display: flex; align-items: center; justify-content: center; }
/* balcony view (Console › วิวระเบียง): day / night at the bottom, the compass with the 180° in front of the balcony */
.fp-pano.rv .rv-dn { position: absolute; left: 50%; bottom: 44px; transform: translateX(-50%); display: flex; gap: 4px; padding: 5px; border-radius: 99px; background: rgba(5, 7, 26, .72); border: 1px solid rgba(217, 165, 143, .45); }
.fp-pano.rv .rv-dn button { position: static; width: auto; height: 50px; padding: 0 26px; border: 0; border-radius: 99px; background: none; flex-direction: column; gap: 0; font-size: 13px; letter-spacing: .25em; color: rgba(242, 238, 246, .7); }
.fp-pano.rv .rv-dn button small { font-size: 11px; letter-spacing: 0; opacity: .75; }
.fp-pano.rv .rv-dn button.on { background: linear-gradient(135deg, #D9A58F, #B9806B); color: #FFF; }
/* a unit with several balconies: one button each, at the top */
.fp-pano.rv .rv-bal { position: absolute; left: 50%; top: calc(22px + var(--sat, 0px)); transform: translateX(-50%); display: flex; gap: 4px; padding: 5px; border-radius: 99px; background: rgba(5, 7, 26, .72); border: 1px solid rgba(217, 165, 143, .45); }
.fp-pano.rv .rv-bal button { position: static; width: auto; height: 48px; padding: 0 22px; border: 0; border-radius: 99px; background: none; flex-direction: column; gap: 0; font-size: 12.5px; letter-spacing: .18em; color: rgba(242, 238, 246, .7); }
.fp-pano.rv .rv-bal button small { font-size: 10.5px; letter-spacing: .2em; opacity: .7; }
.fp-pano.rv .rv-bal button.on { background: rgba(217, 165, 143, .25); color: #FFF; box-shadow: inset 0 0 0 1px rgba(217, 165, 143, .7); }
.fp-pano.rv .rv-cmp { position: absolute; left: 28px; bottom: 36px; display: flex; align-items: center; gap: 14px; padding: 10px 20px 10px 10px; border-radius: 99px; background: rgba(5, 7, 26, .72); border: 1px solid rgba(217, 165, 143, .35); color: #F2EEF6; pointer-events: none; }
.fp-pano.rv .rv-cmp svg { width: 64px; height: 64px; } .fp-pano.rv .rv-cmp circle { fill: none; stroke: rgba(242, 238, 246, .35); stroke-width: 2; }
.fp-pano.rv .rv-cmp path { fill: rgba(217, 165, 143, .32); } .fp-pano.rv .rv-cmp text { fill: #F4D3C2; font-size: 15px; font-weight: 600; text-anchor: middle; }
.fp-pano.rv .rv-cmp line { stroke: #FFF; stroke-width: 3; stroke-linecap: round; }
.fp-pano.rv .rv-cmp b { display: block; font-size: 15px; font-weight: 500; } .fp-pano.rv .rv-cmp small { display: block; font-size: 12.5px; color: rgba(242, 238, 246, .65); }

/* prices switched off in the settings (DISPLAY › PRICE) */
.fp.noprice .pop-price, .fp.noprice .fp-cmp .pr, .fp.noprice .fd-price { display: none; }

/* quotation QR (popups, finder) */
.b-qr { flex: none; width: 34px; height: 34px; border-radius: 99px; border: 1px solid var(--ink); background: #FFF; display: flex; align-items: center; justify-content: center; color: var(--ink); }
.fp-qr { position: absolute; inset: 0; z-index: 15; display: none; align-items: center; justify-content: center; }
.fp-qr.on { display: flex; }
.qr-bg { position: absolute; inset: 0; background: rgba(10, 13, 38, .35); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fp-fade .3s ease both; }
@keyframes fp-fade { from { opacity: 0; } }
.qr-card { position: relative; width: 440px; padding: 30px 32px 26px; border-radius: 22px; background: #FFF; text-align: center; box-shadow: 0 30px 80px rgba(10, 13, 38, .3); animation: fp-pop .4s cubic-bezier(.2, .8, .2, 1) both; }
.qr-card .pop-x { position: absolute; right: 16px; top: 16px; }
.qr-card .pop-eye { justify-content: center; }
.qr-card h3 { margin: 10px 0 0; font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: 40px; letter-spacing: .1em; }
.qr-sub { margin: 6px 0 0; font-family: 'Noto Sans Thai', Jost, sans-serif; font-size: 13px; color: var(--ink2); }
.qr-code { width: 260px; height: 260px; margin: 20px auto 0; padding: 10px; border-radius: 16px; border: 1px solid var(--hair); display: flex; align-items: center; justify-content: center; font-family: 'Noto Sans Thai', sans-serif; font-size: 13px; color: var(--mute); }
.qr-code svg { width: 100%; height: 100%; display: block; }
.qr-how { margin: 16px 0 0; font-family: 'Noto Sans Thai', sans-serif; font-size: 14px; color: var(--ink); }
.qr-warn { margin: 10px 0 0; padding: 8px 12px; border-radius: 10px; background: #FFF4E6; font-family: 'Noto Sans Thai', sans-serif; font-size: 12px; color: #7A4A12; }
.qr-card code { display: block; margin-top: 10px; font-size: 11px; color: var(--mute); word-break: break-all; }

/* zoom + recentre (hold 3 s = hidden settings) + compass: left side */
.fp-zoom { position: absolute; z-index: 3; left: 64px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.fp-zoom button { position: relative; width: 54px; height: 54px; border-radius: 99px; border: 1px solid var(--hair); background: rgba(255, 255, 255, .92); box-shadow: 0 8px 24px rgba(26, 31, 61, .1); display: flex; align-items: center; justify-content: center; color: var(--ink); -webkit-touch-callout: none; }
.fp-zoom button:active { transform: scale(.94); }
.fp-compass { margin-top: 10px; filter: drop-shadow(0 8px 18px rgba(26, 31, 61, .1)); }
.fp-compass .needle { transition: transform .8s cubic-bezier(.6, 0, .2, 1); }

/* status chip (popups / compare) */
.st { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px 0 9px; border-radius: 99px; font-size: 10px; font-weight: 500; letter-spacing: .2em; white-space: nowrap; }

/* ---------- popups: small; drag anywhere, pinch / wheel scales the whole popup ---------- */
.fp-pops { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.pop { position: absolute; width: 352px; pointer-events: auto; border-radius: 18px; background: #FFFFFF; overflow: hidden; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none;
  transform-origin: 0 0; box-shadow: 0 26px 70px rgba(10, 13, 38, .2), 0 0 0 1px rgba(26, 31, 61, .07); animation: fp-pop .4s cubic-bezier(.2, .8, .2, 1) both; }
.pop.grab { cursor: grabbing; }
.pop.at { animation-name: fp-pop-at; animation-duration: .45s; }   /* condo: grows out of the unit that was tapped */
.pop.out { animation: fp-pop-out .22s ease both; }
@keyframes fp-pop { from { opacity: 0; transform: translateY(18px) scale(.96); } }
@keyframes fp-pop-at { from { opacity: 0; transform: scale(.3); } }
@keyframes fp-pop-out { to { opacity: 0; transform: translateY(12px) scale(.97); } }
.pop::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, rgba(217, 165, 143, 0), #D9A58F 30%, #F4D3C2 50%, #D9A58F 70%, rgba(217, 165, 143, 0)); }
.pop-head { display: flex; align-items: flex-start; gap: 10px; padding: 15px 13px 8px 18px; }
.pop-head > div { flex: 1; min-width: 0; }
.pop-eye { display: flex; align-items: center; gap: 7px; font-size: 9px; font-weight: 500; letter-spacing: .3em; color: var(--rose); }
.pop-eye .tdot { width: 9px; height: 9px; border-radius: 3px; }
.pop h3 { margin: 5px 0 0; font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: 29px; line-height: 1; letter-spacing: .1em; }
.pop h3 small { font-size: 16px; letter-spacing: .06em; color: var(--mute); }
.pop-sub { margin-top: 4px; font-family: 'Noto Sans Thai', sans-serif; font-weight: 300; font-size: 12px; color: var(--ink2); }
.pop-x { flex: none; width: 34px; height: 34px; border-radius: 99px; border: 1px solid var(--hair); background: #FFF; display: flex; align-items: center; justify-content: center; color: var(--ink); }
.pop-specs { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 18px; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.pop-specs.c3 { grid-template-columns: repeat(3, 1fr); }
.pop-specs div { padding: 7px 0; }
.pop-specs div + div { padding-left: 10px; border-left: 1px solid var(--hair); }
.pop-specs dt { font-size: 7.5px; font-weight: 500; letter-spacing: .22em; color: var(--mute); }
.pop-specs dd { margin: 3px 0 0; font-family: 'Cormorant Garamond', serif; font-size: 18px; font-weight: 400; line-height: 1.1; }
.pop-specs dd small { font-family: 'Noto Sans Thai', sans-serif; font-size: 10px; color: var(--ink2); }
.pop-specs dd.sm { font-size: 15px; }
.pop-specs dd.sm small { display: block; margin-top: 1px; }
.pop-price { display: flex; align-items: baseline; gap: 8px; margin: 8px 18px 0; }
.pop-price b { font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: 18px; }
.pop-price small { font-family: 'Noto Sans Thai', sans-serif; font-size: 10px; font-weight: 300; color: var(--ink2); }
.pop-lv { display: flex; gap: 3px; margin: 8px 18px 0; padding: 3px; border-radius: 999px; background: #F4F2F1; width: max-content; }
.pop-lv button { height: 25px; padding: 0 11px; border: 0; border-radius: 99px; background: none; font-family: Jost, 'Noto Sans Thai', sans-serif; font-size: 10px; font-weight: 500; letter-spacing: .14em; color: var(--ink2); transition: background .25s, color .25s; }
.pop-lv button.on { background: var(--ink); color: #F2EEF6; }
/* the plan: every level side by side; swipe sideways / arrows / level chips; tap = full screen */
.pop-plan { position: relative; margin: 9px 10px 0; height: 206px; border-radius: 12px; background: #FAF8F7; overflow: hidden; cursor: zoom-in; }
.pop-plan .trk { display: flex; height: 100%; transition: transform .38s cubic-bezier(.2, .8, .2, 1); }
.pop-plan .trk.drag { transition: none; }
.pop-plan .pg { flex: none; width: 100%; height: 100%; padding: 6px; box-sizing: border-box; }
.pop-plan img { display: block; width: 100%; height: 100%; object-fit: contain; -webkit-user-drag: none; pointer-events: none; }
.pop-arr { position: absolute; z-index: 1; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 99px; border: 0; background: rgba(255, 255, 255, .94); box-shadow: 0 3px 10px rgba(26, 31, 61, .16);
  display: flex; align-items: center; justify-content: center; color: var(--ink); transition: opacity .25s; }
.pop-arr.l { left: 6px; }
.pop-arr.r { right: 6px; }
.pop-plan.first .pop-arr.l, .pop-plan.last .pop-arr.r { opacity: 0; pointer-events: none; }
.pop-dots { position: absolute; left: 0; right: 0; bottom: 7px; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.pop-dots i { width: 5px; height: 5px; border-radius: 9px; background: rgba(26, 31, 61, .2); transition: width .3s, background .3s; }
.pop-dots i.on { width: 14px; background: var(--rose); }
.pop-act { display: flex; align-items: center; gap: 8px; padding: 9px 10px 10px 18px; }
.pop-act .hint { flex: 1; font-family: 'Noto Sans Thai', sans-serif; font-size: 10px; font-weight: 300; color: var(--mute); }
.pop-act .cb { margin-left: auto; }
.b-cmp { height: 34px; padding: 0 13px; border-radius: 99px; border: 1px solid var(--ink); background: #FFF; display: flex; align-items: center; gap: 7px; font-size: 9px; font-weight: 500; letter-spacing: .22em; color: var(--ink); white-space: nowrap; }
.b-cmp.on { background: var(--ink); color: #F2EEF6; }
/* panorama / drone view button */
.b-pano { position: relative; height: 34px; padding: 0 13px 0 3px; border-radius: 99px; border: 0; display: flex; align-items: center; gap: 8px; color: #F2EEF6;
  background: radial-gradient(circle at 17px 50%, #2A3268 0, #12173A 60%), #12173A; box-shadow: 0 8px 20px rgba(18, 23, 58, .28); font-size: 9px; font-weight: 500; letter-spacing: .22em; text-align: left; }
.b-pano .orb { position: relative; width: 28px; height: 28px; border-radius: 99px; border: 1px solid rgba(244, 211, 194, .65); display: flex; align-items: center; justify-content: center; }
.b-pano .orb::after { content: ''; position: absolute; inset: -4px; border-radius: 99px; border: 1px solid rgba(217, 165, 143, .5); animation: fp-halo 2.8s ease-out infinite; }
.b-pano span small { display: block; margin-top: 1px; font-family: 'Noto Sans Thai', sans-serif; font-weight: 300; font-size: 10px; letter-spacing: 0; color: #F4D3C2; }
@keyframes fp-halo { 0% { transform: scale(.7); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
.pano-soon { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; color: #F2EEF6; cursor: default;
  background: radial-gradient(ellipse at 50% 30%, #2A3268 0%, #12173A 55%, #05071A 100%); animation: fp-pop .4s ease both; }
.pano-soon canvas { position: absolute; inset: 0; z-index: -1; }
.pano-soon b { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: 32px; letter-spacing: .08em; }
.pano-soon b em { color: #D9A58F; }
.pano-soon p { margin: 0 24px; font-family: 'Noto Sans Thai', sans-serif; font-weight: 300; font-size: 13px; line-height: 1.6; color: #A9B2D3; }
.pano-soon .tag { padding: 4px 12px; border-radius: 99px; border: 1px solid rgba(217, 165, 143, .6); font-size: 9px; letter-spacing: .3em; color: #F4D3C2; }
.pano-soon button { margin-top: 4px; height: 32px; padding: 0 14px; border-radius: 99px; border: 1px solid rgba(242, 238, 246, .4); background: none; color: #F2EEF6; font-size: 10px; letter-spacing: .24em; }

/* ---------- compare: a large popup over the plan ---------- */
.fp-cfab { position: absolute; z-index: 6; right: 64px; bottom: 122px; height: 58px; padding: 0 10px 0 22px; border-radius: 99px; border: 1px solid rgba(217, 165, 143, .9); background: #12173A; color: #F2EEF6; display: flex; align-items: center; gap: 12px;
  box-shadow: 0 16px 36px rgba(18, 23, 58, .32); transform: translateY(20px); opacity: 0; pointer-events: none; transition: transform .4s, opacity .4s; }
.fp-cfab.on { transform: none; opacity: 1; pointer-events: auto; }
.fp-cfab b { font-size: 11px; font-weight: 500; letter-spacing: .3em; }
.fp-cfab .n { min-width: 38px; height: 38px; padding: 0 8px; border-radius: 99px; background: #D9A58F; color: #12173A; display: flex; align-items: center; justify-content: center; font-family: 'Cormorant Garamond', serif; font-size: 22px; }
.fp-cfab small { font-family: Jost, sans-serif; font-size: 11px; letter-spacing: .08em; color: #F4D3C2; }
.fp-cmp { position: absolute; z-index: 8; left: 50%; top: 52%; transform: translate(-50%, -50%); width: min(1120px, calc(var(--W) - 220px)); max-height: calc(var(--H) - 200px);
  display: flex; flex-direction: column; border-radius: 22px; background: #FFFFFF; overflow: hidden;
  box-shadow: 0 34px 90px rgba(10, 13, 38, .24), 0 0 0 1px rgba(26, 31, 61, .07); opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
.fp-cmp.on { opacity: 1; visibility: visible; transition: opacity .3s; }
.fp-cmp::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, rgba(217, 165, 143, 0), #D9A58F 30%, #F4D3C2 50%, #D9A58F 70%, rgba(217, 165, 143, 0)); }
.fp-cmp header { display: flex; align-items: flex-start; gap: 16px; padding: 20px 18px 12px 28px; cursor: grab; touch-action: none; }
.fp-cmp header > div { flex: 1; }
.fp-cmp h2 { margin: 6px 0 0; font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: 38px; line-height: 1; }
.fp-cmp h2 em { color: var(--rose); }
.fp-cmp header p { margin: 6px 0 0; font-family: 'Noto Sans Thai', sans-serif; font-weight: 300; font-size: 13px; color: var(--ink2); }
.fp-cmp .grid { flex: 1; min-height: 0; overflow: auto; padding: 0 22px 20px; display: grid; grid-template-columns: 130px repeat(var(--n), minmax(0, 1fr)); align-content: start; }
.fp-cmp .cell { padding: 9px 12px; border-bottom: 1px solid var(--hair); font-family: 'Noto Sans Thai', sans-serif; font-size: 14px; font-weight: 300; display: flex; align-items: center; gap: 6px; }
.fp-cmp .cell b { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 400; }
.fp-cmp .cell .tdot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.fp-cmp .lbl { flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px; font-family: Jost, sans-serif; font-size: 9.5px; font-weight: 500; letter-spacing: .24em; color: var(--mute); }
.fp-cmp .lbl small { font-family: 'Noto Sans Thai', sans-serif; font-weight: 300; font-size: 11px; letter-spacing: 0; }
.fp-cmp .top { position: relative; flex-direction: column; align-items: stretch; gap: 8px; padding-top: 0; }
.fp-cmp .top .img { height: 150px; border-radius: 12px; background: #FAF8F7; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.fp-cmp .top .img img { max-width: 94%; max-height: 90%; object-fit: contain; }
.fp-cmp .top h3 { margin: 0; font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: 28px; letter-spacing: .1em; line-height: 1; }
.fp-cmp .top h3 small { display: block; margin-top: 4px; font-family: 'Noto Sans Thai', sans-serif; font-size: 12px; font-weight: 300; letter-spacing: 0; color: var(--ink2); }
.fp-cmp .rm { position: absolute; top: 8px; right: 20px; width: 32px; height: 32px; border-radius: 99px; border: 1px solid var(--hair); background: rgba(255, 255, 255, .95); display: flex; align-items: center; justify-content: center; color: var(--ink); }
.fp-cmp .best { color: #2F7D5B; }
.fp-cmp .best::after { content: '★'; margin-left: 4px; font-size: 11px; color: var(--rose); }

/* ---------- status settings (hidden: hold the recentre button 3 s) ---------- */
.fp-admin-bg { position: absolute; inset: 0; z-index: 9; background: rgba(10, 13, 38, .35); opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s .35s; }
.fp-admin { position: absolute; z-index: 10; top: 0; right: 0; bottom: 0; width: min(920px, calc(var(--W) - 160px)); transform: translateX(104%); transition: transform .5s cubic-bezier(.6, 0, .2, 1); box-shadow: -30px 0 80px rgba(10, 13, 38, .25); }
.fp.admin .fp-admin-bg { opacity: 1; visibility: visible; transition: opacity .35s; }
.fp.admin .fp-admin { transform: none; }
.fp-admin.sp-panel { height: 100%; }

.fp-toast { position: absolute; z-index: 12; left: 50%; bottom: 140px; transform: translate(-50%, 16px); padding: 14px 24px; border-radius: 99px; background: #12173A; color: #F2EEF6; font-family: 'Noto Sans Thai', sans-serif; font-size: 15px; font-weight: 300; opacity: 0; transition: .35s; pointer-events: none; box-shadow: 0 14px 34px rgba(18, 23, 58, .3); }
.fp-toast.on { opacity: 1; transform: translate(-50%, 0); }
.fp-soon { position: absolute; z-index: 4; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 34px 54px; border-radius: 24px; background: rgba(255, 255, 255, .95); box-shadow: 0 30px 80px rgba(10, 13, 38, .14); text-align: center; display: none; }
.fp-soon b { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: 48px; } .fp-soon b em { color: var(--rose); }
.fp-soon p { margin: 10px 0 0; font-family: 'Noto Sans Thai', sans-serif; font-weight: 300; font-size: 17px; color: var(--ink2); }
.fp.soon .fp-soon { display: block; }
.fp-net { position: absolute; z-index: 3; right: 64px; top: 62px; display: none; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px; background: #FFF4E6; color: #7A4A12; font-size: 11px; letter-spacing: .2em; }
.fp-net i { width: 8px; height: 8px; border-radius: 99px; background: #E08A2E; }
.fp.offline .fp-net { display: flex; }
