/**
 * ============================================================================
 * SKYLAND FORM ADD SOURCE - RESPONSIVE & MOBILE STANDARDS
 * File: apps/web/assets/css/form-add-source.css
 * ============================================================================
 * Quy chuẩn:
 * 1. Chống phóng to tự động (Prevent Auto-zoom font-size >= 16px trên Mobile/iOS).
 * 2. Hỗ trợ hiển thị mượt mà trên cả PC, Tablet và Điện thoại di động.
 * 3. Tối ưu Touch Targets (min 44px) và Safe Area Insets (iOS Home Bar / Notch).
 * 4. Tạo hình 3D tinh tế, bo góc mềm mại, hiển thị rõ ràng trực quan.
 * ============================================================================
 */

/* Container gốc của form thêm nguồn */
.skyland-form-add-source-root,
#skylandAddSourceModal,
#skylandAddSourcePanel {
  box-sizing: border-box;
  font-family: inherit;
  color: #102428;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   QUY CHUẨN CHỐNG AUTO-ZOOM TRÊN MOBILE (IOS & ANDROID SAFARI/CHROME)
   Đảm bảo tất cả phần tử nhập liệu có font-size >= 16px khi ở màn hình cảm ứng
   ========================================================================== */
.skyland-form-add-source-root input,
.skyland-form-add-source-root select,
.skyland-form-add-source-root textarea,
#skylandAddSourceModal input,
#skylandAddSourceModal select,
#skylandAddSourceModal textarea,
.skyland-source-prevent-zoom {
  font-size: 16px !important;
  line-height: 1.35;
  touch-action: manipulation;
  box-sizing: border-box;
}

/* Các trường input chuẩn hoá */
.skyland-fas-input,
.skyland-fas-select,
.skyland-fas-textarea {
  width: 100%;
  min-height: 44px; /* Chuẩn Apple HIG touch target >= 44px */
  padding: 10px 14px;
  border: 1px solid #d7dfe1;
  border-radius: 12px;
  background-color: #ffffff;
  color: #102428;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.skyland-fas-input:focus,
.skyland-fas-select:focus,
.skyland-fas-textarea:focus {
  border-color: #005d53;
  box-shadow: 0 0 0 3px rgba(0, 93, 83, 0.16);
}

.skyland-fas-textarea {
  min-height: 88px;
  resize: vertical;
}

/* Select icon tuỳ chỉnh */
.skyland-fas-select {
  padding-right: 38px;
  background-image:
    linear-gradient(45deg, transparent 50%, #68797d 50%),
    linear-gradient(135deg, #68797d 50%, transparent 50%);
  background-position:
    calc(100% - 20px) calc(50% - 2px),
    calc(100% - 14px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

/* Label tiêu đề trường */
.skyland-fas-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 700;
  color: #2e3e42;
}

.skyland-fas-label .required-mark {
  color: #e03131;
  margin-left: 2px;
}

.skyland-fas-hint {
  font-size: 12px;
  font-weight: 400;
  color: #728488;
  margin-top: 2px;
}

/* Nút bấm chuẩn hoá */
.skyland-fas-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  user-select: none;
  touch-action: manipulation;
}

.skyland-fas-btn-primary {
  background: #005d53;
  color: #ffffff;
  border-color: #00473f;
  box-shadow: 0 6px 16px rgba(0, 93, 83, 0.28), 0 1px 0 rgba(255, 255, 255, 0.25) inset;
}

.skyland-fas-btn-primary:active {
  background: #00473f;
  transform: translateY(1px);
  box-shadow: 0 2px 6px rgba(0, 93, 83, 0.25);
}

.skyland-fas-btn-secondary {
  background: #f1f5f7;
  color: #2b3a3e;
  border-color: #dbe3e5;
}

/* ==========================================================================
   RBAC BAR & BẢO MẬT SĐT CHỦ NHÀ
   ========================================================================== */
.skyland-fas-rbac-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-left: 4px solid #0284c7;
  padding: 10px 14px;
  border-radius: 12px;
  margin-bottom: 14px;
}

.skyland-fas-rbac-title {
  font-size: 13px;
  font-weight: 800;
  color: #0369a1;
}

.skyland-fas-rbac-controls {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.skyland-fas-rbac-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
}

.skyland-fas-owner-vault-slot {
  background: #fdfefe;
  border: 1px solid #dce4e6;
}

.skyland-fas-vault-badge {
  font-size: 11px;
  font-weight: 700;
  color: #005d53;
  background: #e6f3f1;
  border: 1px solid #c0ded9;
  padding: 3px 10px;
  border-radius: 20px;
}

.skyland-fas-phone-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.skyland-fas-phone-lock-tag {
  position: absolute;
  right: 10px;
  font-size: 11px;
  color: #b33907;
  background: #fff4ed;
  border: 1px solid #ffd8c4;
  padding: 2px 8px;
  border-radius: 6px;
  pointer-events: none;
  font-weight: 600;
}

.skyland-fas-anonymous-cta-preview {
  margin-top: 10px;
  padding: 10px 12px;
  background: #f0f7f8;
  border: 1px dashed #b5dbe0;
  border-radius: 10px;
  font-size: 12px;
  color: #102428;
}

/* ==========================================================================
   MODULE 1: DEMAND SELECTOR (2 NÚT HÀNH ĐỘNG LỚN & KHÓA TRẠNG THÁI)
   ========================================================================== */
.skyland-demand-wrapper {
  margin-bottom: 4px;
}

.skyland-status-section {
  margin-top: 12px;
  margin-bottom: 12px;
}

.skyland-status-pick.is-privileged {
  border-style: dashed;
}

.skyland-demand-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.skyland-demand-title {
  font-size: 14px;
  font-weight: 800;
  color: #102428;
}

.skyland-demand-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #eef7f5;
  border: 1px solid #cce5e1;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  color: #005d53;
}

.skyland-demand-status-badge strong {
  font-weight: 700;
}

.skyland-demand-btn-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.skyland-demand-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 14px;
  min-height: 80px;
  border-radius: 16px;
  border: 2px solid #e1e9e8;
  background: linear-gradient(180deg, #ffffff 0%, #f7faf9 100%);
  color: #38494d;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 45, 40, 0.05), 0 1px 0 #fff inset;
  touch-action: manipulation;
  user-select: none;
}

.skyland-demand-action-btn:hover {
  border-color: #005d53;
  background: #fbfdfd;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 93, 83, 0.12), 0 1px 0 #fff inset;
}

.skyland-demand-action-btn.is-active {
  border-color: #005d53;
  background: linear-gradient(180deg, #f0f8f7 0%, #e2f2ef 100%);
  color: #005d53;
  box-shadow: 0 8px 24px rgba(0, 93, 83, 0.22), 0 0 0 1px #005d53 inset;
  transform: translateY(-2px);
}

.skyland-demand-btn-icon {
  font-size: 26px;
  line-height: 1;
  margin-bottom: 5px;
}

.skyland-demand-btn-label {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.skyland-demand-btn-sub {
  font-size: 12px;
  color: #6a7c80;
  margin-top: 3px;
}

.skyland-demand-action-btn.is-active .skyland-demand-btn-sub {
  color: #005d53;
  font-weight: 600;
}

/* ==========================================================================
   MODULE 2: ADDRESS GEOCODING & CON MẮT BẢO MẬT CHỐNG CẮT CẦU
   ========================================================================== */
.skyland-geocoding-module {
  background: transparent;
}

.skyland-geo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f3f4;
}

.skyland-geo-toggle-group {
  display: inline-flex;
  background: #eef3f5;
  border-radius: 12px;
  padding: 3px;
  gap: 4px;
}

.skyland-geo-toggle-btn {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  border: none;
  background: transparent;
  color: #55676b;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s ease;
  touch-action: manipulation;
}

.skyland-geo-toggle-btn.is-active {
  background: #ffffff;
  color: #005d53;
  box-shadow: 0 2px 6px rgba(16, 24, 32, 0.08);
}

.skyland-geo-prov-wrap {
  display: flex;
  align-items: center;
}

.skyland-geo-prov-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: #eef7f5;
  border: 1px solid #cce5e1;
  border-radius: 20px;
  font-size: 13px;
  color: #005d53;
}

.skyland-geo-prov-change-btn {
  background: none;
  border: none;
  color: #005d53;
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.skyland-geo-prov-select {
  min-height: 38px;
  padding: 6px 32px 6px 10px;
  font-size: 14px;
}

.skyland-geo-address-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.is-hidden {
  display: none !important;
}

/* Mã căn & Con mắt bảo mật */
.skyland-geo-unit-security-row {
  margin-bottom: 14px;
}

.skyland-geo-unit-label-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.skyland-geo-mask-preview {
  font-size: 12px;
  color: #b33907;
  background: #fff4ed;
  border: 1px solid #ffd8c4;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
}

.skyland-geo-unit-input-wrap {
  display: flex;
  gap: 8px;
  align-items: center;
}

.skyland-geo-eye-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid #d7dfe1;
  background: #f8fafb;
  color: #4b5d61;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  touch-action: manipulation;
}

.skyland-geo-eye-btn.is-masked {
  background: #fff4ed;
  border-color: #f7b494;
  color: #b33907;
}

.skyland-geo-eye-icon {
  font-size: 16px;
}

/* Khối Bản đồ Mini */
.skyland-geo-map-box {
  border: 1px solid #dce4e6;
  border-radius: 14px;
  background: #fcfdfd;
  padding: 12px;
  margin-top: 10px;
}

.skyland-geo-map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.skyland-geo-tool-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: #1a2c30;
}

