:root { --tc-gap: 20px; --tc-grid: 2fr 1fr; }

body {
  font-family: Arial, sans-serif;
  margin: 0;
}

.navbar-top,
.navbar-second {
  width: 100%;
}

.btn-ghost {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  padding: 6px 10px;
  cursor: pointer;
}

.user-circle {
  width: 40px;
  height: 40px;
  background: #007bff;
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
}

.dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 50px;
  background: #fff;
  color: #000;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  border-radius: 6px;
  min-width: 220px;
  z-index: 2000;
}

.dropdown.show {
  display: block;
}

.dropdown a.dropdown-item {
  display: block;
  padding: 10px 14px;
  text-decoration: none;
  color: #212529;
  border-bottom: 1px solid #eee;
}

.dropdown a.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown a.dropdown-item:hover {
  background: #f5f5f5;
}

.dropdown .hello-line {
  padding: 10px 14px;
  border-bottom: 1px solid #eee;
  background: #f6fff6;
}

.dropdown .hello-line b {
  color: #0b7a0b;
}

.search-container {
  position: relative;
}

#searchResults {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 99999;
  background: #fff;
  color: #212529;
  border: 1px solid #ced4da;
  border-radius: .25rem;
  box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
  max-height: 260px;
  overflow-y: auto;
  display: none;
  pointer-events: auto;
}

#searchResults .result-item {
  cursor: pointer;
}

.result-item {
  padding: .5rem .75rem;
  cursor: pointer;
  display: flex;
  gap: .5rem;
  align-items: center;
}

.result-item:hover,
.result-item.active {
  background: #0d6efd;
  color: #fff;
}

.thumb {
  width: 50px;
  height: 38px;
  object-fit: cover;
  border-radius: 4px;
  background: #f1f1f1;
  border: 1px solid #eee;
  flex: 0 0 auto;
}

.sr-title {
  font-weight: 600;
}

.sr-sub {
  font-size: 12px;
  opacity: .8;
}

.nores {
  padding: .65rem .85rem;
  color: #6c757d;
}

#mainContent {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 16px 0;
}

@media (min-width: 1600px) {
  #mainContent {
    max-width: 1400px;
  }
}

#welcomeSection {
  padding: 18px;
  background: #f8f9fa;
  border: 1px dashed #ced4da;
  border-radius: 10px;
}

#statusMsg {
  margin-top: 8px;
  color: #6c757d;
}

.tc-bc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 10px 0 12px;
  font-size: 13px;
  color: #666;
}

.tc-bc__link {
  color: #666;
  text-decoration: none;
}

.tc-bc__link:hover {
  text-decoration: underline;
}

.tc-bc__sep {
  color: #aaa;
}

.tc-bc__leaf {
  color: #222;
  font-weight: 800;
}

.tc-results {
  margin-top: 12px;
  border: 1px solid #eee;
  border-radius: 16px;
  background: #fff;
  padding: 12px;
}

.tc-results__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tc-results__title {
  font-weight: 900;
}

.tc-cards {
  margin-top: 10px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.tc-card {
  border: 1px solid #eee;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  transition: transform .05s ease-in-out;
}

.tc-card:hover {
  transform: translateY(-1px);
}

.tc-card img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
  background: #f1f1f1;
}

.tc-card .meta {
  padding: 10px;
}

.tc-card .t {
  font-weight: 900;
  line-height: 1.2;
}

.tc-card .s {
  margin-top: 6px;
  font-size: 12px;
  color: #666;
}

.tc-card .p {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 900;
}

#sectionA {
  margin-top: 14px;
}

.media-col {
  min-width: 0;
}

.media-col .image-wrap {
  position: relative !important;
  overflow: hidden !important;
  border-radius: 8px;
  height: clamp(240px, 38vh, 380px) !important;
}

#mainImage {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  background: #f3f3f3;
}

.media-col .image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.55);
  color: #fff;
  padding: 10px 12px;
  cursor: pointer;
  z-index: 3;
  border: 0;
  border-radius: 6px;
  line-height: 1;
  user-select: none;
}

.arrow.left {
  left: 8px;
}

.arrow.right {
  right: 8px;
}

.thumbnails {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  padding-bottom: 4px;
  overflow-x: auto;
  flex-wrap: nowrap;
  scroll-behavior: smooth;
}

.thumbnails img {
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
}

.thumbnails img.active {
  border-color: #dc3545;
}

.kv-list {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 6px;
}

.kv {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  border-bottom: 1px dashed #eee;
  padding: 4px 0;
}

.kv .k {
  color: #6c757d;
  font-size: .93rem;
}

.kv .v {
  font-weight: 600;
  text-align: right;
}

.status-pill {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 5;
  display: none;
  padding: 6px 12px;
  font: 600 12px/1 system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  border-radius: 999px;
  letter-spacing: .2px;
  user-select: none;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
  border: 1px solid rgba(0,0,0,.06);
}

