/* File: /assets/css/property.css */

/* ============ Layout Containers ============ */
.kh-property-single section{
  margin-block: 20px;
}
.kh-prop-hero__wrap,
.kh-prop-gallery__wrap,
.kh-prop-specs__wrap,
.kh-prop-expired__box,
.kh-prop-content__wrap,
.kh-prop-features__wrap,
.kh-prop-contact__wrap{
  width: min(1100px, 94vw);
  margin-inline: auto;
}

/* ============ Hero ============ */
.kh-prop-hero{
  background: #f7fafc;
  border-block-end: 1px solid #e6edf3;
  padding-block: 18px;
}
.kh-prop-hero__header{
  display: grid;
  gap: 10px;
}
.kh-prop-title{
  margin: 0;
  font-size: clamp(1.25rem, 1rem + 1.2vw, 2rem);
  color: #0f172a;
  line-height: 1.3;
}
.kh-prop-badges{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.kh-badge{
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}
.kh-badge-active{ background:#e7f9ee; color:#0a8f4a; border:1px solid #bbefd1; }
.kh-badge-expired{ background:#fff1f2; color:#be123c; border:1px solid #fecdd3; }
.kh-badge-purpose{ background:#eef2ff; color:#3730a3; border:1px solid #c7d2fe; }

.kh-prop-hero__meta{
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
  margin-block-start: 10px;
}
.kh-prop-meta__item{
  background:#fff;
  border:1px solid #e6edf3;
  border-radius: 12px;
  padding: 10px 12px;
  display: grid;
  gap: 4px;
}
.kh-prop-meta__label{
  font-size: 12px;
  color:#6b7280;
}
.kh-prop-meta__value{
  font-size: 16px;
  font-weight: 700;
  color:#111827;
}

/* ============ Gallery ============ */
.kh-prop-gallery__wrap{
  display: grid;
  gap: 10px;
}
.kh-gallery-main{
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border:1px solid #e6edf3;
  background:#000;
}
.kh-gallery-item{
  position: relative;
}
.kh-gallery-img{
  display:block;
  width:100%;
  height:auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.kh-gallery-thumbs{
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 120px;
  gap: 8px;
  overflow-x: auto;
  padding-inline: 2px;
  padding-block: 2px;
}
.kh-thumb{
  border:2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  outline: none;
}
.kh-thumb.is-active{ border-color:#2563eb; }
.kh-thumb-img{
  display:block;
  width:100%;
  height:72px;
  object-fit: cover;
}

/* tiny-slider base tweaks */
.tns-outer{ position:relative; }
.tns-controls [data-controls]{
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  inline-size:42px;
  block-size:42px;
  border-radius:999px;
  border:1px solid #e6edf3;
  background:#fff;
  box-shadow:0 4px 12px rgba(2,6,23,.08);
  cursor:pointer;
}
.tns-controls [data-controls="prev"]{ inset-inline-start: 10px; }
.tns-controls [data-controls="next"]{ inset-inline-end: 10px; }
.tns-nav{
  position:absolute;
  inset-inline:0;
  inset-block-end: 10px;
  display:flex;
  justify-content:center;
  gap:6px;
}
.tns-nav > button{
  inline-size:8px; block-size:8px; border-radius:999px; border:0; background:#cbd5e1; cursor:pointer;
}
.tns-nav > .tns-nav-active{ background:#2563eb; }

/* ============ Specs ============ */
.kh-prop-specs{
  background:#ffffff;
}
.kh-specs-list{
  list-style:none; margin:0; padding:0;
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap:10px;
}
.kh-specs-item{
  background:#f8fafc;
  border:1px solid #e6edf3;
  border-radius:10px;
  padding:10px 12px;
  display:grid; gap:4px;
}
.kh-specs-label{ font-size:12px; color:#6b7280; }
.kh-specs-value{ font-weight:700; color:#0f172a; }

/* ============ Expired Notice ============ */
.kh-prop-expired{
  background:#fff7f8;
  border-block:1px solid #ffe4e8;
  padding-block: 14px;
}
.kh-prop-expired__box{
  display:grid; gap:8px;
  text-align:center;
}
.kh-expired-title{
  color:#be123c;
  font-size:16px;
}
.kh-expired-actions{ margin-block-start: 6px; }

/* ============ Content & Info ============ */
.kh-prop-content__wrap{
  display:grid; gap: 16px;
  grid-template-columns: 1fr;
}
.kh-prop-description{
  background:#fff;
  border:1px solid #e6edf3;
  border-radius:12px;
  padding:16px;
}
.kh-empty-note{
  color:#6b7280; margin:0;
}
.kh-prop-info{
  background:#fff;
  border:1px solid #e6edf3;
  border-radius:12px;
  padding:16px;
}
.kh-box-title{
  margin:0 0 10px 0;
  font-size:16px; color:#0f172a;
}
.kh-info-list{
  list-style:none; margin:0; padding:0;
  display:grid; gap:8px;
}
.kh-info-item{
  display:flex; align-items:center; justify-content:space-between;
  gap:10px; border-bottom:1px dashed #e6edf3; padding-block:6px;
}
.kh-info-item:last-child{ border-bottom:0; }
.kh-info-label{ color:#475569; font-size:14px; }
.kh-info-value{ color:#0f172a; font-weight:600; }

/* ============ Features ============ */
.kh-features-badges{
  list-style:none; margin:0; padding:0;
  display:flex; flex-wrap:wrap; gap:8px;
}
.kh-feature-badge{
  background:#f1f5f9;
  border:1px solid #e2e8f0;
  color:#0f172a;
  font-size:13px; font-weight:600;
  padding:6px 10px;
  border-radius:999px;
}

/* ============ Contact ============ */
.kh-prop-contact__wrap{
  display:grid; gap:10px;
  justify-items:start;
}
.kh-btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 14px;
  border-radius:10px;
  font-weight:700;
  text-decoration:none;
  border:1px solid transparent;
  transition: transform .06s ease, box-shadow .2s ease, filter .15s ease;
  will-change: transform;
}
.kh-btn:active{ transform: translateY(1px); }
.kh-btn-primary{
  background:#0ea5e9; color:#fff; border-color:#0284c7;
}
.kh-btn-primary:hover{ filter: brightness(.98); }

.kh-btn-wa{
  background:#25D366; color:#0b2816; border-color:#1fb857;
}
.kh-btn-wa:hover{ filter: brightness(.98); }
.kh-btn.is-disabled{
  opacity:.6; pointer-events:none;
}

.kh-contact-note{
  background:#f8fafc;
  border:1px dashed #cbd5e1;
  color:#334155;
  padding:10px 12px; border-radius:10px;
}
.kh-contact-note--muted{
  background:#f1f5f9; color:#475569;
}
.kh-contact-meta{
  display:flex; align-items:center; gap:8px;
  color:#334155; font-size:14px;
}
.kh-contact-label{ color:#64748b; }

/* ============ Responsive ============ */
@media (max-width: 1024px){
  .kh-specs-list{ grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 768px){
  .kh-prop-hero__meta{ grid-template-columns: 1fr; }
  .kh-specs-list{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .kh-info-item{ flex-direction: row; }
  .kh-gallery-img{ aspect-ratio: 4/3; }
}
@media (max-width: 480px){
  .kh-specs-list{ grid-template-columns: 1fr; }
  .kh-thumb-img{ height:64px; }
}

/* ============ RTL niceties ============ */
html[dir="rtl"] .tns-controls [data-controls="prev"]{ inset-inline-start: auto; inset-inline-end: 10px; }
html[dir="rtl"] .tns-controls [data-controls="next"]{ inset-inline-end: auto; inset-inline-start: 10px; }