.skyland-geo-coord-display {
  font-size: 12px;
  font-weight: 600;
  color: #005d53;
  background: #eef7f5;
  padding: 2px 8px;
  border-radius: 6px;
}

.skyland-geo-btn-gps {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 10px;
  border: 1px solid #005d53;
  background: #ffffff;
  color: #005d53;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  touch-action: manipulation;
}

.skyland-geo-btn-gps:hover {
  background: #005d53;
  color: #ffffff;
}

.skyland-geo-btn-gps.is-loading {
  opacity: 0.6;
  pointer-events: none;
}

.skyland-geo-link-input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.skyland-geo-link-btn {
  white-space: nowrap;
  min-height: 44px;
  padding: 0 16px;
}

/* Khung hiển thị trực quan bản đồ mini */
.skyland-geo-minimap-container {
  position: relative;
  width: 100%;
  height: 200px;
  background: #e5eff2 url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23cbdfe3' fill-opacity='0.4' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
  border: 1px solid #d1dcde;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: crosshair;
}

.skyland-geo-minimap-overlay {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* Khối Tên dự án kéo lên trên cùng địa chỉ */
.skyland-geo-project-section {
  margin-bottom: 14px;
  padding: 10px 14px;
  background: #f7fafb;
  border: 1px solid #dce4e6;
  border-radius: 12px;
}

.skyland-geo-proj-label-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.skyland-geo-canonical-badge {
  font-size: 11px;
  font-weight: 700;
  color: #005d53;
  background: #e8f5f3;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid #c0e3de;
}

/* Lưới 2 cột riêng biệt: Thôn / Xóm & Tuyến đường / Phố */
.skyland-geo-village-street-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

@media (max-width: 640px) {
  .skyland-geo-village-street-grid {
    grid-template-columns: 1fr;
  }
}

.skyland-geo-field-label-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.skyland-geo-count-badge {
  font-size: 11px;
  font-weight: 600;
  color: #005d53;
  background: #e6f4f2;
  padding: 1px 6px;
  border-radius: 4px;
}

/* Nút nhỏ Ẩn Vị Trí (Thay thế hoàn toàn vòng tròn cắt cầu cũ) */
.skyland-geo-hide-loc-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid #cfd9db;
  background: #ffffff;
  color: #435b60;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.skyland-geo-hide-loc-btn:hover {
  background: #f1f5f7;
  border-color: #b0c2c6;
}

.skyland-geo-hide-loc-btn.is-hidden-loc {
  background: #fff7ed;
  border-color: #f97316;
  color: #c2410c;
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.15);
}

.skyland-geo-hide-notice {
  font-size: 12px;
  color: #9a3412;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  padding: 6px 10px;
  border-radius: 8px;
  margin-bottom: 8px;
  line-height: 1.4;
}

/* Hướng dẫn trực quan 3 cách nạp vị trí */
.skyland-geo-methods-guide {
  background: #f8fafb;
  border: 1px solid #e1e8eb;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.skyland-geo-methods-title {
  font-size: 12px;
  font-weight: 700;
  color: #1a2c30;
  margin-bottom: 6px;
}

.skyland-geo-methods-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

