/* Khmer Font Subscripts & Baseline Clipping Prevention */
* {
  font-family: 'Kantumruy Pro', 'Battambang', 'Segoe UI', sans-serif;
}

input,
select,
textarea,
button,
label,
span,
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Kantumruy Pro', 'Battambang', 'Segoe UI', sans-serif;
  line-height: 1.5;
}

select,
input[type="text"],
input[type="number"],
input[type="search"],
input[type="tel"],
input[type="email"] {
  min-height: 42px !important;
  line-height: 1.5 !important;
  padding-top: 6px !important;
  padding-bottom: 7px !important;
  padding-left: 10px !important;
  padding-right: 10px !important;
  box-sizing: border-box !important;
}

.owners-search-input,
input.owners-search-input,
.search-input-wrap input {
  padding-left: 44px !important;
  padding-right: 42px !important;
}


select option {
  font-family: 'Kantumruy Pro', 'Battambang', sans-serif !important;
  padding: 8px 12px !important;
  line-height: 1.6 !important;
  font-size: 0.92rem !important;
}

input::placeholder,
textarea::placeholder {
  color: #94a3b8 !important;
  font-weight: 500 !important;
  font-style: italic !important;
  opacity: 0.65 !important;
  line-height: 1.5 !important;
}

/* Research Hub 3-Column Responsive Layout (Desktop 3-Column Grid, Mobile Retains 2-Column App Grid) */
.research-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
}

.research-lead-card {
  width: 100% !important;
  box-sizing: border-box !important;
  border-radius: 12px !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.research-lead-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08) !important;
}

.research-lead-card .card-photo-box {
  height: 145px !important;
}

.research-lead-card .card-body-box {
  padding: 10px 12px !important;
  gap: 6px !important;
}

.research-lead-card .card-body-title {
  font-size: 0.88rem !important;
  line-height: 1.35 !important;
  font-weight: 800 !important;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.research-lead-card .card-footer-box {
  padding: 6px 10px !important;
  gap: 5px !important;
}

@media (max-width: 1100px) {
  .research-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
}

@media (max-width: 768px) {
  .research-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .research-lead-card .card-photo-box {
    height: 110px !important;
  }

  .research-lead-card .card-body-box {
    padding: 7px 8px !important;
    gap: 4px !important;
  }

  .research-lead-card .card-body-title {
    font-size: 0.8rem !important;
  }

  .research-lead-card .card-footer-box .btn {
    font-size: 0.68rem !important;
    padding: 4px 6px !important;
  }
}

@media (max-width: 480px) {
  .research-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .research-lead-card .card-photo-box {
    height: 95px !important;
  }

  .research-lead-card .card-body-box {
    padding: 6px 7px !important;
    gap: 3px !important;
  }

  .research-lead-card .card-body-title {
    font-size: 0.76rem !important;
  }

  .research-lead-card .card-footer-box {
    padding: 4px 5px !important;
    gap: 3px !important;
  }
}

.dashboard-container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 24px 16px;
  width: 100%;
}

/* Header & Stat Cards */
.dashboard-header {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}

.dashboard-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.stat-card {
  background: #ffffff;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.stat-icon.total {
  background: #eff6ff;
  color: #3b82f6;
}

.stat-icon.sale {
  background: #ecfdf5;
  color: #10b981;
}

.stat-icon.rent {
  background: #fffbeb;
  color: #f59e0b;
}

.stat-icon.views {
  background: #f3e8ff;
  color: #a855f7;
}

.stat-info h4 {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
}

.stat-info .stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-900);
}

/* Filter Controls Toolbar - Luxury Search Hub */
.toolbar-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  padding: 18px 22px;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 30px -8px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(217, 119, 6, 0.2);
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.search-row-primary {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
}

.search-row-secondary {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
  padding-top: 14px;
  border-top: 1px dashed rgba(203, 213, 225, 0.8);
}

.location-bar-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary-900);
  background: rgba(217, 119, 6, 0.1);
  padding: 9px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(217, 119, 6, 0.3);
  white-space: nowrap;
}

.filter-select-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 170px;
  min-width: 150px;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  flex: 1;
}

.search-input-wrap {
  position: relative;
  min-width: 220px;
  flex: 2 1 260px;
}

.search-input-wrap i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-gold);
  font-size: 1rem;
}

.search-input-wrap input {
  width: 100%;
  padding: 10px 14px 10px 40px;
  border: 1px solid rgba(217, 119, 6, 0.3);
  border-radius: var(--radius-md);
  outline: none;
  background: #ffffff;
  font-size: 0.92rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.search-input-wrap input:focus {
  border-color: var(--accent-gold);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.2);
}

.filter-select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  outline: none;
  background: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-900);
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.filter-select:hover {
  border-color: var(--accent-gold);
}

.filter-select:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.2);
}

/* Clean, Unified Styling for Location & Filter Selects */
.prov-select,
.dist-select,
.comm-select,
.status-select,
.sort-select {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #0f172a !important;
  font-weight: 700 !important;
}

.prov-select:focus,
.dist-select:focus,
.comm-select:focus,
.status-select:focus,
.sort-select:focus {
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 3.5px rgba(2, 132, 199, 0.15) !important;
}

.reset-filter-btn {
  padding: 9px 16px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.06);
  border-radius: var(--radius-md);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.25s ease;
}

.reset-filter-btn:hover {
  background: var(--danger);
  color: #ffffff;
  border-color: var(--danger);
}

.filter-select:focus {
  border-color: var(--accent-gold);
}

/* Property Cards Grid */
/* E-Commerce Shopping Catalog 3-Card Grid System */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  width: 100%;
}

.property-card {
  container-type: inline-size;
  container-name: propcard;
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.property-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12), 0 0 15px rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.6);
}

.property-thumb-wrap {
  position: relative;
  width: 100%;
  height: 240px !important;
  min-height: 240px !important;
  overflow: hidden;
  background: #0f172a;
}

.property-thumb-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.65) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.property-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.property-card:hover .property-thumb {
  transform: scale(1.07);
}

.thumb-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 3;
}

.price-tag {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fbbf24;
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.86rem;
  letter-spacing: 0.2px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(245, 158, 11, 0.5);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  z-index: 5;
}

.price-tag small {
  font-size: 0.76rem;
  color: #fef08a;
  font-weight: 700;
}

/* Floating View Count Badge on Property Thumbnail */
.property-views-badge {
  background: rgba(15, 23, 42, 0.85) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1.2px solid rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
  border-radius: 999px !important;
  padding: 4px 9px !important;
  font-size: 0.76rem !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.38) !important;
  pointer-events: none !important;
  user-select: none !important;
}

.property-views-badge i {
  color: #38bdf8 !important;
  font-size: 0.74rem !important;
}

.card-badges-row {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 5px !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: none !important;
  margin-bottom: 5px !important;
  padding-bottom: 2px !important;
  box-sizing: border-box !important;
}

.card-badges-row::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.card-badges-row .badge {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  font-size: 0.72rem !important;
  padding: 3px 8px !important;
  border-radius: 6px !important;
  line-height: 1.25 !important;
  letter-spacing: 0.2px !important;
  font-weight: 700 !important;
  box-sizing: border-box !important;
}

.property-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}

.property-title {
  font-size: 1.10rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.property-card:hover .property-title,
.property-title:hover {
  color: #d97706;
}

.property-location {
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  color: #475569 !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  -webkit-overflow-scrolling: touch !important;
  cursor: grab !important;
  margin-bottom: 8px !important;
}

.property-location::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.property-location i {
  color: #0284c7 !important;
  font-size: 0.78rem !important;
  flex-shrink: 0 !important;
}

.property-specs {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  padding: 8px 12px !important;
  background: #f8fafc !important;
  border-radius: 8px !important;
  border: 1px solid #e2e8f0 !important;
  font-size: 0.88rem !important;
  color: #334155 !important;
  font-weight: 700 !important;
  margin-top: 4px !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  white-space: nowrap !important;
  scrollbar-width: none !important;
  -webkit-overflow-scrolling: touch !important;
  cursor: grab !important;
  user-select: none !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.property-specs::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.property-specs:active {
  cursor: grabbing !important;
}

.spec-item {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  font-size: 0.88rem !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.spec-item i {
  color: #0284c7 !important;
  font-size: 0.90rem !important;
}

.property-actions {
  padding: 8px 10px;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 6px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  white-space: nowrap !important;
  flex-wrap: nowrap !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: thin !important;
  scrollbar-color: #cbd5e1 transparent !important;
}

.property-actions::-webkit-scrollbar {
  height: 4px;
}

.property-actions::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.property-actions .btn {
  flex-shrink: 0 !important;
  white-space: nowrap !important;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 2px dashed var(--border-color);
  grid-column: 1 / -1;
}

.empty-state i {
  font-size: 3.5rem;
  color: var(--text-light);
  margin-bottom: 16px;
}

/* Property Form Modal Styling */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  min-width: 0;
  /* Prevents flex/grid children from overflowing */
  box-sizing: border-box;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-800);
  word-break: break-word;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  outline: none;
  background: #ffffff;
  transition: var(--transition);
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

.fancy-input-wrap {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  position: relative;
}

.fancy-input-wrap input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.amenities-checkboxes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  padding: 12px;
  background: var(--bg-main);
  border-radius: var(--radius-md);
  width: 100%;
  box-sizing: border-box;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  cursor: pointer;
}

@media (max-width: 768px) {

  .form-grid:not(.compact-2col-grid):not(#subRoomsGroup):not(#pRoomsGroup):not(.force-2col),
  .owner-form-grid,
  [style*="grid-template-columns: repeat(2, 1fr)"]:not(#subRoomsGroup):not(#pRoomsGroup):not(.force-2col),
  [style*="grid-template-columns:repeat(2, 1fr)"]:not(#subRoomsGroup):not(#pRoomsGroup):not(.force-2col) {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
}

/* Ultra Compact 2-Column Grid Pairs for Mobile/Tablet Submission Form */
.compact-2col-grid,
.force-2col,
#subRoomsGroup {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px 10px !important;
  grid-column: 1 / -1 !important;
  width: 100% !important;
}

/* Dedicated Non-Destructive Styles for House Specs Box */
.form-house-specs-box,
#pRoomsGroup,
#agentRoomsGroup {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.compact-2col-grid>.full-width,
.full-width {
  grid-column: 1 / -1 !important;
  width: 100% !important;
}

.compact-submission-modal .photo-management-container {
  padding: 8px 10px;
  background: #fafafa;
  border-radius: var(--radius-md);
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.compact-submission-modal .photo-uploader-header {
  margin-bottom: 6px;
}

.compact-submission-modal .photo-uploader-title {
  font-size: 0.8rem;
}

.compact-submission-modal .photo-uploader-subtitle {
  display: none;
}

.compact-submission-modal .hero-dropzone-inner {
  height: 60px;
  width: 100%;
  box-sizing: border-box;
}

.compact-submission-modal .slot-badge-hero {
  padding: 2px 8px;
  font-size: 0.72rem;
  margin-bottom: 4px;
}

.compact-submission-modal .hero-placeholder {
  padding: 4px 8px;
  gap: 8px;
}

.compact-submission-modal .hero-icon-circle {
  width: 30px;
  height: 30px;
  font-size: 1rem;
}

.compact-submission-modal .hero-upload-text {
  font-size: 0.76rem;
}

.compact-submission-modal .hero-upload-subtext {
  display: none;
}

.compact-submission-modal .photo-gallery-subgrid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 6px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

@media (max-width: 520px) {
  .compact-submission-modal .photo-gallery-subgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }
}

.compact-submission-modal .photo-slot-card {
  padding: 2px;
  min-width: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.compact-submission-modal .slot-header-label {
  font-size: 0.65rem;
  padding: 1px 4px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 100%;
}

.compact-submission-modal .slot-preview-area {
  height: 46px;
  width: 100%;
  box-sizing: border-box;
}

.photo-uploader-header {
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.photo-uploader-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--primary-900);
}

.photo-uploader-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.asymmetric-photo-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.photo-slot-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.slot-badge-hero {
  font-size: 0.8rem;
  font-weight: 800;
  color: #92400e;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid rgba(217, 119, 6, 0.4);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
}

.hero-dropzone-inner {
  position: relative;
  height: 130px;
  background: #ffffff;
  border: 2px dashed var(--accent-gold);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s ease;
  width: 100%;
}

.hero-dropzone-inner:hover {
  background: #fffcf7;
  border-color: #b45309;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.2);
}

.hero-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 12px;
  text-align: left;
}

.hero-icon-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(217, 119, 6, 0.12);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.hero-upload-text {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--emerald-600);
  display: block;
}

.hero-upload-subtext {
  font-size: 0.74rem;
  color: var(--text-muted);
  display: block;
}

.btn-link-hero {
  font-size: 0.74rem;
  color: #0284c7;
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  margin-top: 4px;
}

.hero-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn-delete-photo-large {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(239, 68, 68, 0.95);
  color: #ffffff;
  border: none;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
  z-index: 5;
}

.btn-delete-photo-large:hover {
  background: #dc2626;
  transform: scale(1.05);
}

.photo-gallery-subgrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .photo-gallery-subgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.photo-slot-card {
  background: #ffffff;
  border: 1.5px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transition: all 0.25s ease;
  width: 100%;
}

.photo-slot-card:hover {
  border-color: var(--accent-gold);
  background: #fffcf8;
}

.slot-header-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 4px;
  text-align: center;
  white-space: nowrap;
}

.slot-preview-area {
  width: 100%;
  height: 105px;
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #f8fafc;
}

.slot-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  padding: 4px;
  text-align: center;
}

.slot-placeholder .upload-icon {
  font-size: 1.3rem;
  color: #94a3b8;
}

