/* CELESTIA — UNIT PLANS page (midnight CI: navy ground, pearl type, rose-gold accents; the plans sit on pearl paper) */
/* root .uplan (not .up: that is the entrance-animation class) */
.uplan { background: radial-gradient(ellipse 70% 80% at 55% 35%, #141B4A 0%, #0A0E2C 55%, #05071A 100%); user-select: none; -webkit-user-select: none; }
.uplan img { -webkit-user-drag: none; }

/* left: types + villas */
.up-list { position: absolute; left: 64px; top: 150px; bottom: 130px; width: 330px; display: flex; flex-direction: column; }
.up-eye { display: flex; align-items: center; gap: 14px; font-size: 13px; font-weight: 500; letter-spacing: .44em; color: var(--rose); }
.up-eye i { width: 44px; height: 1px; background: var(--rose); }
.up-list h2 { margin: 16px 0 0; font-family: var(--serif); font-weight: 300; font-size: 60px; line-height: 1; letter-spacing: .02em; }
.up-list h2 em, .up-info h2 em { color: var(--rose); }
.up-list nav { flex: 1; min-height: 0; margin-top: 26px; overflow-y: auto; touch-action: pan-y; }
.up-list h4 { margin: 18px 0 6px; font-size: 10px; font-weight: 500; letter-spacing: .32em; color: var(--rose); }
.up-list h4:first-child { margin-top: 0; }
.up-list h4 small { margin-left: 10px; font-family: var(--thai); font-size: 11px; font-weight: 300; letter-spacing: 0; color: var(--muted); }
.up-list nav button { position: relative; width: 100%; height: 58px; margin-bottom: 4px; padding: 0 14px 0 18px; border: 1px solid transparent; border-radius: 14px; background: none;
  display: flex; align-items: center; gap: 14px; text-align: left; color: var(--silver); transition: background .35s, border-color .35s, color .35s; }
.up-list nav button i { flex: none; width: 10px; height: 10px; border-radius: 3px; }
.up-list nav button i.v { background: none; border: 1px solid var(--rose); transform: rotate(45deg); width: 8px; height: 8px; border-radius: 1px; }
.up-list nav button b { width: 34px; font-family: var(--serif); font-size: 26px; font-weight: 400; color: var(--pearl); }
.up-list nav button b.nm { width: 86px; font-size: 21px; letter-spacing: .1em; }
.up-list nav button span { flex: 1; min-width: 0; font-size: 13px; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-list nav button span small { display: block; margin-top: 1px; font-family: var(--thai); font-size: 11px; font-weight: 300; color: var(--muted); }
.up-list nav button em { font-family: var(--serif); font-style: normal; font-size: 17px; color: var(--muted); }
.up-list nav button.on { border-color: rgba(217, 165, 143, .55); background: linear-gradient(90deg, rgba(217, 165, 143, .16), rgba(217, 165, 143, .03)); color: var(--pearl); }
.up-list nav button.on::before { content: ''; position: absolute; left: -1px; top: 14px; bottom: 14px; width: 2px; border-radius: 2px; background: var(--rose); box-shadow: 0 0 10px var(--rose); }
.up-list nav button.on em { color: var(--rose-hi); }

/* every type switched off in the settings: only the title stays */
.uplan.none .up-card, .uplan.none .up-info { display: none; }

/* middle: the plan on pearl paper */
.up-card { position: absolute; left: 440px; right: 540px; top: 120px; bottom: 150px; border-radius: 28px; background: #F4F1EE; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 0 1px rgba(217, 165, 143, .25), 0 0 60px rgba(217, 165, 143, .08); }
.up-chips { position: absolute; z-index: 2; left: 50%; top: 22px; transform: translateX(-50%); display: flex; gap: 3px; padding: 3px; border-radius: 99px; background: rgba(26, 31, 61, .07); }
.up-chips button { height: 32px; padding: 0 14px; border: 0; border-radius: 99px; background: none; font-size: 11px; font-weight: 500; letter-spacing: .16em; color: #5C6282; white-space: nowrap; transition: background .3s, color .3s; }
.up-chips button.on { background: #1A1F3D; color: #F2EEF6; }
.up-plan { position: absolute; left: 70px; right: 70px; top: 76px; bottom: 120px; overflow: hidden; cursor: zoom-in; touch-action: pan-y; }
.up-plan .trk { display: flex; height: 100%; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.up-plan .trk.drag { transition: none; }
.up-plan .pg { flex: none; width: 100%; height: 100%; }
.up-plan img { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; filter: drop-shadow(0 14px 22px rgba(26, 31, 61, .16)); }
.up-arr { position: absolute; z-index: 2; top: calc(50% - 50px); width: 50px; height: 50px; border-radius: 99px; border: 1px solid rgba(26, 31, 61, .12); background: rgba(255, 255, 255, .85);
  display: flex; align-items: center; justify-content: center; color: #1A1F3D; transition: opacity .3s; }
.up-arr.l { left: 14px; } .up-arr.r { right: 14px; }
.up-card.first .up-arr.l, .up-card.last .up-arr.r { opacity: 0; pointer-events: none; }
.up-cap { position: absolute; left: 0; right: 0; bottom: 42px; display: flex; flex-direction: column; align-items: center; gap: 4px; color: #1A1F3D; }
.up-cap b { font-family: var(--serif); font-size: 40px; font-weight: 500; line-height: 1; letter-spacing: .08em; }
.up-cap span { font-family: var(--thai); font-size: 14px; font-weight: 300; color: #5C6282; }
.up-hint { position: absolute; left: 0; right: 0; bottom: 16px; text-align: center; font-family: var(--thai); font-size: 11px; font-weight: 300; color: #8B90AA; }

/* right: facts */
.up-info { position: absolute; right: 64px; top: 120px; bottom: 150px; width: 440px; display: flex; flex-direction: column; overflow-y: auto; touch-action: pan-y; }
.up-info .up-eye { gap: 12px; font-size: 12px; }
.up-info .up-eye i { width: 12px; height: 12px; border-radius: 4px; }
.up-info h2 { margin: 12px 0 0; font-family: var(--serif); font-weight: 300; font-size: 50px; line-height: 1.04; letter-spacing: .03em; }
.up-th { margin: 8px 0 0; font-family: var(--thai); font-weight: 300; font-size: 16px; color: var(--silver); }
.up-specs { display: grid; grid-template-columns: 1fr 1fr; margin: 22px 0 0; border-top: 1px solid rgba(169, 178, 211, .18); }
.up-specs div { padding: 12px 0; border-bottom: 1px solid rgba(169, 178, 211, .18); }
.up-specs div:nth-child(even) { padding-left: 18px; border-left: 1px solid rgba(169, 178, 211, .18); }
.up-specs dt { font-size: 9.5px; font-weight: 500; letter-spacing: .28em; color: var(--muted); }
.up-specs dd { margin: 5px 0 0; font-family: var(--serif); font-size: 28px; font-weight: 400; line-height: 1; color: var(--pearl); }
.up-specs dd small { font-family: var(--thai); font-size: 12px; font-weight: 300; color: var(--silver); }
.up-specs dd.sm { font-size: 22px; }
.up-specs dd.st-available { color: #7FD1A6; } .up-specs dd.st-hold { color: #A9B2D3; } .up-specs dd.st-sold { color: #F28B82; }
.up-kh { margin: 20px 0 8px; font-size: 10px; font-weight: 500; letter-spacing: .32em; color: var(--rose); }
.up-kh small { margin-left: 10px; font-family: var(--thai); font-size: 11px; font-weight: 300; letter-spacing: 0; color: var(--muted); }
.up-key .kp { height: 190px; border-radius: 16px; background: #F4F1EE; overflow: hidden; box-shadow: 0 0 0 1px rgba(217, 165, 143, .25); }
.up-key .kp svg { width: 100%; height: 100%; display: block; }
.up-key .kp path, .up-key .kp polygon, .up-key .kp rect, .up-key .kp ellipse, .up-key .kp circle, .up-key .kp polyline { fill: rgba(26, 31, 61, .18); stroke: none; transition: fill .4s; }
.up-key .kp .on { fill: rgba(217, 165, 143, .72); stroke: #C48E77; stroke-width: 6px; }
.up-360 { position: relative; margin-top: 18px; height: 64px; padding: 0 22px 0 8px; border-radius: 99px; border: 1px solid rgba(217, 165, 143, .7); display: flex; align-items: center; gap: 14px; text-align: left;
  background: radial-gradient(circle at 32px 50%, #2A3268 0, #12173A 60%), #12173A; box-shadow: 0 12px 30px rgba(0, 0, 0, .35), 0 0 24px rgba(217, 165, 143, .12); }
.up-360 .orb { position: relative; width: 48px; height: 48px; border-radius: 99px; border: 1px solid rgba(244, 211, 194, .65); display: flex; align-items: center; justify-content: center; }
.up-360 .orb::after { content: ''; position: absolute; inset: -5px; border-radius: 99px; border: 1px solid rgba(217, 165, 143, .5); animation: up-halo 2.8s ease-out infinite; }
@keyframes up-halo { 0% { transform: scale(.75); opacity: .9; } 100% { transform: scale(1.45); opacity: 0; } }
.up-360 b { display: block; font-size: 13px; font-weight: 500; letter-spacing: .32em; color: var(--pearl); }
.up-360 small { display: block; margin-top: 3px; font-family: var(--thai); font-size: 13px; font-weight: 300; color: var(--rose-hi); }
.up-go { margin-top: 12px; align-self: flex-start; height: 44px; padding: 0 20px; border-radius: 99px; border: 1px solid rgba(169, 178, 211, .35); background: none; display: flex; align-items: center; gap: 10px;
  font-family: var(--thai); font-size: 14px; color: var(--pearl); }
.up-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.up-thumbs button { aspect-ratio: 1; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: #0B0F2C; box-shadow: 0 0 0 1px rgba(217, 165, 143, .25); }
.up-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.up-thumbs button:active img { transform: scale(1.06); }

/* 360° show unit: viewer, or "coming soon" */
.up-soon { position: absolute; inset: 0; z-index: 12; display: none; align-items: center; justify-content: center; }
.up-soon.on { display: flex; }
.up-soon-bg { position: absolute; inset: 0; background: rgba(3, 4, 14, .7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: up-fade .35s ease both; }
@keyframes up-fade { from { opacity: 0; } }
.up-soon-card { position: relative; width: 520px; padding: 46px 40px 38px; border-radius: 26px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px;
  background: radial-gradient(ellipse at 50% 20%, #2A3268 0%, #12173A 60%, #070A20 100%); border: 1px solid rgba(217, 165, 143, .45); box-shadow: 0 40px 100px rgba(0, 0, 0, .6); animation: rise .5s cubic-bezier(.2, .8, .2, 1) both; }
.up-soon-card .orb { width: 72px; height: 72px; border-radius: 99px; border: 1px solid rgba(244, 211, 194, .6); display: flex; align-items: center; justify-content: center; }
.up-soon-card .orb svg { width: 36px; height: 36px; }
.up-soon-card .tag { padding: 5px 14px; border-radius: 99px; border: 1px solid rgba(217, 165, 143, .6); font-size: 10px; letter-spacing: .32em; color: var(--rose-hi); }
.up-soon-card b { font-family: var(--serif); font-weight: 300; font-size: 46px; letter-spacing: .06em; }
.up-soon-card b em { color: var(--rose); }
.up-soon-card p { margin: 0; font-family: var(--thai); font-weight: 300; font-size: 16px; line-height: 1.7; color: var(--silver); }
.up-soon-card button { margin-top: 10px; height: 44px; padding: 0 22px; border-radius: 99px; border: 1px solid rgba(242, 238, 246, .4); background: none; font-size: 11px; letter-spacing: .3em; color: var(--pearl); }
.up-360v { position: absolute; inset: 60px; border-radius: 22px; overflow: hidden; background: #000; box-shadow: 0 40px 100px rgba(0, 0, 0, .6); }
.up-360v iframe { width: 100%; height: 100%; border: 0; display: block; }
.up-x { position: absolute; right: 18px; top: 18px; width: 52px; height: 52px; border-radius: 99px; border: 1px solid rgba(242, 238, 246, .4); background: rgba(5, 7, 26, .6); font-size: 28px; line-height: 1; color: var(--pearl); }