@media (max-width: 640px) {
  .skyland-geo-methods-cards {
    grid-template-columns: 1fr;
  }
}

.skyland-geo-method-card {
  background: #ffffff;
  border: 1px solid #dce4e6;
  border-radius: 8px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11px;
  line-height: 1.35;
  color: #4b5d61;
}

.skyland-geo-method-card strong {
  color: #005d53;
  font-size: 11.5px;
}

/* Bộ điều khiển Zoom trên bản đồ Mini */
.skyland-geo-zoom-controls {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 10;
}

.skyland-geo-zoom-btn {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid #c2d2d6;
  background: #ffffff;
  color: #1a2c30;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  transition: all 0.15s ease;
}

.skyland-geo-zoom-btn:hover {
  background: #f0f7f6;
  border-color: #005d53;
  color: #005d53;
}

.skyland-geo-pin-indicator {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(0, -10px);
}

.skyland-geo-pin-marker {
  font-size: 32px;
  line-height: 1;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.25));
  z-index: 2;
  transition: transform 0.2s ease;
}

/* Điểm dự án / trung tâm khi ẩn vị trí */
.skyland-geo-hidden-project-point {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234, 88, 12, 0.2) 0%, rgba(234, 88, 12, 0.05) 70%, transparent 100%);
  border: 2px dashed #f97316;
  z-index: 1;
  pointer-events: none;
}

.skyland-geo-map-hint {
  position: absolute;
  bottom: 8px;
  left: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 11px;
  color: #384d52;
  text-align: center;
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* ==========================================================================
   MODULE 3: CATEGORY LISTER & CUỐN CHIẾU (POPUP / BOTTOM-SHEET)
   ========================================================================== */
.skyland-cat-lister-root {
  display: grid;
  gap: 12px;
}

.skyland-cat-badge {
  font-size: 11px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 700;
}

.skyland-cat-tag-info {
  font-size: 12px;
  color: #64748b;
  font-style: italic;
}

/* Category Interactive Trigger Card */
.skyland-cat-trigger-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  padding: 10px 16px;
  border: 2px solid #e1e9ea;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfd 100%);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(16, 36, 40, 0.04), 0 1px 0 #ffffff inset;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  touch-action: manipulation;
}

.skyland-cat-trigger-card:hover {
  border-color: #005d53;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 93, 83, 0.12), 0 1px 0 #ffffff inset;
}

.skyland-cat-trigger-card:active {
  transform: translateY(1px);
}

.skyland-cat-trigger-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.skyland-cat-trigger-icon {
  width: 44px;
  height: 44px;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef7f5;
  border-radius: 12px;
  border: 1px solid #cde7e2;
  flex-shrink: 0;
}

.skyland-cat-trigger-meta {
  min-width: 0;
  flex: 1;
}

.skyland-cat-trigger-name {
  font-size: 15px;
  font-weight: 800;
  color: #102428;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.skyland-cat-trigger-sub {
  font-size: 12px;
  font-weight: 600;
  color: #687e83;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.skyland-cat-trigger-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f0f7f6;
  border: 1px solid #cce5e0;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #005d53;
  flex-shrink: 0;
}

.skyland-cat-trigger-arrow {
  font-size: 14px;
  line-height: 1;
}

/* Category Popup / Bottom-Sheet Modal */
.skyland-cat-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10500;
  background: rgba(16, 36, 40, 0.65);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.skyland-cat-sheet-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.skyland-cat-sheet-panel {
  position: relative;
  width: 92%;
  max-width: 660px;
  max-height: 85vh;
  background: #ffffff;
  border-radius: 22px;
  border: 1px solid #dbe4e6;
  box-shadow: 0 24px 64px rgba(0, 45, 40, 0.28), 0 1px 0 #ffffff inset;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.skyland-cat-sheet-backdrop.is-open .skyland-cat-sheet-panel {
  transform: scale(1);
}

.skyland-cat-sheet-handle-bar {
  display: none;
  width: 40px;
  height: 4px;
  background: #cfd8da;
  border-radius: 999px;
  margin: 10px auto 2px auto;
  flex-shrink: 0;
}

.skyland-cat-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #edf2f4;
  flex-shrink: 0;
}

.skyland-cat-sheet-title {
  font-size: 17px;
  font-weight: 800;
  color: #102428;
  margin: 0;
}

.skyland-cat-sheet-subtitle {
  font-size: 12px;
  color: #6a7c80;
  margin: 3px 0 0 0;
}

.skyland-cat-sheet-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f6;
  border: none;
  color: #4b5e62;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  touch-action: manipulation;
}

.skyland-cat-sheet-close:hover {
  background: #e2e9eb;
  color: #102428;
}

.skyland-cat-sheet-body {
  padding: 16px 20px 22px;
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}

.skyland-cat-sheet-group {
  margin-bottom: 16px;
}

.skyland-cat-sheet-group:last-child {
  margin-bottom: 0;
}

.skyland-cat-sheet-group-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #728589;
  margin-bottom: 8px;
  padding-left: 2px;
}

.skyland-cat-sheet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.skyland-cat-sheet-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  min-height: 52px;
  background: #f8fafb;
  border: 1.5px solid #e3eaec;
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  transition: all 0.18s ease;
  user-select: none;
  touch-action: manipulation;
}

.skyland-cat-sheet-item:hover {
  background: #ffffff;
  border-color: #005d53;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 93, 83, 0.08);
}

