/* Catalog chuyển nhượng — layout kiểu listing + map */

.dnd-cn-page {
  background: #fff;
  padding-top: 88px;
  padding-bottom: 48px;
  min-height: 100vh;
  color: #0f172a;
}

.dnd-cn-wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 16px 0 20px;
}

.dnd-cn-title {
  font-family: Manrope, system-ui, sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 8px 0 14px;
  color: #0f172a;
}

.dnd-cn-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 14px;
}

.dnd-cn-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 100%;
}

.dnd-cn-filter {
  position: relative;
}

.dnd-cn-filter__btn {
  appearance: none;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1.2;
}
.dnd-cn-filter__btn:hover,
.dnd-cn-filter.is-open .dnd-cn-filter__btn,
.dnd-cn-filter.has-value .dnd-cn-filter__btn {
  border-color: #D4AF37;
  color: #0f172a;
}
.dnd-cn-filter.has-value .dnd-cn-filter__btn {
  background: #fffbeb;
}

.dnd-cn-filter__panel {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 40;
  width: min(340px, 86vw);
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 18px 50px -24px rgba(15, 23, 42, 0.35);
  padding: 14px;
}
.dnd-cn-filter.is-open .dnd-cn-filter__panel { display: block; }

.dnd-cn-filter__panel h4 {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin: 0 0 10px;
}

.dnd-cn-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.dnd-cn-chips label,
.dnd-cn-chips a {
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: #334155;
  text-decoration: none;
}
.dnd-cn-chips input { display: none; }
.dnd-cn-chips input:checked + span,
.dnd-cn-chips label:has(input:checked) {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
}

.dnd-cn-range {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}
.dnd-cn-range input {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
}

.dnd-cn-filter__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}
.dnd-cn-filter__actions button {
  appearance: none;
  border: 0;
  background: none;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
}
.dnd-cn-btn-reset { color: #64748b; }
.dnd-cn-btn-apply { background: #D4AF37 !important; color: #0f172a; }

.dnd-cn-meta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #64748b;
}
.dnd-cn-meta select {
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  background: #fff;
  color: #0f172a;
}

.dnd-cn-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
}

.dnd-cn-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.dnd-cn-card {
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease;
}
.dnd-cn-card:hover,
.dnd-cn-card.is-active {
  box-shadow: 0 14px 40px -24px rgba(15, 23, 42, 0.45);
  transform: translateY(-1px);
}
.dnd-cn-card.is-hidden { display: none; }

.dnd-cn-card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: #e2e8f0;
  overflow: hidden;
}
.dnd-cn-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}
.dnd-cn-card:hover .dnd-cn-card__media img { transform: scale(1.04); }