.status--for-sale {
  background: #16a34a;
  color: #fff;
  border-color: transparent;
}

.status--neither {
  background: #fff;
  color: #111;
  border-color: rgba(0,0,0,.10);
}

.status--land {
  background: #ffd166;
  color: #111;
  border-color: #f0c04d;
}

.tc-badge {
  position: absolute;
  z-index: 6;
  right: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  font: 700 12px/1 system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
  border: 1px solid rgba(0,0,0,.08);
  display: none;
  user-select: none;
  white-space: nowrap;
}

.tc-badge-type {
  top: 10px;
  background: #fff;
  color: #111;
}

.tc-badge-status {
  top: 44px;
  background: #111;
  color: #fff;
  border-color: transparent;
}

.zip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.zip-card {
  border: 1px solid #e9ecef;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.zip-card img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  display: block;
}

.zip-card .meta {
  padding: 8px;
  font-size: 13px;
  line-height: 1.3;
}

.zip-card .meta .price {
  font-weight: 800;
}

.nav-tabs .nav-link {
  font-weight: 800;
}

.nav-tabs .nav-link.active {
  background: #e8f5e9 !important;
  border-color: #c8e6c9 #c8e6c9 #fff;
  color: #111 !important;
}

.footer-pro {
  background: #f8f9fa;
  border-top: 1px solid #e5e5e5;
}

.footer-pro .footer-title {
  font-weight: 700;
  color: #6c757d;
  margin-bottom: 8px;
}

.footer-pro a {
  color: #495057;
  text-decoration: none;
  position: relative;
  transition: all 0.25s ease;
  cursor: pointer;
}

.footer-pro a:hover {
  color: #0d6efd;
}

.footer-pro a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 2px;
  background: #0d6efd;
  transition: width 0.25s ease;
}

.footer-pro a:hover::after {
  width: 100%;
}

.footer-pro .footer-bottom {
  font-size: 0.85rem;
  color: #888;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 380px;
  gap: 20px;
  align-items: start;
}

.left-col,
.right-col {
  min-width: 0;
}

.desc-box {
  margin-top: 14px;
}

.zip-wrap {
  margin-top: 18px;
}

@media (max-width: 992px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }
}

#publicRemark {
  line-height: 1.6;
  font-size: 15px;
}

#zipUnitsPanel img {
  width: 100%;
  max-width: 100%;
  height: 100px;
  object-fit: cover;
  display: block;
}

#zipUnitsPanel .zip-card,
#zipUnitsPanel .zip-card * {
  cursor: pointer;
}

#zipUnitsPanel .zip-card {
  transition: transform .06s ease, box-shadow .06s ease;
}

#zipUnitsPanel .zip-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
}

.tc-mainview-wrap {
  margin-top: 16px;
}

.tc-main-unit {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 18px;
}

.tc-main-hero {
  position: relative;
}

.tc-main-hero img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

.tc-main-tags {
  position: absolute;
  left: 12px;
  top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tc-tag {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 700;
  background: rgba(255,255,255,.92);
  color: #222;
}

.tc-main-info {
  padding: 16px;
}

.tc-main-address {
  margin: 0 0 10px;
  font-size: 2rem;
  line-height: 1.2;
}

.tc-main-meta {
  color: #555;
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.tc-main-price {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.tc-main-remarks {
  line-height: 1.6;
  color: #333;
}

.tc-parties-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.tc-party-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 14px;
}

.tc-party-title {
  font-weight: 800;
  margin-bottom: 8px;
}

.tc-related-wrap {
  margin-bottom: 22px;
}

.tc-section-title {
  margin: 0 0 12px;
  font-size: 1.75rem;
}

.tc-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.tc-mini-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  overflow: hidden;
}

.tc-mini-card:hover {
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 22px rgba(0,0,0,.08);
}

.tc-mini-thumb-wrap {
  width: 100%;
  overflow: hidden;
}

.tc-mini-thumb {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

.tc-mini-body {
  padding: 12px;
}

.tc-mini-price {
  font-weight: 800;
  margin-bottom: 6px;
}

.tc-mini-address {
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.35;
}

.tc-mini-meta {
  color: #666;
  font-size: .92rem;
}

@media (max-width: 768px) {
  .tc-main-hero img {
    height: 260px;
  }

  .tc-main-address {
    font-size: 1.5rem;
  }

  .tc-section-title {
    font-size: 1.4rem;
  }
}

/* ===== SIMILAR HOMES CLEAN VERSION ===== */

#similarListings {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

#similarListings .similar-card {
  cursor: pointer !important;
  border: 5px solid transparent !important;
  border-radius: 12px !important;
  overflow: hidden;
  background: #fff;
  transition: all .12s ease !important;
}

#similarListings .similar-card,
#similarListings .similar-card * {
  cursor: pointer !important;
}