.skyland-cat-sheet-item.is-selected {
  background: linear-gradient(180deg, #f0f8f7 0%, #e2f2ef 100%);
  border-color: #005d53;
  box-shadow: 0 4px 14px rgba(0, 93, 83, 0.16), 0 0 0 1px #005d53 inset;
}

.skyland-cat-sheet-item-icon {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}

.skyland-cat-sheet-item-name {
  font-size: 13px;
  font-weight: 700;
  color: #1e2e32;
  flex: 1;
  line-height: 1.3;
}

.skyland-cat-sheet-item.is-selected .skyland-cat-sheet-item-name {
  color: #005d53;
  font-weight: 800;
}

.skyland-cat-sheet-item-check {
  font-size: 10px;
  font-weight: 800;
  color: #005d53;
  background: #d4ece7;
  border-radius: 6px;
  padding: 2px 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Mobile Bottom Sheet Drawer (< 768px) */
@media (max-width: 768px) {
  .skyland-cat-sheet-backdrop {
    align-items: flex-end;
  }

  .skyland-cat-sheet-panel {
    width: 100%;
    max-width: 100%;
    max-height: 82vh;
    border-radius: 22px 22px 0 0;
    border-bottom: none;
    transform: translateY(100%);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  }

  .skyland-cat-sheet-backdrop.is-open .skyland-cat-sheet-panel {
    transform: translateY(0);
  }

  .skyland-cat-sheet-handle-bar {
    display: block;
  }

  .skyland-cat-sheet-grid {
    grid-template-columns: 1fr;
  }

  .skyland-cat-sheet-header {
    padding: 12px 16px;
  }

  .skyland-cat-sheet-body {
    padding: 12px 16px 20px;
  }
}

.skyland-cat-advanced-banner {
  font-size: 13px;
  font-weight: 800;
  color: #0f766e;
  background: #f0fdfa;
  border: 1px solid #ccfbf1;
  padding: 8px 12px;
  border-radius: 10px;
  margin-bottom: 12px;
}

.skyland-cat-next-action-row {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skyland-cat-flow-note {
  font-size: 12px;
  color: #005d53;
  background: #eef7f5;
  border: 1px solid #d5ebe6;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 600;
}

.skyland-cat-next-btn {
  width: 100%;
  font-size: 16px;
  min-height: 48px;
  background: linear-gradient(135deg, #005d53 0%, #00796b 100%);
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 93, 83, 0.3);
}

/* ==========================================================================
   MODULE 4: FINANCIAL BROKER & DỰ ÁN SLUG CLEAN
   ========================================================================== */
.skyland-financial-broker-root {
  display: grid;
  gap: 12px;
}

.skyland-fin-badge {
  font-size: 11px;
  background: #fefce8;
  border: 1px solid #fef08a;
  color: #a16207;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 700;
}

.skyland-fin-tag-preview {
  font-size: 12px;
  color: #005d53;
  font-weight: 700;
}

.skyland-fin-proj-label-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.skyland-fin-slug-badge {
  font-size: 11px;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 2px 8px;
  border-radius: 6px;
  font-family: monospace;
}

.skyland-fin-unit-toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.skyland-fin-unit-title {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

.skyland-fin-unit-buttons {
  display: inline-flex;
  gap: 6px;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 10px;
}

.skyland-fin-unit-btn {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  border: none;
  background: transparent;
  color: #475569;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  touch-action: manipulation;
}

.skyland-fin-unit-btn.is-active {
  background: #ffffff;
  color: #005d53;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.skyland-fin-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

/* Lưới 2 ô Giá Thu & Giá Bán (Nhánh Bán) */
.skyland-fin-sale-price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 4px;
}

@media (max-width: 640px) {
  .skyland-fin-sale-price-grid {
    grid-template-columns: 1fr;
  }
}

.skyland-fin-rent-price-wrap {
  margin-bottom: 4px;
}

.skyland-fin-sug-slot {
  margin-top: 4px;
  min-height: 20px;
}

.skyland-fin-area-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.skyland-fin-perm2-badge {
  font-size: 12px;
  font-weight: 700;
  color: #005d53;
  background: #eef7f5;
  padding: 2px 6px;
  border-radius: 4px;
}

.skyland-fin-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.skyland-fin-unit-badge,
.skyland-edit-perm2-badge {
  font-size: 11.5px;
  font-weight: 700;
  color: #0b6b5e;
  background: #e6f6f3;
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid #cceee8;
  margin-left: auto;
  display: inline-block;
  white-space: nowrap;
}

.skyland-edit-field .skyland-edit-perm2-badge {
  float: right;
  margin-top: -1px;
}

.skyland-fin-unit-badge:empty,
.skyland-edit-perm2-badge:empty {
  display: none !important;
}

/* Ô nhập liệu bị khóa bảo mật (Privacy-First) */
.skyland-fas-input.is-locked-privacy {
  background-color: #f5f7f8 !important;
  color: #6a7c80 !important;
  border-color: #e2e8ea !important;
  cursor: not-allowed;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   BỐ CỤC ĐA TẦNG CHO 4 MODULE (CABLE SLOTS)
   ========================================================================== */
.skyland-fas-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.skyland-fas-module-slot {
  border: 1px solid #e2e8ea;
  border-radius: 16px;
  padding: 18px 20px;
  background: #ffffff;
  margin-bottom: 16px;
  box-shadow: 0 4px 18px rgba(16, 36, 40, 0.05), 0 1px 3px rgba(16, 36, 40, 0.03), 0 1px 0 #ffffff inset;
  transition: all 0.2s ease;
}

.skyland-fas-module-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #eef2f3;
}

.skyland-fas-module-title {
  font-size: 15px;
  font-weight: 800;
  color: #102428;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   RESPONSIVE: PC, TABLET & MOBILE
   ========================================================================== */

/* Màn hình lớn (PC / Desktop > 900px) */
@media (min-width: 901px) {
  .skyland-form-add-source-root {
    max-width: 820px;
    margin: 0 auto;
  }
}

/* Màn hình Mobile & Máy tính bảng nhỏ (<= 900px) */
@media (max-width: 900px) {
  .skyland-form-add-source-root {
    width: 100%;
    padding: 12px 10px calc(16px + env(safe-area-inset-bottom, 0px));
  }

  .skyland-fas-grid-2 {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .skyland-fas-module-slot {
    padding: 14px 12px;
    border-radius: 12px;
    margin-bottom: 10px;
  }

  .skyland-fas-btn {
    width: 100%;
  }

  .skyland-demand-btn-group {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .skyland-geo-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .skyland-geo-toggle-group {
    width: 100%;
  }

  .skyland-geo-toggle-btn {
    flex: 1;
    text-align: center;
    padding: 8px 6px;
    font-size: 12px;
  }

  .skyland-geo-address-fields {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .skyland-geo-unit-input-wrap {
    flex-direction: column;
    align-items: stretch;
  }

  .skyland-geo-eye-btn {
    width: 100%;
    justify-content: center;
  }

  .skyland-geo-link-input-row {
    flex-direction: column;
  }

  .skyland-geo-link-btn {
    width: 100%;
  }

  .skyland-fin-pricing-grid {
    grid-template-columns: 1fr;
  }

  .skyland-fin-unit-toggle-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .skyland-fin-unit-buttons {
    width: 100%;
  }

  .skyland-fin-unit-btn {
    flex: 1;
    text-align: center;
    padding: 8px 4px;
    font-size: 12px;
  }
}

/* ==========================================================================
   3D KIND TABS & MEDIA UPLOAD OVERLAY INTEGRATION
   ========================================================================== */
.skyland-add-kind-tabs {
  display: flex;
  gap: 8px;
  background: #f1f5f9;
  padding: 6px;
  border-radius: 14px;
  margin-bottom: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
}

.skyland-add-kind-btn {
  flex: 1;
  min-height: 42px;
  border: none;
  background: transparent;
  color: #475569;
  font-size: 14px;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  touch-action: manipulation;
}

.skyland-add-kind-btn:hover {
  background: rgba(255, 255, 255, 0.6);
  color: #0f172a;
}

.skyland-add-kind-btn.is-on {
  background: linear-gradient(135deg, #005d53 0%, #00796b 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 93, 83, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  transform: translateY(-1px);
}

#skylandAddMediaUploadWrap {
  margin-top: 14px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

/* ==========================================================================
   CARD UI 3D DEPTH & BACKGROUND HARMONIZATION
   ========================================================================== */
#skylandAddPanel {
  background: #f4f6f8;
}

#skylandAddPanel .skyland-add-body {
  background: #f4f6f8;
  padding: 16px;
}

.skyland-add-source-media {
  border: 1px solid #e2e8ea;
  border-radius: 16px;
  padding: 18px 20px;
  background: #ffffff;
  margin-top: 14px;
  margin-bottom: 16px;
  box-shadow: 0 4px 18px rgba(16, 36, 40, 0.05), 0 1px 3px rgba(16, 36, 40, 0.03), 0 1px 0 #ffffff inset;
  transition: all 0.2s ease;
}

@keyframes skylandPulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(0, 93, 83, 0.5); }
  50% { box-shadow: 0 0 0 8px rgba(0, 93, 83, 0.15); }
  100% { box-shadow: 0 0 0 0 rgba(0, 93, 83, 0); }
}

.skyland-highlight-pulse {
  animation: skylandPulseGlow 1.2s ease-out;
  border-color: #005d53 !important;
}

/* ==========================================================================
   MẪU 2: KHỐI MỨC GIÁ & DÀN CHIP CHỌN NHANH (FINANCIAL BROKER MẪU 2)
   ========================================================================== */
.skyland-fin-price-m2-block {
  margin-bottom: 14px;
}

.skyland-fin-price-input-group {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
}

.skyland-fin-price-val-input {
  flex: 1;
  min-width: 0;
  font-weight: 700;
  color: #0f172a;
}

.skyland-fin-unit-select {
  width: 130px;
  flex-shrink: 0;
  font-weight: 700;
  color: #005d53;
  background-color: #f0fdfa;
  border-color: #99f6e4;
  cursor: pointer;
}

/* ==========================================================================
   SMART PRICE SUGGESTER (GỢI Ý MỨC GIÁ LINH HOẠT THỜI GIAN THỰC)
   Hỗ trợ đa tầng: Triệu, Chục triệu, Trăm triệu, Tỷ, Chục tỷ, Trăm tỷ
   Áp dụng cả Desktop & Điện thoại (Mobile Horizontal Scrollable Chips)
   ========================================================================== */
.skyland-fin-dynamic-sug-slot {
  width: 100%;
}

.skyland-smart-price-suggester-wrap {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 12px;
  background: linear-gradient(135deg, #f0fdf9 0%, #f8fafc 100%);
  border: 1px solid #cce5e1;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 93, 83, 0.06);
  animation: skylandSpsFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  transition: all 0.2s ease;
}

.skyland-smart-price-suggester-wrap.is-hidden {
  display: none !important;
}

@keyframes skylandSpsFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.skyland-sps-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.skyland-sps-title {
  font-size: 11px;
  font-weight: 800;
  color: #005d53;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.skyland-sps-hint {
  font-size: 11px;
  color: #64748b;
  font-style: italic;
}

.skyland-sps-chips-scroller {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px 6px;
  scrollbar-width: thin;
  scrollbar-color: #94d3c9 transparent;
}

.skyland-sps-chips-scroller::-webkit-scrollbar {
  height: 4px;
}

.skyland-sps-chips-scroller::-webkit-scrollbar-thumb {
  background: #94d3c9;
  border-radius: 4px;
}

.skyland-sps-chip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  white-space: nowrap;
  min-height: 34px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1.5px solid #a7d7cf;
  background: #ffffff;
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  touch-action: manipulation;
  user-select: none;
  box-shadow: 0 2px 5px rgba(0, 93, 83, 0.06);
}

.skyland-sps-chip-btn:hover {
  background: #005d53;
  color: #ffffff;
  border-color: #005d53;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 93, 83, 0.2);
}

.skyland-sps-chip-btn:active {
  background: #00453e;
  color: #ffffff;
  transform: translateY(0);
}

.skyland-sps-chips-scroller[hidden],
.skyland-fee-suggest-dropdown[hidden],
.skyland-price-summary[hidden] {
  display: none !important;
}

.skyland-fee-suggest-dropdown {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 2px 6px;
}

#skylandAddGiaBan.is-deal {
  background: #f1f5f9;
  color: #005d53;
  font-weight: 700;
}

.skyland-price-summary {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1.5px solid #a7d7cf;
  background: #f0faf8;
  display: grid;
  gap: 6px;
  font-size: 13px;
}

.skyland-price-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  color: #334155;
}

.skyland-price-summary-row strong {
  color: #0f172a;
  text-align: right;
}

.skyland-price-summary-row.is-total {
  padding-top: 6px;
  border-top: 1px dashed #94d3c9;
}

.skyland-price-summary-row.is-total strong {
  color: #005d53;
  font-size: 14px;
}

.skyland-price-summary-row.is-segment strong {
  padding: 1px 8px;
  border-radius: 999px;
  background: #e6f4f1;
  color: #005d53;
  font-size: 12px;
  white-space: nowrap;
}

.skyland-price-summary-hint {
  font-size: 11.5px;
  color: #64748b;
  font-style: italic;
}

/* Khối "Thông tin khác" (tab Thêm nhà đất) */
.skyland-xi-card {
  margin-top: 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 16px;
  background: #ffffff;
  overflow: hidden;
}

.skyland-xi-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 0;
  background: transparent;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  cursor: pointer;
  touch-action: manipulation;
}

.skyland-xi-chevron {
  width: 10px;
  height: 10px;
  border-right: 2px solid #0f172a;
  border-bottom: 2px solid #0f172a;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.skyland-xi-card.is-open .skyland-xi-chevron {
  transform: rotate(-135deg);
}

.skyland-xi-body {
  display: none;
  padding: 0 14px 14px;
  gap: 12px;
}

.skyland-xi-card.is-open .skyland-xi-body {
  display: grid;
}

.skyland-xi-select {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
}

.skyland-xi-counter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
}

.skyland-xi-counter-label {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.skyland-xi-stepper {
  display: flex;
  align-items: center;
  gap: 14px;
}

.skyland-xi-step {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid #0f172a;
  background: #ffffff;
  font-size: 20px;
  line-height: 1;
  color: #0f172a;
  cursor: pointer;
  touch-action: manipulation;
}

.skyland-xi-step:disabled {
  border-color: #cbd5e1;
  color: #cbd5e1;
  cursor: default;
}

.skyland-xi-count {
  min-width: 20px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
}

.skyland-xi-counter.is-measure .skyland-xi-count {
  min-width: 52px;
}

.skyland-xi-measure {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.skyland-xi-count-input {
  width: 64px;
  height: 36px;
  padding: 0 6px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  color: #0f172a;
  font-family: inherit;
  /* 16px: tránh iOS Safari tự zoom khi focus */
  font-size: 16px;
}

.skyland-xi-count-input:focus {
  outline: none;
  border-color: #005d53;
  box-shadow: 0 0 0 3px rgba(0, 93, 83, 0.12);
}

.skyland-xi-unit {
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
}

@media (max-width: 640px) {
  .skyland-xi-counter.is-measure .skyland-xi-stepper {
    gap: 8px;
  }

  .skyland-xi-count-input {
    width: 56px;
  }
}

.skyland-group-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.skyland-group-picks .skyland-add-dd-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
}

.skyland-group-picks .skyland-add-dd-item.is-on {
  border-color: #005d53;
  background: #e6f4f1;
  color: #005d53;
}

#skylandAddLocStatus.is-error {
  color: #b91c1c;
  font-weight: 700;
}

.skyland-addr-sync-note {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f0faf8;
  border: 1px dashed #94d3c9;
  font-size: 12.5px;
  color: #0f172a;
}

.skyland-addr-sync-note[hidden] {
  display: none !important;
}

.skyland-addr-shared {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
}

.skyland-addr-shared .skyland-add-label {
  display: block;
  margin: 0;
}

.skyland-addr-shared .skyland-addr-lot[hidden] {
  display: none !important;
}

.skyland-addr-street-hint {
  display: block;
  margin: 2px 0 6px;
  font-size: 12px;
  font-weight: 500;
  color: #0d7a86;
}

.skyland-addr-street-hint.is-warn {
  color: #b45309;
}

.skyland-addr-shared .skyland-street-suggest-dropdown {
  max-height: 260px;
}

.skyland-addr-shared .skyland-street-suggest-item {
  justify-content: space-between;
  min-height: 40px;
}

.skyland-addr-shared .skyland-street-suggest-item.is-active {
  background: #f0fdfa;
  color: #0d7a86;
}

.skyland-street-name {
  flex: 1 1 auto;
  min-width: 0;
}

.skyland-addr-shared .skyland-street-type {
  flex: 0 0 auto;
  text-align: right;
}

.skyland-street-suggest-empty {
  padding: 8px 12px;
  font-size: 12.5px;
  color: #64748b;
}

@media (max-width: 640px) {
  .skyland-addr-shared {
    padding: 10px;
  }

  .skyland-addr-shared .skyland-street-suggest-item {
    flex-wrap: wrap;
    gap: 2px 8px;
  }

  .skyland-addr-shared .skyland-street-type {
    text-align: left;
  }
}

.skyland-addr-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.skyland-addr-switch-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.skyland-addr-switch-text {
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
  transition: color 0.2s;
}

.skyland-addr-switch:not(.is-new) .skyland-addr-switch-text.is-old,
.skyland-addr-switch.is-new .skyland-addr-switch-text.is-new {
  color: #005d53;
}

.skyland-addr-switch-track {
  position: relative;
  flex: 0 0 auto;
  width: 46px;
  height: 26px;
  border-radius: 13px;
  background: #cbd5e1;
  transition: background 0.2s;
}

.skyland-addr-switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.3);
  transition: transform 0.2s;
}

