/* =========================
   PROPERTY DETAIL PAGE
========================= */

.property-detail {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
    align-items: start;
  }
  
  .property-gallery {
    display: flex;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    transition: transform 0.4s ease;
  }
  
  .property-gallery img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 20px;
    cursor: pointer;
  }
  
  /* First image larger */
  .property-gallery img:first-child {
    grid-column: span 2;
    height: 360px;
  }
  
  .property-info h1 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    margin-bottom: 10px;
  }
  
  .property-info p {
    margin-bottom: 16px;
  }
  
  .property-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
  }
  
  .property-meta span {
    background: #f1f5f9;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 14px;
    color: var(--text-dark);
  }
  
  .config-list {
    display: grid;
    gap: 16px;
    margin-bottom: 40px;
  }
  
  .config-card {
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border 0.2s ease, background 0.2s ease;
  }
  
  .config-card:hover {
    background: #f9fafb;
    border-color: var(--accent-orange);
  }
  
  .config-info {
    font-size: 15px;
  }
  
  .config-price {
    font-weight: 600;
    color: var(--accent-orange);
  }
  
  .property-info h3 {
    margin-bottom: 12px;
    font-size: 20px;
  }
  
  .property-info p {
    line-height: 1.8;
    max-width: 700px;
  }
  
  .enquiry-box {
    background: #fff;
    border-radius: 30px;
    padding: 32px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    margin-top: 48px;
  }
  
  .enquiry-box h3 {
    margin-bottom: 20px;
  }
  
  .enquiry-box input,
  .enquiry-box textarea {
    width: 100%;
    padding: 14px 18px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    font-size: 15px;
    margin-bottom: 16px;
  }
  
  .enquiry-box textarea {
    border-radius: 20px;
    resize: vertical;
  }
  
  @media (max-width: 900px) {
    .property-detail {
      grid-template-columns: 1fr;
    }
  
    .property-gallery img:first-child {
      height: 260px;
    }
  }
  
  @media (max-width: 480px) {
    .property-gallery {
      grid-template-columns: 1fr;
    }
  
    .property-gallery img {
      height: 220px;
    }
  
    .property-gallery img:first-child {
      grid-column: span 1;
    }
  }
  
  .property-location {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 18px 0;   /* remove offset */
    font-size: 15px;
    color: #475569;
    max-width: none;     /* IMPORTANT */
  }
  
  .property-detail {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 48px;
  }
  
  .property-main {
    min-width: 0;
  }
  
  .property-gallery-wrapper {
    position: relative;
    margin-bottom: 32px;
  }
  
  .property-gallery {
    display: flex;
    overflow: hidden;
  }
  
  .property-gallery img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 20px;
  }
  
  .gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
  }
  
  .gallery-btn.prev { left: 12px; }
  .gallery-btn.next { right: 12px; }
  
  .property-sidebar {
    position: sticky;
    top: 120px;
  }
  
  @media (max-width: 900px) {
    .property-detail {
      grid-template-columns: 1fr;
    }
  
    .property-sidebar {
      position: static;
    }
  }


  /* =========================
   EMI CALCULATOR
========================= */

.emi-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  background: #f8fafc;
  padding: 32px;
  border-radius: 24px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.06);
}

.emi-form input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  margin-bottom: 14px;
  font-size: 15px;
}

.emi-form input:focus {
  outline: none;
  border-color: var(--accent-orange);
}

.emi-result {
  margin-top: 16px;
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
}

.emi-chart {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile */
@media (max-width: 768px) {
  .emi-box {
    grid-template-columns: 1fr;
  }
}
