/* ==========================================================================
   PropNex CIQ Pro Enhancements (2026-12)
   - Currency Toggle (MYR / SGD), RTS 2027 Countdown, Interactive Comparison,
     Mortgage/Yield & Foreign Buyer Cost Calculators, Guides Hub, Card Polish,
     CTA De-cluttering & Lightbox Hardening
   ========================================================================== */

:root {
  --pro-navy: #081e3d;
  --pro-navy-2: #0d2c54;
  --pro-blue: #0b4384;
  --pro-gold: #eab308;
  --pro-gold-soft: #fef3c7;
  --pro-green: #147348;
  --pro-green-bright: #1fa855;
  --pro-ink: #0f2540;
  --pro-muted: #526a85;
  --pro-border: #d7e4f2;
  --pro-bg: #f4f8ff;
}

/* 1. Eliminate overlapping right-edge floating WhatsApp card on all viewports
   (We keep the clean, context-aware bottom bar #pnciq-sticky-wa instead) */
a.floating-wa {
  display: none !important;
}

/* Refine #pnciq-sticky-wa so it never crowds footer or hero */
#pnciq-sticky-wa {
  padding: 10px 16px !important;
  background: rgba(8, 30, 61, 0.96) !important;
  border-top: 1px solid rgba(234, 179, 8, 0.35) !important;
  box-shadow: 0 -8px 28px rgba(4, 15, 34, 0.32) !important;
}
@media (min-width: 960px) {
  #pnciq-sticky-wa {
    max-width: 580px !important;
    right: 20px !important;
    bottom: 16px !important;
    border: 1px solid rgba(234, 179, 8, 0.35) !important;
    border-radius: 16px !important;
  }
}

/* 2. Header Currency Toggle & Language Pill */
.pro-header-tools {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pro-curr-toggle {
  display: inline-flex;
  align-items: center;
  background: #edf4fc;
  border: 1px solid #c7dbf0;
  border-radius: 999px;
  padding: 2px;
  font-family: Inter, system-ui, sans-serif;
}
.pro-curr-toggle button {
  border: 0;
  background: transparent;
  color: #365678;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  line-height: 1;
}
.pro-curr-toggle button.active {
  background: #0b4384;
  color: #fff;
  box-shadow: 0 2px 6px rgba(11, 67, 132, 0.25);
}
.pro-lang-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #0b4384;
  background: #edf4fc;
  border: 1px solid #c7dbf0;
  border-radius: 999px;
  padding: 5px 10px;
  text-decoration: none;
  line-height: 1;
  transition: background 0.18s, color 0.18s;
}
.pro-lang-link:hover {
  background: #0b4384;
  color: #fff;
}
@media (max-width: 640px) {
  .pro-lang-link { display: none; }
  .pro-curr-toggle button { padding: 5px 7px; font-size: 10px; }
}

/* 3. Hero Live RTS Countdown Pill & Clean Visual Hierarchy */
.pro-hero-pill {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  background: rgba(8, 30, 61, 0.72);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(234, 179, 8, 0.5);
  color: #fff;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}
.pro-hero-pill .pro-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.28);
  flex-shrink: 0;
}
.pro-hero-pill strong {
  color: #facc15;
  font-weight: 800;
}
@media (max-width: 760px) {
  .hero .hero-copy {
    padding-top: 26px !important;
  }
  .pro-hero-pill {
    font-size: 11px;
    padding: 6px 12px;
  }
}
.pro-hero-trust-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.pro-hero-stat {
  background: rgba(8, 30, 61, 0.62);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 9px 14px;
  color: #fff;
  font-size: 11.5px;
  line-height: 1.3;
}
.pro-hero-stat strong {
  display: block;
  font-family: 'Plus Jakarta Sans', Inter, sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #facc15;
}

/* 4. Card Polish: Fix orphaned "ft" wrap, hide noisy artist impression text on cards, add SGD subtitle */
.card-facts p {
  white-space: normal;
  word-break: keep-all;
}
.card-facts .pro-nowrap {
  white-space: nowrap;
}
.card-facts small {
  display: none !important;
}
.pro-card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 6px;
  font-size: 11px;
  color: var(--pro-muted);
}
.pro-card-sgd {
  font-weight: 700;
  color: #0b4384;
  background: #e6f0fb;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 10.5px;
  white-space: nowrap;
}
.pro-card-rts {
  font-weight: 600;
  color: #147348;
  font-size: 10.5px;
  white-space: nowrap;
}

/* Quick Filter Chips Bar */
.pro-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 14px 0 18px;
}
.pro-chip {
  border: 1px solid #c7d9ec;
  background: #fff;
  color: #1a3b5c;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s;
  font-family: Inter, system-ui, sans-serif;
}
.pro-chip:hover {
  border-color: #0b4384;
  color: #0b4384;
  background: #f0f6ff;
}
.pro-chip.active {
  background: #0b4384;
  color: #fff;
  border-color: #0b4384;
  box-shadow: 0 4px 12px rgba(11, 67, 132, 0.22);
}

