/* Zameen-style property detail — wide 2-column layout */
body.prop-detail-view {
  background: #f5f6f7 !important;
}

/* Free horizontal space: collapse left settings rail on detail (edge handle remains) */
body.prop-detail-view .hadafin-prop-sidebar-wrap-desktop {
  width: 0 !important;
  max-width: 0 !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
}
body.prop-detail-view .hadafin-prop-sidebar-wrap-desktop > * {
  display: none !important;
}
body.prop-detail-view .hadafin-prop-edge-handle {
  display: flex !important;
}

.zm-prop-detail {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 0 2.5rem;
}

.zm-prop-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.zm-prop-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: start;
}

@media (min-width: 980px) {
  .zm-prop-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1.5rem;
  }
}

.zm-prop-main {
  min-width: 0;
}

.zm-prop-title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  font-weight: 800;
  color: #111827;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.zm-prop-crumb {
  margin: 0 0 0.85rem;
  font-size: 0.75rem;
  color: #6b7280;
}
.zm-prop-crumb a {
  color: #6b7280;
  text-decoration: none;
}
.zm-prop-crumb a:hover { color: #2E9B3A; }

.zm-prop-hero {
  position: relative;
  background: #e5e7eb;
  border-radius: 0.2rem;
  overflow: hidden;
  min-height: 240px;
}
@media (min-width: 768px) {
  .zm-prop-hero { min-height: 380px; }
}
.zm-prop-hero img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  display: block;
}
.zm-prop-hero__badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 3;
  padding: 0.25rem 0.55rem;
  border-radius: 0.15rem;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
  background: #334155;
}
.zm-prop-hero__badge.is-hot { background: #f59e0b; }
.zm-prop-hero__badge.is-super { background: #ef4444; }
.zm-prop-hero__meta {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  z-index: 3;
  display: flex;
  gap: 0.4rem;
}
.zm-prop-hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.5rem;
  border-radius: 0.15rem;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-decoration: none;
}
.zm-prop-hero__chip svg { width: 0.85rem; height: 0.85rem; }

.zm-prop-thumbs {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.55rem 0 0.15rem;
}
.zm-prop-thumbs button {
  flex: 0 0 auto;
  width: 5.5rem;
  height: 3.75rem;
  border-radius: 0.15rem;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  padding: 0;
  background: #fff;
  cursor: pointer;
}
.zm-prop-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.zm-prop-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.35rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 0;
  color: #374151;
  font-size: 0.88rem;
  font-weight: 600;
}
.zm-prop-icons span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.zm-prop-icons svg {
  width: 1.15rem;
  height: 1.15rem;
  color: #6b7280;
}

.zm-prop-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  background: #111827;
  margin: 0.85rem 0 0;
  border-radius: 0.15rem 0.15rem 0 0;
  overflow: hidden;
}
.zm-prop-tabs a {
  padding: 0.7rem 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  border-right: 1px solid rgba(255,255,255,0.12);
}
.zm-prop-tabs a.is-active {
  background: #fff;
  color: #111827;
}

.zm-prop-panel {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-top: 0;
  padding: 1.15rem 1.1rem 1.35rem;
  border-radius: 0 0 0.15rem 0.15rem;
}

.zm-prop-panel h2 {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: #111827;
}

.zm-prop-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-bottom: 1.15rem;
}
@media (min-width: 640px) {
  .zm-prop-details { grid-template-columns: 1fr 1fr; }
}
.zm-prop-details dt,
.zm-prop-details dd {
  margin: 0;
  padding: 0.55rem 0.15rem;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.88rem;
}
.zm-prop-details dt {
  font-weight: 700;
  color: #111827;
  width: 42%;
  float: left;
  clear: left;
}
.zm-prop-details dd {
  color: #4b5563;
  overflow: hidden;
}
.zm-prop-details__row {
  display: grid;
  grid-template-columns: 38% 1fr;
  gap: 0.5rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.88rem;
}
.zm-prop-details__row strong { color: #111827; font-weight: 700; }
.zm-prop-details__row span { color: #4b5563; }

.zm-prop-desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: #4b5563;
  white-space: pre-wrap;
}

.zm-prop-map {
  margin-top: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.15rem;
  overflow: hidden;
  background: #fff;
}
.zm-prop-map h3 {
  margin: 0;
  padding: 0.75rem 1rem 0.35rem;
  font-size: 0.95rem;
  font-weight: 800;
}
.zm-prop-map iframe {
  width: 100%;
  height: 260px;
  border: 0;
  display: block;
}

/* —— Sticky aside (Zameen right rail) —— */
.zm-prop-aside {
  position: relative;
}
@media (min-width: 980px) {
  .zm-prop-aside {
    position: sticky;
    top: 5.5rem;
  }
}

.zm-prop-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.2rem;
  padding: 1rem 1rem 1.1rem;
  margin-bottom: 0.75rem;
}

.zm-prop-aside-price {
  margin: 0 0 0.85rem;
  font-size: 1.55rem;
  font-weight: 800;
  color: #111827;
  line-height: 1.15;
}

.zm-prop-aside-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}
.zm-prop-aside-actions .prop-cta {
  width: 100%;
  min-height: 2.15rem !important;
  height: 2.15rem;
  border-radius: 0.15rem;
  font-size: 0.78rem;
}
.zm-prop-aside-actions .prop-cta--wa {
  background: #25d366 !important;
  border-color: #25d366 !important;
  color: #fff !important;
}
.zm-prop-aside-actions .prop-cta--call {
  background: #006169 !important;
  border-color: #006169 !important;
  color: #fff !important;
}

.zm-prop-form label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  color: #374151;
  margin-bottom: 0.2rem;
}
.zm-prop-form input,
.zm-prop-form textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 0.15rem;
  padding: 0.45rem 0.55rem;
  font-size: 0.82rem;
  color: #111827;
  background: #fff;
  margin-bottom: 0.55rem;
}
.zm-prop-form textarea { min-height: 4.5rem; resize: vertical; }
.zm-prop-form__types {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  font-size: 0.72rem;
  color: #374151;
  margin: 0.2rem 0 0.55rem;
}
.zm-prop-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.15rem;
  height: 2.15rem;
  border-radius: 0.15rem;
  border: 1px solid #2E9B3A;
  background: #fff;
  color: #2E9B3A;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}
.zm-prop-form__submit:hover {
  background: #e8f7ee;
}

.zm-prop-agency {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.zm-prop-agency__logo {
  width: 3.25rem;
  height: 3.25rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.15rem;
  background: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.zm-prop-agency__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.zm-prop-agency__fb {
  font-size: 0.75rem;
  font-weight: 800;
  color: #2E9B3A;
}
.zm-prop-agency__name {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 800;
  color: #111827;
  line-height: 1.25;
}
.zm-prop-agency__link {
  display: inline-block;
  margin-top: 0.2rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: #2563eb;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.zm-prop-agency__link:hover { text-decoration: underline; }

.prop-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.15rem;
  height: 2.15rem;
  padding: 0 0.75rem;
  border-radius: 0.15rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}
.prop-cta svg { width: 0.9rem; height: 0.9rem; flex-shrink: 0; }
.prop-cta--wa { background: #25d366; color: #fff; border-color: #25d366; }
.prop-cta--call { background: #006169; color: #fff; border-color: #006169; }

.zm-prop-similar {
  margin-top: 1.75rem;
}
.zm-prop-similar h2 {
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 0 0.85rem;
}

@media (max-width: 979px) {
  .zm-prop-aside { order: -1; }
}