.upload-btn-text {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--emerald-600);
  background: #ecfdf5;
  padding: 3px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(16, 185, 129, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-link-url {
  font-size: 0.66rem;
  color: #0284c7;
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.slot-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn-delete-photo {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(239, 68, 68, 0.95);
  color: #ffffff;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
  z-index: 5;
}

.btn-delete-photo:hover {
  transform: scale(1.15);
  background: #dc2626;
}

/* Dual Input Group for Width x Length */
.dim-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-main);
  padding: 4px 6px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  width: 100%;
}

.dim-input-box {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.dim-input-box input {
  width: 100%;
  padding: 6px 8px !important;
  border: 1.5px solid var(--border-color) !important;
  border-radius: var(--radius-sm) !important;
  outline: none;
  background: #ffffff !important;
  color: #0f172a !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  text-align: center;
  transition: all 0.25s ease;
}

.dim-input-box input:focus {
  border-color: var(--accent-gold) !important;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15) !important;
}

.dim-input-box .dim-icon {
  position: absolute;
  left: 10px;
  color: var(--accent-gold);
  font-size: 0.85rem;
  pointer-events: none;
}

.dim-separator {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--accent-gold);
  padding: 0 4px;
}

/* Owner Contact Hero Card Styling */
.owner-contact-hero-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #eff6ff 50%, #fff8f0 100%);
  border: 1.5px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 22px;
  box-shadow: 0 6px 22px rgba(16, 185, 129, 0.1);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.owner-contact-hero-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.owner-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(16, 185, 129, 0.3);
}

.owner-header-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #065f46;
}

.owner-badge-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.45);
  animation: pulseShield 2s infinite ease-in-out;
}

@keyframes pulseShield {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
  }

  50% {
    transform: scale(1.12);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.75);
  }
}

.owner-privacy-pill {
  background: #dcfce7;
  color: #15803d;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(22, 163, 74, 0.35);
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.1);
}

.fancy-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.fancy-input-wrap .fancy-icon {
  position: absolute;
  left: 12px;
  font-size: 0.95rem;
  color: var(--accent-gold);
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 2;
}

.fancy-input-wrap .icon-emerald {
  color: #10b981 !important;
}

.fancy-input-wrap .icon-telegram {
  color: #0284c7 !important;
}

.fancy-input-wrap input {
  padding-left: 38px !important;
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: var(--radius-md) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
}

.fancy-input-wrap input:focus {
  border-color: #10b981 !important;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2) !important;
}

.text-gold {
  color: var(--accent-gold);
}

.text-emerald {
  color: #10b981;
}

.text-telegram {
  color: #0284c7;
}

/* Property Details Hero Card Styling */
.property-details-hero-card {
  background: linear-gradient(180deg, #ffffff 0%, #fafcff 100%);
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
  position: relative;
  transition: all 0.3s ease;
}

.property-details-hero-card:hover {
  border-color: rgba(217, 119, 6, 0.4);
  box-shadow: 0 10px 35px rgba(217, 119, 6, 0.08);
}

.property-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f1f5f9;
  position: relative;
}

.property-card-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-gold) 0%, #10b981 100%);
  border-radius: 2px;
}

.property-title-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 800;
  color: #1e293b;
  margin: 0;
}

.property-badge-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--accent-gold) 0%, #b45309 100%);
  color: #ffffff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

.property-tag-pill {
  background: #fef3c7;
  color: #92400e;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(217, 119, 6, 0.3);
}

/* Faded Ghost Placeholder Styling Across All Inputs */
input::placeholder,
textarea::placeholder,
select::placeholder {
  color: #94a3b8 !important;
  opacity: 0.55 !important;
  font-weight: 400 !important;
  font-style: italic !important;
}

input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
  color: #94a3b8 !important;
  opacity: 0.55 !important;
  font-weight: 400 !important;
  font-style: italic !important;
}

input:-moz-placeholder,
textarea:-moz-placeholder {
  color: #94a3b8 !important;
  opacity: 0.55 !important;
  font-weight: 400 !important;
  font-style: italic !important;
}

input::-moz-placeholder,
textarea::-moz-placeholder {
  color: #94a3b8 !important;
  opacity: 0.55 !important;
  font-weight: 400 !important;
  font-style: italic !important;
}

/* Sleek Compact Label Typography */
.form-group label {
  font-size: 0.81rem !important;
  font-weight: 600 !important;
  color: #334155 !important;
  margin-bottom: 5px !important;
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  letter-spacing: -0.1px;
}

.lbl-en {
  font-size: 0.74rem;
  font-weight: 400;
  color: #64748b;
}

/* ==========================================================================
   Dashboard & Search Hub Responsive Mobile Enhancements
   ========================================================================== */
@media (max-width: 768px) {
  .dashboard-container {
    padding: 14px 10px !important;
  }

  .dashboard-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .dashboard-title-row .btn {
    width: 100%;
    justify-content: center;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    margin-bottom: 14px !important;
  }

  .stat-card {
    padding: 10px 12px !important;
    gap: 10px !important;
    border-radius: var(--radius-md) !important;
    display: flex !important;
    align-items: center !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05) !important;
  }

  .stat-icon {
    width: 36px !important;
    height: 36px !important;
    font-size: 0.95rem !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
  }

  .stat-info h4 {
    font-size: 0.72rem !important;
    margin: 0 !important;
    line-height: 1.2 !important;
  }

  .stat-info .stat-value {
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
  }


  /* Toolbar & Search Hub 2-Column Grid on Mobile */
  .toolbar-card {
    padding: 14px 12px !important;
    gap: 10px !important;
    margin-bottom: 20px !important;
    border-radius: var(--radius-md) !important;
  }

  .search-row-primary,
  .search-row-secondary {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 9px !important;
    width: 100% !important;
    padding-top: 0 !important;
    border-top: none !important;
  }

  .search-row-secondary {
    padding-top: 10px !important;
    border-top: 1px dashed rgba(203, 213, 225, 0.7) !important;
  }

  .search-input-wrap {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .filter-select-wrap {
    width: 100% !important;
    min-width: 0 !important;
  }

  .search-input-wrap input {
    font-size: 0.86rem !important;
    padding: 9px 12px 9px 36px !important;
    height: 40px !important;
  }

  .filter-select {
    font-size: 0.82rem !important;
    padding: 8px 10px !important;
    height: 38px !important;
    line-height: 1.2 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
  }

  .reset-filter-btn {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    padding: 8px 12px !important;
    height: 36px !important;
    font-size: 0.84rem !important;
    margin-top: 2px !important;
    border-radius: var(--radius-sm) !important;
  }

  /* Properties Grid Responsive Layout (Desktop 3-col, Mobile 2-col Shopping Grid) */
  .properties-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 14px !important;
  }

  .property-thumb-wrap {
    height: 230px !important;
    min-height: 230px !important;
  }
}

@media (max-width: 640px) {
  body {
    padding-bottom: 85px !important;
  }

  .dashboard-container {
    padding-bottom: 90px !important;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  .filter-group {
    grid-template-columns: 1fr !important;
  }

  /* Compact 2-Column E-Commerce Shopping App Grid on Mobile */
  .properties-grid,
  .property-grid,
  #publicPropertiesGrid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .property-thumb-wrap {
    height: 210px !important;
    min-height: 210px !important;
  }

  .price-tag {
    font-size: 0.84rem !important;
    padding: 3px 8px !important;
    bottom: 6px !important;
    left: 6px !important;
    border-width: 1px !important;
  }

  .property-body {
    padding: 8px 10px !important;
    gap: 5px !important;
  }

  .property-body .badge {
    font-size: 0.68rem !important;
    padding: 2px 6px !important;
  }

  .property-title {
    font-size: 0.82rem !important;
    line-height: 1.25 !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
  }

  .property-location {
    font-size: 0.72rem !important;
    gap: 3px !important;
  }

  .property-specs {
    font-size: 0.72rem !important;
    padding: 4px 6px !important;
    margin-top: 0 !important;
  }

  .spec-item i {
    font-size: 0.7rem !important;
  }

  .property-actions {
    padding: 6px 8px !important;
    flex-direction: row !important;
    gap: 4px !important;
  }

  .property-actions .btn {
    padding: 6px 8px !important;
    font-size: 0.74rem !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    height: 32px !important;
  }
}

@media (max-width: 380px) {
  .properties-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
  }

  .property-thumb-wrap {
    height: 195px !important;
    min-height: 195px !important;
  }

  .property-body {
    padding: 6px 8px !important;
  }
}

/* Floating Interactive Map Shortcut Button for Mobile App UI */
.floating-map-btn-mobile {
  position: fixed !important;
  bottom: 74px !important;
  right: 12px !important;
  z-index: 998 !important;
  background: linear-gradient(135deg, #0284c7, #38bdf8) !important;
  color: #ffffff !important;
  border: none !important;
  padding: 8px 14px !important;
  border-radius: 20px !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4) !important;
  transition: transform 0.2s ease !important;
}

.floating-map-btn-mobile:active {
  transform: scale(0.94) !important;
}

/* ==========================================================================
   Admin Interactive Map Panel (ផ្ទាំងផែនទីអន្តរកម្ម Admin - Sleek & Modern)
   ========================================================================== */
.admin-map-layout-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 14px;
  margin-top: 10px;
}

@media (max-width: 1024px) {
  .admin-map-layout-grid {
    grid-template-columns: 1fr;
  }
}

.admin-map-filter-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-map-search-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.admin-map-search-wrap {
  position: relative;
  flex: 1;
}

.admin-map-search-wrap i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 0.85rem;
}

.admin-map-search-wrap input {
  width: 100%;
  padding: 9px 12px 9px 34px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  font-size: 0.84rem;
  color: #0f172a;
  outline: none;
  transition: all 0.2s ease;
}

.admin-map-search-wrap input:focus {
  border-color: var(--accent-gold);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.admin-map-pills-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.admin-map-pills-row::-webkit-scrollbar {
  display: none;
}

.admin-map-pill {
  padding: 6px 12px;
  border-radius: 99px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.admin-map-pill:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
}

.admin-map-pill.active {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #fbbf24;
  border-color: #f59e0b;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
}

.admin-map-extra-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  padding-top: 10px;
  border-top: 1px dashed #e2e8f0;
  animation: fadeIn 0.2s ease;
}

.admin-map-viewport-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.admin-map-canvas-container {
  width: 100%;
  height: 540px;
  min-height: 420px;
  position: relative;
  background: #0f172a;
  z-index: 1;
}

@media (max-width: 768px) {
  .admin-map-canvas-container {
    height: 400px;
    min-height: 350px;
  }
}

.admin-map-floating-layers {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1000;
  display: flex;
  gap: 2px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 3px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.admin-map-layer-pill {
  border: none;
  background: transparent;
  color: #cbd5e1;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-map-layer-pill.active {
  background: #0284c7;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.4);
}

.admin-map-floating-counter {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 0.76rem;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

.admin-map-sidebar-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 590px;
}

.admin-map-sidebar-header {
  padding: 12px 14px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--accent-gold);
}

.admin-map-sidebar-list {
  padding: 10px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.admin-map-prop-item {
  display: flex;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
  cursor: pointer;
}

.admin-map-prop-item:hover,
.admin-map-prop-item.selected {
  background: #ffffff;
  border-color: var(--accent-gold);
  box-shadow: 0 3px 12px rgba(245, 158, 11, 0.2);
  transform: translateY(-2px);
}

.admin-map-prop-thumb {
  width: 68px;
  height: 68px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.admin-map-prop-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.admin-map-prop-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0 0 2px 0;
}

.admin-map-prop-price {
  font-size: 0.86rem;
  font-weight: 900;
  color: #059669;
}

.admin-map-prop-loc {
  font-size: 0.72rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-map-prop-actions {
  display: flex;
  gap: 5px;
  margin-top: 4px;
}

/* Map Pin Glow & Price Badge Animation */
.custom-map-price-pin {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.custom-map-price-pin:hover {
  transform: scale(1.12) translateY(-3px);
  z-index: 1000 !important;
}




/* ==========================================================================
   COMPACT & REFINED ADMIN PROPERTY MODAL STYLING (ស្រឡះភ្នែក & ស្តង់ដា VIP)
   ========================================================================== */

.compact-admin-modal {
  width: 95% !important;
  max-width: 720px !important;
  max-height: 92vh !important;
  max-height: 92dvh !important;
  display: flex !important;
  flex-direction: column !important;
  background: #ffffff !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.28) !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  margin: auto !important;
  position: relative !important;
}

.compact-admin-modal form {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
}

.compact-admin-modal .modal-header {
  flex-shrink: 0 !important;
  padding: 12px 18px !important;
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #2563eb 100%) !important;
  color: #ffffff !important;
  border-bottom: 2px solid var(--accent-gold) !important;
}

.compact-admin-modal .modal-header h3 {
  color: #ffffff !important;
  font-size: 1.02rem !important;
  font-weight: 800 !important;
}

.modal-header .btn-icon,
.modal-header .btn-outline,
.compact-admin-modal .modal-header .btn-icon {
  background: rgba(255, 255, 255, 0.18) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
  border-radius: 50% !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.modal-header .btn-icon:hover,
.modal-header .btn-outline:hover,
.compact-admin-modal .modal-header .btn-icon:hover {
  background: rgba(239, 68, 68, 0.9) !important;
  border-color: #ef4444 !important;
  color: #ffffff !important;
  transform: rotate(90deg) !important;
}

.compact-admin-modal .modal-body {
  flex: 1 !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior: contain !important;
  padding: 14px 18px !important;
  background: #ffffff !important;
}

.compact-admin-modal .modal-footer {
  flex-shrink: 0 !important;
}

.compact-admin-modal .form-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px 14px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.compact-admin-modal .form-group {
  margin-bottom: 0 !important;
  gap: 2px !important;
  min-width: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.compact-admin-modal .form-group label {
  font-size: 0.76rem !important;
  font-weight: 700 !important;
  color: #334155 !important;
  margin-bottom: 2px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  display: block !important;
}

.compact-admin-modal .form-group input,
.compact-admin-modal .form-group select {
  height: 38px !important;
  padding: 6px 10px !important;
  font-size: 0.82rem !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #0f172a !important;
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease !important;
}

/* Specific Padding to Prevent Currency Symbol Overlapping */
.compact-admin-modal #pPrice,
.compact-admin-modal #pPricePerSqm,
.compact-admin-modal #agentPropPrice,
.compact-admin-modal #agentPropPricePerSqm,
.compact-admin-modal .input-price-dollar,
#pPrice,
#pPricePerSqm {
  padding-left: 32px !important;
}

.compact-admin-modal #pPricePerSqm,
.compact-admin-modal #agentPropPricePerSqm,
.compact-admin-modal .input-price-sqm,
#pPricePerSqm {
  padding-right: 42px !important;
}

.compact-admin-modal #pWidth,
.compact-admin-modal #pLength,
#pWidth,
#pLength {
  padding-left: 28px !important;
}

.compact-admin-modal #pTotalArea,
#pTotalArea {
  padding-right: 32px !important;
  padding-left: 10px !important;
}

.compact-admin-modal .form-group input:focus,
.compact-admin-modal .form-group select:focus,
.compact-admin-modal .form-group textarea:focus {
  border-color: var(--accent-gold) !important;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18) !important;
  background: #fffcf8 !important;
}