/* Shortlist WhatsApp Action Bar */
.pro-shortlist-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: linear-gradient(135deg, #0b2c54, #144378);
  color: #fff;
  border-radius: 16px;
  padding: 14px 18px;
  margin: 16px 0;
  box-shadow: 0 10px 26px rgba(8, 30, 61, 0.2);
}
.pro-shortlist-bar.show {
  display: flex;
}
.pro-shortlist-bar strong {
  color: #facc15;
}
.pro-shortlist-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pro-shortlist-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 0;
}
.pro-shortlist-btn.wa {
  background: #1fa855;
  color: #fff;
}
.pro-shortlist-btn.wa:hover {
  background: #168c44;
}
.pro-shortlist-btn.clear {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

/* 5. Interactive Comparison Matrix Section (#compare) */
.pro-section {
  padding: 64px 0;
  background: #f5f9ff;
  border-top: 1px solid #dde8f5;
}
.pro-section.dark {
  background: linear-gradient(155deg, #071b36 0%, #0d2e59 100%);
  color: #f8fafc;
  border-top: 0;
}
.pro-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}
.pro-section-head h2 {
  font-family: 'Plus Jakarta Sans', Inter, sans-serif;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 6px 0 0;
  color: var(--pro-navy);
  line-height: 1.15;
}
.pro-section.dark .pro-section-head h2 {
  color: #fff;
}
.pro-section-sub {
  font-size: 14px;
  color: var(--pro-muted);
  max-width: 620px;
  margin-top: 8px;
  line-height: 1.6;
}
.pro-section.dark .pro-section-sub {
  color: #cbd5e1;
}

.pro-table-card {
  background: #fff;
  border: 1px solid var(--pro-border);
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(11, 67, 132, 0.06);
  overflow: hidden;
}
.pro-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.pro-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  min-width: 740px;
}
.pro-compare-table th {
  background: #0b2c54;
  color: #e2ecf8;
  font-weight: 700;
  text-align: left;
  padding: 12px 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.pro-compare-table th.sortable {
  cursor: pointer;
  user-select: none;
}
.pro-compare-table th.sortable:hover {
  color: #facc15;
}
.pro-compare-table td {
  padding: 11px 10px;
  border-bottom: 1px solid #e6eef7;
  color: var(--pro-ink);
  vertical-align: middle;
}
.pro-scroll-hint {
  display: none;
  font-size: 11.5px;
  font-weight: 600;
  color: #0b4384;
  background: #eaf3ff;
  padding: 7px 12px;
  text-align: center;
  border-bottom: 1px solid #d7e4f2;
}
@media (max-width: 820px) {
  .pro-scroll-hint { display: block; }
}
.pro-compare-table tbody tr:hover {
  background: #f5faff;
}
.pro-compare-table tbody tr:last-child td {
  border-bottom: 0;
}
.pro-proj-cell strong {
  display: block;
  font-size: 13.5px;
  color: #0b2c54;
}
.pro-proj-cell span {
  font-size: 11px;
  color: var(--pro-muted);
}
.pro-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.pro-badge.green { background: #dcfce7; color: #166534; }
.pro-badge.gold { background: #fef3c7; color: #92400e; }
.pro-badge.blue { background: #dbeafe; color: #1e40af; }
.pro-table-actions {
  display: flex;
  gap: 6px;
  white-space: nowrap;
}
.pro-btn-xs {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s, background 0.15s;
}
.pro-btn-xs.primary {
  background: #0b4384;
  color: #fff;
}
.pro-btn-xs.primary:hover {
  background: #083263;
}
.pro-btn-xs.wa {
  background: #e7f8ee;
  color: #147348;
  border: 1px solid #b8e6ca;
}
.pro-btn-xs.wa:hover {
  background: #147348;
  color: #fff;
}

/* 6. Interactive Cross-Border Calculators Hub (#tools) */
.pro-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.pro-tab-btn {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #e2ecf8;
  font-size: 13px;
  font-weight: 700;
  padding: 11px 18px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.18s;
  font-family: Inter, system-ui, sans-serif;
}
.pro-tab-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}
.pro-tab-btn.active {
  background: linear-gradient(135deg, #fde047, #eab308);
  color: #081e3d;
  border-color: #fde047;
  box-shadow: 0 6px 18px rgba(234, 179, 8, 0.3);
}
.pro-tool-panel {
  display: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  padding: 26px;
}
.pro-tool-panel.active {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 860px) {
  .pro-tool-panel.active {
    grid-template-columns: 1fr;
    padding: 20px 16px;
  }
}
.pro-calc-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 520px) {
  .pro-calc-inputs { grid-template-columns: 1fr; }
}
.pro-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pro-field.full {
  grid-column: 1 / -1;
}
.pro-field label {
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
}
.pro-field input,
.pro-field select {
  background: rgba(8, 30, 61, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 14px;
  font-weight: 600;
  font-family: Inter, system-ui, sans-serif;
}
.pro-field input:focus,
.pro-field select:focus {
  outline: 2px solid #eab308;
  border-color: #eab308;
}
.pro-calc-output {
  background: #fff;
  color: var(--pro-ink);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.24);
}
.pro-out-hero {
  border-bottom: 1px solid #e6eef7;
  padding-bottom: 14px;
  margin-bottom: 14px;
}
.pro-out-hero small {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--pro-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.pro-out-big {
  font-family: 'Plus Jakarta Sans', Inter, sans-serif;
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 800;
  color: #0b4384;
  margin: 4px 0 2px;
}
.pro-out-sub {
  font-size: 13px;
  font-weight: 700;
  color: #147348;
}
.pro-out-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.pro-out-item {
  background: #f4f8ff;
  border: 1px solid #dce8f6;
  border-radius: 12px;
  padding: 10px 12px;
}
.pro-out-item span {
  display: block;
  font-size: 11px;
  color: var(--pro-muted);
}
.pro-out-item strong {
  display: block;
  font-size: 14.5px;
  color: var(--pro-navy);
  margin-top: 2px;
}
.pro-elig-box {
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 14px;
  line-height: 1.45;
}
.pro-elig-box.ok {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}
.pro-elig-box.warn {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}
.pro-calc-wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: #147348;
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 13.5px;
  padding: 13px 16px;
  border-radius: 12px;
  transition: background 0.18s;
}
.pro-calc-wa-btn:hover {
  background: #105c39;
}

/* 7. Live RTS 2027 Countdown & Milestone Tracker */
.pro-rts-tracker {
  margin-top: 28px;
  background: rgba(8, 30, 61, 0.72);
  border: 1px solid rgba(234, 179, 8, 0.35);
  border-radius: 18px;
  padding: 20px 22px;
  color: #fff;
}
.pro-rts-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
}
.pro-rts-countdown {
  display: flex;
  gap: 10px;
}
.pro-cd-box {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 8px 12px;
  text-align: center;
  min-width: 58px;
}
.pro-cd-box b {
  display: block;
  font-family: 'Plus Jakarta Sans', Inter, sans-serif;
  font-size: 19px;
  color: #facc15;
  line-height: 1.1;
}
.pro-cd-box span {
  font-size: 10px;
  text-transform: uppercase;
  color: #cbd5e1;
}
.pro-rts-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
@media (max-width: 700px) {
  .pro-rts-steps { grid-template-columns: 1fr 1fr; }
}
.pro-rts-step {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 11px 12px;
  font-size: 11.5px;
  color: #cbd5e1;
}
.pro-rts-step.done {
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.12);
}
.pro-rts-step.now {
  border-color: rgba(250, 204, 21, 0.65);
  background: rgba(250, 204, 21, 0.14);
}
.pro-rts-step strong {
  display: block;
  color: #fff;
  font-size: 12px;
  margin-bottom: 3px;
}

/* 8. Featured Buyer Guides Grid */
.pro-guides-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 1020px) {
  .pro-guides-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .pro-guides-grid { grid-template-columns: 1fr; }
}
.pro-guide-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
  border: 1px solid var(--pro-border);
  border-radius: 16px;
  padding: 18px;
  text-decoration: none;
  color: var(--pro-ink);
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.pro-guide-card:hover {
  transform: translateY(-3px);
  border-color: #0b4384;
  box-shadow: 0 12px 26px rgba(11, 67, 132, 0.1);
}
.pro-guide-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0b4384;
  background: #e6f0fb;
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.pro-guide-card h3 {
  font-family: 'Plus Jakarta Sans', Inter, sans-serif;
  font-size: 15.5px;
  font-weight: 800;
  line-height: 1.32;
  margin: 0 0 8px;
  color: #081e3d;
}
.pro-guide-card p {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--pro-muted);
  margin: 0 0 12px;
}
.pro-guide-more {
  font-size: 12px;
  font-weight: 700;
  color: #0b4384;
}

/* 9. Lightbox Hardening (Fix blank floor plan modal on project detail pages) */
dialog#lb {
  z-index: 99999 !important;
}
dialog#lb figure {
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  max-height: 100dvh !important;
  padding: 24px 56px !important;
  box-sizing: border-box !important;
}
dialog#lb img {
  position: static !important;
  width: auto !important;
  height: auto !important;
  max-width: min(92vw, 1100px) !important;
  max-height: calc(100dvh - 150px) !important;
  min-width: 240px !important;
  min-height: 160px !important;
  object-fit: contain !important;
  background: #ffffff !important;
  border-radius: 12px !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5) !important;
  transform: none !important;
  left: auto !important;
  top: auto !important;
}
.pro-lb-wa {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1fa855;
  color: #fff !important;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 999px;
}
.pro-lb-wa:hover {
  background: #168c44;
}