.skyland-addr-switch-input:checked + .skyland-addr-switch-track {
  background: #005d53;
}

.skyland-addr-switch-input:checked + .skyland-addr-switch-track .skyland-addr-switch-thumb {
  transform: translateX(20px);
}

.skyland-addr-switch-input:focus-visible + .skyland-addr-switch-track {
  outline: 2px solid #94d3c9;
  outline-offset: 2px;
}

.skyland-add-project-name {
  display: block;
  margin: 10px 0;
}

/* Đảm bảo khi gắn vào form sửa nguồn legacy */
.skyland-edit-field .skyland-smart-price-suggester-wrap {
  width: 100%;
  margin-top: 6px;
  margin-bottom: 6px;
}

@media (max-width: 640px) {
  .skyland-smart-price-suggester-wrap {
    padding: 8px 10px;
    margin-top: 6px;
  }
  .skyland-sps-chip-btn {
    min-height: 36px;
    padding: 6px 12px;
    font-size: 12.5px;
  }
}

/* ==========================================================================
   AUTO-COMPLETE TUYẾN ĐƯỜNG THEO ĐỊA CHÍNH (ADDRESS GEOCODING)
   ========================================================================== */
.skyland-geo-street-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.skyland-geo-street-count-badge {
  font-size: 11px;
  font-weight: 700;
  color: #0d9488;
  background: #ccfbf1;
  padding: 2px 6px;
  border-radius: 6px;
}