#similarListings .similar-card:hover {
  border-color: #22c55e !important;
  box-shadow: 0 12px 28px rgba(0,0,0,.20) !important;
  transform: translateY(-3px) scale(1.01);
}

#similarListings .similar-card:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(0,0,0,.18);
}

#similarListings .tc-mini-thumb {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

#similarListings .tc-mini-body {
  padding: 10px 12px;
}

#similarListings .tc-mini-price {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
}

#similarListings .tc-mini-address {
  font-size: 13px;
  line-height: 1.3;
  margin-bottom: 4px;
}

#similarListings .tc-mini-meta {
  font-size: 12px;
  color: #666;
}

/* =========================
   LA / PBA BOXES — FINAL
   Để cuối file để không bị ghi đè
========================= */

#agentPbaRow.party-row {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 28px !important;
  margin: 36px 0 !important;
  align-items: stretch !important;
}

#agentPbaRow .party-box {
  display: block !important;
  width: 100% !important;
  min-height: 150px !important;
  box-sizing: border-box !important;
  border: 3px solid #e6e6e6 !important;
  border-radius: 16px !important;
  background: #fff !important;
  padding: 22px 24px !important;
  color: inherit !important;
  text-decoration: none !important;
  transition:
    border-color .15s ease,
    background-color .15s ease,
    box-shadow .15s ease,
    transform .15s ease !important;
}

#agentPbaRow .party-box:hover {
  border-color: #ffcc80 !important;
  background: #fff8ef !important;
  box-shadow: 0 8px 22px rgba(0,0,0,.08) !important;
  transform: translateY(-2px) !important;
}

#agentPbaRow .party-title {
  font-size: 18px !important;
  font-weight: 800 !important;
  margin-bottom: 16px !important;
  color: #111 !important;
}

#agentPbaRow .row-line {
  margin: 7px 0 !important;
  line-height: 1.45 !important;
  font-size: 15px !important;
}

#agentPbaRow .pba-main {
  font-weight: 800 !important;
  font-size: 16px !important;
  margin-bottom: 6px !important;
}

#agentPbaRow .small,
#agentPbaRow .text-muted {
  color: #666 !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
}

#agentPbaRow a,
#agentPbaRow a:visited {
  color: inherit !important;
  text-decoration: none !important;
}

#agentPbaRow .party-box a {
  color: #0b57d0 !important;
  text-decoration: none !important;
}

#agentPbaRow .party-box a:hover {
  text-decoration: underline !important;
}

@media (max-width: 768px) {
  #agentPbaRow.party-row {
    grid-template-columns: 1fr !important;
  }
}

/* ===== LA / PBA COLORS ===== */

#agentPbaRow .la-box{
    background:#fff9df !important;
    border-color:#efd98a !important;
}

#agentPbaRow .la-box:hover{
    background:#fff4c7 !important;
    border-color:#e5c85f !important;
}

#agentPbaRow .pba-box{
    background:#eefbea !important;
    border-color:#bfe3b7 !important;
}

#agentPbaRow .pba-box:hover{
    background:#e2f7dc !important;
    border-color:#8fd184 !important;
}

/* font PBA giống LA */
#agentPbaRow .pba-box,
#agentPbaRow .pba-box *{
    font-size:15px !important;
    font-weight:400 !important;
    color:#333 !important;
}

/* title vẫn bold */
#agentPbaRow .pba-box .party-title{
    font-size:18px !important;
    font-weight:800 !important;
    color:#111 !important;
}

/* dòng chính */
#agentPbaRow .pba-box .pba-main{
    font-size:15px !important;
    font-weight:700 !important;
    color:#444 !important;
}
#agentPbaRow .pba-occupied {
    cursor: default !important;
}

#agentPbaRow .pba-occupied:hover {
    transform: none !important;
}

#agentPbaRow .pba-verified {
    margin-top: 14px;
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #0d6efd !important;
}
/* button share-to-FB */
.tc-share-btn {
    margin-top: 8px;
    display: inline-block;
}
/* mục đích làm address dài và đẹp hơn */
.tc-address-full{
    font-size:18px;
    font-weight:700;
    line-height:1.45;
    margin-bottom:10px;
    word-break:break-word;
}

.tc-share-btn{
    margin-top:4px;
}


/* ===== MAIN IMAGE REAL FIX ===== */

.image-wrap {
  position: relative !important;
  width: min(100%, 900px) !important;
  height: 480px !important;
  min-height: 480px !important;
  max-height: 480px !important;
  overflow: hidden !important;
  border-radius: 10px !important;
  background: #f3f3f3 !important;
}

.image-wrap #mainImage {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: contain !important;
  display: block !important;
}

@media (max-width: 992px) {
  .image-wrap {
    width: 100% !important;
    height: 430px !important;
    min-height: 430px !important;
    max-height: 430px !important;
  }
}