.compact-admin-modal .form-group textarea {
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 7px !important;
  font-size: 0.82rem !important;
  padding: 6px 10px !important;
}

.compact-admin-modal .dim-input-group {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.compact-admin-modal .hero-dropzone-inner {
  height: 95px !important;
  border-radius: 8px !important;
}

.compact-admin-modal .hero-placeholder {
  gap: 10px !important;
  padding: 8px !important;
}

.compact-admin-modal .hero-icon-circle {
  width: 38px !important;
  height: 38px !important;
  font-size: 1.15rem !important;
}

.compact-admin-modal .slot-preview-area {
  height: 75px !important;
  border-radius: 6px !important;
}

.compact-admin-modal .modal-footer {
  padding: 10px 18px !important;
  background: #f8fafc !important;
  border-top: 1px solid #e2e8f0 !important;
}

@media (max-width: 600px) {
  .compact-admin-modal .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px 10px !important;
  }

  .compact-admin-modal .form-group.full-width {
    grid-column: span 2 !important;
  }

  .compact-admin-modal .form-group label {
    font-size: 0.72rem !important;
  }
}

/* Responsive Owner Information Box & Grid */
.owner-info-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px 14px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.owner-info-grid .owner-grid-full {
  grid-column: span 2 !important;
}

@media (max-width: 600px) {
  .owner-info-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .owner-info-grid .owner-grid-full {
    grid-column: span 1 !important;
  }
}

/* Multi-Phone Dynamic Input Component for Admin & Shared */
.btn-add-phone-mini {
  background: rgba(16, 185, 129, 0.12) !important;
  border: 1px solid rgba(16, 185, 129, 0.4) !important;
  color: #059669 !important;
  font-size: 0.74rem !important;
  font-weight: 800 !important;
  width: auto !important;
  height: auto !important;
  min-height: 24px !important;
  padding: 3px 8px !important;
  border-radius: 6px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 1px 3px rgba(16, 185, 129, 0.15) !important;
  flex-shrink: 0 !important;
}

.btn-add-phone-mini:hover {
  background: #10b981 !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 3px 8px rgba(16, 185, 129, 0.35) !important;
}

.phone-inputs-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 5px !important;
  width: 100% !important;
}

.phone-input-row {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  width: 100% !important;
  animation: phoneRowFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@keyframes phoneRowFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.phone-input-row .fancy-input-wrap {
  flex: 1 !important;
  min-width: 0 !important;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
}

.fancy-input-wrap input.multi-phone-input,
.compact-admin-modal .fancy-input-wrap input.multi-phone-input,
.modal-card .fancy-input-wrap input.multi-phone-input {
  padding-left: 36px !important;
  padding-right: 10px !important;
  height: 36px !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  box-sizing: border-box !important;
}

.fancy-input-wrap .fancy-icon {
  position: absolute !important;
  left: 11px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  pointer-events: none !important;
  z-index: 5 !important;
  color: #10b981 !important;
  font-size: 0.82rem !important;
}

.btn-remove-phone {
  width: 32px !important;
  height: 32px !important;
  padding: 0 !important;
  border-radius: 7px !important;
  background: rgba(239, 68, 68, 0.12) !important;
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
  color: #ef4444 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  flex-shrink: 0 !important;
}

.btn-remove-phone:hover {
  background: #ef4444 !important;
  color: #ffffff !important;
  border-color: #ef4444 !important;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3) !important;
}

/* ==========================================================================
   ADMIN MOBILE BOTTOM NAVIGATION (TRANSLUCENT & PERMANENT VISIBILITY)
   ========================================================================== */
@media (max-width: 768px) {

  .mobile-bottom-nav,
  #adminBottomNav {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 68px !important;
    background: rgba(11, 19, 38, 0.78) !important;
    backdrop-filter: blur(25px) saturate(210%) !important;
    -webkit-backdrop-filter: blur(25px) saturate(210%) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.20) !important;
    border-radius: 24px 24px 0 0 !important;
    z-index: 990 !important;
    box-shadow: 0 -12px 36px rgba(0, 0, 0, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.22) !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}

/* ==========================================================================
   ADMIN PORTAL COMPREHENSIVE DARK THEME RULES
   ========================================================================== */

body.dark-theme {
  background-color: #0b0f19 !important;
  color: #f8fafc !important;
}

body.dark-theme .app-header {
  background: #0f172a !important;
  border-bottom: 1px solid #1e293b !important;
}

body.dark-theme .toolbar-card,
body.dark-theme .filter-bar-card,
body.dark-theme .luxury-search-hub {
  background: #131b2e !important;
  border: 1px solid #1e293b !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
  color: #f8fafc !important;
}

body.dark-theme .filter-group select,
body.dark-theme .search-input-wrap input,
body.dark-theme .toolbar-card select,
body.dark-theme .toolbar-card input {
  background: #0f172a !important;
  color: #ffffff !important;
  border: 1px solid #334155 !important;
}

body.dark-theme .property-card {
  background: #131b2e !important;
  border: 1px solid #1e293b !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

body.dark-theme .property-card:hover {
  border-color: rgba(56, 189, 248, 0.6) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 15px rgba(56, 189, 248, 0.25) !important;
}

body.dark-theme .property-body {
  background: #131b2e !important;
}

body.dark-theme .property-title {
  color: #f8fafc !important;
}

body.dark-theme .property-title:hover,
body.dark-theme .property-card:hover .property-title {
  color: #38bdf8 !important;
}

body.dark-theme .property-location {
  color: #94a3b8 !important;
}

body.dark-theme .property-specs {
  background: #0f172a !important;
  border: 1px solid #1e293b !important;
  color: #cbd5e1 !important;
}

body.dark-theme .property-specs .spec-item {
  color: #cbd5e1 !important;
}

body.dark-theme .property-specs .spec-item i {
  color: #38bdf8 !important;
}

body.dark-theme .property-actions {
  background: #0f172a !important;
  border-top: 1px solid #1e293b !important;
}

/* Action Buttons on Property Card (Both Light & Dark Modes) */
.property-actions .btn {
  font-size: 0.8rem !important;
  padding: 6px 10px !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

/* 1. Mark Sold / Close Sale Button */
.btn-action-close-sale {
  color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.12) !important;
  border: 1px solid rgba(239, 68, 68, 0.35) !important;
}

.btn-action-close-sale:hover {
  background: #ef4444 !important;
  color: #ffffff !important;
  border-color: #ef4444 !important;
}

/* 2. Re-open Sale Button */
.btn-action-reopen-sale {
  color: #10b981 !important;
  background: rgba(16, 185, 129, 0.12) !important;
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
}

.btn-action-reopen-sale:hover {
  background: #10b981 !important;
  color: #ffffff !important;
  border-color: #10b981 !important;
}

/* 3. QR Action Button */
.btn-action-qr {
  color: #fbbf24 !important;
  background: rgba(245, 158, 11, 0.12) !important;
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
}

.btn-action-qr:hover {
  background: #f59e0b !important;
  color: #0f172a !important;
  border-color: #f59e0b !important;
}

/* 4. Poster Action Button */
.btn-action-poster {
  color: #34d399 !important;
  background: rgba(16, 185, 129, 0.12) !important;
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
}

.btn-action-poster:hover {
  background: #10b981 !important;
  color: #ffffff !important;
  border-color: #10b981 !important;
}

/* 5. Edit Action Button */
.property-actions .btn.btn-action-edit,
.btn-action-edit {
  color: #0284c7 !important;
  background: #f0f9ff !important;
  border: 1.5px solid #bae6fd !important;
  transition: all 0.2s ease !important;
}

.property-actions .btn.btn-action-edit:hover,
.btn-action-edit:hover {
  background: #0284c7 !important;
  color: #ffffff !important;
  border-color: #0284c7 !important;
}

/* 6. Delete Action Button */
.property-actions .btn.btn-action-delete,
.btn-action-delete {
  color: #ef4444 !important;
  background: #fef2f2 !important;
  border: 1.5px solid #fecaca !important;
  transition: all 0.2s ease !important;
}

.property-actions .btn.btn-action-delete:hover,
.btn-action-delete:hover {
  background: #ef4444 !important;
  color: #ffffff !important;
  border-color: #ef4444 !important;
}

body.dark-theme .btn-action-close-sale {
  color: #f87171 !important;
  background: rgba(239, 68, 68, 0.18) !important;
  border: 1px solid rgba(248, 113, 113, 0.4) !important;
}

body.dark-theme .btn-action-reopen-sale {
  color: #34d399 !important;
  background: rgba(16, 185, 129, 0.18) !important;
  border: 1px solid rgba(52, 211, 153, 0.4) !important;
}

body.dark-theme .btn-action-qr {
  color: #fbbf24 !important;
  background: rgba(245, 158, 11, 0.18) !important;
  border: 1px solid rgba(245, 158, 11, 0.4) !important;
}

body.dark-theme .btn-action-poster {
  color: #34d399 !important;
  background: rgba(16, 185, 129, 0.18) !important;
  border: 1px solid rgba(16, 185, 129, 0.4) !important;
}

body.dark-theme .property-actions .btn.btn-action-edit,
body.dark-theme .btn-action-edit {
  color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.15) !important;
  border: 1.5px solid rgba(56, 189, 248, 0.35) !important;
}

body.dark-theme .property-actions .btn.btn-action-edit:hover,
body.dark-theme .btn-action-edit:hover {
  background: #0284c7 !important;
  color: #ffffff !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.4) !important;
}

body.dark-theme .property-actions .btn.btn-action-delete,
body.dark-theme .btn-action-delete {
  color: #f87171 !important;
  background: rgba(239, 68, 68, 0.15) !important;
  border: 1.5px solid rgba(239, 68, 68, 0.35) !important;
}

body.dark-theme .property-actions .btn.btn-action-delete:hover,
body.dark-theme .btn-action-delete:hover {
  background: #dc2626 !important;
  color: #ffffff !important;
  border-color: #f87171 !important;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.4) !important;
}

/* ==========================================================================
   Admin View Property Modal: Adaptive Light/Dark Mode & Anti-Overlap Grid
   ========================================================================== */

/* Light Mode (Default) */
#adminViewPropertyModal .modal-card {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.18) !important;
}

#adminViewPropertyModal .modal-header-bar {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
  color: #0f172a !important;
  border-bottom: 1.5px solid #e2e8f0 !important;
}

#adminViewPropertyModal .modal-header-bar h3 {
  color: #0f172a !important;
}

#adminViewPropertyModal .modal-close-circle {
  background: rgba(15, 23, 42, 0.08) !important;
  color: #475569 !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

#adminViewPropertyModal .modal-close-circle:hover {
  background: rgba(239, 68, 68, 0.9) !important;
  color: #ffffff !important;
}

#adminViewPropertyModal .modal-body-content {
  background: #ffffff !important;
  color: #1e293b !important;
}

#adminViewPropertyModal .admin-view-specs-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 6px 10px !important;
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  color: #1e293b !important;
  border-radius: 12px !important;
  padding: 10px !important;
}

#adminViewPropertyModal .admin-view-specs-grid .spec-item {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 6px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  padding: 6px 10px !important;
  min-width: 0 !important;
  overflow: hidden !important;
  box-shadow: none !important;
}

#adminViewPropertyModal .admin-view-specs-grid .spec-item.spec-item-full,
#adminViewPropertyModal .admin-view-specs-grid .spec-item:last-child:nth-child(odd) {
  grid-column: 1 / -1 !important;
}

#adminViewPropertyModal .admin-view-specs-grid .spec-item strong {
  display: inline-flex !important;
  align-items: center !important;
  font-size: 0.76rem !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  margin-bottom: 0 !important;
}

#adminViewPropertyModal .admin-view-specs-grid .spec-item span {
  display: inline !important;
  color: #0f172a !important;
  font-weight: 700 !important;
  font-size: 0.80rem !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.4 !important;
}

#adminViewPropertyModal .admin-view-specs-grid .spec-item.spec-item-full span {
  white-space: normal !important;
  word-break: break-word !important;
}

/* Feature Matrix Specs Grid (Matches Image 1 - Compact & Sleek) */
#adminViewPropertyModal .admin-feature-matrix {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 7px 9px !important;
  background: #ffffff !important;
  border: 1.2px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 8px 9px !important;
  box-sizing: border-box !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02) !important;
}

#adminViewPropertyModal .admin-feature-matrix .feature-box {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 7px 4px !important;
  background: #ffffff !important;
  border: 1.1px solid #e2e8f0 !important;
  border-radius: 9px !important;
  min-height: 58px !important;
  box-sizing: border-box !important;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
}

