/* Phone polish (loaded last on every page). Mobile-first fixes from the phone audit:
   compact portrait, swipe carousels with dots, 44px tap targets, 16px form fields (no iOS zoom),
   tidier map controls, collapsible facts, and calmer, quicker motion. */

/* ---------- shared, all sizes ---------- */
.leon-m{display:none}
.dots{display:none}
.fab svg{width:18px;height:18px;flex:none}
.rv.now{transition:none}
.kv-more{display:none}
html{-webkit-tap-highlight-color:transparent}
.btn,.chip,.icon-btn,.nl-item,.h-room,.plan-card,.match,.lay-row{touch-action:manipulation}
.btn:active,.chip:active,.icon-btn:active,.nl-item:active,.h-room:active,.plan-card:active,.lay-row:active{transform:scale(.97)}

/* hero headline entrance */
@keyframes riseIn{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
.anim-in .h-title,.anim-in .h-sub,.anim-in .h-search,.anim-in .h-hero-foot,.anim-in .h-kicker{animation:riseIn .7s cubic-bezier(.2,.7,.2,1) both}
.anim-done .h-title,.anim-done .h-sub,.anim-done .h-search,.anim-done .h-hero-foot,.anim-done .h-kicker{animation:none!important;opacity:1;transform:none}
.h-kicker{animation-delay:.05s}.h-title{animation-delay:.12s}.h-sub{animation-delay:.22s}.h-search{animation-delay:.32s}.h-hero-foot{animation-delay:.42s}
@media (prefers-reduced-motion:reduce){.h-title,.h-sub,.h-search,.h-hero-foot,.h-kicker{animation:none}}

@media (max-width:600px){
  /* ---------- type floor ---------- */
  .eyebrow,.h-kicker{font-size:11px}
  .h-search small,.fsel small{font-size:10.5px}

  /* ---------- tap targets (≥ 40–44px) ---------- */
  .seg.lang button{min-height:36px;min-width:40px}
  .menu-btn{width:40px;height:40px}
  .foot-cols a{padding:7px 0;display:block}
  .foot-cols div{gap:0}
  .moment a{padding:8px 0}
  .b-card .go{padding:8px 0}
  .nmap-filter .chip{min-height:38px}
  .chip{min-height:38px}

  /* ---------- no iOS zoom: fields at 16px ---------- */
  input,select,textarea,.inp{font-size:16px!important}
  .money input{font-size:17px!important}

  /* ---------- FAB: round WhatsApp button ---------- */
  .btn.fab{width:56px;height:56px;padding:0;border-radius:50%;background:var(--wa);right:14px;bottom:14px;box-shadow:0 10px 28px rgba(0,0,0,.55),0 0 0 4px rgba(37,184,100,.18)}
  .fab span{display:none}
  .fab svg{width:26px;height:26px}
  body.tray-on .fab{bottom:84px}

  /* ---------- hero search: whole tile is the tap target ---------- */
  .h-search label{position:relative;min-height:54px;justify-content:flex-start}
  .h-search label small{position:relative;z-index:1;pointer-events:none}
  .h-search select{position:absolute;inset:0;padding:22px 11px 6px;font-size:16px!important;opacity:1}
  .h-search .btn{min-height:54px}
  .h-dot{min-height:44px}

  /* ---------- numbers: one compact strip ---------- */
  .h-numbers{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}
  .h-numbers div{padding:12px 8px;border-radius:16px;text-align:center}
  .h-numbers b{font-size:21px;letter-spacing:-.04em}
  .h-numbers span{font-size:10.5px;line-height:1.25;margin-top:5px}

  /* ---------- spotlights: swipe carousel ---------- */
  .h-intro{padding:28px 10px 12px}
  #spotlights{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;gap:8px;margin:0 -6px;padding:0 6px 2px;scroll-padding:0 6px}
  #spotlights::-webkit-scrollbar{display:none}
  #spotlights .h-spot{flex:0 0 88%;scroll-snap-align:start;margin-top:0}
  .h-spot-media{min-height:210px}
  .h-spot-copy h3{font-size:36px}
  .h-spot-head{font-size:16px}

  /* dots */
  .dots{display:flex;justify-content:center;gap:6px;padding:12px 0 2px}
  .dots[hidden]{display:none}
  .dots i{width:6px;height:6px;border-radius:999px;background:#3a3a41;transition:width .25s,background .25s}
  .dots i.on{width:20px;background:#fff}

  /* ---------- rooms: compact chips, selected kept in view ---------- */
  .h-room{padding:9px 13px;min-height:44px}
  .h-room b{font-size:14.5px}
  .h-room small{font-size:10.5px}
  .plan-card{flex-basis:76%}

  /* ---------- Meet Leon: compact profile header ---------- */
  .blend .leon-photo{display:none}
  .h-leon.blend{min-height:0;background:var(--surface)}
  .h-leon.blend .h-leon-copy{padding:18px 16px 18px!important;gap:14px}
  .h-leon-copy>.eyebrow,.h-leon-copy>.h-sign{display:none}
  .leon-m{display:flex;align-items:center;gap:14px}
  .leon-m-av{width:84px;height:84px;border-radius:50%;flex:none;position:relative;
    background:url("/leon-portrait-transparent.png") 62% 12%/230% no-repeat,radial-gradient(circle at 50% 35%,#2b2540,#141418);
    box-shadow:0 0 0 2px #141416,0 0 0 4px transparent,0 10px 26px rgba(0,0,0,.5)}
  .leon-m-av::after{content:"";position:absolute;inset:-4px;border-radius:50%;padding:2px;background:var(--grad);-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude}
  .leon-m small{display:block;font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
  .leon-m b{display:block;font:600 26px/1.1 var(--f-display);margin:2px 0 4px}
  .leon-m span{font-size:12.5px;color:var(--muted)}
  .leon-m span i{font-style:normal;display:inline-grid;place-items:center;width:16px;height:16px;border-radius:50%;background:#fff;color:#000;font-size:10px;font-weight:700;margin-right:3px}
  .h-leon-copy blockquote{font-size:17px;line-height:1.35;border-left:3px solid #7B5CFF;padding-left:12px}
  .h-leon-copy .hero-ctas{margin-top:2px}
  .h-leon-copy .hero-ctas .btn{flex:1}

  /* About page header on phone */
  .about.blend{padding-top:18px}
  .about.blend .about-grid{padding-top:0!important}
  .about .leon-m{margin:6px 0 16px}

  /* ---------- map: tidy controls, smaller pins ---------- */
  .nmap-tools{top:10px;right:10px;gap:4px}
  .nmap-tools .seg button{padding:8px 11px;font-size:12px;min-height:36px}
  .nmap-3d{padding:7px 10px!important;font-size:12px!important}
  .nmap-legend{top:52px;left:10px}
  .nl-toggle{padding:7px 10px;font-size:12px}
  .ppin{font-size:11.5px;padding:2px 10px 2px 2px;gap:5px}
  .ppin img{width:24px;height:24px}
  .ppin.main{font-size:12px;padding:3px 11px 3px 3px}
  .ppin.main img{width:28px;height:28px}
  .mrt3-tag{font-size:9.5px;padding:4px 8px 4px 6px}
  .nmap-list .nl-hint{display:none}
  .nmap-canvas{min-height:400px}

  /* ---------- stories ---------- */
  .moment{flex-basis:76%}

  /* ---------- enquiry form ---------- */
  #enqForm .row{grid-template-columns:1fr 1fr;gap:8px}
  #enqForm .row .field>span{font-size:12px}
  #enqForm .form-foot .btn{width:100%;min-height:52px;font-size:16px}
  #enqForm .form-foot small{text-align:center}

  /* ---------- project page ---------- */
  .kv{grid-template-columns:1fr 1fr!important}
  .kv b{font-size:12.5px;line-height:1.35}
  .kv:not(.all) .more-fact{display:none}
  .kv-more{display:inline-flex;margin-top:10px;width:100%}
  #others.swipe-m{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;gap:8px;margin:0 -14px;padding:0 14px}
  #others.swipe-m::-webkit-scrollbar{display:none}
  #others.swipe-m .proj{flex:0 0 84%;scroll-snap-align:start}
  .mo-3d{left:10px;bottom:10px;padding:8px 12px}
  .mo-all{padding:8px 12px}
  .pay .box,.pay .result{padding:16px}
  .lay-view .plan img{max-height:260px}

  /* ---------- reveal: shorter travel, quicker ---------- */
  .rv{transform:translateY(10px);transition:opacity .4s ease,transform .45s cubic-bezier(.2,.7,.2,1)}
}
@media (max-width:600px){
  /* map pins: photo only, name on the selected one */
  .nmap .ppin{padding:2px;gap:0;transform:translate(-50%,-50%)}
  .nmap .ppin b{display:none}
  .nmap .ppin.sel{padding:3px 11px 3px 3px;gap:6px;transform:translate(-18px,-50%)}
  .nmap .ppin.sel b{display:inline}
  .nmap .ppin img{width:30px;height:30px}
  .h-intro h2{font-size:24px}
}
/* grids must never grow past the screen (min-content overflow) */
@media (max-width:1000px){
  .pj-layout,.calc,.finder,.enquire,.pay,.lay-wrap,.loc-wrap,.about-grid,.list-layout,.tools-grid,.nmap{grid-template-columns:minmax(0,1fr)!important}
  .pj-main>*,.pj-sec,.pj-head{min-width:0;max-width:100%}
}

/* Compare: no outlined boxes. Best value gets a small quiet tag instead. */
.cmp-table td.best{box-shadow:none!important;background:var(--panel)!important}
.cmp-table td.best::after{content:"Best";display:inline-block;margin-left:8px;vertical-align:1px;font:600 10px/1 var(--f-body);letter-spacing:.06em;text-transform:uppercase;color:#7FE0B0;background:rgba(127,224,176,.12);padding:3px 6px;border-radius:6px}
@media (max-width:600px){.cmp-table td.best::after{display:table;margin:6px 0 0}}

/* Compare: colour tones per kind of value */
.cmp-table .t-price{color:#52E3A4}
.cmp-table .t-month{color:#C7B8FF}
.cmp-table .t-size{color:#9CC9FF}
.cmp-table .t-psf{color:#7FE0D0}
.cmp-table .t-done{color:#F2A7D6;font-weight:600}
.cmp-table .t-furn{color:#E9E2C8}
.t-tag{display:inline-block;font-size:12.5px;font-weight:700;padding:4px 10px;border-radius:999px;border:1px solid transparent}
.t-free{color:#7FE0B0;background:rgba(127,224,176,.12);border-color:rgba(127,224,176,.35)}
.t-lease{color:#F5A65B;background:rgba(245,166,91,.10);border-color:rgba(245,166,91,.3)}
.t-res{color:#9CC9FF;background:rgba(156,201,255,.12);border-color:rgba(156,201,255,.35)}
.t-com{color:#C9C9D1;background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.14)}
.t-mrt3{font-size:10.5px;padding:2px 7px;margin-top:3px;color:#fff;background:linear-gradient(135deg,#7B5CFF,#655DC6);box-shadow:0 0 10px rgba(123,92,255,.5)}
.cmp-table td.best::after{content:none!important;display:none!important}