.dnd-cn-chip {
  position: absolute;
  top: 10px;
  z-index: 2;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 8px;
  border-radius: 8px;
  color: #fff;
}
.dnd-cn-chip--feat { left: 10px; background: #0f766e; }
.dnd-cn-chip--new { right: 10px; background: #e11d48; }

.dnd-cn-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12px;
  color: #475569;
}
.dnd-cn-specs li { display: inline-flex; align-items: center; gap: 5px; }
.dnd-cn-specs i { color: #94a3b8; font-size: 11px; }
.dnd-cn-specs--overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px 10px 8px;
  background: linear-gradient(transparent, rgba(15,23,42,.72));
  color: #fff;
}
.dnd-cn-specs--overlay i { color: #fff; }
.dnd-cn-specs--mobile { display: none; margin-bottom: 8px; }

.dnd-cn-card__body { padding: 10px 12px 12px; }
.dnd-cn-card__title {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}
.dnd-cn-card__title a { color: #e11d48; text-decoration: none; }
.dnd-cn-card__title a:hover { color: #9f1239; }
.dnd-cn-card__addr {
  font-size: 12px;
  color: #64748b;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.4em;
}
.dnd-cn-card__addr i { margin-right: 4px; color: #94a3b8; }
.dnd-cn-card__price {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.dnd-cn-empty {
  display: none;
  text-align: center;
  padding: 48px 16px;
  color: #64748b;
}
.dnd-cn-empty.is-visible { display: block; }
.dnd-cn-empty h2 { color: #0f172a; font-size: 1.25rem; margin-bottom: 8px; }

.dnd-cn-map-wrap {
  display: none;
  position: relative;
}
#dnd-cn-map {
  width: 100%;
  height: 100%;
  background: #e2e8f0;
}
.dnd-cn-pin {
  background: #e11d48;
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  padding: 5px 8px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(225, 29, 72, 0.35);
  white-space: nowrap;
  border: 2px solid #fff;
}
.dnd-cn-pin.is-active { background: #D4AF37; color: #0f172a; }

.dnd-cn-map-toggle {
  position: fixed;
  right: 16px;
  bottom: 168px;
  z-index: 45;
  background: #0f172a;
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 10px 24px rgba(15,23,42,.3);
  cursor: pointer;
}
.dnd-cn-map-toggle i { margin-right: 6px; }

.dnd-cn-map-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  background: #fff;
}
.dnd-cn-map-drawer.is-open { display: block; }
.dnd-cn-map-drawer #dnd-cn-map-mobile { width: 100%; height: 100%; }
.dnd-cn-map-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 90;
  background: #fff;
  border: 0;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(15,23,42,.2);
  cursor: pointer;
}

/* Single listing */
.dnd-cn-single { padding-top: 96px; padding-bottom: 64px; background: #fff; }
.dnd-cn-single-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.dnd-cn-gallery {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr;
  grid-template-rows: 210px 210px;
  gap: 8px;
  margin-bottom: 28px;
}
.dnd-cn-gallery a {
  display: block;
  overflow: hidden;
  border-radius: 14px;
  background: #e2e8f0;
  position: relative;
}
.dnd-cn-gallery a:first-child { grid-row: 1 / 3; }
.dnd-cn-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dnd-cn-gallery__more {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,.42);
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
}
.dnd-cn-gallery__more em {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.dnd-cn-single-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  align-items: start;
}
.dnd-cn-h1 {
  font-family: Manrope, system-ui, sans-serif;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  line-height: 1.25;
}
.dnd-cn-single .dnd-cn-specs { font-size: 14px; margin-bottom: 20px; color: #475569; }
.dnd-cn-kicker {
  font-size: 1.05rem !important;
  font-weight: 800;
  margin: 0 0 12px !important;
}
.dnd-cn-desc { font-size: 16px; line-height: 1.75; color: #334155; }
.dnd-cn-desc h2 { font-size: 1.05rem; color: #0f172a; margin: 1.15em 0 .45em; }
.dnd-cn-desc h3 { font-size: .95rem; color: #0f172a; margin: 1em 0 .35em; font-weight: 800; }
.dnd-cn-desc p { margin: 0 0 0.75em; }
.dnd-cn-desc ul { margin: 0 0 1em; padding-left: 1.1em; }
.dnd-cn-desc li { margin: 0 0 .35em; }
.dnd-cn-hot { color: #e11d48; font-weight: 800; }
.dnd-cn-block { margin: 28px 0; padding-top: 8px; border-top: 1px solid #eef2f7; }
.dnd-cn-block h2 { font-size: 1.15rem; font-weight: 800; margin: 0 0 14px; }
.dnd-cn-dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0;
}
.dnd-cn-dl > div {
  display: grid;
  grid-template-columns: 42% 1fr;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
}
.dnd-cn-dl dt { color: #64748b; font-weight: 600; margin: 0; }
.dnd-cn-dl dd { margin: 0; color: #0f172a; font-weight: 600; }
.dnd-cn-checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  color: #334155;
}
.dnd-cn-checks i { color: #16a34a; margin-right: 6px; }
.dnd-cn-checks .is-extra { display: none; }
.dnd-cn-checks.is-open .is-extra { display: list-item; }
.dnd-cn-more {
  appearance: none;
  border: 0;
  background: none;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  margin-top: 10px;
  cursor: pointer;
  padding: 0;
}
.dnd-cn-loc-addr { font-size: 14px; color: #475569; margin: 0 0 12px; }
.dnd-cn-dir {
  margin-left: 8px;
  color: #e11d48;
  font-weight: 700;
  text-decoration: none;
}
.dnd-cn-loc-map {
  height: 280px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.dnd-cn-side {
  position: sticky;
  top: 100px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 0 20px 20px;
  background: #fff;
  box-shadow: 0 12px 40px -28px rgba(15,23,42,.4);
  overflow: hidden;
}
.dnd-cn-side__banner {
  background: #e11d48;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  padding: 10px 14px;
  margin: 0 -20px 16px;
}
.dnd-cn-side h3 { font-size: 1.25rem; font-weight: 800; margin: 0 0 10px; text-align: center; }
.dnd-cn-side__logo {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: contain;
  margin: 0 auto 10px;
  border-radius: 999px;
  background: #fffbeb;
  padding: 10px;
  border: 1px solid #fde68a;
}
.dnd-cn-side__room { text-align: center; font-weight: 800; margin: 0 0 4px; color: #0f172a; }
.dnd-cn-side p.lead { text-align: center; color: #64748b; font-size: 13px; margin: 0 0 14px; }
.dnd-cn-side .dnd-cn-hotline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  background: #e11d48;
  color: #fff;
  font-weight: 800;
  border-radius: 10px;
  padding: 12px;
  text-decoration: none;
}
.dnd-cn-or { text-align: center; color: #94a3b8; font-size: 12px; margin: 10px 0; }
.dnd-cn-side__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}
.dnd-cn-side .dnd-cn-zalo,
.dnd-cn-side .dnd-cn-book {
  display: block;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  border-radius: 10px;
  padding: 10px 8px;
  text-decoration: none;
}
.dnd-cn-side .dnd-cn-zalo { background: #fff; color: #0068ff; border: 1px solid #bfdbfe; }
.dnd-cn-side .dnd-cn-book { background: #0f172a; color: #fff; }

.dnd-cn-similar { margin-top: 48px; }
.dnd-cn-similar h2 { font-size: 1.25rem; font-weight: 800; margin-bottom: 16px; }
.dnd-cn-similar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media (min-width: 768px) {
  .dnd-cn-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .dnd-cn-page { padding-top: 80px; }
  .dnd-cn-layout {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 42%);
    min-height: calc(100vh - 120px);
  }
  .dnd-cn-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .dnd-cn-map-wrap {
    display: block;
    position: sticky;
    top: 84px;
    height: calc(100vh - 100px);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
  }
  .dnd-cn-map-toggle { display: none; }
  .dnd-cn-specs--mobile { display: none !important; }
}
@media (max-width: 1023px) {
  .dnd-cn-specs--overlay { display: none; }
  .dnd-cn-specs--mobile { display: flex; }
  .dnd-cn-single-grid { grid-template-columns: 1fr; }
  .dnd-cn-side { position: static; }
  .dnd-cn-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 110px 110px;
  }
  .dnd-cn-gallery a:first-child { grid-column: 1 / 3; grid-row: auto; }
  .dnd-cn-similar-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .dnd-cn-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }
  .dnd-cn-filter__btn { white-space: nowrap; }
  .dnd-cn-meta { width: 100%; justify-content: space-between; margin-left: 0; }
  .dnd-cn-meta select { min-width: 128px; }
  .dnd-cn-similar-grid { grid-template-columns: 1fr; }
  .dnd-cn-dl { grid-template-columns: 1fr; }
  .dnd-cn-dl > div { grid-template-columns: 38% 1fr; }
  .dnd-cn-checks { grid-template-columns: 1fr; }
  .dnd-cn-side__row { grid-template-columns: 1fr; }
}

/* Catalog palette matches the Progress directory; listing articles keep their own styles. */
.dnd-cn-page{background:linear-gradient(180deg,#0c3855 0%,#104354 28%,#154b4b 60%,#326450 100%);color:#f3f5f0}
.dnd-cn-page .dnd-cn-title,.dnd-cn-page .dnd-cn-empty h2{color:#f3f5f0}
.dnd-cn-page .dnd-cn-meta,.dnd-cn-page .dnd-cn-empty,.dnd-cn-page .dnd-cn-wrap>div:first-child{color:#c9d9d7}
.dnd-cn-page .dnd-cn-empty a{color:#e5c992;text-decoration:underline}
.dnd-cn-page .dnd-cn-map-wrap{border-color:#dbece335}
.dnd-cn-page .dnd-cn-card{color:#0f172a}
body.page-id-3000 #site-header{background:#092d3fe6!important;backdrop-filter:blur(14px);box-shadow:0 1px 0 #ffffff19!important}
body.page-id-3000 #site-header #menu-menu-chinh>li>a,body.page-id-3000 #site-header .dnd-lang,body.page-id-3000 #site-header .dnd-lang a,body.page-id-3000 #mobile-menu-toggle{color:#edf3ef!important}
body.page-id-3000 #site-header #menu-menu-chinh>.current-menu-item>a{color:#e5c992!important}
@media(min-width:821px){.dnd-cn-page .dnd-cn-wrap{padding-left:64px;padding-right:24px}}
@media(max-width:820px){
 .dnd-cn-page{padding-top:126px}
 body.page-id-3000 .dnd-section-nav{top:64px;left:0;right:0;transform:none;max-width:none;width:100%;box-sizing:border-box;min-height:52px;justify-content:center;align-items:center;gap:8px;padding:4px 12px;border:0;border-radius:0;border-bottom:1px solid #ffffff32;background:#092d3f}
 body.page-id-3000 .dnd-section-nav a{flex:0 0 44px;min-width:44px;min-height:44px;color:#edf3ef}
 body.page-id-3000 .dnd-section-nav a[aria-current=true]{color:#e5c992}
 body.page-id-3000 .dnd-section-target{scroll-margin-top:126px!important}
 .dnd-cn-page .dnd-cn-filter__btn,.dnd-cn-page .dnd-cn-meta select{min-height:44px}
 .dnd-cn-page .dnd-cn-map-close{width:44px;height:44px}
}
/* Keep map panes below its close control and mobile filters inside the viewport. */
.dnd-cn-page #dnd-cn-map-mobile{position:relative;isolation:isolate;z-index:0}
@media(max-width:1023px){.dnd-cn-page .dnd-cn-map-toggle{left:20px;right:auto;bottom:20px;min-height:44px}.dnd-cn-page{padding-bottom:90px}}
@media(max-width:640px){
 .dnd-cn-page .dnd-cn-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;overflow:visible;position:relative;padding:0}
 .dnd-cn-page .dnd-cn-filter{position:static;min-width:0}
 .dnd-cn-page .dnd-cn-filter__btn{width:100%;justify-content:center}
 .dnd-cn-page .dnd-cn-filter__panel{left:0;right:0;width:100%!important;max-height:calc(100svh - 320px);overflow-y:auto}
 .dnd-cn-page .dnd-cn-range input{font-size:16px}
 .dnd-cn-page .dnd-cn-filter__actions button{min-height:44px}
}
.dnd-cn-page .dnd-cn-filter__panel,.dnd-cn-page .dnd-cn-map-close{color:#0f172a}
