  .maplibre-3d-open-btn{
    white-space:nowrap;
  }

  .maplibre-3d-modal{
    position:fixed;
    inset:0;
    z-index:9999;
    display:none;
    padding:18px;
    background:rgba(12,22,18,.62);
    backdrop-filter:blur(16px);
    -webkit-backdrop-filter:blur(16px);
  }

  .maplibre-3d-modal.is-open{
    display:flex;
    align-items:center;
    justify-content:center;
  }

  .maplibre-3d-card{
    width:min(1180px, 100%);
    height:min(780px, calc(100vh - 36px));
    display:flex;
    flex-direction:column;
    overflow:hidden;
    border-radius:30px;
    border:1px solid rgba(255,255,255,.24);
    background:
      linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.88)),
      #fff;
    box-shadow:0 30px 90px rgba(0,0,0,.32);
  }

  .maplibre-3d-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:18px;
    padding:18px 20px;
    border-bottom:1px solid rgba(var(--brand-rgb), .12);
  }

  .maplibre-3d-title{
    color:var(--ink-strong);
    font-family:var(--font-display);
    font-size:clamp(22px, 2.4vw, 34px);
    line-height:1.05;
    letter-spacing:-.04em;
    font-weight:650;
  }

  .maplibre-3d-sub{
    max-width:760px;
    margin-top:6px;
    color:rgba(24,53,42,.66);
    font-size:13px;
    line-height:1.45;
  }

  .portal-3d-viewer-hint{
    margin-top:8px;
    max-width:760px;
    padding:8px 10px;
    border-radius:12px;
    background:rgba(15,107,75,.06);
    border:1px solid rgba(15,107,75,.12);
    color:rgba(24,53,42,.72);
    font-size:12px;
    line-height:1.45;
  }

  .maplibre-3d-actions{
    flex:0 0 auto;
    display:flex;
    align-items:center;
    gap:10px;
  }

  .maplibre-3d-body{
    position:relative;
    flex:1 1 auto;
    min-height:0;
    background:var(--surface-2, #f3faf6);
  }

  #mapLibre3DCanvas{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
  }

  .maplibre-3d-loader{
    position:absolute;
    left:50%;
    top:50%;
    z-index:4;
    transform:translate(-50%, -50%);
    width:min(440px, calc(100% - 32px));
    display:flex;
    flex-direction:column;
    gap:7px;
    padding:18px 20px;
    border-radius:22px;
    border:1px solid rgba(var(--brand-rgb), .14);
    background:rgba(255,255,255,.92);
    color:rgba(24,53,42,.72);
    text-align:center;
    box-shadow:0 18px 48px rgba(15,23,42,.14);
  }

  .maplibre-3d-loader strong{
    color:var(--ink-strong);
    font-family:var(--font-display);
    font-size:16px;
  }

  .maplibre-3d-loader.is-hidden{
    display:none;
  }

  .maplibre-3d-marker{
    width:34px;
    height:34px;
    border-radius:999px;
    border:3px solid var(--surface, #ffffff);
    background:var(--brand);
    box-shadow:0 12px 28px rgba(0,0,0,.28);
    cursor:pointer;
    position:relative;
  }

  .maplibre-3d-marker::after{
    content:"";
    position:absolute;
    left:50%;
    top:50%;
    width:8px;
    height:8px;
    border-radius:999px;
    background:var(--surface, #ffffff);
    transform:translate(-50%, -50%);
  }

  .maplibre-3d-popup{
    max-width:280px;
    font-family:var(--font-body);
  }

  .maplibre-3d-popup-title{
    color:var(--ink-strong);
    font-family:var(--font-display);
    font-size:15px;
    font-weight:800;
    line-height:1.25;
  }

  .maplibre-3d-popup-price{
    margin-top:5px;
    color:var(--brand-strong);
    font-weight:850;
  }

  .maplibre-3d-popup-city{
    margin-top:4px;
    color:var(--muted);
    font-size:12px;
  }

  .maplibre-3d-popup-link{
    display:inline-flex;
    margin-top:9px;
    color:var(--brand-strong);
    font-weight:850;
    text-decoration:none;
  }

  @media (max-width:760px){
    .maplibre-3d-modal{
      padding:10px;
    }

    .maplibre-3d-card{
      height:calc(100vh - 20px);
      border-radius:24px;
    }

    .maplibre-3d-head{
      flex-direction:column;
      padding:15px;
    }

    .maplibre-3d-actions{
      width:100%;
    }

    .maplibre-3d-actions .btn{
      flex:1 1 0;
      min-height:44px;
    }

    .maplibre-3d-sub{
      font-size:12.5px;
    }
  }

  /* STEP MAPLIBRE MARKER — anti drift */
  .maplibre-3d-marker{
    box-sizing:border-box !important;
    display:block !important;
    position:relative !important;
    width:34px !important;
    height:34px !important;
    min-width:34px !important;
    min-height:34px !important;
    max-width:34px !important;
    max-height:34px !important;
    margin:0 !important;
    padding:0 !important;
    border:3px solid #fff !important;
    border-radius:999px !important;
    background:var(--brand) !important;
    appearance:none !important;
    -webkit-appearance:none !important;
    line-height:0 !important;
    font-size:0 !important;
    transform:none !important;
    transform-origin:center center !important;
    box-shadow:0 12px 28px rgba(0,0,0,.28) !important;
    cursor:pointer !important;
  }

  .maplibre-3d-marker::after{
    content:"" !important;
    position:absolute !important;
    left:50% !important;
    top:50% !important;
    width:8px !important;
    height:8px !important;
    margin:0 !important;
    padding:0 !important;
    border-radius:999px !important;
    background:#fff !important;
    transform:translate(-50%, -50%) !important;
  }

  .maplibregl-marker{
    will-change:transform !important;
  }


  /* FIX MAPLIBRE MARKERS FINAL — stable DOM marker */

  .maplibregl-marker{
    will-change:transform !important;
  }

  .maplibre-3d-marker{
    box-sizing:border-box !important;
    display:block !important;
    position:relative !important;
    width:32px !important;
    height:32px !important;
    min-width:32px !important;
    min-height:32px !important;
    max-width:32px !important;
    max-height:32px !important;
    margin:0 !important;
    padding:0 !important;
    border:3px solid #fff !important;
    border-radius:999px !important;
    background:var(--brand) !important;
    box-shadow:0 12px 28px rgba(0,0,0,.28) !important;
    cursor:pointer !important;
    appearance:none !important;
    -webkit-appearance:none !important;
    line-height:0 !important;
    font-size:0 !important;
    text-indent:-9999px !important;
    transform:none !important;
    transform-origin:center bottom !important;
    overflow:hidden !important;
  }

  .maplibre-3d-marker::after{
    content:"" !important;
    position:absolute !important;
    left:50% !important;
    top:50% !important;
    width:8px !important;
    height:8px !important;
    margin:0 !important;
    padding:0 !important;
    border-radius:999px !important;
    background:#fff !important;
    transform:translate(-50%, -50%) !important;
  }

  .maplibre-3d-marker:focus-visible{
    outline:3px solid rgba(var(--brand-rgb), .28) !important;
    outline-offset:3px !important;
  }


  /* FIX MAPLIBRE GLOBAL — geojson layer markers */
  .maplibre-3d-marker{
    display:none !important;
  }
