/* ==========================================================================
   BĐS BẮC TÂN UYÊN — QUIET LUXURY SEASONAL & FEEDBACK UI ENGINE (PC & MOBILE)
   Phương châm: Hiện đại • Chuyên nghiệp • Không lỗi thời • Không màu mè khoa trương
   Tôn trọng trải nghiệm khách hàng • Lắng nghe ý kiến đóng góp
   ========================================================================== */

:root {
  --holiday-accent: #dfba73;
  --holiday-accent-2: #f3d79b;
  --holiday-glow: rgba(223, 186, 115, 0.16);
  --holiday-badge-bg: rgba(12, 16, 22, 0.72);
  --holiday-badge-border: rgba(223, 186, 115, 0.42);
  --holiday-badge-text: #f8fafc;
  --holiday-dot-color: #dfba73;
}

/* Mọi dịp lễ đều giữ tông Quiet Luxury (Đen khói kiến trúc + Vàng Champagne tinh tế,
   chỉ điểm xuyết sắc thái rất nhẹ nơi chấm sáng, tuyệt đối không lòe loẹt khoa trương) */
body[data-holiday-theme="tet"],
body[data-holiday-theme="national"] {
  --holiday-dot-color: #f59e0b;
  --holiday-badge-border: rgba(245, 158, 11, 0.48);
}

body[data-holiday-theme="trungthu"],
body[data-holiday-theme="teacher"],
body[data-holiday-theme="halloween"] {
  --holiday-dot-color: #eab308;
  --holiday-badge-border: rgba(234, 179, 8, 0.44);
}

body[data-holiday-theme="valentine"],
body[data-holiday-theme="women"] {
  --holiday-dot-color: #f4afab;
  --holiday-badge-border: rgba(244, 175, 171, 0.45);
}

body[data-holiday-theme="noel"] {
  --holiday-dot-color: #6ee7b7;
  --holiday-badge-border: rgba(223, 186, 115, 0.45);
}

/* Đường viền mảnh sang trọng trên thanh Header vào dịp lễ */
body[data-holiday-active="1"] .site-header {
  border-bottom: 1px solid var(--holiday-badge-border) !important;
}

/* Canvas hạt ánh sáng Bokeh cực nhẹ (không che khuất, không gây rối mắt) */
.holiday-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none !important;
  z-index: 2;
  overflow: hidden;
  opacity: 0.75;
}

/* Nhãn thông điệp dịp lễ phong cách Kiến trúc Tối giản (Quiet Luxury) */
.holiday-hero-banner {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 10px 0;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--holiday-badge-bg);
  border: 1px solid var(--holiday-badge-border);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
  color: var(--holiday-badge-text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  max-width: 100%;
  box-sizing: border-box;
}

.holiday-hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--holiday-dot-color);
  box-shadow: 0 0 8px var(--holiday-dot-color);
  flex-shrink: 0;
}

.holiday-hero-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #f3d79b;
}

/* Trên PC: Đưa nút Bật nhạc lên góc phải trên của khung Video Hero để không đụng 2 nút nổi góc phải dưới */
@media (min-width: 901px) {
  .hero-video-controls {
    top: 24px !important;
    right: 28px !important;
    bottom: auto !important;
  }
}

