/* ===== Project Page – Premium UI ===== */
.project-wrap{padding:28px 0 80px}

/* Accent tokens (uses your root vars) */
:root{
  --accent:#39c2b5;
  --accent-2:#a588ff;
  --chip:#1b2431;
  --glass:rgba(15,22,34,.55);
}

/* HERO */
.project-hero{
  position:relative;
  display:grid;grid-template-columns:1.6fr 1fr;gap:20px;
  margin:0 0 22px;
}

.section.gallery {
  margin-top: -180px;
  position: relative;
  z-index: 3;
}

.section.gallery {
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(10,12,18,0.95) 120px
  );
  padding-top: 40px;
}
.project-hero::before{
  content:"";position:absolute;inset:-40px -40px auto -40px;height:240px;z-index:-1;
  background:
    radial-gradient(900px 260px at 8% 0%, rgba(57,194,181,.18), transparent 60%),
    radial-gradient(800px 260px at 95% -20%, rgba(165,136,255,.18), transparent 60%);
  filter:saturate(140%);
}

/* HERO MEDIA FIX */
.hero-media{
  position: relative;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  min-height: 520px; /* adjust 480-620 as you like */
  background: rgba(255,255,255,0.03);
}

.hero-media img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-media{
  aspect-ratio: 16 / 10;
  min-height: 420px; /* optional safety */
}
.hero-media{
  border-radius:18px;overflow:hidden;border:1px solid var(--line);
  background:#0e1520;box-shadow:0 20px 60px rgba(0,0,0,.25);
}
.hero-media img{width:100%;height:100%;display:block;object-fit:cover}