#adminViewPropertyModal .admin-feature-matrix .feature-box:hover {
  transform: translateY(-1px) scale(1.01) !important;
  border-color: #f59e0b !important;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.12) !important;
}

#adminViewPropertyModal .admin-feature-matrix .feature-box > i {
  font-size: 1.22rem !important;
  color: #d97706 !important;
  filter: drop-shadow(0 1px 3px rgba(217, 119, 6, 0.2)) !important;
  margin-bottom: 2px !important;
  transition: transform 0.2s ease !important;
}

#adminViewPropertyModal .admin-feature-matrix .feature-box:hover > i {
  transform: scale(1.06) !important;
}

#adminViewPropertyModal .admin-feature-matrix .feature-box .label {
  font-size: 0.67rem !important;
  color: #64748b !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.01em !important;
  margin-bottom: 2px !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 100% !important;
}

#adminViewPropertyModal .admin-feature-matrix .feature-box .val {
  font-size: 0.96rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 100% !important;
}

#adminViewPropertyModal .admin-feature-matrix .feature-eye-circle {
  width: 22px !important;
  height: 22px !important;
  border-radius: 50% !important;
  background: #0284c7 !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 2px !important;
  box-shadow: 0 1px 4px rgba(2, 132, 199, 0.3) !important;
}

#adminViewPropertyModal .admin-feature-matrix .feature-eye-circle i {
  font-size: 0.74rem !important;
  color: #ffffff !important;
}

/* Location & Contact Meta Card */
#adminViewPropertyModal .admin-view-meta-card {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  background: #f8fafc !important;
  border: 1.2px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 10px 14px !important;
  box-sizing: border-box !important;
}

#adminViewPropertyModal .admin-view-meta-card .meta-row {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 0.84rem !important;
}

#adminViewPropertyModal .admin-view-meta-card .meta-label {
  font-weight: 700 !important;
  color: #64748b !important;
  font-size: 0.78rem !important;
  flex-shrink: 0 !important;
}

#adminViewPropertyModal .admin-view-meta-card .meta-val {
  font-weight: 800 !important;
  color: #0f172a !important;
  line-height: 1.4 !important;
}

#adminViewPropertyModal .admin-view-meta-card .contact-link {
  color: #0284c7 !important;
  text-decoration: none !important;
}

#adminViewPropertyModal .admin-view-meta-card .contact-link:hover {
  text-decoration: underline !important;
}

#adminViewPropertyModal .spec-label-cyan { color: #0284c7 !important; }
#adminViewPropertyModal .spec-label-purple { color: #7c3aed !important; }
#adminViewPropertyModal .spec-label-rose { color: #e11d48 !important; }
#adminViewPropertyModal .spec-label-emerald { color: #059669 !important; }
#adminViewPropertyModal .spec-label-amber { color: #d97706 !important; }
#adminViewPropertyModal .spec-label-indigo { color: #4f46e5 !important; }

#adminViewPropertyModal .admin-view-desc-card {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  padding: 12px 14px !important;
  color: #334155 !important;
}

#adminViewPropertyModal .admin-view-desc-card .desc-title {
  color: #0284c7 !important;
}

#adminViewPropertyModal .admin-view-desc-card .desc-content {
  color: #334155 !important;
}

#adminViewPropertyModal .admin-view-web-btn {
  background: #f8fafc !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #0f172a !important;
}

#adminViewPropertyModal .modal-footer {
  background: #f8fafc !important;
  border-top: 1px solid #e2e8f0 !important;
}

#adminViewPropertyModal .modal-footer .btn-modal-close {
  background: #f1f5f9 !important;
  color: #334155 !important;
  border: 1.5px solid #cbd5e1 !important;
}

/* Dark Mode Overrides for Admin View Property Modal */
body.dark-theme #adminViewPropertyModal .modal-card {
  background: #131b2e !important;
  color: #f8fafc !important;
  border: 1px solid #1e293b !important;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.7) !important;
}

body.dark-theme #adminViewPropertyModal .modal-header-bar {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
  color: #ffffff !important;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.1) !important;
}

body.dark-theme #adminViewPropertyModal .modal-header-bar h3 {
  color: #f8fafc !important;
}

body.dark-theme #adminViewPropertyModal .modal-close-circle {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

body.dark-theme #adminViewPropertyModal .modal-close-circle:hover {
  background: rgba(239, 68, 68, 0.9) !important;
  color: #ffffff !important;
}

body.dark-theme #adminViewPropertyModal .modal-body-content {
  background: #131b2e !important;
  color: #f8fafc !important;
}

body.dark-theme #adminViewPropertyModal .admin-view-specs-grid {
  background: #0f172a !important;
  border: 1px solid #1e293b !important;
  color: #f8fafc !important;
}

body.dark-theme #adminViewPropertyModal .admin-view-specs-grid .spec-item {
  background: rgba(30, 41, 59, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
}

body.dark-theme #adminViewPropertyModal .admin-view-specs-grid .spec-item span {
  color: #ffffff !important;
}

/* Dark Theme for Admin Feature Matrix (Image 1 style) */
body.dark-theme #adminViewPropertyModal .admin-feature-matrix {
  background: #0f172a !important;
  border-color: #334155 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
}

body.dark-theme #adminViewPropertyModal .admin-feature-matrix .feature-box {
  background: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-theme #adminViewPropertyModal .admin-feature-matrix .feature-box > i {
  color: #fbbf24 !important;
  filter: drop-shadow(0 2px 4px rgba(251, 191, 36, 0.25)) !important;
}

body.dark-theme #adminViewPropertyModal .admin-feature-matrix .feature-box .label {
  color: #94a3b8 !important;
}

body.dark-theme #adminViewPropertyModal .admin-feature-matrix .feature-box .val {
  color: #ffffff !important;
}

body.dark-theme #adminViewPropertyModal .admin-view-meta-card {
  background: #1e293b !important;
  border-color: #334155 !important;
}

body.dark-theme #adminViewPropertyModal .admin-view-meta-card .meta-label {
  color: #94a3b8 !important;
}

body.dark-theme #adminViewPropertyModal .admin-view-meta-card .meta-val {
  color: #f8fafc !important;
}

body.dark-theme #adminViewPropertyModal .admin-view-meta-card .contact-link {
  color: #38bdf8 !important;
}

body.dark-theme #adminViewPropertyModal .spec-label-cyan { color: #38bdf8 !important; }
body.dark-theme #adminViewPropertyModal .spec-label-purple { color: #a78bfa !important; }
body.dark-theme #adminViewPropertyModal .spec-label-rose { color: #fb7185 !important; }
body.dark-theme #adminViewPropertyModal .spec-label-emerald { color: #34d399 !important; }
body.dark-theme #adminViewPropertyModal .spec-label-amber { color: #fbbf24 !important; }
body.dark-theme #adminViewPropertyModal .spec-label-indigo { color: #818cf8 !important; }

body.dark-theme #adminViewPropertyModal .admin-view-desc-card {
  background: #0f172a !important;
  border: 1px solid #1e293b !important;
  color: #f1f5f9 !important;
}

body.dark-theme #adminViewPropertyModal .admin-view-desc-card .desc-title {
  color: #38bdf8 !important;
}

body.dark-theme #adminViewPropertyModal .admin-view-desc-card .desc-content {
  color: #cbd5e1 !important;
}

body.dark-theme #adminViewPropertyModal .admin-view-web-btn {
  background: #1e293b !important;
  border: 1.5px solid #334155 !important;
  color: #f8fafc !important;
}

body.dark-theme #adminViewPropertyModal .modal-footer {
  background: #0f172a !important;
  border-top: 1px solid #1e293b !important;
}

body.dark-theme #adminViewPropertyModal .modal-footer .btn-modal-close {
  background: #1e293b !important;
  color: #f8fafc !important;
  border: 1px solid #334155 !important;
}

body.dark-theme #adminViewPropertyModal a[href^="tel"] {
  background: rgba(16, 185, 129, 0.15) !important;
  border-color: rgba(52, 211, 153, 0.4) !important;
  color: #34d399 !important;
}

body.dark-theme #adminViewPropertyModal a[href*="t.me"] {
  background: rgba(2, 132, 199, 0.15) !important;
  border-color: rgba(56, 189, 248, 0.4) !important;
  color: #38bdf8 !important;
}

body.dark-theme #adminViewPropertyModal a[href*="maps"] {
  background: rgba(245, 158, 11, 0.15) !important;
  border-color: rgba(251, 191, 36, 0.4) !important;
  color: #fbbf24 !important;
}

@media (max-width: 360px) {
  #adminViewPropertyModal .admin-view-specs-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Social Caption Modal Styling */
#socialCaptionModal .modal-card {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #e2e8f0 !important;
}

#socialCaptionModal .modal-header-bar {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
  color: #0f172a !important;
  border-bottom: 1.5px solid #e2e8f0 !important;
}

#socialCaptionModal .modal-header-bar h3 {
  color: #0f172a !important;
}

#socialCaptionModal .modal-close-circle {
  background: rgba(15, 23, 42, 0.08) !important;
  color: #475569 !important;
}

#socialCaptionModal .modal-close-circle:hover {
  background: rgba(239, 68, 68, 0.9) !important;
  color: #ffffff !important;
}

#socialCaptionModal .modal-body-content {
  background: #ffffff !important;
}

#socialCaptionModal textarea {
  background: #f8fafc !important;
  color: #0f172a !important;
  border: 1.5px solid #cbd5e1 !important;
}

#socialCaptionModal .modal-footer {
  background: #f8fafc !important;
  border-top: 1px solid #e2e8f0 !important;
}

#socialCaptionModal .modal-footer .btn-modal-close {
  background: #f1f5f9 !important;
  color: #334155 !important;
  border: 1.5px solid #cbd5e1 !important;
}

body.dark-theme #socialCaptionModal .modal-card {
  background: #131b2e !important;
  color: #f8fafc !important;
  border: 1px solid #1e293b !important;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.7) !important;
}

body.dark-theme #socialCaptionModal .modal-header-bar {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
  color: #ffffff !important;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.1) !important;
}

body.dark-theme #socialCaptionModal .modal-header-bar h3 {
  color: #f8fafc !important;
}

body.dark-theme #socialCaptionModal .modal-close-circle {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
}

body.dark-theme #socialCaptionModal .modal-close-circle:hover {
  background: rgba(239, 68, 68, 0.9) !important;
  color: #ffffff !important;
}

body.dark-theme #socialCaptionModal .modal-body-content {
  background: #131b2e !important;
}

body.dark-theme #socialCaptionModal textarea {
  background: #0f172a !important;
  color: #f8fafc !important;
  border: 1.5px solid #334155 !important;
}

body.dark-theme #socialCaptionModal .modal-footer {
  background: #0f172a !important;
  border-top: 1px solid #1e293b !important;
}

body.dark-theme #socialCaptionModal .modal-footer .btn-modal-close {
  background: #1e293b !important;
  color: #f8fafc !important;
  border: 1px solid #334155 !important;
}

body.dark-theme .stat-card {
  background: #131b2e !important;
  border: 1px solid #1e293b !important;
  color: #f8fafc !important;
}

body.dark-theme .stat-card h3,
body.dark-theme .stat-card .stat-value {
  color: #f8fafc !important;
}

body.dark-theme .stat-card p,
body.dark-theme .stat-card .stat-label {
  color: #94a3b8 !important;
}

body.dark-theme .modal-card,
body.dark-theme .modal-content,
body.dark-theme .modal-box {
  background: #131b2e !important;
  border: 1px solid #1e293b !important;
  color: #f8fafc !important;
}

body.dark-theme .modal-header {
  background: #0f172a !important;
  border-bottom: 1px solid #1e293b !important;
  color: #f8fafc !important;
}

body.dark-theme .modal-body {
  background: #131b2e !important;
  color: #f8fafc !important;
}

body.dark-theme .modal-footer {
  background: #0f172a !important;
  border-top: 1px solid #1e293b !important;
}

body.dark-theme .form-group label {
  color: #e2e8f0 !important;
}

body.dark-theme .form-group input,
body.dark-theme .form-group select,
body.dark-theme .form-group textarea {
  background: #0f172a !important;
  border: 1px solid #334155 !important;
  color: #ffffff !important;
}

body.dark-theme .form-group input:focus,
body.dark-theme .form-group select:focus,
body.dark-theme .form-group textarea:focus {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2) !important;
}

body.dark-theme .submission-card,
body.dark-theme .owner-card,
body.dark-theme .user-card,
body.dark-theme .lead-card {
  background: #131b2e !important;
  border: 1px solid #1e293b !important;
  color: #f8fafc !important;
}

body.dark-theme .table-container,
body.dark-theme .data-table {
  background: #131b2e !important;
  border: 1px solid #1e293b !important;
  color: #f8fafc !important;
}

body.dark-theme .empty-state {
  background: #131b2e !important;
  border: 2px dashed #334155 !important;
  color: #94a3b8 !important;
}

body.dark-theme .left-sidebar-drawer {
  background: #0f172a !important;
  border-right: 1px solid #1e293b !important;
}

body.dark-theme .sidebar-menu-btn {
  color: #cbd5e1 !important;
}

body.dark-theme .sidebar-menu-btn:hover {
  background: #1e293b !important;
  color: #ffffff !important;
}

body.dark-theme .sidebar-menu-btn.active {
  background: rgba(37, 99, 235, 0.2) !important;
  color: #38bdf8 !important;
}

/* ==========================================================================
   SUBMISSIONS PANEL SPECIFIC STYLES (LIGHT & DARK THEMES)
   ========================================================================== */

.sub-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1.5px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  transition: all 0.2s ease;
}