@media (max-width: 640px) {
  .holiday-hero-banner {
    padding: 4px 11px !important;
    font-size: 10.8px !important;
    gap: 7px !important;
    margin: 0 0 8px 0 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

/* ==========================================================================
   HỘP THOẠI LẮNG NGHE Ý KIẾN ĐÓNG GÓP CỦA KHÁCH HÀNG (RESPECTFUL FEEDBACK)
   Chỉ mở khi khách chủ động bấm nút ở chân trang — tuyệt đối không tự bật làm phiền
   ========================================================================== */
.footer-feedback-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(217, 184, 117, 0.35);
  color: #f3d79b !important;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.footer-feedback-trigger:hover {
  background: rgba(217, 184, 117, 0.16);
  border-color: #dfba73;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.feedback-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10100;
  background: rgba(6, 10, 15, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  animation: fbFadeIn 0.2s ease;
}

.feedback-modal-backdrop[hidden] {
  display: none !important;
}

@keyframes fbFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.feedback-modal-card {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  padding: 24px;
  color: #0f172a;
  box-sizing: border-box;
}

.feedback-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.feedback-modal-head h3 {
  margin: 0 0 4px 0;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

.feedback-modal-head p {
  margin: 0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.45;
}

.feedback-close-btn {
  background: #f1f5f9;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #475569;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.feedback-close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.feedback-rating-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.feedback-rate-opt {
  position: relative;
}

.feedback-rate-opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.feedback-rate-opt span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 8px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.feedback-rate-opt input:checked + span {
  background: #0f172a;
  border-color: #0f172a;
  color: #f3d79b;
}

.feedback-field-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.feedback-field-group textarea,
.feedback-field-group input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-size: 13.5px;
  color: #0f172a;
  background: #ffffff;
  box-sizing: border-box;
  outline: none;
}

.feedback-field-group textarea:focus,
.feedback-field-group input:focus {
  border-color: #0d746b;
  box-shadow: 0 0 0 3px rgba(13, 116, 107, 0.12);
}

.feedback-submit-btn {
  width: 100%;
  height: 44px;
  border: none;
  border-radius: 11px;
  background: linear-gradient(135deg, #dfba73, #c59b4c);
  color: #181818;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.feedback-submit-btn:hover {
  opacity: 0.94;
}

.feedback-status-msg {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #0d746b;
  text-align: center;
}

/* ==========================================================================
   TIỆN ÍCH CHUYÊN SÂU TÔN TRỌNG KHÁCH HÀNG:
   - Đơn giá tự động (/m² & /m ngang)
   - Lưu tin yêu thích 1 chạm (không bắt đăng nhập)
   - Ước tính khoản vay ngân hàng thu gọn
   - Bất động sản tương tự cuối trang chi tiết
   ========================================================================== */
.detail-price-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.unit-price-sub {
  font-size: 12px;
  font-weight: 700;
  color: #0d746b;
  letter-spacing: 0.01em;
}

.share-action-row.three-cols {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.save-prop-btn.is-saved {
  background: #fef2f2 !important;
  border: 1px solid #fecaca !important;
  color: #dc2626 !important;
}

.card-save-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 4;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(12, 16, 22, 0.72);
  color: #ffffff;
  font-size: 15px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.card-save-btn:hover {
  transform: scale(1.08);
  background: rgba(12, 16, 22, 0.9);
}

.card-save-btn.is-saved {
  background: #ffffff;
  border-color: #fecaca;
  color: #dc2626;
}

#savedFilterPill.is-active {
  background: #0f172a !important;
  border-color: #0f172a !important;
  color: #f3d79b !important;
}

.pro-loan-calc {
  margin: 12px 0 6px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  overflow: hidden;
}

.pro-loan-calc summary {
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 750;
  color: #1e293b;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.pro-loan-calc summary::-webkit-details-marker {
  display: none;
}

.pro-loan-calc summary::after {
  content: "▾";
  color: #64748b;
  transition: transform 0.2s ease;
}

.pro-loan-calc[open] summary::after {
  transform: rotate(180deg);
}

.loan-calc-body {
  padding: 4px 14px 14px;
  border-top: 1px dashed #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.loan-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: #475569;
}

.loan-row b {
  color: #0f172a;
}

.loan-row input[type="range"] {
  width: 100%;
  height: 6px;
  padding: 0;
  accent-color: #0d746b;
  cursor: pointer;
}

.loan-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 9px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  font-size: 12.5px;
  color: #334155;
}

.loan-result strong {
  font-size: 15px;
  font-weight: 850;
  color: #b45309;
}

.related-section {
  margin-top: 42px;
  padding-top: 28px;
  border-top: 1px solid #e2e8f0;
}

@media (max-width: 640px) {
  .related-section {
    margin-top: 28px;
    padding-top: 20px;
  }
  .share-action-row.three-cols a,
  .share-action-row.three-cols button {
    font-size: 11.5px !important;
    padding: 8px 6px !important;
  }
}

