:root{
    --bg:#f3f5f7;
    --card:#fff;
    --text:#121826;
    --muted:#6b7280;
    --line:#e5e7eb;
    --shadow: 0 1px 2px rgba(16,24,40,.06), 0 6px 18px rgba(16,24,40,.08);
    --radius: 14px;
    --btn:#111827;
  }
  
  *{ box-sizing:border-box; }
  html,body{ height:100%; }
  body{
    margin:0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans";
    color:var(--text);
    background:var(--bg);
  }
  
  .container{
    width:min(1200px, calc(100% - 32px));
    margin:0 auto;
  }
  
  .topbar{
    background:#fff;
    border-bottom:1px solid var(--line);
  }
  .topbar__inner{
    height:64px;
    display:flex;
    align-items:center;
  }
  .brand__logo{ height:140px; display:block; }
  
  .layout{
    display:grid;
    grid-template-columns: 1fr 360px;
    gap:18px;
    padding:18px 0 28px;
  }
  
  .card{
    background:var(--card);
    border:1px solid var(--line);
    border-radius:var(--radius);
    box-shadow:var(--shadow);
    padding:16px;
  }
  
  .gallery{
    display:grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 160px 160px;
    gap:10px;
  }
  .tile{
    border:0;
    padding:0;
    background:#000;
    border-radius:12px;
    overflow:hidden;
    cursor:pointer;
    position:relative;
    display:block;
    text-decoration:none;
  }
  .tile img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: high-quality;
    -ms-interpolation-mode: nearest-neighbor;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-origin: center center;
    transition: transform 0.2s ease;
  }
  .tile--big{
    grid-row:1 / span 2;
    grid-column:1;
  }
  .tile--overlay img{ filter:brightness(.6); }
  .tile__label{
    position:absolute;
    inset:auto 0 0 0;
    padding:14px;
    color:#fff;
    font-weight:700;
    letter-spacing:.2px
  }
  
  .kicker{
    margin:0 0 8px 0;
    color:var(--muted);
    font-size:14px;
  }
  .headline{
    display:flex;
    justify-content:space-between;
    gap:14px;
    align-items:flex-start;
  }
  .title{ margin:0; font-size:22px; }
  .meta{ margin:6px 0 0 0; color:var(--muted); font-size:14px; }
  
  .pricebox{ text-align:right; }
  .price{ font-size:28px; font-weight:800; }
  .price2{ margin-top:4px; color:var(--muted); font-size:14px; }
  
  .h2{ margin:0 0 12px 0; font-size:18px; }
  .h3{ margin:16px 0 8px 0; font-size:15px; }
  
  .specs{ margin:0; padding:0; }
  .spec{
    display:grid;
    grid-template-columns: 280px 1fr;
    gap:14px;
    padding:12px 0;
    border-top:1px solid var(--line);
  }
  .spec:first-child{ border-top:0; padding-top:0; }
  .spec dt{ color:var(--muted); }
  .spec dd{ margin:0; font-weight:600; }
  
  .chips{
    list-style:none;
    margin:0;
    padding:0;
    display:flex;
    gap:8px;
    flex-wrap:wrap;
  }
  .chips li{
    border:1px solid var(--line);
    border-radius:999px;
    padding:6px 10px;
    font-size:13px;
    font-weight:600;
    background:#fafafa;
  }
  
  .acc{
    margin-top:12px;
    border-top:1px solid var(--line);
    padding-top:12px;
  }
  .acc summary{
    cursor:pointer;
    font-weight:700;
    list-style:none;
  }
  .acc summary::-webkit-details-marker{ display:none; }
  .acc__body{ margin-top:10px; color:var(--text); }
  
  .content p{ margin:0 0 12px 0; line-height:1.6; color:#1f2937; }
  .bullets{ margin:0; padding-left:18px; color:#1f2937; line-height:1.6; }
  
  .map{
    border-radius:12px;
    overflow:hidden;
    border:1px solid var(--line);
  }
  .map iframe{
    width:100%;
    height:320px;
    border:0;
    display:block;
  }
  
  /* SIDEBAR */
  .side__sticky{
    position:sticky;
    top:18px;
  }
  
  .agent{
    display:flex;
    gap:12px;
    align-items:center;
    margin-bottom:12px;
  }
  .agent__avatar{
    width:44px; height:44px;
    border-radius:999px;
    background:linear-gradient(135deg,#e5e7eb,#cbd5e1);
    border:1px solid var(--line);
  }
  .agent__name{ font-weight:800; }
  .agent__org{ color:var(--muted); font-size:13px; margin-top:2px; }
  
  .phone{
    margin:12px 0;
    padding:14px 16px;
    background:#f9fafb;
    border:1px solid var(--line);
    border-radius:12px;
    text-align:center;
    font-size:20px;
    font-weight:700;
    color:var(--text);
  }
  .phone a{
    color:inherit;
    text-decoration:none;
  }
  .phone a:hover{
    text-decoration:underline;
  }
  
  .form{ display:flex; flex-direction:column; gap:10px; margin-top:12px; }
  .field span{ display:block; font-size:12px; color:var(--muted); margin-bottom:6px; }
  .field input, .field textarea{
    width:100%;
    border:1px solid var(--line);
    border-radius:10px;
    padding:10px 12px;
    font:inherit;
    outline:none;
    background:#fff;
  }
  .field input:focus, .field textarea:focus{
    border-color:#cbd5e1;
    box-shadow:0 0 0 3px rgba(148,163,184,.25);
  }
  
  .gdpr{
    margin:4px 0 0 0;
    color:var(--muted);
    font-size:12px;
  }
  .gdpr a{ color:inherit; }
  
  .btn{
    border:1px solid var(--line);
    background:#fff;
    color:var(--text);
    border-radius:12px;
    padding:12px 14px;
    cursor:pointer;
    font-weight:800;
  }
  .btn--primary{
    background:var(--btn);
    color:#fff;
    border-color:transparent;
  }
  .btn--ghost{
    background:#fff;
  }
  
  /* MODAL */
  .modal{
    position:fixed;
    inset:0;
    display:none;
  }
  .modal.is-open{ display:block; }
  .modal__backdrop{
    position:absolute;
    inset:0;
    background:rgba(17,24,39,.55);
  }
  .modal__panel{
    position:relative;
    width:min(1100px, calc(100% - 24px));
    margin:24px auto;
    background:#fff;
    border-radius:16px;
    overflow:hidden;
    border:1px solid var(--line);
    box-shadow:var(--shadow);
  }
  .modal__close{
    position:absolute;
    top:10px; right:10px;
    z-index:2;
    border:1px solid var(--line);
    background:#fff;
    border-radius:10px;
    padding:8px 10px;
    cursor:pointer;
    font-weight:800;
  }
  .modal__main{
    position:relative;
    background:#000;
    display:grid;
    grid-template-columns: 56px 1fr 56px;
    align-items:center;
  }
  .modal__main img{
    width:100%;
    height:560px;
    object-fit:contain;
    background:#000;
    display:block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: high-quality;
    -ms-interpolation-mode: bicubic;
    transform-origin: center center;
    transition: transform 0.3s ease;
  }
  /* For rotated images (90° or -90°), adjust sizing */
  .modal__main img[data-orientation="6"],
  .modal__main img[data-orientation="8"],
  .modal__main img[data-orientation="5"],
  .modal__main img[data-orientation="7"] {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
  }
  .nav{
    height:100%;
    border:0;
    background:rgba(255,255,255,.06);
    color:#fff;
    font-size:36px;
    cursor:pointer;
  }
  .modal__thumbs{
    display:flex;
    gap:10px;
    padding:10px;
    overflow:auto;
    border-top:1px solid var(--line);
    background:#fafafa;
  }
  .modalThumb{
    border:2px solid transparent;
    border-radius:10px;
    overflow:hidden;
    padding:0;
    background:#000;
    cursor:pointer;
  }
  .modalThumb.is-active{ border-color:#111827; }
  .modalThumb img{ 
    width:120px; 
    height:76px; 
    object-fit:cover; 
    display:block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: high-quality;
    transform-origin: center center;
  }
  /* For rotated thumbnails */
  .modalThumb img[data-orientation="6"],
  .modalThumb img[data-orientation="8"],
  .modalThumb img[data-orientation="5"],
  .modalThumb img[data-orientation="7"] {
    object-fit: contain;
  }
  
  /* MOBILE */
  .mobileCta{ display:none; }
  
  @media (max-width: 980px){
    .layout{ grid-template-columns: 1fr; }
    .side__sticky{ position:static; }
    .mobileCta{ display:block; position:sticky; bottom:12px; z-index:5; }
    .mobileCta .btn{ width:100%; box-shadow:var(--shadow); }
  }
  
  @media (max-width: 720px){
    .gallery{
      grid-template-columns: 1fr 1fr;
      grid-template-rows: 180px 120px 120px;
    }
    .tile--big{ grid-column:1 / span 2; grid-row:1; }
    .spec{ grid-template-columns: 1fr; }
    .pricebox{ text-align:left; }
    .headline{ flex-direction:column; align-items:flex-start; }
    .modal__main img{ height:420px; }
  }
  