.sub-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.sub-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: #0f172a;
  margin: 1px 0 3px 0;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sub-owner-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 7px 9px;
  font-size: 0.76rem;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sub-owner-name {
  font-weight: 800;
  color: #0f172a;
  font-size: 0.8rem;
}

.sub-actions-row {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
  border-top: 1px dashed rgba(226, 232, 240, 0.9);
  padding-top: 6px;
  margin-top: 1px;
}

.sub-view-toggle {
  background: #f1f5f9;
}

/* Dark Theme Overrides for Submissions */
body.dark-theme .sub-card {
  background: #131b2e !important;
  border: 1px solid #1e293b !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35) !important;
}

body.dark-theme .sub-card:hover {
  border-color: rgba(56, 189, 248, 0.5) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important;
}

body.dark-theme .sub-title {
  color: #f8fafc !important;
}

body.dark-theme .sub-owner-box {
  background: #0f172a !important;
  border: 1px solid #1e293b !important;
  color: #cbd5e1 !important;
}

body.dark-theme .sub-owner-name {
  color: #f8fafc !important;
}

body.dark-theme .sub-actions-row {
  border-top: 1px dashed #1e293b !important;
}

body.dark-theme .sub-view-toggle {
  background: #0f172a !important;
  border-color: #1e293b !important;
}

body.dark-theme #submissionDetailModal .modal-body {
  color: #f8fafc !important;
}

body.dark-theme #submissionDetailModal .modal-body h3,
body.dark-theme #submissionDetailModal .modal-body label {
  color: #f8fafc !important;
}

body.dark-theme #submissionDetailModal .modal-body p {
  background: #0f172a !important;
  border-color: #1e293b !important;
  color: #cbd5e1 !important;
}

body.dark-theme #submissionDetailModal div {
  color: #f8fafc;
}

body.dark-theme .users-table-card {
  background: #131b2e !important;
  border-color: #1e293b !important;
}

body.dark-theme .users-table th {
  background: #0f172a !important;
  color: #f8fafc !important;
  border-color: #1e293b !important;
}

body.dark-theme .users-table td {
  border-color: #1e293b !important;
  color: #cbd5e1 !important;
}

body.dark-theme .users-table tr:hover {
  background: rgba(30, 41, 59, 0.4) !important;
}

/* ==========================================================================
   PROPERTY FORM MODAL DARK & LIGHT STYLES
   ========================================================================== */

.form-gmap-box {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1.5px solid #f59e0b;
}

.form-photo-upload-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.form-core-info-box {
  background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%) !important;
  border: 1.5px solid #7dd3fc !important;
  border-radius: 12px !important;
  padding: 12px 14px !important;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.1) !important;
  box-sizing: border-box;
}

.form-owner-info-box {
  background: linear-gradient(135deg, #fff1f2 0%, #fff5f5 50%, #fef2f2 100%) !important;
  border: 1.5px solid #fecdd3 !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 16px rgba(225, 29, 72, 0.06) !important;
}

.photo-slot-main,
.photo-slot-sub {
  background: #ffffff;
}

/* Dark Theme Form Boxes */
body.dark-theme .form-gmap-box {
  background: rgba(245, 158, 11, 0.12) !important;
  border: 1.5px solid rgba(245, 158, 11, 0.4) !important;
}

body.dark-theme .form-gmap-box label {
  color: #fbbf24 !important;
}

body.dark-theme .form-gmap-box input {
  background: #0f172a !important;
  color: #ffffff !important;
  border-color: rgba(245, 158, 11, 0.5) !important;
}

body.dark-theme .form-photo-upload-box {
  background: #131b2e !important;
  border: 1px solid #1e293b !important;
}

body.dark-theme .form-photo-upload-box label,
body.dark-theme .form-photo-upload-box span {
  color: #f8fafc !important;
}

body.dark-theme .photo-slot-main,
body.dark-theme .photo-slot-sub {
  background: #0f172a !important;
  border-color: #334155 !important;
}

body.dark-theme .form-core-info-box,
body.dark-mode .form-core-info-box {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.14) 0%, rgba(15, 23, 42, 0.85) 100%) !important;
  border: 1.5px solid rgba(56, 189, 248, 0.35) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
}

body.dark-theme .form-core-info-header,
body.dark-mode .form-core-info-header {
  border-bottom-color: rgba(56, 189, 248, 0.25) !important;
}

body.dark-theme .form-core-info-title,
body.dark-mode .form-core-info-title {
  color: #38bdf8 !important;
}

body.dark-theme .form-core-info-title span,
body.dark-mode .form-core-info-title span {
  color: #f8fafc !important;
}

body.dark-theme .form-core-info-title i.fa-star,
body.dark-mode .form-core-info-title i.fa-star {
  color: #f59e0b !important;
  text-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

body.dark-theme .form-core-info-badge,
body.dark-mode .form-core-info-badge,
body.dark-theme .form-core-info-box .form-core-info-badge,
body.dark-mode .form-core-info-box .form-core-info-badge {
  background: rgba(2, 132, 199, 0.22) !important;
  color: #38bdf8 !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

body.dark-theme .form-core-info-box input,
body.dark-theme .form-core-info-box select,
body.dark-mode .form-core-info-box input,
body.dark-mode .form-core-info-box select {
  background: #0f172a !important;
  color: #ffffff !important;
  border-color: #334155 !important;
}

body.dark-theme .form-owner-info-box {
  background: rgba(225, 29, 72, 0.12) !important;
  border: 1.5px solid rgba(244, 63, 94, 0.35) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
}

body.dark-theme .form-owner-info-box label,
body.dark-theme .form-owner-info-box span {
  color: #f8fafc !important;
}

body.dark-theme .form-owner-info-box input {
  background: #0f172a !important;
  color: #ffffff !important;
  border-color: #334155 !important;
}

body.dark-theme .owner-privacy-tag {
  background: rgba(225, 29, 72, 0.25) !important;
  border: 1px solid rgba(244, 63, 94, 0.45) !important;
  color: #fda4af !important;
}

body.dark-theme .phone-input-row input {
  background: #0f172a !important;
  color: #ffffff !important;
  border-color: #334155 !important;
}

body.dark-theme .btn-add-phone-mini {
  background: rgba(16, 185, 129, 0.18) !important;
  border: 1px solid rgba(16, 185, 129, 0.4) !important;
  color: #34d399 !important;
}

body.dark-theme .modal-footer {
  background: #0f172a !important;
  border-top: 1px solid #1e293b !important;
}

/* ==========================================================================
   OWNERS DIRECTORY (ម្ចាស់ទ្រព្យ) DARK MODE ENHANCEMENTS
   ========================================================================== */

.owners-header-title {
  color: var(--primary-900);
}

.owners-table-card {
  background: #ffffff;
  border: 1.5px solid var(--border-color);
}

.owners-table-header th {
  background: #f8fafc;
  border-bottom: 2px solid var(--border-color);
  color: #475569;
}

.owners-table-row {
  border-bottom: 1px solid #f1f5f9;
}

.owner-name-text,
.owner-card-title {
  color: #0f172a;
}

body.dark-theme .owners-header-title {
  color: #f8fafc !important;
}

body.dark-theme .owners-toolbar {
  background: #131b2e !important;
  border-color: #1e293b !important;
}

body.dark-theme .owners-table-card {
  background: #131b2e !important;
  border-color: #1e293b !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35) !important;
}

body.dark-theme .owners-table-header th {
  background: #0f172a !important;
  border-bottom: 2px solid #1e293b !important;
  color: #94a3b8 !important;
}

body.dark-theme .owners-table-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  background: transparent !important;
}

body.dark-theme .owners-table-row:hover {
  background: rgba(255, 255, 255, 0.03) !important;
}

body.dark-theme .owner-name-text,
body.dark-theme .owner-name-text span,
body.dark-theme .owner-card-title {
  color: #f8fafc !important;
}

body.dark-theme .owner-table td {
  color: #cbd5e1 !important;
}

body.dark-theme .owner-card {
  background: #131b2e !important;
  border: 1px solid #1e293b !important;
  color: #f8fafc !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35) !important;
}

body.dark-theme .owner-card:hover {
  border-color: rgba(56, 189, 248, 0.5) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important;
}

body.dark-theme .owners-modal-body {
  background: #0f172a !important;
}

body.dark-theme .owners-modal-body h3 {
  color: #f8fafc !important;
}

body.dark-theme .owner-prop-card {
  background: #131b2e !important;
  border: 1px solid #1e293b !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35) !important;
}

body.dark-theme .owner-prop-card h4 {
  color: #f8fafc !important;
}


/* ==========================================================================
   UNIFIED MAP MODAL RESPONSIVE HEADER
   ========================================================================== */
.unified-map-header-bar {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
  padding: 8px 12px !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  border-bottom: 2px solid var(--accent-gold, #f59e0b) !important;
  flex-shrink: 0 !important;
  z-index: 1001 !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

.unified-map-title-box {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
  overflow: hidden !important;
}

.unified-map-title-box h3 {
  font-size: 0.92rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.2 !important;
}

.unified-map-title-box span {
  font-size: 0.68rem !important;
  color: #a5f3fc !important;
  font-weight: 600 !important;
  display: block !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.2 !important;
}

.unified-map-actions-box {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-shrink: 0 !important;
}

@media (max-width: 576px) {
  .unified-map-header-bar {
    padding: 6px 8px !important;
    gap: 6px !important;
  }

  .unified-map-title-box .map-icon-circle {
    width: 28px !important;
    height: 28px !important;
    font-size: 0.85rem !important;
  }

  .unified-map-title-box h3 {
    font-size: 0.80rem !important;
  }

  .unified-map-title-box span {
    display: none !important;
  }

  .unified-map-actions-box {
    gap: 4px !important;
  }

  .btn-unified-map-ocr {
    padding: 4px 6px !important;
    font-size: 0.68rem !important;
  }

  .btn-unified-map-ocr span.text-extra {
    display: none !important;
  }

  #unifiedMapCountPill {
    padding: 3px 6px !important;
    font-size: 0.66rem !important;
  }
}

/* ==========================================================================
   COMPACT 2-COLUMN ADMIN PROPERTY FILTER DRAWER DESIGN
   ========================================================================== */
.admin-filter-drawer {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 12px !important;
  padding: 10px 12px !important;
  box-sizing: border-box !important;
  box-shadow: 0 8px 20px -4px rgba(15, 23, 42, 0.08) !important;
  animation: filterFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
  margin-top: 4px !important;
}

@keyframes filterFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.admin-filter-drawer-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 8px !important;
  padding-bottom: 6px !important;
  border-bottom: 1.5px solid #f1f5f9 !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
}

.admin-filter-drawer-title {
  font-size: 0.80rem !important;
  font-weight: 900 !important;
  color: #0f172a !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.admin-filter-drawer-actions {
  display: flex !important;
  gap: 6px !important;
  align-items: center !important;
}

.btn-filter-reset {
  background: #fef2f2 !important;
  color: #dc2626 !important;
  border: 1px solid #fecaca !important;
  border-radius: 6px !important;
  padding: 4px 10px !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  transition: all 0.15s ease !important;
}

.btn-filter-reset:hover {
  background: #fee2e2 !important;
  color: #b91c1c !important;
}

.btn-filter-close {
  background: #f8fafc !important;
  color: #475569 !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  padding: 4px 10px !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  transition: all 0.15s ease !important;
}

.btn-filter-close:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

/* Compact 2-Column Responsive Grid */
.admin-filter-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 8px 10px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

@media (min-width: 1200px) {
  .admin-filter-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 10px 12px !important;
  }
}

.admin-filter-field {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.admin-filter-field label {
  font-size: 0.70rem !important;
  font-weight: 800 !important;
  color: #334155 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  user-select: none !important;
}

.admin-filter-field label i {
  color: #0284c7 !important;
  font-size: 0.74rem !important;
  flex-shrink: 0 !important;
}

.admin-filter-field select,
.admin-filter-drawer .filter-select {
  height: 35px !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 8px !important;
  width: 100% !important;
  font-size: 0.76rem !important;
  font-weight: 700 !important;
  padding: 0 8px !important;
  background: #ffffff !important;
  color: #0f172a !important;
  box-sizing: border-box !important;
  transition: all 0.15s ease !important;
  cursor: pointer !important;
  outline: none !important;
  text-overflow: ellipsis !important;
}

.admin-filter-field select:hover,
.admin-filter-drawer .filter-select:hover {
  border-color: #94a3b8 !important;
  background: #f8fafc !important;
}

.admin-filter-field select:focus,
.admin-filter-drawer .filter-select:focus {
  border-color: #0284c7 !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.16) !important;
}

/* ==========================================================================
   ADMIN MAP FILTER DROPDOWN (Anchored Directly to "តម្រង" Button)
   ========================================================================== */
.admin-map-filter-dropdown-wrap {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
}

.admin-map-filter-toggle-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  height: 38px !important;
  padding: 0 14px !important;
  border-radius: 99px !important;
  border: 1.5px solid #0284c7 !important;
  background: rgba(2, 132, 199, 0.08) !important;
  color: #0284c7 !important;
  font-weight: 800 !important;
  font-size: 0.82rem !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  user-select: none !important;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.12) !important;
}

.admin-map-filter-toggle-btn:hover {
  background: rgba(2, 132, 199, 0.18) !important;
  border-color: #0284c7 !important;
  transform: translateY(-1px) !important;
}

.admin-map-filter-toggle-btn.dropdown-open {
  background: #0284c7 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4) !important;
}

.admin-map-filter-toggle-btn.dropdown-open .admin-map-filter-caret {
  transform: rotate(180deg) !important;
  color: #ffffff !important;
}

.admin-map-filter-dropdown-card {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  right: 0 !important;
  width: 520px !important;
  max-width: min(520px, calc(100vw - 20px)) !important;
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 48px -10px rgba(15, 23, 42, 0.22), 0 4px 16px -2px rgba(15, 23, 42, 0.08) !important;
  z-index: 10050 !important;
  display: none;
  flex-direction: column !important;
  overflow: hidden !important;
  transform-origin: top right !important;
}