/* ==========================================================================
   KHỐI THÔNG TIN KHÁC: GHI CHÚ NGUỒN HÀNG & PHÂN QUYỀN RBAC NHÃN ƯU TIÊN
   ========================================================================== */
.skyland-fas-other-info-slot {
  border-color: #e2e8ea;
}

.skyland-fas-note-section {
  margin-bottom: 16px;
}

.skyland-fas-note-section textarea {
  min-height: 80px;
  line-height: 1.45;
  padding: 10px 14px;
}

.skyland-fas-priority-section {
  padding-top: 12px;
  border-top: 1px dashed #e2e8ea;
}

.skyland-fas-pri-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.skyland-fas-pri-title {
  font-size: 13px;
  font-weight: 700;
  color: #2e3e42;
}

.skyland-fas-pri-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: #e6f4f1;
  color: #005d53;
}

.skyland-fas-pri-badge.is-locked {
  background: #fee2e2;
  color: #b91c1c;
}

.skyland-fas-priority-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
  transition: opacity 0.2s ease;
}

.skyland-fas-priority-chips-wrap.is-disabled {
  opacity: 0.6;
  pointer-events: none;
}

.skyland-fas-priority-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #374151;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  touch-action: manipulation;
}

.skyland-fas-priority-chip input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #005d53;
  margin: 0;
  cursor: pointer;
}

