:root{
    --bg-1: #20232c;
    --bg-2: #0f1720;
    --card: rgba(255,255,255,0.04);
    --glass: rgba(255,255,255,0.02);
    --accent: #caa742; /* gold */
    --muted: #9aa4ae;
    --radius: 14px;
    --shadow: 0 8px 30px rgba(3,8,15,0.6);
    --max: 1200px;
    --thumb-w: 130px; --thumb-h: 120px; --gap: 10px; --visible-count: 5; --thumb-border-active: #e2b94b;
  }

  html,body{height:100%;}
  body{
    margin:0;
    min-height:100%;
    font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
    background-color: var(--bg-1);
    color:#e6eef6;
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
    line-height:1.45;
  }
  .header-title{padding: 20px 20px 10px;}
.hero1 {position: relative;border-radius: 14px;overflow: hidden;min-height: 400px;background: linear-gradient(180deg, rgba(0,0,0,0.06), rgba(0,0,0,0.02));box-shadow: 0 8px 30px rgba(2,6,23,0.06);}
.hero1 .hero1-img { width:100%; height:420px; object-fit:cover; display:block; }
.hero1 .overlay {position: absolute;inset: 0;display:flex;align-items:flex-end;padding: 20px;background: linear-gradient(0deg, rgba(0,0,0,0.45), transparent 40%);}
.hero1 .meta {color: #fff;max-width: 920px;}
.title {font-size: 22px;font-weight: 700;margin: 2px 0 6px;}
.sub-title{font-size: 18px;font-weight:600;}
.sub {color: rgba(255,255,255,0.9);font-size: 14px;display:flex;gap:12px;align-items:center;}
.badge {background: #fff; color:#e2b94b;padding: 6px 10px;border-radius: 999px;font-weight:600;display:inline-flex;gap:8px;align-items:center;}
.stars { color: #f7b500; font-weight:700; }
.hero-price { color: #f7b500; font-weight:700; }

  .wrap{
    max-width:var(--max);
    margin:36px auto;
    padding:28px;
  }

  /* header */
  header.site {
    display:flex;
    align-items:center;
    gap:22px;
    margin-bottom:26px;
  }
  .logo {
    display:flex;
    gap:12px;
    align-items:center;
  }
  .logo .mark {
    width:56px; height:56px; border-radius:8px;
    background:linear-gradient(135deg,var(--accent), #b1892a);
    display:flex; align-items:center; justify-content:center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.4);
    font-weight:800; color:#081017; font-family:'Libre Baskerville';
  }
  .brand { font-weight:700; font-size:18px; color:var(--accent); letter-spacing:0.6px;}
  .nav {
    margin-left:auto; color:var(--muted); display:flex; gap:18px; font-size:15px;
    align-items:center;
  }

  /* main layout */
  .grid {
    display:grid;
    grid-template-columns: 1fr 380px;
    gap:36px;
    align-items:start;
  }


  /* hero gallery left */
  .gallery {
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    border-radius: var(--radius);
    padding:18px;
    box-shadow: var(--shadow);
  }
  .hero {
    border-radius:12px;
    overflow:hidden;
    background:#0b0d0f;
    height:420px;
    position:relative;
  }
  .hero img { width:100%; height:100%; object-fit:cover; display:block; transition: transform .6s ease; }
  .hero .overlay {
    position:absolute; inset:0; pointer-events:none;
    background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.35));
  }

  /* gallery controls */
  .thumb-row { display:flex; gap:12px; align-items:center; margin-top:12px; 
    /* width sized to show exactly (--visible-count) thumbnails (incl gaps) */
      max-width: calc((var(--thumb-w) * var(--visible-count)) + (var(--gap) * (var(--visible-count) - 1)));
    }
  .thumb-wrapper { display:flex; align-items:center; gap:10px; width:100%; }
  .thumbs {
    display:flex; gap:12px; overflow:hidden; width:100%; align-items:center;
  }
  .thumb {
    flex:0 0 auto; width:100px; height:80px; border-radius:10px; overflow:hidden;
    border:3px solid transparent; cursor:pointer; transition:transform .15s ease, border-color .15s;
  }
  .thumb img { width:100%; height:100%; object-fit:cover; display:block; }
  .thumb.active { border-color:var(--accent); transform:scale(1.03); box-shadow:0 8px 22px rgba(0,0,0,0.5); }

  .thumb-btn {
    background: rgba(255,255,255,0.04); border: none; color:var(--muted);
    width:42px; height:42px; border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center;
  }
  .thumb-btn:active{ transform:translateY(1px); }
  .thumb-progress {height:6px; background:rgba(255,255,255,0.05); border-radius:6px; margin-top:10px; overflow:hidden;}
  .thumb-progress > i { display:block; height:100%; width:0%; background: linear-gradient(90deg,var(--accent), #f0d47a); transition: width 400ms linear; }

  /* price card */
  .card {
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.012));
    border-radius:14px; padding:22px; box-shadow: 0 10px 30px rgba(3,8,15,0.6);
    position:sticky; top:32px;
  }
  .card .label { color:var(--muted); font-size:14px; margin-bottom:8px; }
  .price { font-size:24px; font-weight:800; color:var(--accent); margin-bottom:12px; }
  .loc { color:var(--muted); display:flex; gap:8px; align-items:center; margin-bottom:18px; }
  .cta { display:block; background:linear-gradient(90deg,var(--accent), #dfb443); color:#071018; padding:12px; text-align:center; border-radius:10px; font-weight:700; text-decoration:none; box-shadow: 0 6px 20px rgba(202,167,66,0.12); }
  .small-cta { display:inline-block; margin-top:12px; background:transparent; color:var(--muted); border:1px solid rgba(255,255,255,0.03); padding:8px 10px; border-radius:8px; cursor:pointer; }

  .card .meta { display:flex; gap:10px; margin-top:16px; color:var(--muted); font-size:14px; align-items:center; }

  /* info sections */
  section.info {
    margin-top:26px;
  }
  h1.title { font-size:42px; margin:6px 0 12px; font-weight:800; letter-spacing:-0.5px; color:#fff; }
  .overview { color:var(--muted); font-size:16px; max-width:820px; margin-bottom:18px; }

  .details-table {
    width:100%; border-radius:12px; overflow:hidden; border:1px solid rgba(255,255,255,0.03);
    margin-top:10px;
  }
  .details-table .row { display:flex; gap:0; }
  .details-table .cell { flex:1; padding:16px; background:linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0.0)); border-bottom:1px solid rgba(255,255,255,0.02); color:var(--muted); }
  .details-table .cell.k { font-weight:600; color:#cfe6ff; width:40%; }
  .details-table .cell.v { color:#eaf4ff; width:60%; }

  /* finance widget */
  .finance {
    margin-top:20px; display:grid; gap:12px; background:linear-gradient(180deg, rgba(255,255,255,0.015), rgba(0,0,0,0.02)); padding:12px; border-radius:10px;
  }
  .finance .row { display:flex; gap:10px; }
  .finance label { font-size:13px; color:var(--muted); margin-bottom:6px; display:block; }
  .finance .out { display:flex; justify-content:space-between; font-size:14px; color:#eaf4ff; margin-top:6px; }

  /* contact + map */
  .contact-block { margin-top:18px; display:flex; flex-direction:column; gap:12px; }
  .contact-row { display:flex; gap:10px; align-items:center; color:var(--muted); }
  .contact-row svg { opacity:0.9; }

  .map { margin-top:12px; border-radius:10px; overflow:hidden; height:160px; background:#0a0b0c; border:1px solid rgba(255,255,255,0.02); }

  /* modal */
  .modal-backdrop { position:fixed; inset:0; display:none; align-items:center; justify-content:center; background:rgba(2,6,12,0.6); z-index:1200; }
  .modal { background:#06101a; color:#e6eef6; border-radius:12px; padding:18px; width:90%; max-width:520px; box-shadow:0 18px 60px rgba(0,0,0,0.7); }
  .modal h3 { margin:0 0 8px; }
  .modal .row { display:flex; gap:10px; margin-top:12px; }
  /* ===== Modal Form Upgrade ===== */
  .modal form {display: flex; flex-direction: column; gap: 10px; margin-top: 10px;}
  .modal label { font-weight: 600; font-size: 0.9rem;color: #cbd5e1; margin-bottom: 4px; display: block;}

   .modal input, .modal textarea { width: 90%;padding: 0.5rem 1rem;border: 1px solid #334155;border-radius: 10px;background: #0f1a25;color: #f1f5f9;font-size: 0.95rem;transition: border 0.3s, box-shadow 0.3s, background 0.3s;}

   .modal input:focus,.modal textarea:focus {outline: none; border-color: #d4af37; box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.25); background: #162332;}
   /* Buttons */
   .modal button.btn {flex: 1; padding: 0.6rem 1.2rem; font-weight: 600; font-size: 0.95rem; border: none; border-radius: 10px; cursor: pointer; transition: all 0.25s ease-in-out;}
   .modal #sendInquiry {background: linear-gradient(135deg, #d4af37, #b8860b);color: #111;}
   .modal #sendInquiry:hover {background: linear-gradient(135deg, #e0c152, #c2930c); transform: translateY(-2px); box-shadow: 0 6px 12px rgba(0,0,0,0.35);}
   .modal #closeModal {background: #334155; color: #e2e8f0;}
   .modal #closeModal:hover {background: #475569;}

  /* toasts */
  .toast { position:fixed; right:18px; bottom:18px; padding:10px 14px; border-radius:10px; background:#0b3f1a; color:#dff7df; display:none; z-index:1300; }

  /* responsive */
  @media (max-width:992px){
    .grid{ grid-template-columns: 1fr 360px; }
    .hero{ height:360px; }
    :root{--visible-count: 4;}
  }
  @media (max-width:768px){
    .grid{ grid-template-columns: 1fr;}
    /* .gallery{max-width: 400px;} */
    .left-col{ order:1;}
    .right-col{ order:2; }
    .hero{ height:300px; }
    :root{--visible-count: 3;}
  }
  @media (max-width:576px){
    :root{--visible-count: 2.5;}
    .hero{ height:240px; }
    .thumbnail-slider { max-width: 90%; }
  }
  
/* Floating WhatsApp Container */
#whatsapp-chat {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* WhatsApp Button */
.whatsapp-btn {
    background: #25D366;
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    font-size: 30px;
    transition: transform 0.2s ease;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

/* Popup Text */
.whatsapp-text {
    background: #fff;
    color: #333;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    font-family: Arial, sans-serif;
    white-space: nowrap;
    opacity: 0; /* start hidden */
    transform: translateX(20px); /* slide-in effect */
    animation: slideIn 0.8s forwards;
}

/* Animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #00A859; /* Salvin Green */
  border-left: 5px solid #00A859;
  padding-left: 10px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* ✅ Two columns */
  gap: 12px 20px; /* Row gap 12px, column gap 20px */
  margin-top: 10px;
}

.feature-item {
  display: flex;
  align-items: center;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 6px 20px;
  transition: 0.3s ease;
  font-weight: 500;
}

.feature-item i {
  color: #00A859;
  font-size: 20px;
  margin-right: 10px;
}

.feature-item:hover {
  background: #e6f5eb;
  transform: translateY(-2px);
}

/* 🔁 Responsive (1 column on mobile) */
@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}
