/* Product Details Page Styles (scoped under .product-page) */

/* Layout card on details and related cards */
.product-page .property-card {
  display: flex;
  justify-content: space-between;
  padding: 24px;
  border: 1px solid #d6d6d6;
  border-radius: 16px;
  max-width: 900px;
  margin: 30px auto;
  background: #fff;
  gap: 0;
  border: none;
}

/* Main image */
.product-page .property-main-image {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #f3f4f6; /* soft gray behind image */
}
.product-page .property-main-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 300ms ease, opacity 300ms ease;
}
/* small arrow buttons */
/* remove main image arrows entirely */
.product-page .property-main-image .img-nav { display: none !important; }

.product-page .image-size-label {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: #ef1515;
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.875em;
}

/* Thumbnails carousel */
.product-page .thumbs-carousel { position: relative; display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.product-page .thumbs-viewport { overflow: hidden; flex: 1 1 auto; }
.product-page .thumbs-track { display: flex; gap: 10px; will-change: transform; }
.product-page .thumbs-track img { width: 100px; height: 100px; border-radius: 8px; object-fit: cover; display: block; }
.product-page .thumbs-nav { background: rgba(17,24,39,0.55); color: #fff; border: none; width: 32px; height: 32px; border-radius: 50%; line-height: 32px; text-align: center; font-size: 1.125em; cursor: pointer; }
.product-page .thumbs-nav:hover { background: rgba(17,24,39,0.7); }

/* Modal gallery gray theme */
/* Inline more images grid */
.product-page .more-images { margin-top: 10px; }
.product-page .more-images .more-img {
  width: 100%;
  height: 160px;
  border-radius: 8px;
  object-fit: cover;
  background: #e5e7eb;
}

/* Responsive thumbnail columns */
@media (max-width: 768px) { .product-page .thumbs-track img { width: 80px; height: 80px; } }
@media (max-width: 480px) { .product-page .thumbs-track img { width: 72px; height: 72px; } }

/* Title and details */
.product-page .property2-title h2 {
    line-height: 3.2em !important;
  font-weight: 500;
  font-size: 2.2em;
  line-height: 2em;
}
.product-page .property-details { /* key-value grid on right */
  gap: 18px 40px;
  padding: 24px 8px;
  background: transparent;
  display: flex;
  justify-content: space-between;
  max-width: 600px;
}
.product-page .property-details2 { display: grid; grid-template-columns: repeat(3, 1fr); }
.product-page .detail-row { display: flex; gap: 40px; justify-content: flex-start; align-items: flex-start; margin-bottom: 10px; }
.product-page .detail-box { display: flex; flex-direction: column; align-items: flex-start; margin: 20px 0px; padding: 0px 10px; }
.product-page .detail-box2 { display: flex; flex-direction: column; min-width: 200px; margin: 0px auto; padding: 0px 5px; }
.product-page .plabel,
.product-page .pvalue { font-weight: 400; font-size: 1.05em; }

/* Map */
.product-page .property-map { margin: 20px auto; width: 100%; }
.product-page .property-map iframe { border: 0; border-radius: 8px; }

/* More details table */
.product-page .more { margin-top: 30px; }
.product-page .more h1 { font-size: 1.75em; font-weight: 700; }
.product-page .property-title-section h1 { font-size: 1.75em; font-weight: 700; }
.product-page .more .tmain { color: #7c6d6d; font-weight: 400; font-size: 1.125em; line-height: 1.6em; margin: 12px; padding: 6px 12px 6px 6px; }
.product-page .more .tdesc { color: #000000; font-weight: 500; font-size: 1.125em; line-height: 1.6em; margin: 12px; padding: 12px; }
.product-page .tminfo,
.product-page .view-more { display: inline-flex; align-items: center; gap: 0.4em; font-weight: 600; font-size: 1em; margin: 6px 0 0 0; color: #111; text-decoration: none; position: relative; cursor: pointer; padding: 0.25em 0.75em; border: 1px solid #e0e0e0; border-radius: 999px; background: #f8f9fa; transition: background 160ms ease, color 160ms ease, border-color 160ms ease; }
.product-page .tminfo:hover,
.product-page .view-more:hover { background: #111; color: #fff; border-color: #111; text-decoration: none; }
.product-page .tminfo .pdarrow,
.product-page .tminfo .pdarrow-table,
.product-page .view-more .pdarrow,
.product-page .view-more .pdarrow-desc { margin-left: 0.2em; filter: invert(10%) sepia(10%) saturate(150%) hue-rotate(0deg) brightness(0.6) contrast(1); transition: transform 150ms ease, filter 160ms ease; }
.product-page .tminfo:hover .pdarrow,
.product-page .tminfo:hover .pdarrow-table,
.product-page .view-more:hover .pdarrow,
.product-page .view-more:hover .pdarrow-desc { filter: invert(100%); }

/* Description */
.product-page .property-desc { margin-top: 20px; }
.product-page .property-desc h1 { margin: 20px auto; font-weight: 600; font-size: 1.75em; line-height: 1.9em; }
.product-page .property-desc .pdesc {
  font-weight: 400;
  font-size: 1.125em;
  line-height: 1.65em;
  color: #464343;
  margin-bottom: 0;
  max-width: 100%;
  text-align: justify;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
}
.product-page .property-desc .pdesc.expanded { display: block; -webkit-line-clamp: unset; line-clamp: unset; overflow: visible; mask-image: none; -webkit-mask-image: none; }
.product-page .pdarrow { width: 16px; height: 16px; margin-top: 2px; filter: invert(46%) sepia(100%) saturate(877%) hue-rotate(319deg) brightness(95%) contrast(94%); }

/* Visit form */
.product-page .visit-form {
  margin: 50px 0px 10px 30px;
  width: 100%;
  background: #fff;
  border-radius: 16px;
  box-shadow: 6px 19px 15px #414141;
  padding: 22px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.product-page .visit-form label { font-weight: 500; color: #222; margin: 8px 0 3px; font-size: 1em; line-height: 150%; }
.product-page .visit-form input,
.product-page .visit-form textarea {
  border: 1.5px solid #ededed;
  border-radius: 5px;
  font-size: 1em;
  padding: 8px 10px;
  width: 100%;
  margin-bottom: 7px;
  outline: none;
  background: #fafafa;
  resize: none;
  transition: border 0.2s;
}
.product-page .visit-form input:focus,
.product-page .visit-form textarea:focus { border-color: #d7e2f1; }
.product-page .visit-form textarea { min-height: 54px; margin-bottom: 16px; }
.product-page .visit-btn { background: #f60a0a; color: #fff; font-size: 1.02em; font-weight: bold; border: none; border-radius: 7px; padding: 14px 0; margin-top: 2px; cursor: pointer; box-shadow: 0 2px 6px rgba(246,10,10,0.06); transition: background 0.2s; }
.product-page .visit-btn:hover { background: #d20a0a; }
.product-page .visit-form .row { display: flex; gap: 10px; margin-bottom: 10px; }
.product-page .visit-form .row > div { flex: 1 1 0; display: flex; flex-direction: column; }

/* Related properties grid images */
.product-page .propimg { border-radius: 12px 12px 0 0; object-fit: cover; width: 100%; height: 220px; display: block; }

/* Responsive */
@media (max-width: 480px) {
  .product-page h2 { font-size: 2em; margin: 16px; }
  .product-page .property-details { grid-template-columns: repeat(2, 1fr); gap: 8px 12px; padding: 12px 8px; margin-bottom: 16px; }
  .product-page .detail-row { gap: 8px; margin-top: 12px; grid-template-columns: repeat(2, 1fr); }
  .product-page .detail-box { padding: 10px 6px; border-radius: 6px; }
  .product-page .detail-box2 { padding: 10px 6px; border-radius: 6px; }
  .product-page .property-map { margin: 16px 0; border-radius: 8px; }
  .product-page .property-map iframe { height: 200px; }
  .product-page .visit-form { padding: 15px 10px; }
  .product-page .tmain { font-size: 1em; line-height: 1.25em; margin: 8px; padding: 4px; }
  .product-page .tdesc { font-size: 1em; line-height: 1.25em; margin: 8px; padding: 8px; }
  .product-page .pdesc { font-size: 1em; line-height: 1.25em; }
  .product-page .property-title { font-size: 0.75em; }
  .product-page .property-card { padding: 12px; margin: 15px auto; }
  .product-page .more { margin-top: 15px; }
  .product-page .tminfo,
  .product-page .view-more { font-size: 1em; }
  .product-page .property-thumbnails img { width: 100%; }
  .product-page .propimg { height: 160px; }
}

/* Enquiry heading (right column) */
.product-page .col-md-4 > h4 { font-size: 1.75em; font-weight: 700; }