.skyland-fas-priority-chip:hover:not(.is-disabled) {
  border-color: #005d53;
  background: #f0fdfa;
}

.skyland-fas-priority-chip.is-active {
  background: #e6f4f1;
  border-color: #005d53;
  color: #005d53;
  box-shadow: 0 2px 6px rgba(0, 93, 83, 0.12);
}

.skyland-fas-priority-chip.is-disabled {
  cursor: not-allowed;
  background: #f3f4f6;
  color: #9ca3af;
}

@media (max-width: 768px) {
  .skyland-fin-price-input-group {
    flex-direction: column;
    align-items: stretch;
  }

  .skyland-fin-unit-select {
    width: 100%;
  }

  .skyland-fin-chip-btn {
    flex: 1 1 calc(33.33% - 6px);
    text-align: center;
    font-size: 12px;
    padding: 6px 4px;
  }
}

/* ==========================================================================
   CHUẨN GIAO DIỆN 3D PHỦ BÓNG GIỐNG MẪU TRANG CHỦ SKYLAND
   (3D Chrome & Deep Shadowing & Metallic Reflections)
   ========================================================================== */

/* Nền và khung thẻ tổng thể */
.skyland-form-add-source-root {
  background: #f4f7f8;
  padding: 6px 2px;
}

.skyland-fas-module-slot {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafb 100%) !important;
  border: 1px solid #e1e9ec !important;
  border-radius: 16px !important;
  padding: 18px 20px !important;
  margin-bottom: 16px !important;
  box-shadow: 0 12px 28px rgba(15, 43, 60, 0.07), 0 2px 6px rgba(15, 43, 60, 0.03), inset 0 1px 0 #ffffff !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.skyland-fas-module-slot:hover {
  box-shadow: 0 16px 36px rgba(15, 43, 60, 0.1), 0 3px 8px rgba(15, 43, 60, 0.04), inset 0 1px 0 #ffffff !important;
  border-color: #d1dde0 !important;
}

/* Ô input & select phủ bóng 3D */
.skyland-fas-input,
.skyland-fas-select,
.skyland-fas-textarea {
  background: #ffffff !important;
  border: 1.5px solid #d4dfe2 !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 6px rgba(16, 36, 40, 0.04), inset 0 1px 2px rgba(16, 36, 40, 0.03) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.skyland-fas-input:focus,
.skyland-fas-select:focus,
.skyland-fas-textarea:focus {
  border-color: #005d53 !important;
  box-shadow: 0 0 0 3.5px rgba(0, 93, 83, 0.15), 0 4px 14px rgba(0, 93, 83, 0.08) !important;
}

/* Nút bấm 3D nổi khối */
.skyland-fas-btn,
.skyland-fas-btn-primary {
  background: linear-gradient(180deg, #027a6c 0%, #005d53 100%) !important;
  color: #ffffff !important;
  border: 1px solid #004d44 !important;
  border-radius: 12px !important;
  box-shadow: 0 6px 18px rgba(0, 93, 83, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  font-weight: 700 !important;
  transition: all 0.2s ease !important;
}

.skyland-fas-btn:hover,
.skyland-fas-btn-primary:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 8px 24px rgba(0, 93, 83, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
}

.skyland-fas-btn:active,
.skyland-fas-btn-primary:active {
  transform: translateY(1px) !important;
  box-shadow: 0 3px 10px rgba(0, 93, 83, 0.25) !important;
}

.skyland-fas-btn-secondary {
  background: linear-gradient(180deg, #ffffff 0%, #f4f8f9 100%) !important;
  border: 1px solid #c9d8dc !important;
  color: #1a3338 !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 6px rgba(16, 36, 40, 0.05), inset 0 1px 0 #ffffff !important;
}

.skyland-fas-btn-secondary:hover {
  background: #edf4f5 !important;
  border-color: #b3c7cc !important;
}

/* ==========================================================================
   MODULE TUYẾN ĐƯỜNG ĐỘC LẬP (STREET SELECTOR) 3D DROPDOWN
   ========================================================================== */
.skyland-street-selector-root {
  position: relative;
  width: 100%;
}

.skyland-street-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.skyland-street-input {
  width: 100%;
  min-height: 44px;
  padding: 10px 42px 10px 14px !important;
  font-size: 16px !important;
  border-radius: 12px !important;
  border: 1.5px solid #d4dfe2 !important;
  box-shadow: 0 2px 6px rgba(16, 36, 40, 0.04), inset 0 1px 2px rgba(16, 36, 40, 0.03) !important;
}

.skyland-street-input.is-invalid-street {
  border-color: #ef4444 !important;
  background-color: #fffaf0 !important;
}

.skyland-street-input-actions {
  position: absolute;
  right: 6px;
  display: flex;
  align-items: center;
  gap: 2px;
}

.skyland-street-btn-clear,
.skyland-street-btn-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 13px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.skyland-street-btn-clear:hover,
.skyland-street-btn-arrow:hover {
  background: #f1f5f9;
  color: #005d53;
}

/* Dropdown gợi ý tuyến đường 3D nổi khối */
.skyland-street-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 999;
  max-height: 280px;
  overflow-y: auto;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 14px;
  box-shadow: 0 18px 46px rgba(15, 43, 60, 0.2), 0 4px 12px rgba(15, 43, 60, 0.08), inset 0 1px 0 #ffffff;
  padding: 6px 0;
  animation: skylandFadeInDown 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.skyland-street-dropdown.is-hidden {
  display: none !important;
}

.skyland-street-dropdown-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 14px 4px;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 1px solid #f1f5f9;
}

.skyland-street-dropdown-list {
  list-style: none;
  margin: 0;
  padding: 4px 0;
}

.skyland-street-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  font-size: 14px;
  color: #1e293b;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.skyland-street-dropdown-item:hover,
.skyland-street-dropdown-item.is-highlighted {
  background-color: #f0fdf9;
  color: #005d53;
  font-weight: 600;
}

.skyland-street-dropdown-item.is-selected {
  background-color: #e6f7f4;
  color: #005d53;
  font-weight: 700;
}

.skyland-street-item-tag {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #475569;
}

.skyland-street-dropdown-empty {
  padding: 14px 16px;
  text-align: center;
  font-size: 13px;
  color: #94a3b8;
  font-style: italic;
}

/* ==========================================================================
   BẢN ĐỒ TƯƠNG TÁC THỰC TẾ SLIPPY MINI-MAP (CARTO/OSM TILES)
   ========================================================================== */
.skyland-geo-minimap-container {
  position: relative;
  width: 100%;
  height: 240px !important;
  background: #e2e8f0;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 14px !important;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(15, 43, 60, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.skyland-geo-minimap-container.is-dragging {
  cursor: grabbing;
}

.skyland-geo-map-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* Lớp Canvas chứa các Tile ngói bản đồ thật */
.skyland-geo-tile-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  will-change: transform;
}

.skyland-geo-map-tile {
  user-select: none;
  pointer-events: none;
  image-rendering: -webkit-optimize-contrast;
  background-color: #f1f5f9;
}

/* Con ghim định vị trực quan đổ bóng 3D */
.skyland-geo-pin-wrapper {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -100%);
  pointer-events: none;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.28));
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.skyland-geo-pin-head {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  background: linear-gradient(135deg, #005d53 0%, #00796b 100%);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  border: 1.5px solid #ffffff;
  box-shadow: 0 4px 12px rgba(0, 93, 83, 0.35);
  white-space: nowrap;
}

.skyland-geo-pin-stem {
  width: 2px;
  height: 12px;
  background: #005d53;
}

.skyland-geo-pin-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #005d53;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 2px rgba(0, 93, 83, 0.4);
}