.admin-map-filter-dropdown-card.is-open {
  display: flex !important;
  animation: filterDropdownSlide 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

body.dark-theme .admin-map-filter-dropdown-card {
  background: #0f172a !important;
  border-color: rgba(56, 189, 248, 0.35) !important;
  box-shadow: 0 24px 50px -10px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
}

body.dark-theme .admin-map-filter-dropdown-card .admin-filter-drawer-header {
  background: #0f172a !important;
  border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

body.dark-theme .admin-map-filter-dropdown-card .admin-filter-drawer-title {
  color: #f8fafc !important;
}

body.dark-theme .admin-map-filter-dropdown-card .admin-map-drawer-body {
  background: #0b1120 !important;
}

body.dark-theme .admin-map-filter-dropdown-card .admin-filter-field label {
  color: #cbd5e1 !important;
}

body.dark-theme .admin-map-filter-dropdown-card .filter-select {
  background: #1e293b !important;
  color: #f8fafc !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

body.dark-theme .admin-map-filter-dropdown-card .filter-select:hover {
  border-color: #38bdf8 !important;
  background: #334155 !important;
}

@keyframes filterDropdownSlide {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Hide Redundant Desktop Tabs on Mobile Screens (Handled by Mobile Bottom Nav) */
@media (max-width: 768px) {
  .tab-buttons-row .desktop-only-tab {
    display: none !important;
  }
}

/* Mobile Bottom Nav Notification Badge (Top-Right) */
.mobile-bottom-nav .nav-icon-wrap {
  position: relative !important;
  display: inline-flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.mobile-bottom-nav .nav-badge-pill {
  position: absolute !important;
  top: -6px !important;
  right: -10px !important;
  background: #ea580c !important;
  color: #ffffff !important;
  font-size: 0.62rem !important;
  font-weight: 900 !important;
  min-width: 17px !important;
  height: 17px !important;
  border-radius: 99px !important;
  padding: 0 4px !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.45) !important;
  border: 1.5px solid #ffffff !important;
  z-index: 10 !important;
  line-height: 1 !important;
  pointer-events: none !important;
}

.mobile-bottom-nav .nav-badge-pill:empty {
  display: none !important;
}

.mobile-bottom-nav .nav-badge-pill.pulse-badge {
  display: inline-flex !important;
  background: linear-gradient(135deg, #ef4444, #ea580c) !important;
  animation: navBadgePulse 1.8s infinite ease-in-out !important;
}

.mobile-bottom-nav .nav-badge-pill.pulse-badge:empty {
  display: none !important;
}

.mobile-bottom-nav .nav-badge-pill.neutral {
  background: #64748b !important;
  box-shadow: 0 1px 4px rgba(100, 116, 139, 0.3) !important;
}

@keyframes navBadgePulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }

  50% {
    transform: scale(1.15);
    box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

/* ==========================================================================
   Smart Contact & Portfolio Hub Styles
   ========================================================================== */
.owner-card {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.owner-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
}

.live-phone-portfolio-alert {
  transition: all 0.2s ease-in-out;
  width: 100%;
}

/* Phone Portfolio Live Alert Box */
.phone-portfolio-live-banner {
  margin-top: 8px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1.5px solid #93c5fd;
  border-radius: 10px;
  color: #1e40af;
  box-shadow: 0 3px 10px rgba(59, 130, 246, 0.12);
  animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  transition: all 0.2s ease-in-out;
  width: 100%;
  box-sizing: border-box;
}

.phone-portfolio-live-banner .stat-chip {
  background: #ffffff;
  color: #1e40af;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid #bfdbfe;
  font-weight: 700;
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.phone-portfolio-live-banner .stat-chip-total {
  background: #ffffff;
  color: #047857;
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px solid #a7f3d0;
  font-weight: 800;
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  white-space: nowrap;
}

.phone-portfolio-live-banner .btn-view-portfolio {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff !important;
  border: none;
  padding: 6px 13px;
  border-radius: 7px;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
  transition: transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}

.phone-portfolio-live-banner .btn-view-portfolio:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.35);
}

.phone-portfolio-live-banner .btn-view-portfolio:active {
  transform: translateY(0);
}

/* Dark Theme for Live Portfolio Banner */
body.dark-theme .phone-portfolio-live-banner,
body:not(.light-theme) .phone-portfolio-live-banner {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.45) 0%, rgba(30, 64, 175, 0.3) 100%) !important;
  border: 1.5px solid rgba(96, 165, 250, 0.4) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
}

body.dark-theme .phone-portfolio-live-banner .stat-chip,
body:not(.light-theme) .phone-portfolio-live-banner .stat-chip {
  background: rgba(15, 23, 42, 0.6) !important;
  border: 1px solid rgba(96, 165, 250, 0.3) !important;
  color: #93c5fd !important;
}

body.dark-theme .phone-portfolio-live-banner .stat-chip-total,
body:not(.light-theme) .phone-portfolio-live-banner .stat-chip-total {
  background: rgba(6, 78, 59, 0.5) !important;
  border: 1px solid rgba(52, 211, 153, 0.4) !important;
  color: #6ee7b7 !important;
}

/* ==========================================================================
   LUXURY PAGINATION BAR - DASHBOARD DYNAMIC DARK & LIGHT THEMES
   ========================================================================== */

/* 1. DARK MODE */
body.dark-theme .luxury-pagination-bar,
body:not(.light-theme) .luxury-pagination-bar {
  background: rgba(21, 28, 44, 0.95) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
  color: #f8fafc !important;
}

body.dark-theme .luxury-pagination-bar .pagination-info,
body:not(.light-theme) .luxury-pagination-bar .pagination-info {
  color: #cbd5e1 !important;
}

body.dark-theme .luxury-pagination-bar .pagination-info strong.info-total,
body:not(.light-theme) .luxury-pagination-bar .pagination-info strong.info-total {
  color: #ffffff !important;
}

body.dark-theme .luxury-pagination-bar .pagination-nav-btn,
body:not(.light-theme) .luxury-pagination-bar .pagination-nav-btn {
  background: #1e293b !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #f8fafc !important;
}

body.dark-theme .luxury-pagination-bar .pagination-nav-btn:disabled,
body:not(.light-theme) .luxury-pagination-bar .pagination-nav-btn:disabled {
  background: rgba(30, 41, 59, 0.5) !important;
  color: #64748b !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
}

body.dark-theme .luxury-pagination-bar .pagination-pill-btn:not(.active),
body:not(.light-theme) .luxury-pagination-bar .pagination-pill-btn:not(.active) {
  background: #1e293b !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #f8fafc !important;
}

body.dark-theme .luxury-pagination-bar .pagination-select,
body:not(.light-theme) .luxury-pagination-bar .pagination-select {
  background: #1e293b !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #f8fafc !important;
}

/* 2. LIGHT MODE */
body.light-theme .luxury-pagination-bar,
body:not(.dark-theme) .luxury-pagination-bar {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
  color: #334155 !important;
}

body.light-theme .luxury-pagination-bar .pagination-info,
body:not(.dark-theme) .luxury-pagination-bar .pagination-info {
  color: #475569 !important;
}

body.light-theme .luxury-pagination-bar .pagination-info strong.info-total,
body:not(.dark-theme) .luxury-pagination-bar .pagination-info strong.info-total {
  color: #0f172a !important;
}

body.light-theme .luxury-pagination-bar .pagination-nav-btn,
body:not(.dark-theme) .luxury-pagination-bar .pagination-nav-btn {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
}

body.light-theme .luxury-pagination-bar .pagination-pill-btn:not(.active),
body:not(.dark-theme) .luxury-pagination-bar .pagination-pill-btn:not(.active) {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
}

.luxury-pagination-bar .pagination-pill-btn.active,
.luxury-pagination-bar button.active {
  background: linear-gradient(135deg, #0284c7, #0369a1) !important;
  color: #ffffff !important;
  border: 1.5px solid #0284c7 !important;
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.45) !important;
  font-weight: 900 !important;
  transform: scale(1.06);
}

body.light-theme .luxury-pagination-bar .pagination-select,
body:not(.dark-theme) .luxury-pagination-bar .pagination-select {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
}

/* ==========================================================================
   ADMIN PORTAL FOOTER STYLING (CLEAN, HIGH-CONTRAST & LUXURY)
   ========================================================================== */
.admin-app-footer {
  background: #f1f5f9 !important;
  color: #475569 !important;
  border-top: 1.5px solid #e2e8f0 !important;
  padding: 18px 20px 85px 20px !important;
  text-align: center !important;
  font-size: 0.84rem !important;
  font-weight: 700 !important;
  margin-top: auto !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.admin-app-footer p,
#adminFooterCopyright {
  margin: 0 !important;
  color: #475569 !important;
  font-size: 0.84rem !important;
  font-weight: 700 !important;
  line-height: 1.6 !important;
}

body.dark-mode .admin-app-footer,
body.dark-theme .admin-app-footer {
  background: #0f172a !important;
  color: #cbd5e1 !important;
  border-top: 1.5px solid rgba(255, 255, 255, 0.12) !important;
}

body.dark-mode .admin-app-footer p,
body.dark-mode #adminFooterCopyright,
body.dark-theme .admin-app-footer p,
body.dark-theme #adminFooterCopyright {
  color: #cbd5e1 !important;
}

/* ==========================================================================
   ADMIN & PUBLIC UNIFIED PROPERTY FORM MODAL STYLES (100% IDENTICAL UI)
   ========================================================================== */
.compact-admin-modal {
  max-width: 720px !important;
  width: 95vw !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.45) !important;
}

.compact-admin-modal .modal-header {
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #2563eb 100%) !important;
  color: #ffffff !important;
  border-bottom: 2px solid #f59e0b !important;
  padding: 12px 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.form-core-info-box {
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
  border: 1.5px solid #7dd3fc;
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.25s ease;
}

.form-core-info-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1.5px dashed #7dd3fc;
  padding-bottom: 6px;
  margin-bottom: 2px;
  flex-wrap: nowrap;
  transition: border-color 0.25s ease;
}

.form-core-info-title {
  font-weight: 800;
  font-size: 0.84rem;
  color: #0284c7;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.form-core-info-title i.text-gold,
.form-core-info-title i.fa-star {
  color: #f59e0b !important;
}

.form-core-info-badge {
  font-size: 0.68rem;
  font-weight: 800;
  color: #0284c7;
  background: #ffffff;
  padding: 2px 8px;
  border-radius: 99px;
  border: 1px solid #7dd3fc;
  box-shadow: 0 1px 4px rgba(2, 132, 199, 0.12);
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.25s ease;
}

.form-house-specs-box {
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 12px !important;
  padding: 12px 14px !important;
}

.form-house-specs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  border-bottom: 1px dashed #cbd5e1;
  padding-bottom: 6px;
}

.form-house-specs-title {
  font-weight: 800;
  font-size: 0.82rem;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.form-house-specs-subtitle {
  font-size: 0.70rem;
  font-weight: 700;
  color: #64748b;
}

.form-house-specs-label {
  font-size: 0.74rem;
  font-weight: 800;
  color: #334155;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.form-house-specs-input {
  height: 38px;
  padding: 6px 10px;
  font-size: 0.84rem;
  font-weight: 700;
  border-radius: 8px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  width: 100%;
  box-sizing: border-box;
}

.amenity-checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 700;
  color: #1e293b;
  user-select: none;
  transition: all 0.15s ease;
}

.amenity-checkbox-label.checked {
  border-color: #10b981 !important;
  background: #ecfdf5 !important;
}

.form-map-picker-box {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 10px 12px;
}

.map-picker-title {
  color: #0f172a;
}

.map-layer-toggle-wrap {
  display: inline-flex;
  background: #e2e8f0;
  padding: 2px;
  border-radius: 6px;
}

.map-layer-btn {
  border: none;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  background: transparent;
  color: #64748b;
  white-space: nowrap;
}

