.bg-ink { background-color: #0B1C33 !important; }
.text-ink { color: #0B1C33 !important; }
.border-ink { border-color: #0B1C33 !important; }
.bg-accent,
.bg-brand { background-color: #C5A059 !important; color: #0B1C33 !important; }
.text-accent,
.text-brand { color: #C5A059 !important; }
.bg-accentSoft { background-color: #F9F5EC !important; }
.text-muted { color: #64748B !important; }
.bg-canvas { background-color: #F9F9FB !important; }
.border-line { border-color: #E2E8F0 !important; }
.divide-line > :not([hidden]) ~ :not([hidden]) { border-color: #E2E8F0 !important; }
.shadow-soft { box-shadow: 0 16px 36px rgba(11, 28, 51, .08) !important; }
.accent-brand { accent-color: #C5A059 !important; }
.hover\:text-ink:hover { color: #0B1C33 !important; }
.hover\:text-brand:hover { color: #C5A059 !important; }
.hover\:bg-brand-dark:hover { background-color: #A8843F !important; }

/* ===== Dropdown เมนูซื้อ/เช่า (หน้า Tailwind) ===== */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.nav-caret {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-top: -2px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s;
}
.nav-dropdown.open .nav-caret { transform: rotate(225deg); }
.nav-dropdown-panel {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: -16px;
  z-index: 60;
  width: min(680px, 92vw);
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e7ecf0;
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(24, 50, 75, .16);
  grid-template-columns: repeat(3, 1fr);
  gap: 4px 24px;
}
.nav-dropdown.open .nav-dropdown-panel { display: grid; }
.nav-dropdown-col { display: flex; flex-direction: column; gap: 2px; }
.nav-dropdown-heading {
  margin: 8px 0 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #C5A059;
}
.nav-dropdown-col > a {
  display: block;
  padding: 6px 8px;
  border-radius: 8px;
  color: #0B1C33;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}
.nav-dropdown-col > a:hover { background: #F9F5EC; color: #A8843F; }
@media (max-width: 900px) {
  .nav-dropdown-panel { grid-template-columns: 1fr; width: 320px; max-height: 70vh; overflow: auto; }
}

/* ===== CTA ท้ายหน้า + ปุ่มกลับขึ้นด้านบน (หน้า Tailwind) ===== */
.page-cta { margin: 44px 0 8px; }
.page-cta-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 30px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 88% 15%, rgba(197, 160, 89, .18), transparent 45%),
    linear-gradient(120deg, #0B1C33 0%, #182C48 100%);
  color: #fff;
  border: 1px solid rgba(197, 160, 89, 0.25);
  box-shadow: 0 16px 40px rgba(11, 28, 51, .22);
}
.page-cta-box h3 { margin: 0 0 4px; color: #fff; font-size: 21px; }
.page-cta-box p { margin: 0; opacity: .85; font-size: 14px; }
.page-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.page-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #C5A059, #A8843F);
  color: #0B1C33;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(197, 160, 89, .35);
  transition: transform .2s, box-shadow .2s;
}
.page-cta-btn:hover { background: linear-gradient(135deg, #D4AF67, #B58F48); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(197, 160, 89, .45); }
.page-cta-btn.ghost {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.35);
  box-shadow: none;
}
.page-cta-btn.ghost:hover { background: rgba(255,255,255,.22); }

.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 110;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid #dce2e9;
  border-radius: 50%;
  background: #fff;
  color: #2b2150;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 26px rgba(23,27,61,.18);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .25s, transform .25s, background .2s, color .2s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: #7955d9; border-color: #7955d9; color: #fff; }

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, #7955d9, #d3c3f7);
  transition: width .1s linear;
  pointer-events: none;
}
/* Accessible compact navigation for the category and property detail headers. */
.sp-mobile-menu { display:none; }
@media(max-width:1023px) {
  .sp-mobile-menu { display:block; position:absolute; top:10px; right:12px; z-index:60; }
  header:has(.sp-mobile-menu)>div>div:last-child { display:none!important; }
  .sp-mobile-menu>summary { display:flex; align-items:center; gap:7px; min-height:42px; padding:0 13px; list-style:none; border:1px solid #e5e1ef; border-radius:12px; background:#fff; color:#3a2a60; box-shadow:0 5px 15px #24203b12; font-size:14px; font-weight:800; cursor:pointer; }
  .sp-mobile-menu>summary::-webkit-details-marker { display:none; }
  .sp-mobile-menu[open]>nav { position:absolute; top:48px; right:0; display:grid; width:min(290px,calc(100vw - 24px)); max-height:70vh; overflow:auto; padding:9px; border:1px solid #e7e4ef; border-radius:15px; background:#fff; box-shadow:0 16px 35px #20183b28; }
  .sp-mobile-menu>nav>a { padding:11px 12px; border-radius:9px; color:#34284f; font-size:14px; font-weight:700; text-decoration:none; }
  .sp-mobile-menu>nav>a:hover,.sp-mobile-menu>nav>a:focus-visible { background:#f4f0fb; }
}

/* ===== ชิปโปรไฟล์ผู้ประกาศบนมุมล่างซ้ายของการ์ด (Publisher Mini Chip) ===== */
.publisher-mini {
  position: absolute;
  left: 9px;
  bottom: 9px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: calc(100% - 18px);
  padding: 3px 9px 3px 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(255, 255, 255, .65);
  box-shadow: 0 2px 8px rgba(15, 30, 55, .16);
  backdrop-filter: blur(6px) saturate(1.4);
  -webkit-backdrop-filter: blur(6px) saturate(1.4);
  transform-origin: left bottom;
  transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s ease, background .3s ease;
}
.publisher-mini-avatar {
  display: grid;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(135deg,#efe7fb,#e0d2f5);
  color: #6044a6;
  font-size: 9px;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(96,68,166,.14);
}
.publisher-mini-avatar img { width: 100%; height: 100%; object-fit: cover; }
.publisher-mini-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.publisher-mini-name {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  max-width: 130px;
  color: #241d3e;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.publisher-mini-loc {
  max-width: 130px;
  color: #7a8699;
  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.publisher-verified-dot {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #12a15c;
  box-shadow: 0 0 0 2px rgba(255,255,255,.9);
  color: #fff;
  font-size: 7px;
  font-style: normal;
  font-weight: 900;
}

/* ===== Category listings responsive grid ===== */
.category-listings-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 1.25rem !important;
}
@media (min-width: 640px) {
  .category-listings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (min-width: 1024px) {
  .category-listings-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

/* Hide floating controls on category listing view so it doesn't cover property cards */
body.page-category .site-controls {
  display: none !important;
}

/* Ensure clean sans-serif typography inside publisher mini chip */
.publisher-mini {
  font-family: 'Prompt', 'Inter', system-ui, -apple-system, sans-serif !important;
}
.publisher-mini-avatar {
  font-size: 10px !important;
  font-weight: 800 !important;
  font-family: 'Prompt', 'Inter', system-ui, -apple-system, sans-serif !important;
}
.publisher-mini-loc svg {
  display: inline-block;
  vertical-align: -1px;
}