/* Kiểu dáng ghim khi ở chế độ ẨN VỊ TRÍ */
.skyland-geo-pin-wrapper.is-location-hidden .skyland-geo-pin-head {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.4);
}

.skyland-geo-pin-wrapper.is-location-hidden .skyland-geo-pin-stem,
.skyland-geo-pin-wrapper.is-location-hidden .skyland-geo-pin-dot {
  background: #ea580c;
  box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.4);
}

/* Vòng tròn bán kính mờ bảo mật khi Ẩn vị trí */
.skyland-geo-hidden-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(234, 88, 12, 0.28) 0%, rgba(234, 88, 12, 0.08) 60%, transparent 100%);
  border: 2px dashed rgba(234, 88, 12, 0.7);
  pointer-events: none;
  z-index: 4;
  display: none;
}

.skyland-geo-hidden-circle.is-active {
  display: block;
  animation: skylandPulseRadius 2.5s infinite ease-in-out;
}

@keyframes skylandPulseRadius {
  0% { transform: translate(-50%, -50%) scale(0.96); opacity: 0.8; }
  50% { transform: translate(-50%, -50%) scale(1.04); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(0.96); opacity: 0.8; }
}

@keyframes skylandFadeInDown {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .skyland-geo-minimap-container {
    height: 200px !important;
  }
}

/* Nhánh cho thuê: tỷ giá USD */
.skyland-rent-fx {
  display: block;
  margin-bottom: 10px;
}

.skyland-rent-fx[hidden],
.skyland-wh-card[hidden] {
  display: none !important;
}

#skylandBranchRent > .skyland-add-label {
  display: block;
}

/* Kho xưởng: ẩn số phòng ngủ / phòng tắm, khối thông số riêng */
#skylandLandExtraInfo.is-warehouse [data-counter="bedrooms"],
#skylandLandExtraInfo.is-warehouse [data-counter="bathrooms"] {
  display: none;
}

/* Số phòng / số tầng chỉ cho căn hộ chung cư và nhà ở (không cho đất nền, đấu giá, trang trại, condotel…). */
#skylandLandExtraInfo:not(.has-rooms) [data-counter="bedrooms"],
#skylandLandExtraInfo:not(.has-rooms) [data-counter="bathrooms"],
#skylandLandExtraInfo:not(.has-rooms) [data-counter="floors"],
#skylandLandExtraInfo.no-lot [data-counter="frontage"],
#skylandLandExtraInfo.no-lot .skyland-xi-lot {
  display: none !important;
}

.skyland-wh-card {
  margin-top: 14px;
}

.skyland-wh-card .skyland-xi-body > .skyland-add-label,
.skyland-wh-card .skyland-add-row2 .skyland-add-label {
  display: block;
}

.skyland-wh-unit-wrap {
  position: relative;
  display: block;
}

.skyland-wh-unit-wrap .skyland-add-input {
  padding-right: 64px;
}

.skyland-wh-unit {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  pointer-events: none;
}

.skyland-wh-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.skyland-wh-chip {
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 18px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.skyland-wh-chip.is-on {
  border-color: #005d53;
  background: #e6f4f1;
  color: #005d53;
}

/* Căn hộ chung cư / chung cư mini: tên tòa + tầng số */
.skyland-apt-info[hidden],
#skylandLandExtraInfo.is-apartment [data-counter="floors"] {
  display: none !important;
}

.skyland-apt-info-title {
  margin-bottom: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
}

.skyland-apt-info .skyland-add-label {
  display: block;
  margin: 0;
}

.skyland-apt-floor {
  display: flex;
  align-items: center;
  gap: 8px;
}

.skyland-apt-floor .skyland-add-input {
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
  font-size: 16px;
}

.skyland-apt-floor .skyland-xi-step {
  flex: 0 0 auto;
}

/* Chế độ sửa nguồn: nút phụ "Xác nhận thẩm định" / "Xóa nguồn" cạnh "Lưu thay đổi". */
.skyland-add-foot:has(.skyland-add-edit-btn) {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skyland-add-foot:has(.skyland-add-edit-btn) .skyland-add-submit {
  flex: 1 1 100%;
  order: 3;
}

.skyland-add-edit-btn {
  flex: 1 1 0;
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.skyland-add-edit-btn.is-confirm {
  color: #0d7a86;
  border-color: #9fd6dc;
}

.skyland-add-edit-btn.is-delete {
  color: #c62828;
  border-color: #f3c0c0;
}

.skyland-add-edit-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}