.map-layer-btn.active {
  background: #ffffff;
  color: #0f172a;
  font-weight: 800;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.map-coords-badge {
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
}

.map-quick-jump-bar {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.map-quick-jump-bar::-webkit-scrollbar {
  display: none;
}

.map-quick-jump-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  color: #334155;
  transition: all 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.map-quick-jump-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

.form-owner-info-box {
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(135deg, #fff1f2 0%, #fff5f5 50%, #fef2f2 100%);
  border: 1.5px solid #fecdd3;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 4px 16px rgba(225, 29, 72, 0.06);
}

.owner-box-header-title {
  font-weight: 800;
  font-size: 0.86rem;
  color: #9f1239;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.owner-privacy-tag {
  background: #ffe4e6;
  border: 1px solid #fecdd3;
  color: #be123c;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.2px;
}

.assigned-agent-card {
  background: #ffffff;
  border: 1.5px solid #fecdd3;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.04);
}

.assigned-agent-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: #9f1239;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

.assigned-agent-pill {
  font-size: 0.68rem;
  color: #be123c;
  font-weight: 700;
  background: #fff1f2;
  padding: 2px 8px;
  border-radius: 99px;
  border: 1px solid #fecdd3;
}

.assigned-agent-select {
  height: 38px;
  border-radius: 8px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  font-size: 0.84rem;
  font-weight: 800;
  width: 100%;
  color: #0f172a;
  padding: 0 10px;
  box-sizing: border-box;
}

.assigned-agent-preview {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #0f172a;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  padding: 0 10px;
  height: 38px;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner-field-label {
  font-size: 0.76rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.dim-input-group {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
}

.dim-input-box {
  flex: 1;
  min-width: 0;
  position: relative;
}

.dim-separator {
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 800;
}

/* ==========================================================================
   UNIVERSAL NOTIFICATION BADGES & LIVE ALERT INDICATORS
   ========================================================================== */
.header-notif-badge {
  position: absolute !important;
  top: -4px !important;
  right: -4px !important;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  color: #ffffff !important;
  font-size: 0.65rem !important;
  font-weight: 900 !important;
  min-width: 18px !important;
  height: 18px !important;
  padding: 0 4px !important;
  border-radius: 99px !important;
  border: 1.5px solid #0f172a !important;
  display: none;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.7) !important;
  pointer-events: none !important;
  z-index: 100 !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
  animation: notifPulseGlow 2s infinite ease-in-out;
}

.header-notif-badge.show {
  display: flex !important;
}

body.light-theme .header-notif-badge {
  border-color: #ffffff !important;
}

.notif-badge-pill {
  display: none;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  color: #ffffff !important;
  font-size: 0.68rem !important;
  font-weight: 900 !important;
  padding: 1px 7px !important;
  border-radius: 99px !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.5) !important;
  line-height: 1.2 !important;
  z-index: 100;
}

.sidebar-menu-list .notif-badge-pill,
#adminSidebarNotifBadge {
  position: static !important;
  margin-left: auto !important;
}

.notif-badge-pill.show {
  display: inline-flex !important;
}

@keyframes notifPulseGlow {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1.08); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.has-unread-notif {
  color: #fbbf24 !important;
  animation: bellShake 3s ease infinite !important;
}

@keyframes bellShake {
  0%, 80%, 100% { transform: rotate(0); }
  85% { transform: rotate(15deg); }
  90% { transform: rotate(-15deg); }
  95% { transform: rotate(10deg); }
}

/* Facebook Map Picker Box (Light & Dark Theme Engine) */
.fb-map-picker-box {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.25s ease;
}

.fb-map-picker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.fb-map-picker-title-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.fb-map-picker-label {
  margin: 0 !important;
  display: flex;
  align-items: center;
  gap: 6px;
}

.fb-map-picker-title-text {
  font-weight: 800;
  color: #0f172a;
}

.fb-map-picker-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: #0369a1;
  background: #e0f2fe;
  padding: 2px 8px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
}

.fb-map-picker-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.fb-map-btn-gps {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.fb-map-btn-gps:hover {
  background: #dcfce7;
}

.fb-map-btn-layer {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.fb-map-btn-layer:hover {
  background: #bae6fd;
}

.fb-map-canvas-wrap {
  position: relative;
  width: 100%;
  height: 180px;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid #cbd5e1;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
  transition: border-color 0.25s ease;
}

.fb-map-hint-badge {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  z-index: 999;
  pointer-events: none;
}

.fb-map-inputs-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 6px;
  align-items: center;
}

/* Dark theme overrides for Facebook Map Picker */
body.dark-theme .fb-map-picker-box,
body.dark-mode .fb-map-picker-box {
  background: #131b2e !important;
  border-color: #334155 !important;
}

body.dark-theme .fb-map-picker-title-text,
body.dark-mode .fb-map-picker-title-text {
  color: #f8fafc !important;
}

body.dark-theme .fb-map-picker-badge,
body.dark-mode .fb-map-picker-badge {
  color: #38bdf8 !important;
  background: rgba(2, 132, 199, 0.2) !important;
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
}

body.dark-theme .fb-map-btn-gps,
body.dark-mode .fb-map-btn-gps {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #6ee7b7 !important;
  border-color: rgba(16, 185, 129, 0.35) !important;
}

body.dark-theme .fb-map-btn-gps i,
body.dark-mode .fb-map-btn-gps i {
  color: #34d399 !important;
}

body.dark-theme .fb-map-btn-gps:hover,
body.dark-mode .fb-map-btn-gps:hover {
  background: rgba(16, 185, 129, 0.25) !important;
}

body.dark-theme .fb-map-btn-layer,
body.dark-mode .fb-map-btn-layer {
  background: rgba(2, 132, 199, 0.2) !important;
  color: #38bdf8 !important;
  border-color: rgba(56, 189, 248, 0.35) !important;
}

body.dark-theme .fb-map-btn-layer:hover,
body.dark-mode .fb-map-btn-layer:hover {
  background: rgba(2, 132, 199, 0.3) !important;
}

body.dark-theme .fb-map-canvas-wrap,
body.dark-mode .fb-map-canvas-wrap {
  border-color: #334155 !important;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4) !important;
}

body.dark-theme #fbPropLeafletMap .leaflet-control-zoom a,
body.dark-mode #fbPropLeafletMap .leaflet-control-zoom a {
  background-color: #1e293b !important;
  color: #f8fafc !important;
  border-bottom-color: #334155 !important;
}

body.dark-theme #fbPropLeafletMap .leaflet-control-zoom a:hover,
body.dark-mode #fbPropLeafletMap .leaflet-control-zoom a:hover {
  background-color: #334155 !important;
  color: #38bdf8 !important;
}

body.dark-theme #fbPropLeafletMap .leaflet-bar,
body.dark-mode #fbPropLeafletMap .leaflet-bar {
  border: 1px solid #334155 !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5) !important;
}

/* ==========================================================================
   UNIVERSAL PHOTO LIGHTBOX - ADAPTIVE LIGHT & DARK THEMES
   ========================================================================== */

/* --- BASE & LIGHT THEME (Default & when body.light-theme / html.light / .theme-light / .is-light) --- */
#universalPhotoLightboxModal {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(15, 23, 42, 0.65) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  z-index: 9999999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 12px !important;
  box-sizing: border-box !important;
  transition: background 0.3s ease !important;
}

body.light-theme #universalPhotoLightboxModal,
html.light #universalPhotoLightboxModal,
#universalPhotoLightboxModal.theme-light {
  background: rgba(15, 23, 42, 0.60) !important;
}

#universalPhotoLightboxModal .universal-lightbox-card {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 18px !important;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.22) !important;
  max-width: 900px !important;
  width: 95vw !important;
  max-height: 94vh !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
  color: #0f172a !important;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease !important;
}

body.light-theme #universalPhotoLightboxModal .universal-lightbox-card,
html.light #universalPhotoLightboxModal .universal-lightbox-card,
#universalPhotoLightboxModal.theme-light .universal-lightbox-card,
#universalPhotoLightboxModal .universal-lightbox-card.is-light {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.22) !important;
  color: #0f172a !important;
}

#universalPhotoLightboxModal .lightbox-header-bar {
  background: #ffffff !important;
  padding: 10px 16px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  border-bottom: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
  transition: background 0.3s ease, border-color 0.3s ease !important;
}

body.light-theme #universalPhotoLightboxModal .lightbox-header-bar,
html.light #universalPhotoLightboxModal .lightbox-header-bar,
#universalPhotoLightboxModal.theme-light .lightbox-header-bar,
#universalPhotoLightboxModal .universal-lightbox-card.is-light .lightbox-header-bar {
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
}

#universalPhotoLightboxModal .lightbox-header-left {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
  overflow: hidden !important;
}

#universalPhotoLightboxModal .lightbox-type-badge {
  background: rgba(37, 99, 235, 0.08) !important;
  color: #1d4ed8 !important;
  border: 1px solid rgba(37, 99, 235, 0.2) !important;
  font-size: 0.70rem !important;
  font-weight: 800 !important;
  padding: 3px 8px !important;
  border-radius: 6px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  transition: all 0.3s ease !important;
}

body.light-theme #universalPhotoLightboxModal .lightbox-type-badge,
html.light #universalPhotoLightboxModal .lightbox-type-badge,
#universalPhotoLightboxModal.theme-light .lightbox-type-badge,
#universalPhotoLightboxModal .universal-lightbox-card.is-light .lightbox-type-badge {
  background: rgba(37, 99, 235, 0.08) !important;
  color: #1d4ed8 !important;
  border: 1px solid rgba(37, 99, 235, 0.2) !important;
}

#universalPhotoLightboxModal .lightbox-title {
  font-size: 0.92rem !important;
  font-weight: 800 !important;
  margin: 0 !important;
  color: #0f172a !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  transition: color 0.3s ease !important;
}

body.light-theme #universalPhotoLightboxModal .lightbox-title,
html.light #universalPhotoLightboxModal .lightbox-title,
#universalPhotoLightboxModal.theme-light .lightbox-title,
#universalPhotoLightboxModal .universal-lightbox-card.is-light .lightbox-title {
  color: #0f172a !important;
}

#universalPhotoLightboxModal .lightbox-close-btn {
  flex: 0 0 30px !important;
  flex-grow: 0 !important;
  flex-shrink: 0 !important;
  margin: 0 0 0 auto !important;
  background: rgba(239, 68, 68, 0.12) !important;
  color: #dc2626 !important;
  border: 1.5px solid rgba(239, 68, 68, 0.35) !important;
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  max-width: 30px !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  border-radius: 50% !important;
  font-size: 0.95rem !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
  line-height: 1 !important;
}

#universalPhotoLightboxModal .lightbox-close-btn:hover {
  background: #dc2626 !important;
  color: #ffffff !important;
  border-color: #dc2626 !important;
  transform: scale(1.08) !important;
}

body.light-theme #universalPhotoLightboxModal .lightbox-close-btn,
html.light #universalPhotoLightboxModal .lightbox-close-btn,
#universalPhotoLightboxModal.theme-light .lightbox-close-btn,
#universalPhotoLightboxModal .universal-lightbox-card.is-light .lightbox-close-btn {
  background: rgba(239, 68, 68, 0.12) !important;
  color: #dc2626 !important;
  border: 1.5px solid rgba(239, 68, 68, 0.35) !important;
}

body.light-theme #universalPhotoLightboxModal .lightbox-close-btn:hover,
html.light #universalPhotoLightboxModal .lightbox-close-btn:hover,
#universalPhotoLightboxModal.theme-light .lightbox-close-btn:hover,
#universalPhotoLightboxModal .universal-lightbox-card.is-light .lightbox-close-btn:hover {
  background: #dc2626 !important;
  color: #ffffff !important;
  border-color: #dc2626 !important;
}

#universalPhotoLightboxModal #universalLightboxViewport {
  position: relative !important;
  width: 100% !important;
  height: 60vh !important;
  min-height: 320px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  background: radial-gradient(circle, #f8fafc 0%, #e2e8f0 100%) !important;
  cursor: grab !important;
  user-select: none !important;
  touch-action: none !important;
  transition: background 0.3s ease !important;
}

body.light-theme #universalPhotoLightboxModal #universalLightboxViewport,
html.light #universalPhotoLightboxModal #universalLightboxViewport,
#universalPhotoLightboxModal.theme-light #universalLightboxViewport,
#universalPhotoLightboxModal .universal-lightbox-card.is-light #universalLightboxViewport {
  background: radial-gradient(circle, #f8fafc 0%, #e2e8f0 100%) !important;
}

#universalPhotoLightboxModal #universalLightboxMainImg {
  max-width: 98% !important;
  max-height: 98% !important;
  object-fit: contain !important;
  transform-origin: center center !important;
  will-change: transform !important;
  pointer-events: none !important;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.12)) !important;
}

#universalPhotoLightboxModal .lightbox-zoom-controls {
  position: absolute !important;
  top: 10px !important;
  left: 10px !important;
  display: flex !important;
  gap: 6px !important;
  align-items: center !important;
  z-index: 10 !important;
}

#universalPhotoLightboxModal #universalLightboxZoomBadge {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(6px) !important;
  color: #0284c7 !important;
  font-size: 0.70rem !important;
  font-weight: 900 !important;
  padding: 3px 8px !important;
  border-radius: 6px !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
  transition: all 0.3s ease !important;
}

body.light-theme #universalPhotoLightboxModal #universalLightboxZoomBadge,
html.light #universalPhotoLightboxModal #universalLightboxZoomBadge,
#universalPhotoLightboxModal.theme-light #universalLightboxZoomBadge,
#universalPhotoLightboxModal .universal-lightbox-card.is-light #universalLightboxZoomBadge {
  background: rgba(255, 255, 255, 0.95) !important;
  color: #0284c7 !important;
  border: 1px solid #cbd5e1 !important;
}

#universalPhotoLightboxModal .lightbox-reset-btn {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(6px) !important;
  color: #334155 !important;
  font-size: 0.68rem !important;
  font-weight: 800 !important;
  padding: 3px 8px !important;
  border-radius: 6px !important;
  border: 1px solid #cbd5e1 !important;
  cursor: pointer !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
  transition: all 0.2s !important;
}

#universalPhotoLightboxModal .lightbox-reset-btn:hover {
  background: #0284c7 !important;
  color: #ffffff !important;
  border-color: #0284c7 !important;
}

#universalPhotoLightboxModal .lightbox-drag-hint-wrap {
  position: absolute !important;
  bottom: 8px !important;
  left: 10px !important;
  right: 10px !important;
  text-align: center !important;
  pointer-events: none !important;
  z-index: 10 !important;
}

#universalPhotoLightboxModal .lightbox-drag-hint {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(6px) !important;
  color: #475569 !important;
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  padding: 3px 12px !important;
  border-radius: 99px !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
  transition: all 0.3s ease !important;
}

body.light-theme #universalPhotoLightboxModal .lightbox-drag-hint,
html.light #universalPhotoLightboxModal .lightbox-drag-hint,
#universalPhotoLightboxModal.theme-light .lightbox-drag-hint,
#universalPhotoLightboxModal .universal-lightbox-card.is-light .lightbox-drag-hint {
  background: rgba(255, 255, 255, 0.95) !important;
  color: #475569 !important;
  border: 1px solid #cbd5e1 !important;
}

#universalPhotoLightboxModal .lightbox-controls-toolbar {
  background: #ffffff !important;
  padding: 9px 14px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  border-top: 1px solid #e2e8f0 !important;
  transition: background 0.3s ease, border-color 0.3s ease !important;
}