.hero-meta{
  display:flex;flex-direction:column;gap:10px;
  padding:14px;border:1px solid var(--line);border-radius:16px;background:#0f1622;
}
.hero-meta h1{margin:0 0 4px;font-size:clamp(24px,3.4vw,36px);line-height:1.1}
.muted{color:var(--muted)}
.price{font-weight:900;margin:6px 0 10px;font-size:20px}
.stat-row{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.stat{
  background:linear-gradient(140deg,rgba(57,194,181,.12),rgba(165,136,255,.10));
  border:1px solid var(--line);border-radius:14px;padding:10px 12px
}
.stat .k{font-size:12px;color:var(--muted)}
.stat .v{font-weight:800;margin-top:2px}

.tags{display:flex;gap:8px;flex-wrap:wrap;margin:6px 0}
.tag{font-size:12px;color:#cfe0ef;background:#0f1622;border:1px solid var(--line);padding:6px 10px;border-radius:999px}

.cta-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:8px}
.btn.small{padding:9px 12px;border-radius:10px}

/* SECTION TITLES */
.section{
  background:#0f1622;border:1px solid var(--line);border-radius:18px;padding:18px;margin:16px 0
}
.section h2,.section h3{
  margin:0 0 12px;position:relative;font-size:18px
}
.section h2::after,.section h3::after{
  content:"";position:absolute;left:0;bottom:-6px;width:72px;height:3px;border-radius:3px;
  background:linear-gradient(90deg,var(--accent),var(--accent-2));
  opacity:.8
}

/* TWO-COLUMN BLOCK */
.grid-2{display:grid;grid-template-columns:1.2fr 1fr;gap:16px}

/* TABLE (cards look) */
.tbl{display:grid;gap:8px}
.tr{display:grid;grid-template-columns:1.1fr .9fr .9fr;gap:10px;
  background:#0e1520;border:1px solid var(--line);border-radius:12px;padding:10px 12px}
.tr.th{background:linear-gradient(180deg,#0e1520,#0f1622);font-weight:700}
.tr div{align-self:center}

/* PAYMENT BAR */
.plan{margin:6px 0}
.plan-bar{height:12px;background:#0e1520;border:1px solid var(--line);border-radius:999px;overflow:hidden}
.plan-bar span{display:block;height:100%;
  background:linear-gradient(90deg,var(--accent),var(--accent-2))}
.plan-legend{display:flex;justify-content:space-between;color:var(--muted);font-size:12px;margin-top:6px}

/* AMENITIES CHIPS */
.amenities{display:flex;flex-wrap:wrap;gap:8px}

/* GALLERY – masonry-ish */
.gallery-grid{
  display:grid;grid-template-columns:2fr 1fr 1fr;gap:10px
}
.gallery-grid img{
  width:100%;height:100%;object-fit:cover;border-radius:12px;border:1px solid var(--line)
}
.gallery-grid img:nth-child(1){grid-row:span 2;min-height:360px}
@media (max-width:980px){
  .project-hero{grid-template-columns:1fr}
  .stat-row{grid-template-columns:repeat(3,1fr)}
  .grid-2{grid-template-columns:1fr}
  .gallery-grid{grid-template-columns:1fr 1fr}
  .gallery-grid img:nth-child(1){grid-row:auto;min-height:200px}
}
@media (max-width:640px){
  .stat-row{grid-template-columns:1fr 1fr}
  .gallery-grid{grid-template-columns:1fr}
}

/* INFO STRIPS */
.info-strip{
  display:flex;gap:10px;flex-wrap:wrap;margin:8px 0 0
}
.info-chip{
  display:inline-flex;gap:8px;align-items:center;
  background:var(--glass);border:1px solid var(--line);
  padding:8px 12px;border-radius:999px;color:#cfe0ef
}
.info-chip i{width:8px;height:8px;border-radius:50%;background:var(--accent)}

/* ===== Nearby Transport ===== */
.transport-grid{
  display:grid;grid-template-columns:1fr 1fr;gap:14px
}
.t-card{
  background:linear-gradient(140deg,rgba(57,194,181,.10),rgba(165,136,255,.08));
  border:1px solid var(--line);border-radius:16px;padding:14px
}
.t-head{display:flex;align-items:center;gap:10px;margin-bottom:8px}
.t-head h3{margin:0;font-size:16px}
.t-icon{width:20px;height:20px;border-radius:6px;background:#1b2431;display:inline-block;position:relative}
.t-icon.metro::after{content:"";position:absolute;inset:5px;border:2px solid var(--accent-2);border-radius:4px}
.t-icon.bus::after{content:"";position:absolute;left:4px;right:4px;top:6px;bottom:6px;background:var(--accent);border-radius:3px}
.t-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.t-item{display:flex;justify-content:space-between;gap:10px;padding:10px;border:1px solid var(--line);border-radius:12px;background:#0e1520}
.t-name{color:#cfe0ef}
.t-time{color:var(--muted);font-size:12px}
.t-roads{margin-top:10px}
.t-chip{display:inline-block;background:#0e1520;border:1px solid var(--line);border-radius:999px;padding:8px 12px;color:#9db6c8}

@media (max-width:980px){ .transport-grid{grid-template-columns:1fr} }

/* ===== FAQs ===== */
.faqs .faq{border:1px solid var(--line);border-radius:14px;background:#0e1520;margin:10px 0;overflow:hidden}
.faq-q{list-style:none;display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 14px;cursor:pointer;font-weight:600}
.faq-q::-webkit-details-marker{display:none}
.faq-caret{transition:transform .2s ease}
.faq[open] .faq-caret{transform:rotate(180deg)}
.faq-a{padding:0 14px 12px;color:#cfe0ef}

/* ---- Light section variant ---- */

.section.light h2,.section.light h3{ color:#fff }
.section.light h2::after,.section.light h3::after{
  background:linear-gradient(90deg,#38b2ac,#7c5cff);
  opacity:.7;
}

/* Transport cards in light mode */
.section.light.transport .t-card{
  background:#ffffff;
  border:1px solid #dbe7f2;
  border-radius:14px;
  box-shadow:0 6px 18px rgba(13,42,76,.06);
}
.section.light.transport .t-head h3{ color:#0b1f2d }
.section.light.transport .t-item{
  background:#ffffff;
  border:1px solid #e6eef6;
}
.section.light.transport .t-name{ color:#193047 }
.section.light.transport .t-time{ color:#607489 }
.section.light.transport .t-icon{ background:#eef5fb }
.section.light.transport .t-icon.metro::after{ border-color:#7c5cff }
.section.light.transport .t-icon.bus::after{ background:#38b2ac }
.section.light.transport .t-chip{
  background:#eef5fb;
  border:1px solid #d8e6f3;
  color:#274057;
}

/* Payment table in light mode */
.section.light .tbl .tr{
  background:#ffffff;
  border:1px solid #e6eef6;
}
.section.light .tbl .tr.th{
  background:#f3f7fb;
  border-color:#dbe7f2;
  font-weight:700;
}
.section.light .tbl .tr div{ color:#102436 }
.explore-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:20px;
  margin-top:12px;
}
.explore-card{
  display:block;
  background:#f8faff;
  border:1px solid #e1e6ef;
  border-radius:12px;
  overflow:hidden;
  text-decoration:none;
  color:#0a1d2e;
  transition:transform .25s ease,box-shadow .25s ease;
}
.explore-card:hover{
  transform:translateY(-4px);
  box-shadow:0 8px 20px rgba(0,0,0,.1);
}
.explore-card img{
  width:100%;
  height:140px;
  object-fit:cover;
  display:block;
}
.explore-card .info{
  padding:10px 12px;
}
.explore-card h4{
  font-size:15px;
  margin:0 0 4px;
}
.explore-card span{
  font-size:13px;
  color:#44556b;
}
/* ===== 2-column layout ===== */
.layout-2col{
  display:grid;
  grid-template-columns: minmax(0,1fr) 340px;
  gap:24px;
}
.col-aside{ position:sticky; top:88px; height:fit-content } /* sticky */

/* ===== Sidebar light theme ===== */
:root{
  --side-bg:#ffffff;
  --side-line:#e7eef5;
  --side-shadow:0 10px 24px rgba(13,42,76,.10);
  --side-text:#0b1f2d;
  --side-sub:#607489;
  --side-accent:#21c1a5; /* teal like Bayut */
}

.s-card{
  background:var(--side-bg);
  border:1px solid var(--side-line);
  border-radius:14px;
  box-shadow:var(--side-shadow);
  padding:14px;
  color:var(--side-text);
  margin-bottom:14px;
}
.s-strip{
  display:flex; gap:8px; justify-content:space-between; align-items:center;
}
.s-btn{
  flex:1; display:flex; gap:8px; align-items:center; justify-content:center;
  background:#f7fbff; border:1px solid var(--side-line); border-radius:10px;
  padding:10px 8px; color:#20425a; cursor:pointer; text-decoration:none;
}
.s-btn:hover{ background:#eef6ff }

/* Agent card */
.s-agent-top{ display:flex; gap:12px; align-items:center; margin-bottom:10px }
.s-avatar{ width:54px; height:54px; border-radius:10px; object-fit:cover; background:#eaf2f9 }
.s-name{ font-weight:700 }
.s-badge{
  display:inline-block; font-size:12px; color:#1e3a4f;
  background:#eef6ff; border:1px solid var(--side-line);
  padding:4px 8px; border-radius:999px; margin-top:4px;
}
.s-actions{ display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin:10px 0 }
.s-action{
  display:inline-flex; align-items:center; justify-content:center;
  height:36px; border-radius:10px; text-decoration:none; font-weight:600; font-size:14px;
  background:#f7fbff; border:1px solid var(--side-line); color:#1f3448;
}
.s-action.wa{ color:#0b6f5d; border-color:#d7efe9; background:#f3fffb }
.s-action.call{ color:#1f3448 }
.s-action.mail{ color:#1f3448 }

.s-brochure{
  display:block; text-align:center; margin-top:8px; text-decoration:none; font-weight:700;
  background:var(--side-accent); color:#fff; padding:10px 12px; border-radius:10px;
}
.s-brochure:hover{ filter:brightness(.95) }

.s-promo .s-promo-title{ font-weight:700; margin-bottom:4px }
.s-link{ color:var(--side-accent); text-decoration:none; font-weight:700 }

/* Responsive: stack on mobile */
@media (max-width: 1024px){
  .layout-2col{ grid-template-columns: 1fr }
  .col-aside{ position:static }
}
/* ===== FAB (mobile) ===== */
.fab{
  position:fixed;
  right:18px; bottom:18px; z-index:120;
  width:64px; height:64px; border-radius:50%;
  border:none; cursor:pointer;
  font-size:36px; line-height:64px; text-align:center;
  background:#21c1a5; /* teal */
  color:#fff; box-shadow:0 12px 28px rgba(13,42,76,.25);
  display:none;  /* desktop hidden */
}

/* ===== Drawer (reusing the same sidebar) ===== */
.drawer .drawer-close{
  position:absolute; right:8px; top:6px;
  width:36px; height:36px; border-radius:8px; border:1px solid #e7eef5;
  background:#f7fbff; color:#1f3448; font-size:22px; line-height:34px; cursor:pointer;
  display:none; /* desktop hidden */
}

@media (max-width:1024px){
  .layout-2col{ grid-template-columns:1fr }
  .col-aside{ position:static }

  /* Drawer: fully hidden by default, safe-area aware, fits width */
  .drawer{
    position:fixed;
    left:0; right:0; bottom:0;           /* anchor to bottom */
    width:100%;
    max-width:100%;
    max-height:75vh;
    overflow:auto;
    box-sizing:border-box;
    padding:14px 14px max(14px, env(safe-area-inset-bottom));
    background:#fff;
    border-top-left-radius:16px;
    border-top-right-radius:16px;
    border:1px solid #e7eef5;
    box-shadow:0 -18px 40px rgba(13,42,76,.25);
    z-index:110;

    /* hide completely by default */
    transform:translateY(100%);
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transition:transform .35s ease, opacity .2s ease, visibility 0s linear .35s;
  }
  .drawer.open{
    transform:translateY(0);
    opacity:1;
    visibility:visible;
    pointer-events:auto;
    transition:transform .35s ease, opacity .2s ease;
  }

  .drawer .drawer-close{
    display:block;
    position:absolute; right:8px; top:6px;
    width:36px; height:36px; border-radius:8px;
    border:1px solid #e7eef5; background:#f7fbff;
    color:#1f3448; font-size:22px; line-height:34px; cursor:pointer;
  }

  /* FAB */
  .fab{
    position:fixed; right:18px; bottom:calc(env(safe-area-inset-bottom) + 18px);
    z-index:120;
    width:64px; height:64px; border-radius:50%;
    border:none; cursor:pointer; font-size:36px; line-height:64px; text-align:center;
    background:#21c1a5; color:#fff; box-shadow:0 12px 28px rgba(13,42,76,.25);
    display:block;   /* mobile only */
  }

  /* dimmer when open */
  body.drawer-open::after{
    content:""; position:fixed; inset:0; z-index:100;
    background:rgba(5,16,26,.45);
    backdrop-filter:saturate(120%) blur(2px);
  }
}
/* === Mobile fixes: center FAB + keep drawer inside viewport === */
@media (max-width:1024px){
  /* Center the + button */
  .fab{
    right:auto;
    left:50%;
    transform:translateX(-50%);
    bottom:calc(env(safe-area-inset-bottom) + 18px);
  }

  /* Drawer: inset from both sides, no overflow */
  .drawer{
    /* pull in from left/right so it never hangs off-screen */
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    width:auto;          /* override 100% so left/right insets apply */
    max-width: 100%;
    overflow-x:hidden;   /* prevent horizontal scroll */
    -webkit-overflow-scrolling: touch;
    box-sizing:border-box;
  }

  /* Make sure content inside the drawer can shrink */
  .drawer .s-card{ max-width:100% }
  .drawer .s-strip{ flex-wrap:wrap; gap:8px }
  .drawer .s-btn{ min-width:0; flex:1 1 auto }

  /* Close button stays inside after new insets */
  .drawer .drawer-close{ right:10px; top:8px }
}
/* ===== Mobile drawer centered + FAB on right-middle ===== */
@media (max-width:1024px){
  .layout-2col{ grid-template-columns:1fr }
  .col-aside{ position:static }

  /* Drawer: horizontally centered, capped width, fully hidden by default */
  .drawer{
    position:fixed;
    bottom:0;
    left:50%;                              /* center horizontally */
    width:min(520px, calc(100vw - 24px));  /* never exceed viewport */
    max-height:75vh;
    overflow:auto;
    box-sizing:border-box;
    padding:14px 14px max(14px, env(safe-area-inset-bottom));
    background:#fff;
    border-top-left-radius:16px;
    border-top-right-radius:16px;
    border:1px solid #e7eef5;
    box-shadow:0 -18px 40px rgba(13,42,76,.25);
    z-index:110;

    /* fully hidden until opened */
    transform:translate(-50%, 100%);
    opacity:0; visibility:hidden; pointer-events:none;
    transition:transform .35s ease, opacity .2s ease, visibility 0s linear .35s;
  }
  .drawer.open{
    transform:translate(-50%, 0);
    opacity:1; visibility:visible; pointer-events:auto;
    transition:transform .35s ease, opacity .2s ease;
  }

  .drawer .drawer-close{
    display:block;
    position:absolute; right:12px; top:8px;
    width:36px; height:36px; border-radius:8px;
    border:1px solid #e7eef5; background:#f7fbff;
    color:#1f3448; font-size:22px; line-height:34px; cursor:pointer;
  }

  /* FAB: middle-right (not bottom) */
  .fab{
    position:fixed;
    top:50%;
    right: max(12px, env(safe-area-inset-right));
    left:auto;
    bottom:auto;
    transform:translateY(-50%);            /* vertically centered */
    z-index:120;
    width:64px; height:64px; border-radius:50%;
    border:none; cursor:pointer; font-size:36px; line-height:64px; text-align:center;
    background:#21c1a5; color:#fff; box-shadow:0 12px 28px rgba(13,42,76,.25);
    display:block;                          /* mobile only */
  }

  /* wrap wide buttons inside the drawer */
  .drawer .s-strip{ flex-wrap:wrap; gap:8px }
  .drawer .s-btn{ min-width:0; flex:1 1 auto }
  .drawer .s-card{ max-width:100% }

  /* dim background when open */
  body.drawer-open::after{
    content:""; position:fixed; inset:0; z-index:100;
    background:rgba(5,16,26,.45);
    backdrop-filter:saturate(120%) blur(2px);
  }
}
/* === Animated entry for CTA buttons inside drawer === */
.drawer .s-btn,
.drawer .contact-buttons button,
.drawer .contact-buttons .btn {
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: transform .4s cubic-bezier(.17,.67,.42,1.37), opacity .3s ease;
}

/* when drawer opens, animate in sequence */
.drawer.open .s-btn,
.drawer.open .contact-buttons button,
.drawer.open .contact-buttons .btn {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.drawer.open .contact-buttons button:nth-child(1) { transition-delay: 0.1s; }
.drawer.open .contact-buttons button:nth-child(2) { transition-delay: 0.25s; }
.drawer.open .contact-buttons button:nth-child(3) { transition-delay: 0.4s; }
.drawer .contact-buttons .btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

/* Stories strip */
.project-stories {
  margin-top: 16px;
}

.ps-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.ps-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.ps-pill {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(10,16,25,0.85);
  white-space: nowrap;
}

/* one row, scrollable, 3 videos on desktop */
.ps-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.ps-strip::-webkit-scrollbar {
  height: 4px;
}
.ps-strip::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.3);
  border-radius: 4px;
}

/* each embed: vertical 9:16 */
.ps-embed {
  flex: 0 0 220px;           /* width of each card on desktop */
  max-width: 220px;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
}

.ps-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* mobile: bigger cards, swipe rail */
@media (max-width: 768px) {
  .ps-embed {
    flex-basis: 70vw;
    max-width: 70vw;
  }
}

/* Stories strip – 1 row, 3 columns */
.project-stories {
  margin-top: 16px;
}

.project-stories .ps-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.project-stories .ps-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.project-stories .ps-pill {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(10,16,25,0.85);
  white-space: nowrap;
}

/* one horizontal row, scrollable */
.project-stories .ps-strip {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.project-stories .ps-strip::-webkit-scrollbar {
  height: 4px;
}
.project-stories .ps-strip::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.3);
  border-radius: 4px;
}

/* 9:16 TikTok card */
.project-stories .ps-embed {
  flex: 0 0 calc(33.333% - 8px);     /* 3 columns on desktop */
  max-width: calc(33.333% - 8px);
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
}

.project-stories .ps-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* mobile – bigger card, swipe rail */
@media (max-width: 768px) {
  .project-stories .ps-embed {
    flex-basis: 70vw;
    max-width: 70vw;
  }
}

/* FORCE stories to be 1 row, 3 columns */

section.project-stories .ps-strip {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

section.project-stories .ps-embed {
  flex: 0 0 calc(33.333% - 8px) !important; /* 3 columns */
  max-width: calc(33.333% - 8px) !important;
  width: auto !important;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
}

section.project-stories .ps-embed iframe {
  width: 100% !important;
  height: 100% !important;
  border: 0;
  display: block;
}

/* mobile - bigger cards, swipe rail */
@media (max-width: 768px) {
  section.project-stories .ps-embed {
    flex-basis: 70vw !important;
    max-width: 70vw !important;
  }
}
.tiktok-frame {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 18px;
  position: relative;
  background: #000;
}

/* Force-fit TikTok UI inside a 9:16 crop */
.tiktok-frame iframe {
  width: 100%;
  height: 180%;         /* zooms in */
  border: 0;
  transform: translateY(-22%); /* centers content so buttons visible */
  transform-origin: top center;
}
/* Make TikTok embed fit nicely inside the card */
.tiktok-frame {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 18px;
  position: relative;
  background: #000;
}

/* Scale and center the TikTok UI so it fits, no scrollbars */
.tiktok-frame iframe {
  width: 100%;
  height: 180%;
  border: 0;
  display: block;
  transform: translateY(-22%);
  transform-origin: top center;
}

/* Mobile: slightly wider cards */
@media (max-width: 768px) {
  .project-stories .ps-embed {
    flex: 0 0 70vw;
    max-width: 70vw;
  }
}

/* Force all info boxes to dark theme */
.section.info-box,
.section.property-info,
.section.location-box,
.section.transport-box,
.section.property-information {
  background: #0d1117 !important;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 22px;
  color: #e6e6e6;
}

/* Make headings consistent */
.section.info-box h2,
.section.property-info h2,
.section.location-box h2,
.section.transport-box h2,
.section.property-information h2 {
  color: #fff;
  margin-bottom: 12px;
  font-weight: 600;
}

/* Bullet text */
.section.info-box li,
.section.property-info li,
.section.location-box li,
.section.transport-box li,
.section.property-information li {
  color: #cfcfcf;
}
/* Animated thin gradient border for broker card */

.col-aside .s-broker-anim {
  position: relative;
  border-radius: 20px;
  padding: 14px 16px;
  background:
    linear-gradient(#050814,#050814) padding-box,
    linear-gradient(120deg, #4be4ff, #9b7bff, #ffb387, #4be4ff) border-box;
  border: 1px solid transparent; /* important for gradient border */
  background-size: 220% 220%;
  animation: brokerBorderShift 10s linear infinite;
  box-shadow: 0 18px 40px rgba(0,0,0,0.7);
}

/* optional: soften inner content background from old rule */
.col-aside .s-broker-anim::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: radial-gradient(circle at top left, rgba(75,228,255,0.14), transparent 60%),
              radial-gradient(circle at bottom right, rgba(155,123,255,0.18), transparent 60%),
              #050814;
  z-index: -1;
}

/* animation for moving gradient */
@keyframes brokerBorderShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.ai-summary { 
  margin-top: 24px;
}

.ai-block {
  background: #0f1622;
  border: 1px solid var(--line);
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.ai-block h3 {
  margin: 0 0 8px;
  color: #cfe0ef;
}
.ai-box {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 22px 26px;
  border-radius: 14px;
  margin-top: 24px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.25);
}

.ai-box .ai-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #E0E8FF;
}

.ai-box .ai-head .ai-icon {
  font-size: 20px;
  background: #4c7eff;
  color: #fff;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.ai-box p {
  margin: 0;
  color: #d1d9eb;
  line-height: 1.6;
}
.ai-enhanced {
  display: grid;
  gap: 28px;
  margin-top: 40px;
}

/* Shared box style */
.ai-box {
  background: #111922;
  border-radius: 18px;
  padding: 22px 26px;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

.ai-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.ai-header h3 {
  font-size: 20px;
  margin: 0;
}

.ai-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-icon.chat { background:#1b2637; }
.ai-icon.flash { background:#2d1b22; }

/* FAQ mini stats */
.ai-mini-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.ai-mini-stats span {
  padding: 5px 12px;
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  font-size: 13px;
}

/* SXO grid */
.ai-sxo-grid {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
}

.ai-sxo-grid .item {
  text-align: center;
  flex: 1;
}

.g-icon {
  font-size: 26px;
  display: block;
  margin-bottom: 6px;
}
/* WRAPPER */
.ai-blocks-wrap {
  margin: 50px 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* CARD BASE */
.ai-block {
  background: #ffffff;
  border-radius: 20px;
  padding: 28px;
  border: 1px solid #e7e7e7;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}

/* TITLE */
.ai-block-title {
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #222;
}

/* TEXT */
.ai-block-text {
  font-size: 15px;
  line-height: 1.65;
  color: #333;
}

/* TAGS */
.ai-block-tags span {
  background: #f1f5f9;
  padding: 7px 14px;
  border-radius: 10px;
  font-size: 13px;
  margin-right: 8px;
  margin-top: 10px;
  display: inline-block;
}

/* BUYER FIT CHECKS */
.ai-block-checks span {
  background: #fdf4ff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 14px;
  margin-right: 10px;
  display: inline-block;
  color: #7e22ce;
  margin-top: 10px;
}

/* SXO FEATURES */
.ai-block-features span {
  background: #eff6ff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 14px;
  margin-right: 10px;
  display: inline-block;
  color: #2563eb;
  margin-top: 10px;
}
/* ================================
   AI BLOCK – GLOBAL WRAPPER
================================ */
.aiBlock {
    background:#ffffff;
    border-radius:20px;
    padding:26px;
    border:1px solid #e7e7e7;
    box-shadow:0 12px 26px rgba(0,0,0,0.08);
    color:#222;
}

/* Fix text readability */
.aiBlock p {
    color:#222 !important;
    font-size:15px;
    line-height:1.62;
}

/* ================================
   HEAD SECTION (ICON + TITLE)
================================ */
.aiBlock-head {
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:12px;
}

/* Fix broken icons */
.aiBlock-head img {
    width:26px;
    height:26px;
    object-fit:contain;
    display:block;
}

/* Fallback icon if image fails to load */
.aiBlock-head img::before {
    content:"🤖";
    font-size:22px;
}

/* Title styling */
.aiBlock-head h3 {
    margin:0;
    font-size:22px;
    font-weight:700;
    color:#111;
}


/* ================================
   TAGS (Pills)
================================ */
.aiTags {
    margin-top:18px;
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.aiTags span {
    background:#f5f5f5;
    padding:8px 12px;
    border-radius:10px;
    font-size:13px;
    color:#333;
    border:1px solid #eaeaea;
}


/* Light pastel tag colors (optional)
   — makes each group look different */
.aiTags span:nth-child(1) { background:#f0f8ff; }
.aiTags span:nth-child(2) { background:#fef6f3; }
.aiTags span:nth-child(3) { background:#f4f7ff; }
.aiTags span:nth-child(4) { background:#f3fdf3; }


.decision-helper {
    margin: 60px 0;
}

.dh-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.dh-sub {
    margin-bottom: 25px;
    font-size: 1rem;
    color: #555;
}

.dh-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.dh-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.dh-card h3 {
    margin: 0 0 6px;
    font-size: 1.1rem;
}

.dh-solve {
    margin-top: 10px;
    padding: 8px 12px;
    background: #f5f7ff;
    border-left: 3px solid #2b5cff;
    border-radius: 6px;
    font-size: 0.9rem;
}
.dh-cta {
    margin-top: 30px;
    text-align: center;
}

.related-projects-section {
    margin-top: 60px;
}

.related-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
    letter-spacing: 0.5px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
}

/* CARD WRAPPER */
.op-card {
    background: #0d0d0d;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid rgba(255, 215, 0, 0.25);
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    display: block;
    position: relative;
}

/* GOLD BORDER GLOW HOVER */
.op-card:hover {
    border-color: rgba(255, 215, 0, 0.8);
    box-shadow: 0 0 18px rgba(255,215,0,0.45);
    transform: translateY(-4px);
}

/* IMAGE */
.op-card-img img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 215, 0, 0.25);
}

/* CONTENT SECTION */
.op-card-content {
    padding: 16px 18px;
}

/* TITLE */
.op-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

/* DEVELOPER */
.op-card-developer {
    font-size: 14px;
    color: #e0c171;
    margin-bottom: 4px;
}

/* LOCATION */
.op-card-location {
    font-size: 13px;
    color: #bbbbbb;
    margin-bottom: 10px;
}

/* PRICE */
.op-card-price {
    font-size: 15px;
    font-weight: 600;
    color: #ffd700;
}

/* RESPONSIVE ADJUSTMENTS */
@media (max-width: 600px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
    .op-card-img img {
        height: 160px;
    }
}


.inventory-urgency {
  margin: 24px 0;
}

.urgency-card {
  background: rgba(255, 87, 34, 0.08);
  border: 1px solid rgba(255, 87, 34, 0.25);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.urgency-card strong {
  color: #ff5722;
  font-weight: 600;
}

.urgency-meta {
  color: #cfd3dc;
  font-size: 13px;
}

/* spacing from next section */
.project-infra-confidence {
  margin-bottom: 56px; /* creates breathing room */
}

/* card shell aligned with others */
.project-infra-confidence.transport-card {
  background: linear-gradient(
    180deg,
    rgba(12, 32, 36, 0.75),
    rgba(10, 14, 18, 0.95)
  );
  border: 1px solid rgba(120, 220, 210, 0.18);
  border-radius: 18px;
  padding: 28px;
}

/* layout */
.project-infra-confidence .infra-box {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 28px;
  align-items: center;
}

/* score badge – NEW COLOR SYSTEM */
.infra-score {
  background: linear-gradient(
    180deg,
    rgba(60, 200, 190, 0.18),
    rgba(30, 120, 140, 0.12)
  );
  border: 1px solid rgba(120, 220, 210, 0.35);
  border-radius: 14px;
  padding: 16px 14px;
  text-align: center;
}

/* score number */
.infra-score .score {
  font-size: 28px;
  font-weight: 700;
  color: #6fe0d6; /* calm intelligence teal */
  line-height: 1;
}

/* label */
.infra-score .label {
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(200, 255, 250, 0.7);
}

/* text */
.infra-text h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
}

.infra-text p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.85;
}
.unit-types {
  margin-top: 24px;
}

.unit-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

/* unit card */
.unit-card {
  background: linear-gradient(
    180deg,
    rgba(12, 32, 36, 0.65),
    rgba(10, 14, 18, 0.95)
  );
  border: 1px solid rgba(120, 220, 210, 0.16);
  border-radius: 18px;
  padding: 24px;
}

/* title */
.unit-card h4 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 600;
}

/* meta rows */
.unit-card .unit-meta {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.85;
}
/* Unit Types section spacing */
.info-section {
  margin-top: 48px;
}

/* Grid */
.info-grid.units-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

/* Card */
.info-card.unit-card {
  background: linear-gradient(
    180deg,
    rgba(12, 32, 36, 0.65),
    rgba(10, 14, 18, 0.95)
  );
  border: 1px solid rgba(120, 220, 210, 0.18);
  border-radius: 18px;
  padding: 22px 24px;
}

/* Unit name */
.unit-card .unit-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}

/* Price */
.unit-card .unit-price {
  font-size: 15px;
  font-weight: 600;
  color: #6fe0d6;
  margin-bottom: 8px;
}

/* Meta rows */
.unit-card .unit-meta {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.85;
}
/* Unit Types section spacing */
.info-section {
  margin-top: 48px;
}

/* Grid */
.info-grid.units-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

/* Card base */
.info-card.unit-card {
  position: relative;
  background: linear-gradient(
    180deg,
    rgba(12, 32, 36, 0.65),
    rgba(10, 14, 18, 0.95)
  );
  border: 1px solid rgba(120, 220, 210, 0.18);
  border-radius: 18px;
  padding: 24px;
  overflow: hidden;
}

/* subtle top accent line */
.info-card.unit-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(
    90deg,
    rgba(120, 220, 210, 0.8),
    rgba(120, 220, 210, 0.15)
  );
}

/* inner divider line */
.info-card.unit-card::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 58px;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

/* Unit name */
.unit-card .unit-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 14px;
}

/* Price */
.unit-card .unit-price {
  font-size: 15px;
  font-weight: 600;
  color: #6fe0d6;
  margin-bottom: 10px;
}

/* Meta rows */
.unit-card .unit-meta {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.85;
}

/* optional hover lift */
.info-card.unit-card:hover {
  transform: translateY(-2px);
  border-color: rgba(120, 220, 210, 0.35);
}


.cp-faqs {
  position: relative;
  margin-bottom: 64px; /* critical */
}

.cp-faq-item {
  margin-bottom: 12px;
}

.cp-faq-answer {
  padding: 12px 0 20px;
}

.section.gallery {
  margin-top: 64px;
  position: relative;
  z-index: 1;
}
.cp-faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.cp-faq-item[open] {
  margin-bottom: 24px;
}
/* base pill */
h4.buyer-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 8px 14px;
  margin: 16px 0 28px;

  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;

  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);

  line-height: 1;
}

/* dot */
h4.buyer-primary::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* End User */
h4.buyer-primary.buyer-end-user {
  color: #9dd6b8;
}
h4.buyer-primary.buyer-end-user::before {
  background: #9dd6b8;
}

/* Investor */
h4.buyer-primary.buyer-investor {
  color: #e3c77a;
}
h4.buyer-primary.buyer-investor::before {
  background: #e3c77a;
}
/* Base pill */
.pa-rank-pill {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid transparent;
}

/* Strong / Positive */
.pa-rank-pill.rank-strong {
  background: rgba(34,197,94,0.15);
  color: #22c55e;
  border-color: rgba(34,197,94,0.35);
}

/* Neutral */
.pa-rank-pill.rank-neutral {
  background: rgba(234,179,8,0.15);
  color: #eab308;
  border-color: rgba(234,179,8,0.35);
}

/* Risk (future-proof) */
.pa-rank-pill.rank-risk {
  background: rgba(239,68,68,0.15);
  color: #ef4444;
  border-color: rgba(239,68,68,0.35);
}

/* First pill highlight (optional) */
.pa-rank-pill.pa-rank-hot {
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08);
}
/* Base pill */
.pa-rank-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: default;
}

/* Icon base */
.pa-rank-pill .rank-icon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* Neutral (light) */
.pa-rank-pill.rank-neutral {
  background: linear-gradient(135deg, rgba(234,179,8,0.12), rgba(234,179,8,0.04));
  color: #eab308;
  border-color: rgba(234,179,8,0.3);
}
.rank-neutral .rank-icon {
  background: #eab308;
}

/* Strong */
.pa-rank-pill.rank-strong {
  background: linear-gradient(135deg, rgba(34,197,94,0.22), rgba(34,197,94,0.08));
  color: #22c55e;
  border-color: rgba(34,197,94,0.4);
}
.rank-strong .rank-icon {
  background: #22c55e;
}

/* Very strong */
.pa-rank-pill.rank-very-strong {
  background: linear-gradient(135deg, rgba(16,185,129,0.35), rgba(16,185,129,0.12));
  color: #10b981;
  border-color: rgba(16,185,129,0.6);
}
.rank-very-strong .rank-icon {
  background: #10b981;
}

/* Risk */
.pa-rank-pill.rank-risk {
  background: linear-gradient(135deg, rgba(239,68,68,0.25), rgba(239,68,68,0.08));
  color: #ef4444;
  border-color: rgba(239,68,68,0.45);
}
.rank-risk .rank-icon {
  background: #ef4444;
}

/* Tooltip */
.pa-rank-pill::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #0b1220;
  color: #e5e7eb;
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,.4);
  z-index: 20;
}

.pa-rank-pill:hover::after {
  opacity: 1;
}



.pa-two-col {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 20px;
  margin-bottom: 48px;
}
.pa-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr; /* IMPORTANT */
  gap: 24px;
  width: 100%;
  max-width: 100%;
}
.pa-two-col > .pa-card {
  width: 100%;
}
.section,
.section-inner,
.pa-section {
  max-width: 100%;
}
.section-inner {
  max-width: 1400px; /* or whatever your design allows */
}
.pa-two-col {
  max-width: 1400px;
  margin: 0 auto;
}
/* FORCE Project Intelligence section to span full layout */
.layout-2col > .pa-two-col {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  max-width: none !important;
}
/* FORCE Project Intelligence full-width */
.pa-two-col {
  max-width: none !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
/* ===== AI ANALYSIS – SIGNAL DESIGN ===== */

.pa-ai-signals {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}

.ai-signal {
  position: relative;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.ai-signal.good {
  border-left: 3px solid #22c55e;
}

.ai-signal.neutral {
  border-left: 3px solid #eab308;
}

.ai-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ai-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.ai-signal.good .ai-dot { background:#22c55e; }
.ai-signal.neutral .ai-dot { background:#eab308; }

.ai-title {
  font-size: 14px;
  font-weight: 600;
  color: #e5e7eb;
}

.ai-right {
  position: absolute;
  top: 12px;
  right: 12px;
}

.ai-badge {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
  background: rgba(255,255,255,0.08);
}

.ai-signal.good .ai-badge {
  color: #22c55e;
  background: rgba(34,197,94,0.15);
}

.ai-signal.neutral .ai-badge {
  color: #eab308;
  background: rgba(234,179,8,0.15);
}

.ai-desc {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.5;
  color: #9ca3af;
}
.ai-sub {
  font-size: 13px;
  color: #9db6c8;
  margin-top: 4px;
}

.ai-bridge {
  margin: 14px 0 18px;
  font-size: 14px;
  color: #cfe0ef;
  font-weight: 500;
}
/* === FIX AI ANALYSIS CARD LAYOUT === */
.pa-card-ai {
  display: block;
}

.pa-card-ai .pa-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.pa-card-ai .ai-head > div {
  max-width: 75%;
}

.pa-card-ai .ai-info {
  flex-shrink: 0;
}

/* Tooltip positioning */
.pa-card-ai .ai-tooltip {
  position: absolute;
  right: 0;
  top: 28px;
  width: 320px;
  z-index: 20;
}

/* Signals must be full width */
.pa-ai-signals {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}

/* Each signal is single column */
.ai-signal {
  display: block;
}
/* === AI TOOLTIP FIX === */
.ai-info {
  position: relative;
  cursor: help;
  font-size: 14px;
  color: #9db6ff;
}

/* Tooltip hidden by default */
.ai-tooltip {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;

  width: 320px;
  padding: 14px 16px;

  background: #0b1220;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;

  color: #e5e7eb;
  font-size: 13px;
  line-height: 1.5;

  box-shadow: 0 12px 28px rgba(0,0,0,0.45);

  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;

  z-index: 9999;
  pointer-events: none;
}

/* SHOW on hover */
.ai-info:hover .ai-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Tooltip content styles */
.ai-tooltip strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: #ffffff;
}

.ai-tooltip ul {
  padding-left: 18px;
  margin: 8px 0;
}

.ai-tooltip li {
  margin-bottom: 6px;
}

.ai-tooltip em {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: 12px;
  color: #9aa4b2;
}
/* === Tooltip visual separation upgrade === */
.ai-tooltip {
  background: linear-gradient(
    180deg,
    rgba(18, 26, 40, 0.98),
    rgba(10, 16, 28, 0.98)
  );

  border: 1px solid rgba(120, 140, 255, 0.35); /* visible edge */
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),   /* crisp outline */
    0 18px 40px rgba(0,0,0,0.65);        /* lift from bg */

  backdrop-filter: blur(6px);
}

/* Optional subtle top accent line (intelligence feel) */
.ai-tooltip::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    rgba(120,140,255,0.9),
    rgba(90,200,180,0.6)
  );
}
/* === Fix uneven column height gap === */
.pa-two-col {
  align-items: stretch;
}

.pa-two-col > .pa-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.pa-card-rank::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: auto;
  opacity: 0.06;
}
.pa-card-rank {
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* NOT space-between */
}
.pa-card-rank .pa-advantage {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
/* Market Advantage special styling */
.ai-signal.advantage {
  margin-top: 12px;                 /* SMALL, controlled gap */
  padding-top: 18px;
  border-top: 1px dashed rgba(255,255,255,0.08);

  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.03),
    rgba(255,255,255,0.01)
  );
}

/* Neutral dot (not green/yellow) */
.ai-signal.advantage .ai-dot {
  background: #9ca3af;
}

/* Title emphasis */
.ai-signal.advantage .ai-title {
  font-weight: 600;
  color: #e5e7eb;
}

/* Description tighter */
.ai-signal.advantage .ai-desc {
  margin-top: 6px;
  color: #9ca3af;
  font-size: 13px;
  line-height: 1.5;
}