body.light-theme #universalPhotoLightboxModal .lightbox-controls-toolbar,
html.light #universalPhotoLightboxModal .lightbox-controls-toolbar,
#universalPhotoLightboxModal.theme-light .lightbox-controls-toolbar,
#universalPhotoLightboxModal .universal-lightbox-card.is-light .lightbox-controls-toolbar {
  background: #ffffff !important;
  border-top: 1px solid #e2e8f0 !important;
}

#universalPhotoLightboxModal .lightbox-actions-group {
  display: flex !important;
  gap: 6px !important;
  align-items: center !important;
  flex-wrap: wrap !important;
}

#universalPhotoLightboxModal .btn-lb-action {
  padding: 6px 12px !important;
  border-radius: 8px !important;
  font-size: 0.74rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  background: #f8fafc !important;
  color: #1e293b !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
}

#universalPhotoLightboxModal .btn-lb-action:hover {
  background: #edf2f7 !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08) !important;
}

#universalPhotoLightboxModal .btn-lb-action i {
  font-size: 0.82rem !important;
  color: #0284c7 !important;
  opacity: 0.95 !important;
}

body.light-theme #universalPhotoLightboxModal .btn-lb-action,
html.light #universalPhotoLightboxModal .btn-lb-action,
#universalPhotoLightboxModal.theme-light .btn-lb-action,
#universalPhotoLightboxModal .universal-lightbox-card.is-light .btn-lb-action {
  background: #f8fafc !important;
  color: #1e293b !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
}

body.light-theme #universalPhotoLightboxModal .btn-lb-action i,
html.light #universalPhotoLightboxModal .btn-lb-action i,
#universalPhotoLightboxModal.theme-light .btn-lb-action i,
#universalPhotoLightboxModal .universal-lightbox-card.is-light .btn-lb-action i {
  color: #0284c7 !important;
}

#universalPhotoLightboxModal .btn-lb-download {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  color: #ffffff !important;
  border: 1px solid rgba(16, 185, 129, 0.4) !important;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.28) !important;
}

#universalPhotoLightboxModal .btn-lb-download i {
  color: #ffffff !important;
}

#universalPhotoLightboxModal .btn-lb-download:hover {
  background: linear-gradient(135deg, #059669, #047857) !important;
  color: #ffffff !important;
  border-color: rgba(16, 185, 129, 0.6) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 5px 14px rgba(16, 185, 129, 0.4) !important;
}

body.light-theme #universalPhotoLightboxModal .btn-lb-download,
html.light #universalPhotoLightboxModal .btn-lb-download,
#universalPhotoLightboxModal.theme-light .btn-lb-download,
#universalPhotoLightboxModal .universal-lightbox-card.is-light .btn-lb-download {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  color: #ffffff !important;
  border: 1px solid rgba(16, 185, 129, 0.4) !important;
}

#universalPhotoLightboxModal .btn-lb-cloud i {
  color: #2563eb !important;
}

body.light-theme #universalPhotoLightboxModal .btn-lb-cloud i,
html.light #universalPhotoLightboxModal .btn-lb-cloud i,
#universalPhotoLightboxModal.theme-light .btn-lb-cloud i,
#universalPhotoLightboxModal .universal-lightbox-card.is-light .btn-lb-cloud i {
  color: #2563eb !important;
}

#universalPhotoLightboxModal .lightbox-details-pill {
  font-size: 0.84rem !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  padding: 4px 10px !important;
  border-radius: 8px !important;
  background: rgba(15, 23, 42, 0.04) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  transition: all 0.3s ease !important;
}

body.light-theme #universalPhotoLightboxModal .lightbox-details-pill,
html.light #universalPhotoLightboxModal .lightbox-details-pill,
#universalPhotoLightboxModal.theme-light .lightbox-details-pill,
#universalPhotoLightboxModal .universal-lightbox-card.is-light .lightbox-details-pill {
  background: rgba(15, 23, 42, 0.04) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
}

#universalPhotoLightboxModal .lightbox-details-pill .lb-price {
  font-weight: 900 !important;
  color: #059669 !important;
}

#universalPhotoLightboxModal .lightbox-details-pill .lb-location {
  font-size: 0.74rem !important;
  color: #64748b !important;
  font-weight: 600 !important;
}

/* ==========================================================================
   DARK THEME OVERRIDES FOR UNIVERSAL PHOTO LIGHTBOX
   Applies when: body.dark-theme, html.dark, #universalPhotoLightboxModal.theme-dark, or .universal-lightbox-card.is-dark
   ========================================================================== */
body.dark-theme #universalPhotoLightboxModal,
html.dark #universalPhotoLightboxModal,
#universalPhotoLightboxModal.theme-dark {
  background: rgba(2, 6, 23, 0.85) !important;
}

body.dark-theme #universalPhotoLightboxModal .universal-lightbox-card,
html.dark #universalPhotoLightboxModal .universal-lightbox-card,
#universalPhotoLightboxModal.theme-dark .universal-lightbox-card,
#universalPhotoLightboxModal .universal-lightbox-card.is-dark {
  background: #0f172a !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 25px 90px rgba(0, 0, 0, 0.85) !important;
  color: #f8fafc !important;
}

body.dark-theme #universalPhotoLightboxModal .lightbox-header-bar,
html.dark #universalPhotoLightboxModal .lightbox-header-bar,
#universalPhotoLightboxModal.theme-dark .lightbox-header-bar,
#universalPhotoLightboxModal .universal-lightbox-card.is-dark .lightbox-header-bar {
  background: #111c34 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

body.dark-theme #universalPhotoLightboxModal .lightbox-type-badge,
html.dark #universalPhotoLightboxModal .lightbox-type-badge,
#universalPhotoLightboxModal.theme-dark .lightbox-type-badge,
#universalPhotoLightboxModal .universal-lightbox-card.is-dark .lightbox-type-badge {
  background: rgba(59, 130, 246, 0.18) !important;
  border: 1px solid rgba(96, 165, 250, 0.35) !important;
  color: #93c5fd !important;
}

body.dark-theme #universalPhotoLightboxModal .lightbox-title,
html.dark #universalPhotoLightboxModal .lightbox-title,
#universalPhotoLightboxModal.theme-dark .lightbox-title,
#universalPhotoLightboxModal .universal-lightbox-card.is-dark .lightbox-title {
  color: #f8fafc !important;
}

body.dark-theme #universalPhotoLightboxModal .lightbox-close-btn,
html.dark #universalPhotoLightboxModal .lightbox-close-btn,
#universalPhotoLightboxModal.theme-dark .lightbox-close-btn,
#universalPhotoLightboxModal .universal-lightbox-card.is-dark .lightbox-close-btn {
  background: rgba(239, 68, 68, 0.2) !important;
  border: 1.5px solid rgba(239, 68, 68, 0.5) !important;
  color: #f87171 !important;
}

body.dark-theme #universalPhotoLightboxModal .lightbox-close-btn:hover,
html.dark #universalPhotoLightboxModal .lightbox-close-btn:hover,
#universalPhotoLightboxModal.theme-dark .lightbox-close-btn:hover,
#universalPhotoLightboxModal .universal-lightbox-card.is-dark .lightbox-close-btn:hover {
  background: #dc2626 !important;
  border-color: #dc2626 !important;
  color: #ffffff !important;
  transform: scale(1.08) !important;
}

body.dark-theme #universalPhotoLightboxModal #universalLightboxViewport,
html.dark #universalPhotoLightboxModal #universalLightboxViewport,
#universalPhotoLightboxModal.theme-dark #universalLightboxViewport,
#universalPhotoLightboxModal .universal-lightbox-card.is-dark #universalLightboxViewport {
  background: radial-gradient(circle, #172235 0%, #0b1120 100%) !important;
}

body.dark-theme #universalPhotoLightboxModal #universalLightboxZoomBadge,
html.dark #universalPhotoLightboxModal #universalLightboxZoomBadge,
#universalPhotoLightboxModal.theme-dark #universalLightboxZoomBadge,
#universalPhotoLightboxModal .universal-lightbox-card.is-dark #universalLightboxZoomBadge {
  background: rgba(15, 23, 42, 0.85) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  color: #cbd5e1 !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
}

body.dark-theme #universalPhotoLightboxModal .lightbox-reset-btn,
html.dark #universalPhotoLightboxModal .lightbox-reset-btn,
#universalPhotoLightboxModal.theme-dark .lightbox-reset-btn,
#universalPhotoLightboxModal .universal-lightbox-card.is-dark .lightbox-reset-btn {
  background: rgba(15, 23, 42, 0.85) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  color: #cbd5e1 !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
}

body.dark-theme #universalPhotoLightboxModal .lightbox-reset-btn:hover,
html.dark #universalPhotoLightboxModal .lightbox-reset-btn:hover,
#universalPhotoLightboxModal.theme-dark .lightbox-reset-btn:hover,
#universalPhotoLightboxModal .universal-lightbox-card.is-dark .lightbox-reset-btn:hover {
  background: rgba(59, 130, 246, 0.3) !important;
  color: #ffffff !important;
  border-color: rgba(96, 165, 250, 0.5) !important;
}

body.dark-theme #universalPhotoLightboxModal .lightbox-drag-hint,
html.dark #universalPhotoLightboxModal .lightbox-drag-hint,
#universalPhotoLightboxModal.theme-dark .lightbox-drag-hint,
#universalPhotoLightboxModal .universal-lightbox-card.is-dark .lightbox-drag-hint {
  background: rgba(15, 23, 42, 0.85) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  color: #94a3b8 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

body.dark-theme #universalPhotoLightboxModal .lightbox-controls-toolbar,
html.dark #universalPhotoLightboxModal .lightbox-controls-toolbar,
#universalPhotoLightboxModal.theme-dark .lightbox-controls-toolbar,
#universalPhotoLightboxModal .universal-lightbox-card.is-dark .lightbox-controls-toolbar {
  background: #111c34 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body.dark-theme #universalPhotoLightboxModal .btn-lb-action,
html.dark #universalPhotoLightboxModal .btn-lb-action,
#universalPhotoLightboxModal.theme-dark .btn-lb-action,
#universalPhotoLightboxModal .universal-lightbox-card.is-dark .btn-lb-action {
  background: rgba(30, 41, 59, 0.85) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  color: #e2e8f0 !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
}

body.dark-theme #universalPhotoLightboxModal .btn-lb-action:hover,
html.dark #universalPhotoLightboxModal .btn-lb-action:hover,
#universalPhotoLightboxModal.theme-dark .btn-lb-action:hover,
#universalPhotoLightboxModal .universal-lightbox-card.is-dark .btn-lb-action:hover {
  background: rgba(51, 65, 85, 0.95) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

body.dark-theme #universalPhotoLightboxModal .btn-lb-action i,
html.dark #universalPhotoLightboxModal .btn-lb-action i,
#universalPhotoLightboxModal.theme-dark .btn-lb-action i,
#universalPhotoLightboxModal .universal-lightbox-card.is-dark .btn-lb-action i {
  color: #93c5fd !important;
  opacity: 0.95 !important;
}

body.dark-theme #universalPhotoLightboxModal .btn-lb-download,
html.dark #universalPhotoLightboxModal .btn-lb-download,
#universalPhotoLightboxModal.theme-dark .btn-lb-download,
#universalPhotoLightboxModal .universal-lightbox-card.is-dark .btn-lb-download {
  background: linear-gradient(135deg, #059669, #047857) !important;
  color: #ffffff !important;
  border: 1px solid rgba(52, 211, 153, 0.45) !important;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.45) !important;
}

body.dark-theme #universalPhotoLightboxModal .btn-lb-download i,
html.dark #universalPhotoLightboxModal .btn-lb-download i,
#universalPhotoLightboxModal.theme-dark .btn-lb-download i,
#universalPhotoLightboxModal .universal-lightbox-card.is-dark .btn-lb-download i {
  color: #ffffff !important;
}

body.dark-theme #universalPhotoLightboxModal .btn-lb-download:hover,
html.dark #universalPhotoLightboxModal .btn-lb-download:hover,
#universalPhotoLightboxModal.theme-dark .btn-lb-download:hover,
#universalPhotoLightboxModal .universal-lightbox-card.is-dark .btn-lb-download:hover {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  color: #ffffff !important;
  border-color: rgba(110, 231, 183, 0.6) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(5, 150, 105, 0.6) !important;
}

body.dark-theme #universalPhotoLightboxModal .btn-lb-cloud i,
html.dark #universalPhotoLightboxModal .btn-lb-cloud i,
#universalPhotoLightboxModal.theme-dark .btn-lb-cloud i,
#universalPhotoLightboxModal .universal-lightbox-card.is-dark .btn-lb-cloud i {
  color: #60a5fa !important;
}

body.dark-theme #universalPhotoLightboxModal .lightbox-details-pill,
html.dark #universalPhotoLightboxModal .lightbox-details-pill,
#universalPhotoLightboxModal.theme-dark .lightbox-details-pill,
#universalPhotoLightboxModal .universal-lightbox-card.is-dark .lightbox-details-pill {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.dark-theme #universalPhotoLightboxModal .lightbox-details-pill .lb-price,
html.dark #universalPhotoLightboxModal .lightbox-details-pill .lb-price,
#universalPhotoLightboxModal.theme-dark .lightbox-details-pill .lb-price,
#universalPhotoLightboxModal .universal-lightbox-card.is-dark .lightbox-details-pill .lb-price {
  color: #34d399 !important;
}

body.dark-theme #universalPhotoLightboxModal .lightbox-details-pill .lb-location,
html.dark #universalPhotoLightboxModal .lightbox-details-pill .lb-location,
#universalPhotoLightboxModal.theme-dark .lightbox-details-pill .lb-location,
#universalPhotoLightboxModal .universal-lightbox-card.is-dark .lightbox-details-pill .lb-location {
  color: #cbd5e1 !important;
}
