/* Darna bundled stylesheet.
   Source sections live in darna_app/static/css/sections/.
   Rebuild app.css from css_bundle.py when section files change.
   Keep app.css bundled so cache-busting and offline local usage stay simple. */

:root {
  --brand:#00a870;
  --brand-dark:#007a55;
  --brand-soft:#e8f7f0;
  --bg:#f5f7f8;
  --card:#fff;
  --text:#1d252c;
  --muted:#5f6b76;
  --border:#d9e0e4;
  --shadow:0 10px 28px rgba(29,37,44,.10)
}

html[data-theme="dark"] {
  --brand:#24c48e;
  --brand-dark:#7de2bf;
  --brand-soft:#113c31;
  --bg:#101418;
  --card:#171d22;
  --text:#f3f6f8;
  --muted:#aab5be;
  --border:#2c3942;
  --shadow:0 14px 34px rgba(0,0,0,.34);
  color-scheme:dark
}

* {
  box-sizing:border-box
}

body {
  margin:0;
  font-family:Arial,Tahoma,sans-serif;
  background:var(--bg);
  color:var(--text);
  min-height:100vh
}

body::before {
  content:none
}

body::after {
  content:none
}

a {
  color:inherit
}

header {
  background:var(--card);
  padding:0 32px;
  min-height:68px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
  border-bottom:1px solid var(--border);
  position:sticky;
  top:0;
  z-index:20
}

.brand {
  display:inline-flex;
  align-items:center;
  flex:0 0 auto;
  font-size:31px;
  font-weight:950;
  line-height:0;
  text-decoration:none;
  color:var(--brand)
}

.brand-logo {
  display:block;
  width:178px;
  height:56px;
  object-fit:contain
}

nav {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center
}

.main-nav {
  position:relative;
  justify-content:flex-end
}

.nav-menu {
  position:relative
}

.nav-menu-toggle {
  width:44px;
  height:44px;
  display:grid;
  place-content:center;
  gap:5px;
  cursor:pointer;
  list-style:none;
  border:1px solid var(--border);
  border-radius:8px;
  background:var(--card)
}

.nav-menu-toggle::-webkit-details-marker {
  display:none
}

.nav-menu-toggle span {
  display:block;
  width:20px;
  height:2px;
  border-radius:2px;
  background:var(--brand-dark)
}

.nav-menu[open] .nav-menu-toggle {
  background:var(--brand-soft);
  border-color:#bfe9db
}

.nav-menu-panel {
  position:absolute;
  inset-block-start:calc(100% + 10px);
  inset-inline-end:0;
  z-index:40;
  width:min(320px,88vw);
  display:grid;
  gap:6px;
  padding:10px;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:8px;
  box-shadow:var(--shadow)
}

.nav-menu:not([open]) .nav-menu-panel {
  display:none
}

.nav-menu-panel .nav-link {
  display:block;
  width:100%
}

.nav-menu-panel .nav-logout-form,
.nav-menu-panel .nav-button {
  width:100%
}

.nav-logout-form {
  margin:0
}

.nav-button {
  font:inherit;
  cursor:pointer
}

.nav-link,.lang-link {
  color:var(--text);
  text-decoration:none;
  font-weight:800;
  padding:9px 11px;
  border-radius:8px;
  background:var(--card);
  border:1px solid transparent;
  transition:.15s ease
}

.nav-link:hover,.lang-link:hover {
  background:var(--brand-soft);
  color:var(--brand-dark);
  border-color:#bfe9db
}

.nav-link.active,.lang-link.active {
  background:var(--brand-soft);
  color:var(--brand-dark);
  border-color:#bfe9db;
  box-shadow:none
}

.container {
  width:min(1180px,94%);
  margin:22px auto 60px
}

.hero {
  background:
    linear-gradient(135deg,rgba(17,24,39,.56),rgba(242,106,33,.72) 54%,rgba(129,46,10,.78)),
    url("/static/img/darna_top_background_desktop.png") center 42%/cover no-repeat;
  color:white;
  border-radius:8px;
  padding:42px 36px 96px;
  box-shadow:var(--shadow);
  margin-bottom:-58px;
  border:1px solid rgba(255,255,255,.24)
}

.hero h1 {
  margin:0 0 12px;
  font-size:clamp(32px,4.2vw,54px);
  line-height:1.1
}

.hero p {
  margin:0;
  color:rgba(255,255,255,.94);
  font-size:18px;
  line-height:1.7
}

.hero-home {
  color:#101828
}

.hero-home p {
  color:#1d252c
}

html[data-theme="dark"] .hero-home {
  color:#f3f6f8
}

html[data-theme="dark"] .hero-home p {
  color:#dce5ea
}

.search-box,.form-card,.detail-card {
  background:var(--card);
  border-radius:8px;
  padding:24px;
  box-shadow:var(--shadow);
  margin-bottom:26px;
  border:1px solid var(--border)
}

.search-box {
  position:relative;
  z-index:3
}

.toolbar {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:18px
}

.listing-tabs {
  display:flex;
  gap:8px;
  flex-wrap:wrap
}

.tab {
  display:inline-flex;
  padding:10px 13px;
  border-radius:8px;
  background:#f2f4f7;
  font-weight:900;
  text-decoration:none
}

.tab.active {
  background:var(--brand);
  color:white
}

.grid {
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:14px;
  align-items:end
}

.field-span-2 {
  grid-column:span 2
}

.field-span-3 {
  grid-column:span 3
}

.full-width {
  grid-column:1/-1
}

label {
  display:block;
  margin-bottom:8px;
  font-weight:900;
  color:#344054;
  font-size:14px
}

input,select,textarea {
  width:100%;
  padding:13px 14px;
  border:1px solid var(--border);
  border-radius:8px;
  font-size:15px;
  background:var(--card);
  color:var(--text);
  outline:none
}

select {
  background-color:var(--card)!important;
  color:var(--text)!important;
  color-scheme:light
}

select option,select optgroup {
  background:var(--card)!important;
  color:var(--text)!important
}

input:focus,select:focus,textarea:focus {
  border-color:var(--brand);
  box-shadow:0 0 0 4px rgba(0,168,112,.16)
}

textarea {
  min-height:130px;
  resize:vertical;
  line-height:1.7
}

button,.button {
  border:0;
  background:var(--brand);
  color:white;
  padding:13px 18px;
  border-radius:8px;
  cursor:pointer;
  text-decoration:none;
  display:inline-block;
  font-weight:950;
  font-size:15px;
  box-shadow:0 8px 18px rgba(0,122,85,.18)
}

button:hover,.button:hover {
  background:var(--brand-dark)
}

.search-box button[type="submit"] {
  font-size:19px;
  min-width:110px
}



.button.secondary {
  background:#475467;
  box-shadow:none
}

.button.light,.button.ghost {
  background:#eef2f4;
  color:#101828;
  box-shadow:none
}

.range-pair {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px
}

.area-combo {
  display:grid;
  grid-template-columns:minmax(135px,.8fr) 1fr;
  gap:10px;
  align-items:end
}

.area-combo.no-unit {
  grid-template-columns:1fr
}

.area-combo.no-unit [data-area-unit-section] {
  display:none!important
}

.area-unit-note {
  font-size:12px;
  color:#667085;
  margin-top:6px;
  min-height:18px
}

html[dir="rtl"] .area-combo {
  direction:rtl
}

html[dir="rtl"] .area-combo input,html[dir="rtl"] .area-combo select {
  text-align:right
}

.compact-label {
  font-size:13px;
  color:#667085;
  margin-bottom:6px
}

.auth-grid {
  align-items:start
}

.auth-field {
  align-self:start
}

.auth-hint {
  font-size:12px;
  color:#667085;
  min-height:18px;
  margin-top:6px;
  line-height:1.35
}

.feature-row {
  display:flex;
  gap:10px;
  flex-wrap:wrap
}

.feature-check {
  display:flex;
  gap:8px;
  align-items:center;
  background:#f9fafb;
  border:1px solid #eaecf0;
  padding:10px 12px;
  border-radius:8px;
  font-weight:800
}

.feature-check input {
  width:auto
}

.stats {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
  margin-bottom:22px
}

.stat {
  background:#fff;
  border:1px solid #eaecf0;
  border-radius:8px;
  padding:16px;
  box-shadow:0 6px 18px rgba(16,24,40,.06)
}

.stat b {
  display:block;
  font-size:24px
}

.stat span {
  color:var(--muted);
  font-weight:800
}

.cards {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:22px
}

.card {
  background:#fff;
  border-radius:8px;
  overflow:hidden;
  box-shadow:0 8px 24px rgba(16,24,40,.08);
  border:1px solid #eaecf0;
  display:flex;
  flex-direction:column
}

.image-placeholder {
  height:192px;
  background:linear-gradient(135deg,#e8f7f0,#f8fafb);
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--brand);
  font-size:58px;
  font-weight:900
}

.property-image {
  width:100%;
  height:192px;
  object-fit:cover
}

.card-content {
  padding:20px;
  display:flex;
  flex-direction:column;
  flex:1
}

.card h2 {
  margin:0 0 10px;
  font-size:21px;
  line-height:1.32
}

.meta {
  color:var(--muted);
  margin:6px 0;
  line-height:1.55
}

.price {
  font-size:25px;
  color:#101828;
  font-weight:950;
  margin:14px 0
}

.pill-row {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin:10px 0
}

.pill {
  background:var(--brand-soft);
  color:var(--brand-dark);
  font-weight:950;
  padding:6px 10px;
  border-radius:8px;
  font-size:13px
}

.pill.gray {
  background:#f2f4f7;
  color:#344054
}

.card-actions {
  margin-top:auto;
  display:flex;
  gap:8px;
  flex-wrap:wrap
}

.icon-btn {
  border:1px solid #eaecf0;
  background:#fff;
  color:#101828;
  box-shadow:none;
  padding:12px 14px
}

.fav-on {
  background:#e8f7f0!important;
  color:#007a55!important;
  border-color:#bfe9db!important
}

.detail-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin:18px 0
}

.detail-item {
  background:#f9fafb;
  padding:15px;
  border-radius:8px;
  line-height:1.7;
  border:1px solid #eaecf0
}

.map-box {
  background:#101828;
  color:#fff;
  border-radius:8px;
  padding:22px;
  margin:18px 0;
  display:grid;
  grid-template-columns:1fr auto;
  gap:16px;
  align-items:center
}

.ltr-value {
  direction:ltr;
  unicode-bidi:isolate;
  display:inline-block;
  text-align:left
}

.hidden-file-input {
  position:absolute;
  inline-size:1px;
  block-size:1px;
  opacity:0;
  overflow:hidden;
  clip:rect(0 0 0 0)
}

.file-upload {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  width:100%;
  min-height:48px;
  border:1px dashed var(--brand);
  border-radius:8px;
  background:var(--brand-soft);
  color:var(--brand-dark);
  cursor:pointer;
  font-weight:950;
  text-align:center
}

.file-upload:hover {
  background:#dff3eb
}

.file-upload-icon {
  font-size:20px
}

.notice,.flash {
  padding:15px;
  border-radius:14px;
  margin-bottom:16px;
  line-height:1.6
}

.notice {
  background:#e8f7f0;
  border:1px solid #bfe9db
}

.flash.success {
  background:#ecfdf5;
  border:1px solid #bbf7d0
}

.flash.error {
  background:#fef2f2;
  border:1px solid #fecaca
}

.actions {
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:16px
}

html[dir="rtl"] input,html[dir="rtl"] textarea {
  text-align:right
}

.form-section {
  border:1px solid #eaecf0;
  background:#fcfcfd;
  border-radius:8px;
  padding:18px;
  margin:18px 0
}

.form-section h2 {
  margin:0 0 14px;
  font-size:19px
}

.profile-box {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
  margin:16px 0
}

.profile-item {
  background:#f9fafb;
  border:1px solid #eaecf0;
  border-radius:8px;
  padding:14px
}

.profile-item strong {
  display:block;
  font-size:20px
}

.filter-checks {
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center
}

.small-meta {
  font-size:13px;
  color:#667085;
  margin-top:4px
}

.quick-grid {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
  margin:20px 0
}

.quick-card {
  background:#fff;
  border:1px solid #eaecf0;
  border-radius:8px;
  padding:16px;
  text-decoration:none;
  box-shadow:0 5px 16px rgba(16,24,40,.06);
  font-weight:900
}

.map-list {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px
}

.map-point {
  background:#f9fafb;
  border:1px solid #eaecf0;
  border-radius:12px;
  padding:10px;
  text-decoration:none
}

.form-inline {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:end
}

.danger {
  background:#b42318!important
}

.report-box {
  background:#e8f7f0;
  border:1px solid #bfe9db;
  border-radius:8px;
  padding:16px;
  margin:18px 0
}

.footer-links {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:18px;
  flex-wrap:wrap;
  padding:22px 18px;
  margin:28px auto;
  color:#667085;
  font-weight:800
}

.footer-links a {
  text-decoration:none;
  padding:8px 10px;
  border-radius:8px
}

.footer-links a:hover {
  background:var(--brand-soft);
  color:var(--brand-dark)
}

.empty-state {
  background:#fff;
  border:1px solid #eaecf0;
  border-radius:8px;
  padding:22px;
  box-shadow:0 8px 24px rgba(16,24,40,.06)
}

.empty-state strong {
  display:block;
  font-size:19px;
  margin-bottom:10px
}

.empty-tips {
  margin:10px 0 0;
  padding-inline-start:22px;
  color:#667085;
  line-height:1.8
}




.contact-primary {
  background:#16a34a!important
}

.contact-phone-reveal {
  display:none;
  background:#f9fafb;
  border:1px solid #eaecf0;
  border-radius:14px;
  padding:12px 14px;
  margin-top:8px;
  font-weight:900
}

.listing-preview-card {
  background:#fff;
  border:1px solid #eaecf0;
  border-radius:8px;
  padding:18px;
  box-shadow:0 8px 24px rgba(16,24,40,.08)
}

.preview-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px
}

.preview-item {
  background:#f9fafb;
  border:1px solid #eaecf0;
  border-radius:14px;
  padding:13px
}

.preview-item span {
  display:block;
  color:#667085;
  font-size:12px;
  font-weight:900;
  margin-bottom:4px
}

.preview-item strong {
  font-size:16px
}

.preview-description {
  grid-column:1/-1;
  white-space:pre-wrap;
  line-height:1.7
}

.wizard-progress {
  grid-template-columns:repeat(6,1fr)!important
}

.print-only {
  display:none
}

@media print {
  header,.footer-links,.actions,.search-box,.report-box,.map-box button,.icon-btn {
    display:none!important
  }
  .container {
    width:100%;
    margin:0
  }
  .detail-card {
    box-shadow:none;
    border:0
  }
  .print-only {
    display:block
  }
}

.advanced-filter {
  margin-top:18px;
  border:1px solid #eaecf0;
  background:#fcfcfd;
  border-radius:18px;
  padding:0;
  overflow:hidden
}

.advanced-filter>summary {
  cursor:pointer;
  list-style:none;
  padding:15px 18px;
  font-weight:950;
  color:#344054;
  background:#f9fafb;
  display:flex;
  align-items:center;
  justify-content:space-between
}

.advanced-filter>summary::-webkit-details-marker {
  display:none
}

.advanced-filter>summary:after {
  content:'+';
  font-size:22px;
  color:var(--brand);
  font-weight:950
}

.advanced-filter[open]>summary:after {
  content:'-'
}

.advanced-filter-body {
  padding:18px;
  border-top:1px solid #eaecf0
}

.advanced-features {
  border:1px solid #eaecf0;
  border-radius:8px;
  background:#f9fafb;
  overflow:hidden
}

.advanced-features summary {
  cursor:pointer;
  list-style:none;
  padding:13px 14px;
  color:#344054;
  font-weight:950;
  display:flex;
  align-items:center;
  justify-content:space-between
}

.advanced-features summary::-webkit-details-marker {
  display:none
}

.advanced-features summary:after {
  content:'+';
  color:var(--brand);
  font-size:22px;
  line-height:1
}

.advanced-features[open] summary:after {
  content:'-'
}

.advanced-features .feature-row {
  padding:0 14px 14px
}

.simple-search-grid {
  align-items:end
}

.wizard-progress {
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:10px;
  margin:18px 0 22px
}

.wizard-counter {
  display:inline-flex;
  align-items:center;
  background:#f9fafb;
  border:1px solid #eaecf0;
  border-radius:8px;
  color:#344054;
  font-weight:950;
  padding:7px 12px
}

.wizard-validation {
  background:#fef3f2;
  border:1px solid #fecdca;
  border-radius:14px;
  color:#b42318;
  font-weight:900;
  margin-bottom:14px;
  padding:10px 12px
}

.wizard-dot {
  border:1px solid #eaecf0;
  background:#fff;
  border-radius:8px;
  padding:10px 12px;
  font-weight:950;
  color:#667085;
  text-align:center
}

.wizard-dot.active {
  background:var(--brand);
  color:#fff;
  border-color:var(--brand);
  box-shadow:0 8px 18px rgba(242,106,33,.20)
}

.wizard-step {
  display:none
}

.wizard-step.active {
  display:block
}

.wizard-actions {
  display:flex;
  gap:10px;
  justify-content:space-between;
  align-items:center;
  margin-top:18px
}

.field-hidden-by-type {
  display:none!important
}

@media (max-width: 900px) {
  .wizard-progress {
    grid-template-columns:repeat(3,1fr)
  }
}

@media (max-width: 520px) {
  .wizard-progress {
    grid-template-columns:1fr
  }
}

/* Darna improved158: contextual property features and water-well count. */
.well-count-field {
  border: 1px solid rgba(39, 174, 96, .22);
  border-radius: 16px;
  background: rgba(39, 174, 96, .07);
  padding: 12px;
}
.well-count-field select {
  max-width: 180px;
}
.favorite-error {
  outline: 2px solid rgba(220, 38, 38, .55);
  outline-offset: 2px;
}

/* Darna improved158: clearer listing form sections, price shortcuts and aligned area/unit fields. */
.price-composer {
  border:1px solid rgba(39,174,96,.18);
  border-radius:18px;
  background:linear-gradient(135deg, rgba(39,174,96,.06), rgba(242,106,33,.05));
  padding:14px;
  display:grid;
  grid-template-columns:minmax(140px,1fr) minmax(150px,.85fr);
  gap:12px;
  align-items:end;
}
.price-composer input[type="number"],
.price-composer select {
  min-height:46px;
}
.price-help-text {
  color:#475467;
  font-weight:800;
  line-height:1.7;
  background:rgba(255,255,255,.62);
  border:1px solid rgba(234,236,240,.8);
  border-radius:12px;
  padding:9px 11px;
}
.price-saved-preview {
  display:flex;
  gap:6px;
  align-items:center;
  justify-content:flex-start;
}
.price-saved-preview strong {
  color:var(--brand-dark);
  direction:ltr;
  unicode-bidi:plaintext;
}
.property-description-panel {
  border:1px solid rgba(16,24,40,.08);
  background:#fbfcfd;
  border-radius:18px;
  padding:14px;
}
.property-description-panel textarea {
  min-height:116px;
}
.subsection-title {
  font-size:15px;
  font-weight:950;
  color:#1d2939;
  margin-bottom:10px;
}
.area-combo {
  align-items:start;
}
.area-combo > div {
  display:flex;
  flex-direction:column;
  min-width:0;
}
.area-combo input,
.area-combo select {
  min-height:46px;
}
.area-combo .area-unit-note {
  min-height:18px;
}
@media (max-width: 680px) {
  .price-composer {
    grid-template-columns:1fr;
  }
  .area-combo {
    grid-template-columns:1fr;
  }
}

@media (max-width: 1000px) {
  .cards {
    grid-template-columns:repeat(2,1fr)
  }
  .grid {
    grid-template-columns:repeat(2,1fr)
  }
  .field-span-2,.field-span-3 {
    grid-column:span 1
  }
  .stats {
    grid-template-columns:repeat(2,1fr)
  }
}

@media (max-width: 640px) {
  .wizard-progress {
    grid-template-columns:1fr 1fr
  }
  .wizard-dot {
    text-align:start
  }
  header {
    align-items:flex-start;
    padding:16px 20px
  }
  .cards,.grid,.detail-grid,.stats {
    grid-template-columns:1fr
  }
  .full-width {
    grid-column:span 1
  }
  .hero {
    border-radius:20px;
    padding:30px 22px 84px
  }
}

/* Darna improved158: card, detail and feedback UI refinements */

.card {
  position:relative;
  transition:transform .18s ease,box-shadow .18s ease
}

.card:hover {
  transform:translateY(-3px);
  box-shadow:0 14px 34px rgba(16,24,40,.14)
}

.card-media {
  position:relative;
  background:var(--brand-soft)
}

.card-badges {
  position:absolute;
  top:12px;
  inset-inline-start:12px;
  display:flex;
  gap:7px;
  flex-wrap:wrap;
  z-index:2
}

.card-badge {
  background:rgba(255,255,255,.94);
  color:#101828;
  border:1px solid rgba(255,255,255,.7);
  box-shadow:0 4px 14px rgba(16,24,40,.12);
  padding:6px 10px;
  border-radius:8px;
  font-weight:950;
  font-size:12px
}

.card-badge.verified {
  background:#ecfdf3;
  color:#027a48;
  border-color:#abefc6
}

.card-badge.status {
  background:#fffaeb;
  color:#b54708;
  border-color:#fedf89
}

.card h2 {
  font-size:20px;
  margin-bottom:12px
}

.card-price-line {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  margin:12px 0
}

.card-price-main {
  font-size:26px;
  font-weight:950;
  color:#101828;
  line-height:1.1
}

.card-location {
  font-weight:900;
  color:#344054;
  line-height:1.55
}

.card-summary-row {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin:11px 0
}

.summary-chip {
  background:#f9fafb;
  border:1px solid #eaecf0;
  color:#344054;
  border-radius:8px;
  padding:7px 10px;
  font-weight:800;
  font-size:13px
}

.provider-mini {
  margin-top:10px;
  border-top:1px solid #eaecf0;
  padding-top:12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  color:#667085;
  font-size:13px
}

.provider-mini a {
  font-weight:900;
  color:var(--brand-dark);
  text-decoration:none
}

.provider-mini .trust-dot {
  display:inline-flex;
  align-items:center;
  gap:5px;
  font-weight:900;
  color:#027a48
}

.detail-hero {
  display:grid;
  grid-template-columns:1.5fr .9fr;
  gap:20px;
  align-items:start
}

.detail-title-card {
  background:#fff;
  border:1px solid #eaecf0;
  border-radius:8px;
  padding:18px
}

.provider-trust-card {
  background:#f9fafb;
  border:1px solid #eaecf0;
  border-radius:8px;
  padding:18px;
  box-shadow:0 6px 18px rgba(16,24,40,.05)
}

.provider-trust-card h2 {
  margin-top:0;
  font-size:18px
}

.trust-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px
}

.trust-item {
  background:#fff;
  border:1px solid #eaecf0;
  border-radius:14px;
  padding:10px
}

.trust-item span {
  display:block;
  color:#667085;
  font-size:12px;
  font-weight:800
}

.trust-item strong {
  display:block;
  margin-top:3px
}

.trust-badge {
  display:inline-flex;
  align-items:center;
  gap:6px;
  background:#ecfdf3;
  color:#027a48;
  border:1px solid #abefc6;
  border-radius:8px;
  padding:7px 10px;
  font-weight:950
}

.trust-badge.muted {
  background:#f2f4f7;
  color:#667085;
  border-color:#eaecf0
}

.flash.success {
  border-inline-start:6px solid #12b76a
}

.flash.error {
  border-inline-start:6px solid #f04438
}

.form-section h2 {
  display:flex;
  align-items:center;
  gap:8px
}

.form-section h2:before {
  content:"";
  width:10px;
  height:10px;
  border-radius:999px;
  background:var(--brand);
  display:inline-block
}

.search-box button[type="submit"] {
  font-size:19px!important;
  min-width:110px!important
}

.search-box input[name="q"] {
  height:auto!important;
  min-height:0!important;
  font-size:15px!important;
  padding:13px 14px!important;
  width:100%!important;
  max-width:100%!important
}

@media (max-width: 800px) {
  .detail-hero {
    grid-template-columns:1fr
  }
  .card-price-line {
    display:block
  }
  .provider-mini {
    display:block
  }
  .trust-grid {
    grid-template-columns:1fr
  }
}

/* Darna improved158: mobile usability */

/* Darna improved158: mobile usability, UI stability, and footer spacing */

.mobile-ui-contract {
  display:none
}

.admin-table {
  width:100%;
  border-collapse:collapse
}

.admin-table th,.admin-table td {
  vertical-align:top
}

@media (max-width: 760px) {
  body {
    -webkit-text-size-adjust:100%
  }
  header {
    position:static;
    padding:14px 16px;
    gap:12px
  }
  .brand {
    font-size:28px
  }
  .brand-logo {
    width:150px;
    height:48px
  }
  .main-nav,.lang {
    width:100%;
    display:flex;
    flex-wrap:nowrap;
    overflow-x:auto;
    gap:8px;
    padding-bottom:4px;
    scrollbar-width:thin
  }
  .main-nav {
    width:auto;
    margin-inline-start:auto;
    overflow:visible;
    padding-bottom:0
  }
  .nav-menu-panel {
    inset-inline-end:0
  }
  .nav-link,.lang-link {
    white-space:nowrap;
    padding:10px 12px;
    font-size:14px
  }
  .container {
    width:96%;
    margin:14px auto 76px
  }
  .hero {
    border-radius:18px;
    padding:26px 18px 78px
  }
  .hero h1 {
    font-size:30px
  }
  .hero p {
    font-size:16px
  }
  .search-box,.form-card,.detail-card {
    padding:16px;
    border-radius:18px
  }
  .simple-search-grid,.grid {
    grid-template-columns:1fr!important
  }
  .field-span-2,.field-span-3,.full-width {
    grid-column:1/-1!important
  }
  input,select,textarea {
    min-height:46px;
    font-size:16px
  }
  .search-box input[name="q"] {
    width:100%!important;
    max-width:100%!important
  }
  .actions,.card-actions,.wizard-actions {
    flex-direction:column;
    align-items:stretch
  }
  .actions .button,.actions button,.card-actions .button,.card-actions button,.wizard-actions .button,.wizard-actions button {
    width:100%;
    text-align:center
  }
  .listing-tabs {
    width:100%;
    overflow-x:auto;
    flex-wrap:nowrap;
    padding-bottom:4px
  }
  .tab {
    white-space:nowrap
  }
  .cards {
    grid-template-columns:1fr!important;
    gap:16px
  }
  .card {
    border-radius:18px
  }
  .property-image,.image-placeholder {
    height:220px
  }
  .detail-hero {
    grid-template-columns:1fr!important
  }
  .trust-grid,.profile-box {
    grid-template-columns:1fr!important
  }
  .gallery {
    grid-template-columns:1fr!important
  }
  .gallery img {
    height:auto;
    max-height:360px
  }
  .admin-table {
    display:block;
    overflow-x:auto;
    white-space:nowrap
  }
  .admin-actions {
    display:flex;
    flex-direction:column;
    gap:8px
  }
  .admin-actions form,.admin-actions button {
    width:100%
  }
  .footer-links {
    display:flex;
    flex-direction:column;
    gap:8px;
    padding:18px
  }
  .report-box .grid {
    grid-template-columns:1fr!important
  }
}

@media (max-width: 420px) {
  .hero h1 {
    font-size:26px
  }
  .card-price-main {
    font-size:22px
  }
  .wizard-progress {
    grid-template-columns:1fr
  }
  .wizard-actions {
    gap:8px
  }
  .nav-link,.lang-link {
    font-size:13px
  }
}

.inline-form {
  display:inline
}

.contact-phone-reveal[hidden] {
  display:none
}

.advanced-filter-actions {
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-start;
  margin-top:18px;
  padding-top:18px;
  border-top:1px solid #eaecf0
}

.advanced-filter-actions button,.advanced-filter-actions .button {
  min-width:190px;
  text-align:center
}

.advanced-filter-actions .button.light {
  display:inline-flex;
  align-items:center;
  justify-content:center
}

@media (max-width: 760px) {
  .advanced-filter-actions {
    flex-direction:column;
    align-items:stretch
  }
  .advanced-filter-actions button,.advanced-filter-actions .button {
    width:100%;
    min-width:0
  }
}

.pagination-controls {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  margin:24px 0;
}

.pagination-status {
  font-weight:800;
  color:#344054;
}

.password-reset-card .meta {
  max-width:720px;
}

.dev-link-box {
  margin-top:18px;
  padding:14px 16px;
  border:1px solid #bfe9db;
  border-radius:8px;
  background:#e8f7f0;
  display:grid;
  gap:8px;
  overflow-wrap:anywhere;
}

.dev-link-box a {
  color:var(--brand-dark);
  font-weight:800;
}

.password-input-wrap {
  position:relative;
  display:block;
}

.password-input-wrap input {
  padding-inline-end:54px;
}

.password-toggle {
  position:absolute;
  inset-block:6px;
  inset-inline-end:6px;
  width:42px;
  min-width:0;
  padding:0;
  border-radius:7px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:transparent;
  color:#667085;
  border:1px solid transparent;
  box-shadow:none;
}

.password-toggle:hover,
.password-toggle:focus {
  background:#f2f4f7;
  color:var(--brand-dark);
  box-shadow:none;
}

.password-toggle svg {
  width:22px;
  height:22px;
  fill:currentColor;
  pointer-events:none;
}

html[data-theme="dark"] .password-toggle:hover,
html[data-theme="dark"] .password-toggle:focus {
  background:#1f2937;
}

/* Darna improved158: refined search, cards, upload, admin dashboard and mobile UI */

.search-panel {
  max-width:1040px;
  margin-inline:auto;
  padding:0;
  background:#fff;
  border:1px solid var(--border);
  box-shadow:0 14px 34px rgba(29,37,44,.12)
}

.search-panel-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  margin:0;
  border-bottom:1px solid var(--border);
  padding:22px 24px 16px
}

.search-panel-heading h2 {
  margin:4px 0 0;
  font-size:clamp(22px,2.2vw,30px);
  line-height:1.2
}

.search-panel-heading p {
  margin:0;
  color:#667085;
  line-height:1.7;
  max-width:420px;
  font-weight:700
}

.section-eyebrow {
  display:inline-flex;
  color:var(--brand-dark);
  background:var(--brand-soft);
  border:1px solid #bfe9db;
  border-radius:8px;
  padding:5px 10px;
  font-weight:950;
  font-size:12px
}

.search-toolbar {
  margin:0;
  padding:0 24px;
  border-bottom:1px solid var(--border)
}

.search-priority-row {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:14px;
  color:#344054
}

.search-priority-row span {
  background:#f9fafb;
  border:1px solid #eaecf0;
  border-radius:8px;
  font-size:12px;
  font-weight:900;
  padding:6px 10px
}

.simple-search-grid {
  grid-template-columns:minmax(260px,2.1fr) minmax(220px,1.35fr) minmax(160px,.85fr) minmax(170px,.9fr) auto;
  gap:14px;
  padding:22px 24px 0
}

.simple-search-grid .actions.full-width {
  grid-column:auto!important;
  align-self:end;
  display:flex;
  gap:10px;
  white-space:nowrap
}

.advanced-filter {
  box-shadow:inset 0 1px 0 rgba(255,255,255,.75)
}

.advanced-filter summary {
  gap:12px
}

.advanced-filter summary span {
  font-size:16px
}

.advanced-filter summary small {
  font-size:12px;
  color:#667085;
  font-weight:800
}

.advanced-filter-body {
  background:#fff
}

.advanced-filter-actions {
  background:#e8f7f0;
  border:1px solid #bfe9db;
  border-radius:8px;
  padding:14px;
  margin-top:20px;
  justify-content:space-between
}

.advanced-filter-actions>div {
  display:flex;
  flex-direction:column;
  gap:3px;
  color:#344054
}

.advanced-filter-actions>div strong {
  font-size:15px;
  color:var(--brand-dark)
}

.advanced-filter-actions>div span {
  font-size:12px;
  font-weight:800;
  color:#667085
}

.property-results-grid {
  align-items:stretch
}

.listing-card {
  border:1px solid #e4e7ec;
  background:#fff;
  box-shadow:0 8px 20px rgba(29,37,44,.08)
}

.listing-card .property-image,.listing-card .image-placeholder {
  height:238px
}

.property-card-modern .card-content {
  gap:7px
}

.card-topline {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom:2px
}

.card-topline span {
  background:#f2f4f7;
  color:#344054;
  border-radius:8px;
  padding:5px 9px;
  font-size:12px;
  font-weight:950
}

.card-price-main {
  letter-spacing:0
}

.card-location {
  font-size:14px
}

.card-summary-row {
  padding:10px;
  border-radius:14px;
  background:#f9fafb;
  border:1px solid #eaecf0
}

.summary-chip {
  background:#fff;
  border-color:#d0d5dd;
  border-radius:8px
}

.provider-mini {
  padding-top:10px;
  border-top:1px solid #f2f4f7;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center
}

.provider-mini span {
  color:#667085;
  font-size:12px;
  font-weight:900
}

.card-actions {
  padding-top:8px
}

.card-badge.media-count {
  background:#eef4ff;
  color:#3538cd
}

.card-badge.phone {
  background:#ecfdf3;
  color:#027a48
}

.save-search-panel {
  margin-top:16px;
  padding:14px;
  border:1px solid #eaecf0;
  background:#f9fafb;
  border-radius:8px;
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between
}

.save-search-panel>div {
  display:flex;
  flex-direction:column;
  gap:4px
}

.save-search-panel span {
  color:#667085;
  font-size:13px;
  font-weight:800
}

.upload-panel {
  border:1px dashed var(--brand);
  border-radius:8px;
  background:linear-gradient(180deg,#e8f7f0,#fff);
  padding:18px;
  display:grid;
  gap:14px
}

.upload-copy {
  display:flex;
  flex-direction:column;
  gap:4px;
  color:#344054
}

.upload-copy strong {
  font-size:18px;
  color:var(--brand-dark)
}

.upload-copy span {
  color:#667085;
  font-weight:800;
  line-height:1.6
}

.upload-file-label {
  margin:0;
  background:#fff;
  border:1px solid #bfe9db;
  box-shadow:0 8px 22px rgba(0,122,85,.10)
}

.upload-help-list {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  color:#667085;
  font-size:13px;
  font-weight:800
}

.upload-help-list span {
  background:#fff;
  border:1px solid #eaecf0;
  border-radius:8px;
  padding:6px 10px
}

.upload-preview-header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  font-weight:950;
  color:#344054
}

.upload-preview-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(112px,1fr));
  gap:10px;
  min-height:72px
}

.upload-preview-empty {
  grid-column:1/-1;
  border:1px solid #eaecf0;
  border-radius:16px;
  background:#fff;
  color:#667085;
  padding:18px;
  text-align:center;
  font-weight:800
}

.upload-preview-item {
  position:relative;
  border-radius:8px;
  overflow:hidden;
  border:1px solid #eaecf0;
  background:#fff;
  box-shadow:0 5px 14px rgba(16,24,40,.08)
}

.upload-preview-item.is-primary {
  border-color:var(--brand)
}

.upload-primary-badge {
  position:absolute;
  inset-block-start:8px;
  inset-inline-start:8px;
  z-index:1;
  background:#e8f7f0;
  border:1px solid #bfe9db;
  border-radius:8px;
  color:var(--brand-dark);
  font-size:11px;
  padding:4px 8px
}

.upload-preview-item img {
  width:100%;
  height:92px;
  object-fit:cover;
  display:block
}

.upload-preview-item span {
  display:block;
  padding:7px 8px;
  font-size:11px;
  font-weight:900;
  color:#344054;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis
}

.admin-dashboard {
  overflow:hidden
}

.admin-stat-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin:18px 0
}

.admin-stat-card {
  background:#f9fafb;
  border:1px solid #eaecf0;
  border-radius:18px;
  padding:16px;
  box-shadow:0 5px 16px rgba(16,24,40,.05)
}

.admin-stat-card span {
  display:block;
  color:#667085;
  font-weight:900;
  font-size:12px;
  margin-bottom:6px
}

.admin-stat-card strong {
  display:block;
  font-size:30px;
  line-height:1;
  color:#101828
}

.admin-stat-card.pending {
  background:#fffaeb;
  border-color:#fedf89
}

.admin-stat-card.active {
  background:#ecfdf3;
  border-color:#abefc6
}

.admin-stat-card.deleted {
  background:#fef3f2;
  border-color:#fecdca
}

.admin-quick-actions {
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  background:#f9fafb;
  border:1px solid #eaecf0;
  border-radius:18px;
  padding:12px;
  margin-bottom:16px
}

.admin-quick-actions strong {
  margin-inline-end:auto;
  color:#344054
}

.admin-filter-tabs {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin:8px 0 16px
}

.featured-gallery {
  display:grid;
  gap:12px;
  margin:12px 0 18px
}

.featured-gallery-main {
  width:100%;
  aspect-ratio:16/9;
  object-fit:cover;
  border-radius:18px;
  border:1px solid #eaecf0
}

.gallery-thumbs {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(96px,1fr));
  gap:8px
}

.gallery-thumbs img {
  width:100%;
  aspect-ratio:1;
  object-fit:cover;
  border-radius:12px;
  border:1px solid #eaecf0
}

@media (max-width: 1100px) {
  .simple-search-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .simple-search-grid .actions.full-width {
    grid-column:1/-1!important
  }
  .admin-stat-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
}

@media (max-width: 760px) {
  .search-panel {
    padding:16px;
    max-width:none
  }
  html,
  body {
    max-width:100%;
    overflow-x:hidden
  }
  .search-panel-heading {
    align-items:flex-start;
    flex-direction:column
  }
  .search-panel-heading p {
    max-width:none
  }
  .simple-search-grid {
    grid-template-columns:1fr!important
  }
  .advanced-filter summary {
    align-items:flex-start;
    flex-direction:column
  }
  .advanced-filter-actions {
    align-items:stretch
  }
  .advanced-filter-actions>div {
    margin-bottom:4px
  }
  .listing-card .property-image,.listing-card .image-placeholder {
    height:210px
  }
  .card-summary-row {
    display:grid;
    grid-template-columns:1fr 1fr
  }
  .upload-preview-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .admin-stat-grid {
    grid-template-columns:1fr
  }
  .admin-quick-actions {
    align-items:stretch;
    flex-direction:column
  }
  .admin-quick-actions strong {
    margin-inline-end:0
  }
  .admin-quick-actions .button {
    width:100%;
    text-align:center
  }
  .save-search-panel {
    align-items:stretch;
    flex-direction:column
  }
  .home-trust-disclosure {
    margin:16px 0 0
  }
  .home-trust-disclosure .hero-trust-row {
    grid-template-columns:1fr
  }
  .save-search-panel .button {
    text-align:center
  }
  .admin-table {
    border:0
  }
  .admin-table thead {
    display:none
  }
  .admin-table tbody,.admin-table tr,.admin-table td {
    display:block;
    width:100%;
    white-space:normal
  }
  .admin-table tr {
    border:1px solid #eaecf0;
    border-radius:16px;
    margin-bottom:12px;
    padding:10px;
    background:#fff
  }
  .admin-table td {
    border:0;
    padding:7px 4px
  }
}

@media (max-width: 420px) {
  .card-summary-row {
    grid-template-columns:1fr
  }
  .upload-preview-grid {
    grid-template-columns:1fr
  }
  .upload-preview-item img {
    height:140px
  }
  .card-actions {
    gap:10px
  }
  .card-actions form,.card-actions button,.card-actions .button {
    width:100%
  }
}

/* Darna improved158: professional Arabic image picker and cleaner feature chips. */
.hidden-file,
.hidden-file-input {
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important;
}

.upload-file-label {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  cursor:pointer;
}

.upload-file-label span {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:8px 16px;
  border-radius:12px;
  background:linear-gradient(135deg,var(--brand),#0b8f68);
  color:#fff;
  font-weight:950;
  box-shadow:0 10px 22px rgba(0,168,112,.18);
}

.upload-file-label strong {
  color:#344054;
  font-size:13px;
  font-weight:900;
  text-align:end;
}

.feature-check {
  min-height:44px;
  border-radius:12px;
  transition:border-color .15s ease, background .15s ease, transform .15s ease;
}

.feature-check:hover {
  border-color:#bfe9db;
  background:#f1fbf7;
}

.feature-check input {
  width:18px;
  height:18px;
  accent-color:var(--brand);
}

[data-favorite-button] {
  transition:background .15s ease, color .15s ease, border-color .15s ease, opacity .15s ease;
}

[data-favorite-button]:disabled {
  opacity:.65;
  cursor:progress;
}

.favorite-removed-pending {
  opacity:0;
  transform:scale(.98);
  transition:opacity .18s ease, transform .18s ease;
}

html[data-theme="dark"] .upload-file-label {
  background:#142027;
  border-color:#315b52;
  box-shadow:0 10px 22px rgba(0,0,0,.22);
}

html[data-theme="dark"] .upload-file-label strong {
  color:#d6dfdc;
}

html[data-theme="dark"] .upload-file-label span {
  background:linear-gradient(135deg,#267b64,#1e5f51);
  color:#e2fff5;
}

html[data-theme="dark"] .feature-check:hover {
  border-color:#3d796c;
  background:#17342e;
}

/* Darna improved158: stronger home, detail, trust and admin UI */
.hero-home {
  display:grid;
  grid-template-columns:1fr;
  gap:24px;
  align-items:center;
  padding:54px 38px 104px;
  min-height:360px;
  background:
    linear-gradient(90deg,rgba(255,255,255,.94),rgba(255,255,255,.76) 46%,rgba(255,255,255,.45)),
    url("/static/img/darna_top_background_desktop.png") center 45%/cover no-repeat
}

.hero-copy {
  max-width:760px
}

.hero-eyebrow {
  color:#fff;
  background:rgba(255,255,255,.16);
  border-color:rgba(255,255,255,.28)
}

.hero-actions {
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:22px
}

.hero-actions .button.light {
  background:rgba(255,255,255,.92);
  color:#101828
}

.contact-info-hint {
  margin-top:8px;
  padding:10px 12px;
  border:1px solid #bfe9db;
  border-radius:8px;
  background:#e8f7f0;
  color:var(--brand-dark);
  font-size:13px;
  font-weight:900;
  line-height:1.55
}

.hero-trust-row {
  display:grid;
  gap:12px;
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.28);
  border-radius:8px;
  padding:16px;
  backdrop-filter:blur(10px)
}

.hero-trust-row div {
  background:rgba(255,255,255,.92);
  color:#101828;
  border-radius:8px;
  padding:14px;
  box-shadow:0 8px 24px rgba(16,24,40,.12)
}

.hero-trust-row strong,
.hero-trust-row span {
  display:block
}

.hero-trust-row strong {
  font-size:17px;
  margin-bottom:4px
}

.hero-trust-row span {
  color:#667085;
  line-height:1.55;
  font-weight:800;
  font-size:13px
}

.home-trust-disclosure {
  margin:16px 24px 0;
  border:1px solid var(--border);
  border-radius:8px;
  background:#f9fafb;
  overflow:hidden
}

.home-trust-disclosure summary {
  cursor:pointer;
  list-style:none;
  padding:13px 16px;
  color:#344054;
  font-weight:950;
  display:flex;
  align-items:center;
  justify-content:space-between
}

.home-trust-disclosure summary::-webkit-details-marker {
  display:none
}

.home-trust-disclosure summary:after {
  content:'+';
  color:var(--brand);
  font-size:22px;
  line-height:1
}

.home-trust-disclosure[open] summary:after {
  content:'-'
}

.home-trust-disclosure .hero-trust-row {
  grid-template-columns:repeat(3,minmax(0,1fr));
  background:#fff;
  border:0;
  border-top:1px solid var(--border);
  border-radius:0;
  padding:14px;
  backdrop-filter:none
}

.home-trust-disclosure .hero-trust-row div {
  background:#f9fafb;
  border:1px solid #eaecf0;
  box-shadow:none
}

.home-section-card {
  border-color:var(--border)
}

.section-title-row {
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:16px;
  margin-bottom:16px
}

.section-title-row h2 {
  margin:0
}

.section-title-row span {
  color:#667085;
  font-weight:800;
  line-height:1.6
}

.latest-cards .listing-card .property-image,
.latest-cards .listing-card .image-placeholder {
  height:210px
}

.provider-mini.trust-level-excellent {
  background:#ecfdf3;
  border:1px solid #abefc6;
  border-radius:8px;
  padding:10px
}

.provider-mini.trust-level-good {
  background:#f0f9ff;
  border:1px solid #bae6fd;
  border-radius:8px;
  padding:10px
}

.provider-mini.trust-level-basic,
.provider-mini.trust-level-new {
  background:#fffaeb;
  border:1px solid #fedf89;
  border-radius:8px;
  padding:10px
}

.detail-page {
  display:grid;
  gap:20px
}

.detail-page .detail-hero {
  margin-bottom:0
}

.detail-title-card h1 {
  margin:10px 0;
  font-size:clamp(28px,3.4vw,46px);
  line-height:1.15
}

.detail-address {
  font-size:16px
}

.detail-side-card {
  background:linear-gradient(180deg,#e8f7f0,#fff);
  border:1px solid #bfe9db;
  border-radius:8px;
  padding:20px;
  box-shadow:0 10px 26px rgba(0,122,85,.12);
  position:sticky;
  top:94px
}

.detail-price {
  margin:10px 0 4px;
  font-size:clamp(28px,3vw,42px)
}

.detail-side-actions {
  display:grid;
  gap:10px;
  margin-top:16px
}

.detail-side-actions .button {
  text-align:center
}

.detail-highlight-strip {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(140px,1fr));
  gap:10px;
  margin-top:18px
}

.detail-highlight-strip div {
  background:#f9fafb;
  border:1px solid #eaecf0;
  border-radius:16px;
  padding:12px
}

.detail-highlight-strip span,
.trust-score-ring span {
  display:block;
  color:#667085;
  font-size:12px;
  font-weight:900
}

.detail-highlight-strip strong {
  display:block;
  margin-top:4px;
  font-size:18px
}

.trust-header-row {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  margin-bottom:12px
}

.trust-header-row h2,
.admin-insight-card h2 {
  margin:0 0 6px
}

.trust-score-ring {
  width:118px;
  min-width:118px;
  aspect-ratio:1;
  border-radius:8px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  text-align:center;
  background:#fff;
  border:9px solid #bfe9db;
  box-shadow:0 8px 20px rgba(16,24,40,.08)
}

.trust-score-ring strong {
  font-size:26px;
  line-height:1;
  color:#101828
}

.provider-trust-card.trust-level-excellent .trust-score-ring {
  border-color:#12b76a
}

.provider-trust-card.trust-level-good .trust-score-ring {
  border-color:#38bdf8
}

.provider-trust-card.trust-level-basic .trust-score-ring,
.provider-trust-card.trust-level-new .trust-score-ring {
  border-color:#f79009
}

.detail-info-grid {
  background:#fff;
  border:1px solid #eaecf0;
  border-radius:22px;
  padding:16px
}


.admin-stat-grid-extended {
  grid-template-columns:repeat(7,minmax(0,1fr))
}

.admin-stat-card.reports {
  background:#fff1f3;
  border-color:#fecdd3
}

.admin-stat-card.today {
  background:#eef4ff;
  border-color:#c7d7fe
}

.admin-stat-card.users {
  background:#f0fdf4;
  border-color:#bbf7d0
}

.admin-insight-grid {
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:14px;
  margin:16px 0
}

.admin-insight-card {
  background:#fff;
  border:1px solid #eaecf0;
  border-radius:20px;
  padding:16px;
  box-shadow:0 8px 22px rgba(16,24,40,.06)
}

.admin-city-list,
.risk-mini-list {
  display:grid;
  gap:8px
}

.admin-city-row,
.risk-mini-list span {
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center;
  background:#f9fafb;
  border:1px solid #eaecf0;
  border-radius:14px;
  padding:10px 12px;
  text-decoration:none;
  font-weight:900
}

.admin-table td[data-label]::before {
  content:"";
  display:none
}

html[data-theme="dark"] .hero-home {
  background:
    linear-gradient(90deg,rgba(8,15,18,.92),rgba(8,15,18,.74) 46%,rgba(0,122,85,.34)),
    url("/static/img/darna_top_background_desktop.png") center 45%/cover no-repeat
}

.ramadan-season .hero-home {
  background:
    linear-gradient(90deg,rgba(255,255,255,.94),rgba(255,255,255,.76) 46%,rgba(255,255,255,.45)),
    url("/static/img/darna_top_background_desktop.png") center 45%/cover no-repeat
}

html[data-theme="dark"] .ramadan-season .hero-home {
  background:
    linear-gradient(90deg,rgba(8,15,18,.92),rgba(8,15,18,.74) 46%,rgba(0,122,85,.34)),
    url("/static/img/darna_top_background_desktop.png") center 45%/cover no-repeat
}

html[data-theme="dark"] .search-panel,
html[data-theme="dark"] .search-panel-heading,
html[data-theme="dark"] .advanced-filter-body,
html[data-theme="dark"] .detail-card,
html[data-theme="dark"] .form-card,
html[data-theme="dark"] .card,
html[data-theme="dark"] .listing-card,
html[data-theme="dark"] .empty-state,
html[data-theme="dark"] .contact-panel,
html[data-theme="dark"] .listing-preview-card,
html[data-theme="dark"] .admin-insight-card {
  background:var(--card);
  color:var(--text);
  border-color:var(--border)
}

html[data-theme="dark"] .search-panel-heading p,
html[data-theme="dark"] .meta,
html[data-theme="dark"] .section-title-row span,
html[data-theme="dark"] .advanced-filter-actions>div span,
html[data-theme="dark"] .hero-trust-row span,
html[data-theme="dark"] .provider-mini span,
html[data-theme="dark"] .small-meta {
  color:var(--muted)
}

html[data-theme="dark"] .advanced-filter,
html[data-theme="dark"] .advanced-filter summary,
html[data-theme="dark"] .advanced-features,
html[data-theme="dark"] .home-trust-disclosure,
html[data-theme="dark"] .home-trust-disclosure .hero-trust-row,
html[data-theme="dark"] .save-search-panel,
html[data-theme="dark"] .detail-info-grid,
html[data-theme="dark"] .contact-info-hint,
html[data-theme="dark"] .admin-quick-actions,
html[data-theme="dark"] .admin-city-row,
html[data-theme="dark"] .risk-mini-list span,
html[data-theme="dark"] .preview-item,
html[data-theme="dark"] .card-summary-row {
  background:#131a1f;
  border-color:var(--border);
  color:var(--text)
}

html[data-theme="dark"] .stat,
html[data-theme="dark"] .detail-item,
html[data-theme="dark"] .trust-item,
html[data-theme="dark"] .hero-trust-row div,
html[data-theme="dark"] .home-trust-disclosure .hero-trust-row div,
html[data-theme="dark"] .feature-check,
html[data-theme="dark"] .quick-card,
html[data-theme="dark"] .card-topline span,
html[data-theme="dark"] .summary-chip,
html[data-theme="dark"] .pill.gray {
  background:#1d252c;
  border-color:var(--border);
  color:var(--text)
}

html[data-theme="dark"] .button.light,
html[data-theme="dark"] .button.ghost,
html[data-theme="dark"] .icon-btn,
html[data-theme="dark"] .tab {
  background:#1d252c;
  color:var(--text);
  border-color:var(--border)
}

html[data-theme="dark"] .tab.active,
html[data-theme="dark"] button,
html[data-theme="dark"] .button {
  color:#07120f
}

@media (max-width: 1100px) {
  .hero-home,
  .detail-hero,
  .admin-insight-grid {
    grid-template-columns:1fr
  }
  .detail-side-card {
    position:static
  }
  .admin-stat-grid-extended {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
}

@media (max-width: 760px) {
  .hero-home {
    padding:28px 18px 88px;
    min-height:0
  }
  .hero-actions,
  .detail-side-actions,
  .contact-buttons,
  .detail-actions {
    display:grid;
    grid-template-columns:1fr
  }
  .hero-actions .button,
  .detail-side-actions .button,
  .contact-buttons .button,
  .detail-actions .button,
  .detail-actions form,
  .detail-actions button {
    width:100%;
    text-align:center
  }
  .section-title-row,
  .trust-header-row {
    align-items:flex-start;
    flex-direction:column
  }
  .trust-score-ring {
    width:100%;
    min-width:0;
    aspect-ratio:auto;
    border-radius:18px;
    padding:14px
  }
  .detail-highlight-strip {
    grid-template-columns:1fr 1fr
  }
  .admin-stat-grid-extended {
    grid-template-columns:1fr
  }
  .admin-table td[data-label]::before {
    content:attr(data-label) ": ";
    display:inline;
    color:#667085;
    font-weight:950
  }
}

@media (max-width: 420px) {
  .detail-highlight-strip {
    grid-template-columns:1fr
  }
}

.property-card-modern .card-media {
  position:relative
}

.property-card-modern .image-placeholder {
  flex-direction:column;
  gap:8px;
  background:radial-gradient(circle at 50% 30%,rgba(36,196,142,.16),transparent 34%),
    linear-gradient(135deg,#ecfdf3,#f8fafc);
  color:var(--brand-dark);
  text-align:center;
  padding:24px
}

.placeholder-icon {
  width:82px;
  height:82px;
  stroke:currentColor;
  stroke-width:3;
  fill:none;
  stroke-linecap:round;
  stroke-linejoin:round;
  opacity:.96
}

.placeholder-land .placeholder-icon {
  width:92px
}

.image-placeholder-title {
  font-size:20px;
  font-weight:950;
  line-height:1.2
}

.image-placeholder-subtitle {
  color:#667085;
  font-size:13px;
  font-weight:900
}

.property-card-modern .card-badges {
  position:absolute;
  top:14px;
  right:14px;
  left:14px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
  z-index:2
}

.property-card-modern .card-badge {
  padding:7px 11px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.75);
  background:rgba(255,255,255,.92);
  color:#101828;
  box-shadow:0 8px 20px rgba(16,24,40,.10);
  font-size:12px;
  font-weight:950;
  backdrop-filter:blur(8px)
}

.property-card-modern .primary-badge {
  background:#ecfdf3;
  color:#027a48
}

.property-card-modern .card-topline {
  margin-top:-1px
}

.property-card-modern h2 {
  margin:0;
  min-height:2.55em;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden
}

.property-card-modern .card-location {
  color:#344054;
  font-size:15px;
  font-weight:950
}

.property-card-modern .card-address {
  min-height:1.45em;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis
}

.compact-price-line {
  margin-top:2px
}

.property-card-modern .card-price-main {
  color:#101828;
  font-size:24px;
  font-weight:950;
  line-height:1.25
}

.property-card-modern .card-summary-row {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  padding:10px
}

.card-actions-user {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center
}

.card-actions-user .button,
.card-actions-user .icon-btn {
  min-height:38px;
  border-radius:12px;
  padding:9px 12px;
  font-weight:950
}

.contact-button-card {
  border-color:#abefc6!important;
  background:#ecfdf3!important;
  color:#027a48!important
}

.favorite-card-btn.fav-on {
  background:#fff1f3;
  color:#c01048;
  border-color:#fecdd6
}

.card-phone-reveal {
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  margin-top:8px;
  padding:10px 12px;
  border:1px solid #abefc6;
  border-radius:12px;
  background:#ecfdf3;
  color:#027a48;
  font-weight:950
}

.card-phone-reveal a {
  padding:6px 10px;
  border-radius:999px;
  background:#fff;
  color:#027a48;
  text-decoration:none;
  border:1px solid #abefc6
}

/* improved167: admin users and activity overview */
.admin-users-toolbar .toolbar-actions,
.admin-user-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  align-items: center;
}
.admin-user-search {
  display: grid;
  grid-template-columns: minmax(180px, 1.5fr) minmax(150px, .8fr) minmax(150px, .8fr) auto auto;
  gap: .75rem;
  align-items: end;
  margin: 1rem 0 1.25rem;
  padding: 1rem;
  border: 1px solid var(--border-color, rgba(148, 163, 184, .25));
  border-radius: 1rem;
  background: var(--surface-muted, rgba(248, 250, 252, .6));
}
.admin-user-search label,
.admin-user-note-form label {
  display: grid;
  gap: .35rem;
}
.admin-user-card-list {
  display: grid;
  gap: 1rem;
}
.admin-user-card {
  border: 1px solid var(--border-color, rgba(148, 163, 184, .25));
  border-radius: 1.1rem;
  padding: 1rem;
  background: var(--surface, #fff);
  box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
}
.admin-user-card.is-banned {
  border-color: rgba(239, 68, 68, .35);
}
.admin-user-card-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}
.admin-user-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .65rem;
  margin: .9rem 0;
}
.admin-user-facts div {
  padding: .7rem;
  border-radius: .8rem;
  background: var(--surface-muted, rgba(248, 250, 252, .8));
}
.admin-user-facts span,
.admin-user-note-form span {
  display: block;
  color: var(--muted-text, #64748b);
  font-size: .85rem;
}
.admin-user-facts strong {
  display: block;
  margin-top: .2rem;
}
.admin-user-note-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .75rem;
  align-items: end;
  margin: .7rem 0;
}
.admin-user-note-form textarea {
  min-height: 3.5rem;
}
.trust-pill.excellent,
.trust-pill.good { background: rgba(34, 197, 94, .12); color: #047857; }
.trust-pill.basic { background: rgba(59, 130, 246, .12); color: #1d4ed8; }
.trust-pill.muted { background: rgba(100, 116, 139, .12); color: #475569; }
.trust-pill.danger { background: rgba(239, 68, 68, .12); color: #b91c1c; }
.admin-recent-activity {
  margin-top: 1rem;
}
.admin-activity-list {
  display: grid;
  gap: .55rem;
}
.admin-activity-row {
  display: grid;
  grid-template-columns: minmax(140px, .8fr) minmax(160px, 1fr) auto;
  gap: .6rem;
  align-items: center;
  padding: .65rem .75rem;
  border-radius: .8rem;
  background: var(--surface-muted, rgba(248, 250, 252, .7));
}
.admin-activity-row span,
.admin-activity-row small { color: var(--muted-text, #64748b); }
@media (max-width: 800px) {
  .admin-user-search,
  .admin-user-note-form,
  .admin-activity-row {
    grid-template-columns: 1fr;
  }
  .admin-user-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-user-card-head {
    flex-direction: column;
  }
}
@media (max-width: 520px) {
  .admin-user-facts {
    grid-template-columns: 1fr;
  }
}

/* Darna improved158: user UI 2.0 cards, placeholders, phone box, and empty states */
.listing-card .property-image,
.listing-card .image-placeholder {
  height:210px
}

.property-card-modern {
  border-radius:18px
}

.property-card-modern .card-content {
  padding:16px;
  gap:6px
}

.property-card-modern h2 {
  font-size:18px;
  line-height:1.32;
  min-height:0
}

.property-card-modern .card-price-main {
  font-size:22px
}

.property-card-modern .card-summary-row {
  padding:8px;
  gap:6px
}

.card-actions-user .button,
.card-actions-user .icon-btn {
  min-height:36px;
  padding:8px 11px
}

.smart-property-placeholder {
  --ph-stroke:#0f766e;
  --ph-fill:#d1fae5;
  --ph-accent:#f97316;
  --ph-window:#38bdf8;
  flex-direction:column;
  gap:8px;
  background:
    radial-gradient(circle at 24% 18%,rgba(251,146,60,.22),transparent 28%),
    radial-gradient(circle at 78% 28%,rgba(56,189,248,.18),transparent 30%),
    linear-gradient(135deg,#ecfdf3,#fff7ed);
  color:var(--ph-stroke);
  text-align:center;
  padding:20px
}

.placeholder-house,
.placeholder-villa,
.placeholder-chalet {
  --ph-fill:#ffedd5;
  --ph-accent:#ea580c;
  --ph-window:#06b6d4
}

.placeholder-apartment,
.placeholder-office {
  --ph-fill:#dbeafe;
  --ph-accent:#2563eb;
  --ph-window:#22c55e
}

.placeholder-land {
  --ph-fill:#dcfce7;
  --ph-accent:#84cc16;
  --ph-window:#f59e0b
}

.placeholder-farm {
  --ph-fill:#fef3c7;
  --ph-accent:#16a34a;
  --ph-window:#fb923c
}

.placeholder-shop {
  --ph-fill:#fae8ff;
  --ph-accent:#c026d3;
  --ph-window:#0ea5e9
}

.smart-property-placeholder .placeholder-icon {
  width:76px;
  height:76px;
  opacity:1;
  overflow:visible
}

.smart-property-placeholder .placeholder-asset {
  width:min(82%, 230px);
  height:150px;
  object-fit:contain;
  border-radius:18px;
  box-shadow:0 14px 34px rgba(16,24,40,.14);
  background:#f9fbfb;
  border:1px solid rgba(15,118,110,.10)
}

.detail-placeholder-wrap .smart-property-placeholder .placeholder-asset {
  width:min(78%, 360px);
  height:210px
}

.smart-property-placeholder .ph-stroke,
.smart-property-placeholder .placeholder-icon .ph-stroke {
  fill:none;
  stroke:var(--ph-stroke);
  stroke-width:3;
  stroke-linecap:round;
  stroke-linejoin:round
}

.smart-property-placeholder .ph-fill {
  fill:var(--ph-fill);
  stroke:var(--ph-stroke);
  stroke-width:2.4;
  stroke-linejoin:round
}

.smart-property-placeholder .ph-accent {
  fill:none;
  stroke:var(--ph-accent);
  stroke-width:3;
  stroke-linecap:round;
  stroke-linejoin:round
}

.smart-property-placeholder .image-placeholder-title {
  font-size:18px
}

.smart-property-placeholder .image-placeholder-subtitle {
  font-size:12px
}

.detail-placeholder-wrap .smart-property-placeholder {
  min-height:280px;
  border-radius:18px;
  border:1px solid #eaecf0
}

.contact-phone-reveal.is-revealed {
  display:block
}

.phone-reveal-number-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:9px
}

.phone-reveal-number {
  direction:ltr;
  unicode-bidi:plaintext;
  font-size:18px;
  color:#101828
}

.phone-reveal-actions {
  display:flex;
  flex-wrap:wrap;
  gap:8px
}

.phone-reveal-actions a,
.phone-copy-button {
  border:1px solid #abefc6;
  border-radius:999px;
  background:#fff;
  color:#027a48;
  padding:7px 11px;
  font-weight:950;
  text-decoration:none;
  cursor:pointer;
  font-family:inherit
}

.region-filter-help {
  margin-top:7px;
  color:#667085;
  font-size:12px;
  font-weight:850;
  line-height:1.5
}

.region-filter-help.is-active {
  color:#b54708
}

.region-filter-field select:disabled {
  background:#f2f4f7;
  color:#667085;
  cursor:not-allowed
}

.empty-state-friendly {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:12px;
  border-radius:18px;
  background:linear-gradient(135deg,#fff,#f0fdf4);
  border-color:#bfe9db
}

.favorites-page .toolbar,
.my-properties-page .toolbar,
.provider-listings-title {
  margin-bottom:18px
}

.provider-profile-hero {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  margin-bottom:16px
}

.provider-profile-box {
  grid-template-columns:repeat(4,minmax(0,1fr))
}

@media (max-width: 760px) {
  .listing-card .property-image,
  .listing-card .image-placeholder {
    height:188px
  }

  .property-card-modern .card-content {
    padding:14px
  }

  .provider-profile-hero {
    display:block
  }

  .provider-profile-box {
    grid-template-columns:1fr
  }
}

/* Darna_improved158 saved searches, contact box and report review polish */
.improved-save-search-panel {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  padding:14px;
  border:1px solid #bfe9db;
  border-radius:18px;
  background:linear-gradient(135deg,#f0fdf4,#fff7ed);
  margin-top:16px
}

.improved-save-search-panel > div:first-child {
  display:flex;
  flex-direction:column;
  gap:4px;
  color:#475467;
  font-weight:800
}

.improved-save-search-panel > div:first-child strong {
  color:#101828;
  font-size:16px
}

.saved-search-grid,
.report-card-list {
  display:grid;
  gap:14px
}

.saved-search-card,
.report-review-card {
  border:1px solid #e4e7ec;
  border-radius:18px;
  background:#fff;
  padding:16px;
  box-shadow:0 10px 28px rgba(16,24,40,.06)
}

.saved-search-card-head,
.report-review-head {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
  margin-bottom:14px
}

.saved-search-card h2,
.report-review-card h2 {
  margin:0 0 6px;
  font-size:19px
}

.saved-search-summary {
  color:#667085;
  font-weight:800;
  line-height:1.6
}

.saved-search-stats,
.report-review-body {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin-bottom:14px
}

.report-review-body {
  grid-template-columns:1fr 2fr
}

.saved-search-stats div,
.report-review-body div {
  border:1px solid #eef2f6;
  border-radius:14px;
  background:#f9fafb;
  padding:10px
}

.saved-search-stats span,
.report-review-body span {
  display:block;
  color:#667085;
  font-size:12px;
  font-weight:850;
  margin-bottom:4px
}

.saved-search-stats strong,
.report-review-body strong {
  color:#101828;
  overflow-wrap:anywhere
}

.saved-search-actions,
.report-review-actions {
  display:flex;
  flex-wrap:wrap;
  gap:8px
}

.saved-search-empty {
  margin-top:12px
}

.report-stat-grid {
  margin-bottom:16px
}

.report-review-card.status-open {
  border-color:#fedf89;
  box-shadow:0 12px 30px rgba(181,71,8,.08)
}

.phone-reveal-header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:10px
}

.phone-reveal-header strong {
  color:#101828;
  font-size:15px
}

@media (max-width: 760px) {
  .improved-save-search-panel,
  .saved-search-card-head,
  .report-review-head {
    display:block
  }

  .saved-search-stats,
  .report-review-body {
    grid-template-columns:1fr
  }

  .phone-reveal-header {
    display:block
  }
}

/* Step 123: production email readiness card */
.admin-email-card{
  margin:20px 0;
  padding:18px;
  border:1px solid rgba(234,118,39,.22);
  border-radius:22px;
  background:linear-gradient(135deg,rgba(255,247,239,.96),rgba(255,255,255,.92));
  box-shadow:0 18px 45px rgba(80,40,10,.08);
}
.admin-email-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:14px;
}
.admin-email-head h2{margin:0 0 4px;font-size:22px}
.admin-email-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(170px,1fr));
  gap:10px;
  margin:12px 0;
}
.admin-email-grid>div{
  padding:12px;
  border-radius:16px;
  background:rgba(255,255,255,.78);
  border:1px solid rgba(234,118,39,.12);
}
.admin-email-grid span{display:block;color:#8a6b52;font-size:13px;margin-bottom:4px}
.admin-email-grid strong{font-size:15px;color:#221913;word-break:break-word}
.admin-email-test-form{
  display:grid;
  grid-template-columns:minmax(180px,1fr) auto;
  gap:10px;
  align-items:end;
  margin-top:12px;
}
.admin-email-test-form label span{display:block;font-weight:800;margin-bottom:6px}
.admin-email-test-form input{width:100%}
.danger-hint{color:#a32b1f;font-weight:800}
@media (max-width: 720px) {.admin-email-head,.admin-email-test-form{grid-template-columns:1fr;display:grid}.admin-email-head{display:grid}}
html[data-theme="dark"] .admin-email-card{
  background:linear-gradient(135deg,rgba(30,24,20,.96),rgba(17,15,14,.96));
  border-color:rgba(125,226,191,.24);
  box-shadow:0 18px 45px rgba(0,0,0,.34);
}
html[data-theme="dark"] .admin-email-grid>div{background:rgba(255,255,255,.06);border-color:rgba(125,226,191,.14)}
html[data-theme="dark"] .admin-email-grid span{color:#7de2bf}
html[data-theme="dark"] .admin-email-grid strong{color:#fff4e8}
html[data-theme="dark"] .danger-hint{color:#ffb0a6}

.fixed-message-preview {
  min-height:48px;
  padding:12px 14px;
  border:1px solid var(--border);
  border-radius:8px;
  background:#f8fbfa;
  color:var(--text);
  font-weight:800;
  line-height:1.7;
}

html[data-theme="dark"] .fixed-message-preview {
  background:#142129;
}

/* Darna improved158: adaptable icons, clearer listing badges and mobile card density */
.ui-icon {
  width:1.05em;
  height:1.05em;
  flex:0 0 auto;
  fill:none;
  stroke:currentColor;
  stroke-linecap:round;
  stroke-linejoin:round;
  stroke-width:1.9
}

.property-card-modern[data-property-card] {
  cursor:pointer
}

.property-card-modern[data-property-card]:focus-visible {
  outline:3px solid var(--brand);
  outline-offset:4px
}

.card-media-detail-link {
  display:block;
  color:inherit;
  text-decoration:none
}

.card-title-detail-link {
  color:inherit;
  text-decoration:none
}

.card-title-detail-link:hover {
  color:var(--brand-dark)
}

.property-card-modern .card-badge,
.detail-listing-badge,
.card-actions-user .button,
.card-actions-user .icon-btn,
.detail-side-actions .button,
.contact-buttons .button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px
}

.property-card-modern .listing-kind-badge,
.detail-listing-badges .listing-kind-badge {
  background:#fff4ed;
  border-color:#ffd6ae;
  color:#b93815
}

.property-card-modern .property-kind-badge,
.detail-listing-badges .property-kind-badge {
  background:#eff8ff;
  border-color:#b2ddff;
  color:#175cd3
}

.property-card-modern .phone-available-badge {
  background:#ecfdf3;
  border-color:#abefc6;
  color:#067647
}

.detail-listing-badges {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:12px
}

.detail-listing-badges span {
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:7px 11px;
  border:1px solid;
  border-radius:999px;
  font-weight:950
}

.phone-reveal-header {
  padding-bottom:9px;
  border-bottom:1px solid #d1fadf
}

.phone-reveal-number {
  overflow-wrap:anywhere
}

.phone-action-whatsapp {
  background:#ecfdf3!important
}

.phone-reveal-actions a,


.message-card-btn {
  border-color:#c7d7fe!important;
  background:#eef4ff!important;
  color:#3538cd!important
}

.card-contact-panel[hidden] {
  display:none
}

.card-contact-panel {
  margin-top:10px;
  padding:14px;
  border:1px solid #d0d5dd;
  border-radius:14px;
  background:#fff;
  box-shadow:0 12px 28px rgba(16,24,40,.08);
  cursor:default
}

.card-contact-panel h3 {
  margin:0 0 4px;
  color:#1d2939;
  font-size:17px
}

.card-contact-panel .meta {
  margin:0 0 12px
}

.card-contact-form {
  gap:10px
}

.card-contact-form textarea {
  min-height:102px;
  background:#f8fafb;
  color:#475467;
  cursor:not-allowed
}

.card-contact-form button[type="submit"] {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  width:100%;
  min-height:44px
}

.report-disclosure {
  margin-top:18px
}

.report-disclosure>summary {
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:8px 11px;
  border:1px solid #e4e7ec;
  border-radius:10px;
  background:#f9fafb;
  color:#667085;
  cursor:pointer;
  font-size:13px;
  font-weight:850;
  list-style:none
}

.report-disclosure>summary::-webkit-details-marker {
  display:none
}

.report-disclosure[open]>summary {
  margin-bottom:10px
}

.report-disclosure .report-box {
  margin:0
}

.tenure-summary-chip {
  background:#f4f3ff;
  border-color:#d9d6fe;
  color:#5925dc
}

@media (max-width: 760px) {
  header {
    position:sticky;
    top:0;
    padding:8px 12px;
    box-shadow:0 8px 24px rgba(16,24,40,.08)
  }

  .brand-logo {
    width:152px;
    height:48px
  }

  .nav-menu-panel {
    position:fixed;
    top:66px;
    inset-inline:12px;
    width:auto;
    max-height:calc(100dvh - 82px);
    overflow-y:auto
  }

  .container {
    width:min(100% - 20px,680px);
    margin:12px auto 74px
  }

  .hero-home {
    padding:22px 16px 76px
  }

  .hero-home h1 {
    font-size:28px
  }

  .search-panel {
    padding:14px
  }

  .property-card-modern .card-badges {
    top:10px;
    right:10px;
    left:10px;
    gap:5px
  }

  .property-card-modern .card-badge {
    padding:5px 8px;
    font-size:11px
  }

  .card-actions-user {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:7px
  }

  .card-actions-user form,
  .card-actions-user .button,
  .card-actions-user .icon-btn {
    width:100%;
    margin:0
  }

  .card-actions-user .button,
  .card-actions-user .icon-btn {
    min-height:44px;
    padding:9px 6px;
    font-size:12px
  }

  .card-contact-panel {
    padding:12px
  }

  .detail-page {
    max-width:100%;
    min-width:0;
    padding:12px;
    overflow:hidden
  }

  .detail-hero,
  .detail-title-card,
  .detail-side-card,
  .provider-trust-card,
  .contact-panel,
  .report-box {
    max-width:100%;
    min-width:0;
    padding:14px;
    border-radius:16px
  }

  .detail-highlight-strip {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }

  .detail-highlight-strip div {
    min-width:0
  }

  .detail-highlight-strip strong,
  .detail-address {
    overflow-wrap:anywhere
  }

  .map-box {
    grid-template-columns:1fr;
    min-width:0;
    padding:16px
  }

  .map-box .ltr-value {
    overflow-wrap:anywhere
  }

  .detail-listing-badges span {
    padding:6px 9px;
    font-size:13px
  }

  .contact-buttons {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr))
  }

  .contact-buttons .button {
    width:100%;
    min-height:44px;
    padding:10px 8px;
    text-align:center
  }

  .contact-phone-reveal {
    padding:13px
  }

  .phone-reveal-actions {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr))
  }

  .phone-reveal-actions a,
  .phone-copy-button {
    min-height:42px;
    display:grid;
    place-items:center;
    padding:8px;
    text-align:center
  }
}

@media (max-width: 380px) {
  .property-card-modern .card-badges {
    gap:4px
  }

  .property-card-modern .card-badge {
    padding:4px 7px;
    font-size:10px
  }

  .detail-highlight-strip {
    grid-template-columns:1fr
  }
}

/* Darna improved158: compact property search with quick city shortcuts */
.search-panel {
  max-width:1120px;
  overflow:hidden;
  border-radius:16px
}

.search-panel-heading {
  padding:16px 20px 12px
}

.search-panel-heading h2 {
  font-size:clamp(20px,2vw,26px)
}

.search-panel-heading p {
  max-width:460px;
  font-size:13px;
  line-height:1.55
}

.search-toolbar {
  padding:0 20px;
  background:#f8fafb
}

.listing-tabs {
  gap:4px
}

.listing-tabs .tab {
  padding:10px 15px;
  border-radius:10px 10px 0 0
}

.simple-search-grid {
  grid-template-columns:minmax(220px,2fr) minmax(135px,1fr) minmax(165px,1.2fr) minmax(125px,.9fr) auto;
  gap:10px;
  padding:16px 20px 0
}

.simple-search-grid .quick-search-query {
  grid-column:auto
}

.quick-search-actions {
  display:flex;
  gap:8px;
  align-self:end;
  white-space:nowrap
}

.quick-search-actions button,
.quick-search-actions .button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:46px;
  padding:12px 15px
}

.quick-search-actions .button.light {
  min-width:auto;
  padding-inline:12px
}

.search-quick-links {
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 20px 0;
  color:#475467;
  font-size:12px
}

.search-quick-links>strong {
  flex:0 0 auto
}

.search-quick-links>div {
  display:flex;
  gap:7px;
  min-width:0;
  overflow-x:auto;
  padding-bottom:3px;
  scrollbar-width:thin
}

.search-quick-links a {
  flex:0 0 auto;
  padding:6px 10px;
  border:1px solid #d0d5dd;
  border-radius:999px;
  background:#fff;
  color:#344054;
  font-weight:850;
  text-decoration:none
}

.search-quick-links a:hover {
  border-color:#96d8c4;
  background:#f0fbf7;
  color:#006c4c
}

.search-priority-row {
  padding-inline:20px
}

.search-panel .advanced-filter {
  margin-inline:20px
}

.search-panel .save-search-panel {
  margin-inline:20px
}

@media (max-width: 760px) {
  .search-panel {
    padding:0;
    border-radius:16px
  }

  .search-panel-heading {
    gap:8px;
    padding:15px 14px 12px
  }

  .search-panel-heading h2 {
    font-size:21px
  }

  .search-toolbar {
    padding:0 14px
  }

  .simple-search-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px;
    padding:14px 14px 0
  }

  .simple-search-grid .quick-search-query,
  .quick-search-city,
  .quick-search-region,
  .quick-search-actions {
    grid-column:1/-1!important
  }

  .quick-search-actions {
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    width:100%
  }

  .quick-search-actions button,
  .quick-search-actions .button {
    width:100%;
    min-width:0;
    margin:0
  }

  .search-quick-links {
    align-items:flex-start;
    flex-direction:column;
    gap:7px;
    padding:12px 14px 0
  }

  .search-quick-links>div {
    width:100%
  }

  .search-priority-row {
    padding-inline:14px
  }

  .search-panel .advanced-filter,
  .search-panel .save-search-panel {
    margin-inline:14px
  }
}

/* Darna improved158: tighter home search and clearer city-region coupling */
.search-panel {
  max-width:1080px;
  border-radius:14px
}

.search-panel-heading {
  padding:10px 16px 8px;
  gap:10px
}

.search-panel-heading h2 {
  margin-top:2px;
  font-size:clamp(17px,1.55vw,22px)
}

.search-panel-heading p {
  max-width:360px;
  font-size:11.5px;
  line-height:1.4;
  font-weight:750
}

.search-panel .section-eyebrow {
  padding:3px 8px;
  font-size:10.5px;
  border-radius:999px
}

.search-toolbar {
  padding:0 16px
}

.listing-tabs .tab {
  padding:7px 12px;
  font-size:12px
}

.simple-search-grid {
  grid-template-columns:minmax(210px,1.8fr) minmax(128px,.95fr) minmax(150px,1.05fr) minmax(125px,.85fr) auto;
  gap:8px;
  padding:12px 16px 0
}

.search-panel label,
.search-panel .compact-label {
  margin-bottom:5px;
  font-size:12px;
  line-height:1.2
}

.search-box input[name="q"],
.search-panel select,
.search-panel input {
  min-height:38px!important;
  padding:8px 10px!important;
  font-size:13px!important
}

.quick-search-actions {
  gap:6px
}

.quick-search-actions button,
.quick-search-actions .button {
  min-height:38px;
  padding:8px 11px;
  font-size:13px
}

.quick-search-actions .button.light {
  opacity:.84;
  padding-inline:9px
}

.region-filter-help {
  margin-top:4px;
  font-size:11px;
  line-height:1.35
}

.search-quick-links {
  gap:8px;
  padding:8px 16px 0;
  font-size:11px
}

.search-quick-links a {
  padding:4px 8px;
  font-size:11px
}

.search-priority-row {
  margin-top:9px;
  padding-inline:16px
}

.search-priority-row span {
  padding:4px 8px;
  font-size:11px
}

.search-panel .advanced-filter {
  margin:10px 16px 0
}

.search-panel .save-search-panel {
  margin-inline:16px
}

@media (max-width: 760px) {
  .search-panel-heading {
    padding:10px 12px 8px
  }

  .search-panel-heading p {
    font-size:11px
  }

  .search-toolbar {
    padding:0 12px
  }

  .listing-tabs .tab {
    padding:7px 10px
  }

  .simple-search-grid {
    gap:8px;
    padding:10px 12px 0
  }

  .simple-search-grid .quick-search-query,
  .quick-search-city,
  .quick-search-region {
    grid-column:1/-1!important
  }

  /* Darna_improved296: duplicated mobile quick-search type/action placement is owned by 74/165. */

  .quick-search-actions {
    grid-template-columns:minmax(0,1fr) auto
  }

  .quick-search-actions button,
  .quick-search-actions .button {
    min-height:38px;
    padding:8px 9px
  }

  .search-quick-links {
    padding:8px 12px 0
  }

  .search-priority-row {
    padding-inline:12px
  }

  .search-panel .advanced-filter,
  .search-panel .save-search-panel {
    margin-inline:12px
  }

  .advanced-filter .price-range-field,
  .advanced-filter .rooms-range-field,
  .advanced-filter .area-range-field {
    grid-column:1/-1!important
  }

  .advanced-filter .range-pair {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px
  }
}


/* Darna improved158: bottom search actions for long result pages */
.bottom-search-reset {
  max-width:1080px;
  margin:18px auto 0;
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:14px;
  background:rgba(255,255,255,.82);
  box-shadow:0 12px 28px rgba(16,24,40,.08);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  flex-wrap:wrap
}

.bottom-search-reset .button {
  min-height:36px;
  padding:8px 12px;
  font-size:13px
}

.bottom-search-reset .bottom-reset-link {
  opacity:.84
}

@media (max-width: 760px) {
  .bottom-search-reset {
    margin:14px 12px 0;
    padding:9px;
    gap:6px
  }

  .bottom-search-reset .button {
    flex:1 1 130px;
    min-height:38px;
    text-align:center
  }
}

/* Darna improved158: keep city/rif and region paired on all view sizes */
@media (max-width: 760px) {
  .simple-search-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))!important
  }

  /* Darna_improved296: duplicated mobile grid placement is kept in the later 74 block and final 165 layer. */
}

/* Darna improved158: align city/region pair and keep tenure filters visually neutral */
.quick-search-city,
.quick-search-region {
  align-self:start;
  display:flex;
  flex-direction:column;
  min-width:0
}

.quick-search-city label,
.quick-search-region label {
  min-height:15px
}

.quick-search-city select,
.quick-search-region select {
  width:100%
}

.quick-region-hint {
  grid-column:2 / 4;
  margin-top:-4px;
  padding-inline:2px
}

.tenure-price-row {
  align-self:end
}

.tenure-price-row .range-pair {
  align-items:end
}

.tenure-filter-field:not([hidden]),
.tenure-offer-field:not([hidden]) {
  align-self:end
}

.tenure-filter-field select,
.tenure-offer-field select,
.sort-filter-field select {
  width:100%
}

.tenure-summary-chip strong {
  font-weight:900
}

@media (max-width: 760px) {
  .quick-region-hint {
    grid-column:1/-1!important;
    margin-top:-2px
  }

  .quick-search-city,
  .quick-search-region {
    align-self:start
  }

  .advanced-filter .tenure-price-row {
    grid-column:1/-1!important
  }
}

/* Darna improved158: remove search-box city shortcuts and modernize popular city section */
.search-panel .search-quick-links {
  display:none!important
}

.search-panel {
  overflow:visible
}

.simple-search-grid {
  row-gap:11px
}

.quick-search-actions {
  align-items:end
}

.quick-search-actions button {
  box-shadow:0 10px 22px rgba(0,168,112,.18)
}

.quick-search-actions .button.light {
  background:#f4f7f6;
  border:1px solid #e2e8e6;
  box-shadow:none;
  color:#344054
}

.quick-region-hint,
.quick-region-hint.is-active {
  color:#667085;
  font-weight:800
}

.stats {
  max-width:700px;
  margin:14px auto 18px;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px
}

.stat {
  border-radius:10px;
  padding:12px 16px;
  text-align:right;
  background:rgba(255,255,255,.9);
  box-shadow:0 8px 20px rgba(16,24,40,.06)
}

.stat b {
  font-size:22px;
  line-height:1.2
}

.stat span {
  font-size:13px
}

.popular-city-grid {
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin:18px 0 4px
}

.popular-city-card {
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:11px;
  min-height:68px;
  padding:12px 14px;
  border-radius:12px;
  border-color:#e3e9e7;
  background:linear-gradient(180deg,#fff,#fbfdfc);
  box-shadow:0 8px 20px rgba(16,24,40,.055);
  transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease,background .16s ease
}

.popular-city-card:hover {
  transform:translateY(-2px);
  border-color:#9bdcc8;
  background:linear-gradient(180deg,#ffffff,#f3fbf8);
  box-shadow:0 14px 28px rgba(16,24,40,.10)
}

.popular-city-icon {
  flex:0 0 34px;
  width:34px;
  height:34px;
  border-radius:10px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#eefaf5;
  color:#007a55;
  border:1px solid #cfefe3
}

.popular-city-icon .ui-icon {
  width:19px;
  height:19px;
  stroke-width:1.9
}

.popular-city-text {
  display:flex;
  flex-direction:column;
  gap:3px;
  min-width:0;
  line-height:1.35
}

.popular-city-text strong {
  color:#12233f;
  font-size:15px;
  font-weight:950
}

.popular-city-text .meta {
  margin:0;
  color:#667085;
  font-size:12px;
  font-weight:800
}

@media (max-width: 760px) {
  .simple-search-grid {
    row-gap:10px
  }

  .stats {
    margin:12px 12px 16px;
    max-width:none;
    gap:8px
  }

  .stat {
    padding:10px 12px
  }

  .popular-city-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:9px;
    margin-top:14px
  }

  .popular-city-card {
    min-height:62px;
    padding:10px 11px;
    gap:9px
  }

  .popular-city-icon {
    flex-basis:30px;
    width:30px;
    height:30px;
    border-radius:9px
  }

  .popular-city-text strong {
    font-size:14px
  }

  .popular-city-text .meta {
    font-size:11.5px
  }
}

/* Darna improved158: remove extra region hint and result pill from the top search box */
.simple-search-grid {
  grid-template-columns:minmax(220px,1.7fr) minmax(150px,1fr) minmax(170px,1fr) minmax(140px,.85fr) auto;
  align-items:end;
  row-gap:8px;
  column-gap:8px;
  padding:12px 16px 10px
}

.simple-search-grid .quick-search-query,
.quick-search-city,
.quick-search-region,
.quick-search-type,
.quick-search-actions {
  align-self:end
}

.quick-region-hint,
.quick-region-hint.is-active,
.search-priority-row {
  display:none!important
}

.quick-search-actions {
  justify-content:flex-start
}

@media (max-width: 760px) {
  .simple-search-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    row-gap:8px!important;
    column-gap:8px!important;
    padding:10px 12px 10px!important
  }

  .simple-search-grid .quick-search-query {
    grid-column:1/-1!important
  }

  .quick-search-city {
    grid-column:1/2!important
  }

  .quick-search-region {
    grid-column:2/3!important
  }

  .quick-search-type {
    grid-column:1/2!important
  }

  .quick-search-actions {
    grid-column:2/3!important;
    align-self:end!important;
    justify-content:flex-start
  }
}

/* Darna improved158: stronger listing tabs, calm AJAX filtering, visible advanced-filter scroll, larger corner logo */
html[dir="rtl"] header {
  padding-inline-start:14px;
  padding-inline-end:28px
}

.brand {
  margin-inline-start:-4px
}

.brand-logo {
  width:340px;
  height:106px
}

.search-toolbar {
  margin-top:2px;
  margin-bottom:4px
}

.listing-tabs {
  gap:7px;
  align-items:center
}

.listing-tabs .tab {
  min-height:36px;
  padding:9px 17px;
  border:1px solid #dfe7e3;
  border-radius:999px;
  background:linear-gradient(180deg,#fff,#f6faf8);
  color:#344054;
  font-size:14px;
  font-weight:950;
  line-height:1;
  box-shadow:0 6px 16px rgba(16,24,40,.055);
  transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease,background .16s ease,color .16s ease
}

.listing-tabs .tab:hover,
.listing-tabs .tab:focus-visible {
  transform:translateY(-1px);
  border-color:#9bdcc8;
  background:#f0fbf7;
  box-shadow:0 10px 22px rgba(16,24,40,.09);
  outline:none
}

.listing-tabs .tab.active {
  background:linear-gradient(135deg,var(--brand),var(--brand-dark));
  border-color:transparent;
  color:#fff;
  box-shadow:0 12px 24px rgba(0,168,112,.24)
}

.listing-tabs .tab[aria-busy="true"] {
  cursor:progress
}

.advanced-filter[open]>.advanced-filter-body {
  max-height:min(54vh,430px)!important;
  display:flex;
  flex-direction:column;
  overflow:hidden
}

.advanced-filter-scroll {
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto!important;
  scrollbar-width:auto;
  scrollbar-color:#77cdb4 #edf5f1
}

.advanced-filter-scroll::-webkit-scrollbar {
  width:10px
}

.advanced-filter-scroll::-webkit-scrollbar-track {
  background:#edf5f1;
  border-radius:999px
}

.advanced-filter-scroll::-webkit-scrollbar-thumb {
  background:#77cdb4;
  border:2px solid #edf5f1;
  border-radius:999px
}

.advanced-filter-scroll::-webkit-scrollbar-thumb:hover {
  background:#37b98a
}

.advanced-filter-actions {
  position:sticky;
  bottom:0;
  z-index:5;
  flex:0 0 auto;
  border-top:1px solid #b8e7d8;
  background:#eaf9f3
}

@media (max-width: 760px) {
  html[dir="rtl"] header {
    padding-inline-start:8px;
    padding-inline-end:16px
  }

  .brand {
    margin-inline-start:-6px
  }

  .brand-logo {
    width:286px;
    height:92px
  }

  .listing-tabs {
    gap:6px;
    width:100%;
    overflow-x:auto;
    padding-bottom:2px;
    scrollbar-width:thin
  }

  .listing-tabs .tab {
    flex:0 0 auto;
    min-height:35px;
    padding:9px 15px;
    font-size:13.5px
  }

  .advanced-filter[open]>.advanced-filter-body {
    max-height:min(62vh,500px)!important
  }
}

@media (max-width: 420px) {
  .brand-logo {
    width:266px;
    height:86px
  }

  .listing-tabs .tab {
    padding-inline:13px
  }
}

html[data-theme="dark"] .listing-tabs .tab {
  background:linear-gradient(180deg,#1d2b31,#17242a);
  border-color:#3a5058;
  color:#dce9e6;
  box-shadow:0 8px 18px rgba(0,0,0,.22)
}

html[data-theme="dark"] .listing-tabs .tab:hover,
html[data-theme="dark"] .listing-tabs .tab:focus-visible {
  background:#20373a;
  border-color:#5da999;
  color:#f3fbf8
}

html[data-theme="dark"] .listing-tabs .tab.active {
  background:linear-gradient(135deg,#118c68,#24c48e);
  border-color:transparent;
  color:#f3fbf8;
  box-shadow:0 14px 26px rgba(0,0,0,.32)
}

html[data-theme="dark"] .advanced-filter-scroll {
  scrollbar-color:#5da999 #17242a
}

html[data-theme="dark"] .advanced-filter-scroll::-webkit-scrollbar-track {
  background:#17242a
}

html[data-theme="dark"] .advanced-filter-scroll::-webkit-scrollbar-thumb {
  background:#5da999;
  border-color:#17242a
}

html[data-theme="dark"] .advanced-filter-actions {
  background:#122620;
  border-top-color:#315b4f
}

/* Provider labels and paired range filter layout */

.advanced-filter label,.advanced-filter .compact-label {
  font-weight:900;
  color:#344054;
  font-size:14px;
  line-height:1.25;
  margin:0 0 8px
}

.rooms-range-field,.price-range-field,.area-range-field {
  align-self:end
}

.rooms-range-field .range-pair,.price-range-field .range-pair,.area-range-field .range-pair {
  margin-top:0
}

.area-range-field .area-combo.no-unit {
  display:block
}

.area-range-field .area-combo.no-unit>div:not([data-area-unit-section]) {
  display:block
}

.search-panel select,.search-panel input {
  font-weight:700
}

@media (max-width: 760px) {
  .rooms-range-field,.price-range-field,.area-range-field {
    align-self:stretch
  }
}

/* Darna improved158: stronger dark mode, clearer theme switch, and sticky advanced filters */

.brand-logo {
  width:283px;
  height:88px;
  object-fit:contain;
  object-position:center
}

.theme-toggle {
  display:flex!important;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  border-color:#bfe9db!important;
  background:#f0fbf7!important;
  color:#006c4c!important;
  box-shadow:inset 0 0 0 1px rgba(0,168,112,.04)
}

.theme-toggle-label {
  flex:1;
  text-align:start
}

.theme-toggle-switch {
  position:relative;
  flex:0 0 auto;
  width:42px;
  height:24px;
  border:1px solid #96d8c4;
  border-radius:999px;
  background:#d9f3ea
}

.theme-toggle-switch:after {
  content:"";
  position:absolute;
  inset-block-start:3px;
  inset-inline-start:3px;
  width:16px;
  height:16px;
  border-radius:50%;
  background:#007a55;
  transition:inset-inline-start .18s ease
}

.theme-toggle[data-theme-state="dark"] .theme-toggle-switch:after {
  inset-inline-start:21px
}

.advanced-filter>summary {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  column-gap:12px;
  row-gap:4px
}

.advanced-filter>summary span,
.advanced-filter>summary small {
  grid-column:1
}

.advanced-filter>summary:after {
  grid-column:2;
  grid-row:1 / span 2;
  align-self:center
}

.advanced-filter-count {
  display:inline-flex;
  min-width:22px;
  height:22px;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:var(--brand);
  color:#fff;
  font-size:12px;
  line-height:1;
  vertical-align:middle
}

.advanced-filter-count[hidden] {
  display:none
}

.advanced-filter[open]>.advanced-filter-body {
  display:flex;
  flex-direction:column;
  max-height:min(72vh,680px);
  padding:0;
  overflow:hidden
}

.advanced-filter-scroll {
  min-height:0;
  overflow-y:auto;
  overscroll-behavior:contain;
  padding:18px;
  scrollbar-color:var(--brand) transparent;
  scrollbar-width:thin
}

.advanced-filter-actions {
  position:sticky;
  bottom:0;
  z-index:4;
  flex:0 0 auto;
  margin:0;
  border:0;
  border-top:1px solid #bfe9db;
  border-radius:0;
  box-shadow:0 -10px 24px rgba(29,37,44,.10)
}

.advanced-filter-actions>div {
  flex:1 1 240px
}

.scroll-top-button {
  position:fixed;
  inset-inline-end:18px;
  bottom:18px;
  z-index:40;
  display:grid;
  width:48px;
  height:48px;
  padding:0;
  place-items:center;
  border-radius:50%;
  box-shadow:0 10px 24px rgba(0,108,76,.24);
  font-size:26px;
  line-height:1
}

.scroll-top-button[hidden] {
  display:none
}

html[data-theme="dark"] {
  /* Canonical palette aliases are owned by 167_dark_mode_system_283.css. */
  --shadow:0 14px 34px rgba(0,0,0,.42)
}

html[data-theme="dark"] header {
  background:#101a1f;
  border-color:#294047;
  box-shadow:0 8px 24px rgba(0,0,0,.22)
}

html[data-theme="dark"] .brand-logo {
  opacity:.82;
  filter:invert(1) hue-rotate(140deg) saturate(.7) brightness(.72) contrast(1.05);
  mix-blend-mode:screen
}

html[data-theme="dark"] .nav-menu-toggle,
html[data-theme="dark"] .nav-menu-panel {
  background:#142027;
  border-color:#30434a
}

html[data-theme="dark"] .nav-menu-toggle span {
  background:#91ebcc
}

html[data-theme="dark"] .nav-menu[open] .nav-menu-toggle {
  background:#173d36;
  border-color:#3d796c
}

html[data-theme="dark"] .nav-link,
html[data-theme="dark"] .lang-link {
  background:#142027;
  color:#eef7f3
}

html[data-theme="dark"] .nav-link:hover,
html[data-theme="dark"] .lang-link:hover,
html[data-theme="dark"] .nav-link.active,
html[data-theme="dark"] .lang-link.active {
  background:#1c443d;
  border-color:#3d796c;
  color:#b9f4df
}

html[data-theme="dark"] .theme-toggle {
  background:#1c443d!important;
  border-color:#4a897c!important;
  color:#d4f8ec!important;
  box-shadow:inset 0 0 0 1px rgba(145,235,204,.08)
}

html[data-theme="dark"] .theme-toggle-switch {
  background:#102d29;
  border-color:#5da999
}

html[data-theme="dark"] .theme-toggle-switch:after {
  background:#91ebcc
}

html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
  background:#101a1f!important;
  border-color:#3a5058;
  color:#eef7f3!important;
  color-scheme:dark
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
  color:#81928f
}

html[data-theme="dark"] label,
html[data-theme="dark"] .compact-label,
html[data-theme="dark"] .search-priority-row {
  color:#d9e8e4
}

html[data-theme="dark"] .search-priority-row span,
html[data-theme="dark"] .advanced-filter>summary,
html[data-theme="dark"] .advanced-features>summary {
  background:#18262c;
  border-color:#30434a;
  color:#eef7f3
}

html[data-theme="dark"] .advanced-filter-scroll {
  background:#142027
}

html[data-theme="dark"] .advanced-filter-actions {
  background:#183a34;
  border-color:#3d796c;
  box-shadow:0 -12px 28px rgba(0,0,0,.28)
}

html[data-theme="dark"] .advanced-filter-actions>div {
  color:#d9e8e4
}

html[data-theme="dark"] .advanced-filter-actions>div strong {
  color:#b9f4df
}

html[data-theme="dark"] .advanced-filter-actions>div span {
  color:#a7b8b4
}

html[data-theme="dark"] .tab.active {
  background:var(--brand);
  border-color:var(--brand);
  color:#f4fffb
}

html[data-theme="dark"] .footer-links,
html[data-theme="dark"] .notice,
html[data-theme="dark"] .flash,
html[data-theme="dark"] .my-card,
html[data-theme="dark"] .pending-box,
html[data-theme="dark"] .profile-box,
html[data-theme="dark"] .profile-item,
html[data-theme="dark"] .report-box,
html[data-theme="dark"] .admin-table tr {
  background:#142027;
  border-color:#30434a;
  color:#eef7f3
}

html[data-theme="dark"] .admin-table th,
html[data-theme="dark"] .admin-table td {
  border-color:#30434a;
  color:#eef7f3
}

.audit-details {
  max-width:360px;
  overflow-wrap:anywhere
}

html[data-theme="dark"] .pagination-status {
  color:#a7b8b4
}

html[data-theme="dark"] .scroll-top-button {
  border:1px solid #5da999;
  background:#1c443d;
  color:#d4f8ec;
  box-shadow:0 10px 26px rgba(0,0,0,.36)
}

@media (max-width: 760px) {
  .brand-logo {
    width:238px;
    height:77px
  }
  .advanced-filter[open]>.advanced-filter-body {
    max-height:min(76vh,620px)
  }
  .advanced-filter-scroll {
    padding:14px
  }
  .advanced-filter-actions {
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:10px;
    padding:12px
  }
  .advanced-filter-actions>div {
    grid-column:1/-1;
    margin:0
  }
  .advanced-filter-actions button,
  .advanced-filter-actions .button {
    width:auto;
    min-width:0
  }
  .advanced-filter-actions button {
    width:100%
  }
  .scroll-top-button {
    inset-inline-end:14px;
    bottom:14px;
    width:44px;
    height:44px
  }
}

@media (max-width: 420px) {
  .brand-logo {
    width:222px;
    height:72px
  }
  .advanced-filter-actions>div span {
    display:none
  }
}

html[data-theme="dark"] .property-card-modern .image-placeholder {
  background:radial-gradient(circle at 50% 30%,rgba(59,211,160,.18),transparent 34%),
    linear-gradient(135deg,#122922,#101a1f);
  color:#91ebcc
}

html[data-theme="dark"] .property-card-modern .card-badge {
  background:rgba(20,32,39,.88);
  border-color:#3a5058;
  color:#eef7f3
}

html[data-theme="dark"] .property-card-modern .primary-badge,
html[data-theme="dark"] .contact-button-card {
  background:#173d36!important;
  border-color:#3d796c!important;
  color:#b9f4df!important
}

html[data-theme="dark"] .property-card-modern .card-location,
html[data-theme="dark"] .property-card-modern .card-price-main {
  color:#eef7f3
}

html[data-theme="dark"] .image-placeholder-subtitle {
  color:#a7b8b4
}

html[data-theme="dark"] .card-phone-reveal,
html[data-theme="dark"] .card-phone-reveal a {
  background:#173d36;
  border-color:#3d796c;
  color:#b9f4df
}

/* Darna improved158: darker, calmer placeholders and phone reveal in dark mode */
html[data-theme="dark"] .smart-property-placeholder {
  --ph-stroke:#66c7ad;
  --ph-fill:rgba(102,199,173,.12);
  --ph-accent:#8fb8aa;
  --ph-window:rgba(102,199,173,.18);
  background:
    radial-gradient(circle at 50% 26%,rgba(102,199,173,.10),transparent 34%),
    linear-gradient(135deg,#12231f,#0d171b);
  color:#66c7ad;
  border-color:#253940
}

html[data-theme="dark"] .smart-property-placeholder .ph-fill {
  fill:var(--ph-fill);
  stroke:var(--ph-stroke)
}

html[data-theme="dark"] .smart-property-placeholder .ph-stroke,
html[data-theme="dark"] .smart-property-placeholder .ph-accent {
  stroke:var(--ph-stroke)
}

html[data-theme="dark"] .smart-property-placeholder .placeholder-asset {
  background:#172528;
  border-color:#294044;
  filter:brightness(.78) saturate(.88) contrast(.96);
  opacity:.88;
  box-shadow:0 14px 34px rgba(0,0,0,.34)
}

html[data-theme="dark"] .smart-property-placeholder .image-placeholder-title {
  color:#d7eee7
}

html[data-theme="dark"] .phone-reveal-number {
  color:#eef7f3
}

html[data-theme="dark"] .phone-reveal-actions a,
html[data-theme="dark"] .phone-copy-button {
  background:#0f211d;
  border-color:#3d796c;
  color:#b9f4df
}

html[data-theme="dark"] .region-filter-field select:disabled {
  background:#17242a;
  color:#8ea09d;
  border-color:#2f454d
}

html[data-theme="dark"] .region-filter-help {
  color:#9fb0ad
}

html[data-theme="dark"] .region-filter-help.is-active {
  color:#b8f3dc
}

html[data-theme="dark"] .empty-state-friendly {
  background:linear-gradient(135deg,#121b20,#12231f);
  border-color:#2b4541
}

html[data-theme="dark"] .improved-save-search-panel {
  background:linear-gradient(135deg,#12231f,#201a12);
  border-color:#2b4541
}

html[data-theme="dark"] .improved-save-search-panel > div:first-child,
html[data-theme="dark"] .saved-search-summary {
  color:#9fb0ad
}

html[data-theme="dark"] .improved-save-search-panel > div:first-child strong,
html[data-theme="dark"] .saved-search-stats strong,
html[data-theme="dark"] .report-review-body strong,
html[data-theme="dark"] .phone-reveal-header strong {
  color:#eef7f3
}

html[data-theme="dark"] .saved-search-card,
html[data-theme="dark"] .report-review-card {
  background:#101a1f;
  border-color:#263940;
  box-shadow:0 10px 30px rgba(0,0,0,.25)
}

html[data-theme="dark"] .saved-search-stats div,
html[data-theme="dark"] .report-review-body div {
  background:#0d1519;
  border-color:#263940
}

html[data-theme="dark"] .saved-search-stats span,
html[data-theme="dark"] .report-review-body span {
  color:#a7b8b4
}

/* Darna improved158: complete dark-mode contrast pass */
html[data-theme="dark"] .search-box,
html[data-theme="dark"] .form-card,
html[data-theme="dark"] .detail-card,
html[data-theme="dark"] .card,
html[data-theme="dark"] .detail-title-card,
html[data-theme="dark"] .detail-side-card,
html[data-theme="dark"] .provider-trust-card,
html[data-theme="dark"] .contact-panel,
html[data-theme="dark"] .form-section,
html[data-theme="dark"] .listing-preview-card,
html[data-theme="dark"] .empty-state,
html[data-theme="dark"] .home-section-card {
  background:#142027;
  border-color:#30434a;
  color:#eef7f3
}

html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] strong,
html[data-theme="dark"] .price,
html[data-theme="dark"] .card-price-main {
  color:#eef7f3
}

html[data-theme="dark"] .meta,
html[data-theme="dark"] .small-meta,
html[data-theme="dark"] .field-help,
html[data-theme="dark"] .contact-info-hint,
html[data-theme="dark"] .provider-mini,
html[data-theme="dark"] .section-title-row span,
html[data-theme="dark"] .search-panel-heading p,
html[data-theme="dark"] .area-unit-note,
html[data-theme="dark"] .auth-hint {
  color:#a7b8b4
}

html[data-theme="dark"] .detail-item,
html[data-theme="dark"] .trust-item,
html[data-theme="dark"] .profile-item,
html[data-theme="dark"] .detail-highlight-strip div,
html[data-theme="dark"] .preview-item,
html[data-theme="dark"] .quick-card,
html[data-theme="dark"] .summary-chip,
html[data-theme="dark"] .feature-check {
  background:#101a1f;
  border-color:#30434a;
  color:#dce9e6
}

html[data-theme="dark"] .button.light,
html[data-theme="dark"] .button.ghost,
html[data-theme="dark"] .icon-btn,
html[data-theme="dark"] .tab {
  background:#1d2b31;
  border-color:#3a5058;
  color:#dce9e6
}

html[data-theme="dark"] button,
html[data-theme="dark"] .button {
  color:#f3fbf8
}

html[data-theme="dark"] .button.secondary {
  background:#3b4c55;
  color:#fff
}

html[data-theme="dark"] .danger {
  color:#fff!important
}

html[data-theme="dark"] .contact-primary {
  background:#247c61!important;
  color:#fff!important
}

html[data-theme="dark"] .detail-side-card {
  background:linear-gradient(180deg,#17312d,#142027);
  border-color:#315b52
}

html[data-theme="dark"] .detail-highlight-strip span,
html[data-theme="dark"] .trust-score-ring span {
  color:#a7b8b4
}

html[data-theme="dark"] .contact-button-card {
  background:#1c443d!important;
  border-color:#3d796c!important;
  color:#d4f8ec!important
}

html[data-theme="dark"] .property-card-modern .listing-kind-badge,
html[data-theme="dark"] .detail-listing-badges .listing-kind-badge {
  background:#38251a;
  border-color:#00a870;
  color:#b8f3dc
}

html[data-theme="dark"] .property-card-modern .property-kind-badge,
html[data-theme="dark"] .detail-listing-badges .property-kind-badge {
  background:#172c3b;
  border-color:#315e7a;
  color:#b5dcf6
}

html[data-theme="dark"] .property-card-modern .phone-available-badge {
  background:#173d36;
  border-color:#3d796c;
  color:#b9f4df
}

html[data-theme="dark"] .phone-reveal-header {
  border-bottom-color:#315b52
}

html[data-theme="dark"] .phone-action-whatsapp {
  background:#173d36!important
}

html[data-theme="dark"] .admin-email-card {
  background:linear-gradient(135deg,#1d211e,#142027);
  border-color:#14532d
}

/* Darna improved158: softer dark typography and calmer green actions */
html[data-theme="dark"] body,
html[data-theme="dark"] .search-box,
html[data-theme="dark"] .form-card,
html[data-theme="dark"] .detail-card,
html[data-theme="dark"] .card,
html[data-theme="dark"] .detail-title-card,
html[data-theme="dark"] .provider-trust-card,
html[data-theme="dark"] .contact-panel,
html[data-theme="dark"] .form-section {
  color:#d6dfdc
}

html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] strong,
html[data-theme="dark"] .price,
html[data-theme="dark"] .card-price-main,
html[data-theme="dark"] .phone-reveal-number {
  color:#dce5e2
}

html[data-theme="dark"] .meta,
html[data-theme="dark"] .small-meta,
html[data-theme="dark"] .field-help,
html[data-theme="dark"] .contact-info-hint,
html[data-theme="dark"] .provider-mini,
html[data-theme="dark"] .section-title-row span,
html[data-theme="dark"] .search-panel-heading p,
html[data-theme="dark"] .area-unit-note,
html[data-theme="dark"] .auth-hint {
  color:#9caaa7
}

html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
  color:#dce5e2!important
}

html[data-theme="dark"] button,
html[data-theme="dark"] .button {
  color:#e2e9e7
}

html[data-theme="dark"] .button.secondary {
  color:#e6ecea
}

html[data-theme="dark"] .contact-primary {
  background:#236957!important;
  color:#e4eeeb!important
}

html[data-theme="dark"] .contact-button-card {
  background:#1d3b36!important;
  border-color:#3a6b61!important;
  color:#c1ded6!important
}

html[data-theme="dark"] .property-card-modern .phone-available-badge,
html[data-theme="dark"] .phone-action-whatsapp {
  background:#1b3733!important;
  border-color:#39685f;
  color:#baded4
}

html[data-theme="dark"] .phone-reveal-actions a,
html[data-theme="dark"] .phone-copy-button {
  color:#baded4
}

html[data-theme="dark"] .contact-panel textarea[readonly] {
  background:#101a1f!important;
  border-color:#30434a;
  color:#aebbb8!important
}

html[data-theme="dark"] .message-card-btn {
  border-color:#53679b!important;
  background:#26365a!important;
  color:#dbe5ff!important
}

html[data-theme="dark"] .card-contact-panel {
  border-color:#35544b;
  background:#162720;
  box-shadow:0 14px 30px rgba(0,0,0,.28)
}

html[data-theme="dark"] .card-contact-panel h3 {
  color:#dde8e4
}

html[data-theme="dark"] .card-contact-form textarea {
  border-color:#35544b;
  background:#1a2e27;
  color:#b8ccc5
}

html[data-theme="dark"] .report-disclosure>summary {
  border-color:#3b514b;
  background:#1b2c27;
  color:#aebfba
}

html[data-theme="dark"] .search-toolbar {
  background:#101a1f;
  border-color:#30434a
}

html[data-theme="dark"] .search-quick-links {
  color:#aebfba
}

html[data-theme="dark"] .search-quick-links a {
  border-color:#3a5058;
  background:#1d2b31;
  color:#d6dfdc
}

html[data-theme="dark"] .search-quick-links a:hover {
  border-color:#4a897c;
  background:#1c443d;
  color:#d4f8ec
}

html[data-theme="dark"] .tenure-summary-chip {
  background:#2a2440;
  border-color:#514879;
  color:#c7c0eb
}

/* Darna improved158: consolidated dark search panel overrides */
html[data-theme="dark"] .search-panel,
html[data-theme="dark"] .search-panel-heading,
html[data-theme="dark"] .search-toolbar {
  background:#142027;
  border-color:#30434a
}

html[data-theme="dark"] .search-quick-links a {
  background:#1d2b31;
  border-color:#3a5058;
  color:#dce5e2
}

html[data-theme="dark"] .search-quick-links a:hover {
  background:#173d36;
  border-color:#3d796c;
  color:#b9f4df
}


html[data-theme="dark"] .bottom-search-reset {
  background:#101a1f;
  border-color:#30434a;
  box-shadow:0 16px 34px rgba(0,0,0,.26)
}

html[data-theme="dark"] .bottom-search-reset .button.light {
  background:#1d2b31;
  border-color:#3a5058;
  color:#dce5e2
}

/* Darna improved158: tenure fields use the normal filter/select dark-mode styling */
html[data-theme="dark"] .tenure-filter-field select,
html[data-theme="dark"] .tenure-offer-field select {
  background:#101a1f;
  border-color:#3a5058;
  color:#dce5e2
}

/* Darna improved158: dark styling for refined popular city cards and calmer hints */
html[data-theme="dark"] .stat {
  background:#142027;
  border-color:#30434a;
  box-shadow:0 12px 26px rgba(0,0,0,.22)
}

html[data-theme="dark"] .popular-city-card {
  background:linear-gradient(180deg,#16252c,#121f25);
  border-color:#30434a;
  box-shadow:0 12px 26px rgba(0,0,0,.24)
}

html[data-theme="dark"] .popular-city-card:hover {
  background:linear-gradient(180deg,#17332d,#132922);
  border-color:#3d796c;
  box-shadow:0 18px 34px rgba(0,0,0,.32)
}

html[data-theme="dark"] .popular-city-icon {
  background:#173d36;
  border-color:#386f63;
  color:#b9f4df
}

html[data-theme="dark"] .popular-city-text strong {
  color:#e1ece8
}

html[data-theme="dark"] .popular-city-text .meta {
  color:#9caaa7
}

html[data-theme="dark"] .quick-search-actions .button.light {
  background:#1d2b31;
  border-color:#3a5058;
  color:#dce5e2
}

html[data-theme="dark"] .well-count-field {
  background: rgba(56, 189, 118, .09);
  border-color: rgba(56, 189, 118, .24);
}

/* Darna improved158: compact header with header logo exactly 20% smaller. */
html[dir="rtl"] header {
  padding-inline-start:6px;
  padding-inline-end:14px;
  min-height:58px;
}

.brand {
  margin-inline-start:-2px;
}

.brand-logo {
  width:119.84px;
  height:auto;
  max-height:51.52px;
  object-fit:contain;
  object-position:right center;
}

html[data-theme="dark"] .brand-logo {
  opacity:.92;
}

@media (max-width: 760px) {
  html[dir="rtl"] header {
    padding-inline-start:5px;
    padding-inline-end:10px;
    min-height:52px;
  }

  .brand {
    margin-inline-start:-1px;
  }

  .brand-logo {
    width:101.92px;
    max-height:44.8px;
  }
}

@media (max-width: 420px) {
  .brand-logo {
    width:94.08px;
    max-height:41.44px;
  }
}

/* Darna improved158: visible header theme button, clearer advanced toggle and stable mobile search actions. */
header {
  flex-wrap:nowrap;
}

.header-controls {
  display:flex;
  align-items:center;
  gap:8px;
  flex:0 0 auto;
  margin-inline-start:auto;
}

.header-controls .main-nav {
  margin-inline-start:0;
}

.header-theme-toggle {
  display:grid;
  width:42px;
  height:42px;
  min-width:42px;
  padding:0;
  place-items:center;
  border:1px solid #bfe9db;
  border-radius:999px;
  background:#f0fbf7;
  color:#006c4c;
  box-shadow:0 8px 18px rgba(0,108,76,.08);
}

.header-theme-toggle::before {
  content:"🌙";
  font-size:20px;
  line-height:1;
}

.header-theme-toggle[data-theme-state="dark"]::before {
  content:"☀️";
}

.header-theme-toggle:hover,
.header-theme-toggle:focus-visible {
  background:#e0f7ee;
  outline:2px solid rgba(0,168,112,.22);
  outline-offset:2px;
}

.advanced-filter>summary:after {
  display:inline-flex;
  width:34px;
  height:34px;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:var(--brand);
  color:#fff;
  box-shadow:0 9px 20px rgba(0,168,112,.22);
  font-size:28px;
  line-height:1;
}

.advanced-filter[open]>summary:after {
  background:#344054;
  color:#fff;
}

html[data-theme="dark"] .header-theme-toggle {
  border-color:#4a897c;
  background:#1c443d;
  color:#d4f8ec;
  box-shadow:0 8px 18px rgba(0,0,0,.26);
}

html[data-theme="dark"] .header-theme-toggle:hover,
html[data-theme="dark"] .header-theme-toggle:focus-visible {
  background:#23534a;
  outline-color:rgba(145,235,204,.26);
}

html[data-theme="dark"] .advanced-filter>summary:after {
  background:#2b8f73;
  box-shadow:0 9px 20px rgba(0,0,0,.32);
}

html[data-theme="dark"] .advanced-filter[open]>summary:after {
  background:#3a5058;
}

@media (max-width: 760px) {
  .header-controls {
    gap:7px;
  }

  .header-theme-toggle {
    width:40px;
    height:40px;
    min-width:40px;
  }

  .quick-search-type,
  .quick-search-actions {
    grid-column:1/-1!important;
  }

  .quick-search-actions {
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
    align-items:stretch!important;
    margin-top:0;
  }

  .quick-search-actions button,
  .quick-search-actions .button {
    display:inline-flex;
    width:100%!important;
    min-width:0;
    min-height:46px;
    align-items:center;
    justify-content:center;
    gap:6px;
    padding:10px 8px;
    text-align:center;
    white-space:nowrap;
  }

  .advanced-filter>summary:after {
    width:36px;
    height:36px;
    font-size:30px;
  }
}

@media (max-width: 360px) {
  .quick-search-actions {
    grid-template-columns:1fr;
  }
}

/* Darna improved158: cleaner result count, lower trust section, richer bottom actions, and compact scroll jumps. */
html {
  scrollbar-color:#5bbf9e #edf7f3;
  scrollbar-width:auto
}

html::-webkit-scrollbar {
  width:12px
}

html::-webkit-scrollbar-track {
  background:#edf7f3
}

html::-webkit-scrollbar-thumb {
  border:2px solid #edf7f3;
  border-radius:999px;
  background:#5bbf9e
}

html::-webkit-scrollbar-thumb:hover {
  background:var(--brand-dark)
}

body.has-scroll-jump-controls {
  padding-right:36px
}

.results-summary {
  max-width:1080px;
  margin:18px auto 12px;
  padding:12px 16px;
  border:1px solid rgba(0,166,118,.18);
  border-radius:16px;
  background:linear-gradient(135deg,rgba(236,253,245,.92),rgba(255,255,255,.94));
  box-shadow:0 12px 28px rgba(16,24,40,.07);
  text-align:right
}

.results-summary strong {
  display:block;
  margin-top:3px;
  color:#0f2f2a;
  font-size:18px;
  font-weight:900
}

.home-trust-bottom {
  max-width:1080px;
  margin:18px auto 0
}

.home-trust-bottom .home-trust-disclosure {
  margin:0
}

.bottom-search-reset {
  margin-top:20px;
  padding:14px 16px;
  border-color:rgba(0,166,118,.18);
  background:linear-gradient(135deg,rgba(236,253,245,.94),rgba(255,255,255,.96));
  gap:10px
}

.bottom-search-reset .button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:44px;
  padding:10px 18px;
  border-radius:13px;
  font-size:15px;
  font-weight:900;
  box-shadow:0 12px 24px rgba(0,166,118,.14)
}

.bottom-search-reset .bottom-search-link {
  color:#fff;
  background:linear-gradient(135deg,var(--brand),#0b8f68);
  border-color:rgba(0,166,118,.35)
}

.bottom-search-reset .bottom-search-link:hover {
  transform:translateY(-1px);
  box-shadow:0 16px 30px rgba(0,166,118,.22)
}

.bottom-search-reset .bottom-reset-link {
  color:#475467;
  background:#f8fafc;
  border-color:#d9e2ea;
  opacity:1
}

.bottom-search-reset .bottom-reset-link:hover {
  color:#7a3b00;
  background:#fff7ed;
  border-color:#fed7aa
}

.bottom-search-reset .ui-icon {
  width:18px;
  height:18px
}

.scroll-jump-controls {
  position:fixed;
  top:82px;
  right:0;
  bottom:14px;
  z-index:40;
  display:flex;
  width:36px;
  padding:4px 0;
  align-items:center;
  flex-direction:column;
  justify-content:space-between;
  border:1px solid rgba(0,168,112,.22);
  border-right:0;
  border-radius:12px 0 0 12px;
  background:linear-gradient(180deg,rgba(232,247,240,.94),rgba(255,255,255,.72));
  box-shadow:-8px 0 20px rgba(0,108,76,.08);
  pointer-events:none
}

.scroll-jump-button {
  display:grid;
  width:34px;
  height:34px;
  padding:0;
  place-items:center;
  border:1px solid rgba(0,108,76,.2);
  border-radius:10px;
  color:#fff;
  background:linear-gradient(135deg,var(--brand),#0b8f68);
  box-shadow:0 6px 14px rgba(0,108,76,.2);
  font-size:18px;
  font-weight:900;
  line-height:1;
  cursor:pointer;
  pointer-events:auto
}

.scroll-jump-button.is-down {
  margin-top:auto;
  background:linear-gradient(135deg,#0f766e,#14b8a6)
}

.scroll-jump-button[hidden],
.scroll-jump-controls[hidden] {
  display:none
}

html[data-theme="dark"] .results-summary {
  background:linear-gradient(135deg,#123026,#101a1f);
  border-color:#245847;
  box-shadow:0 16px 34px rgba(0,0,0,.28)
}

html[data-theme="dark"] .results-summary strong {
  color:#d4f8ec
}

html[data-theme="dark"] .bottom-search-reset {
  background:linear-gradient(135deg,#123026,#101a1f);
  border-color:#245847
}

html[data-theme="dark"] .bottom-search-reset .bottom-reset-link {
  background:#1d2b31;
  border-color:#3a5058;
  color:#dce5e2
}

html[data-theme="dark"] .bottom-search-reset .bottom-reset-link:hover {
  background:#2b2418;
  border-color:#00a870;
  color:#ffe5c2
}

html[data-theme="dark"] .scroll-jump-button {
  color:#06120e;
  background:linear-gradient(135deg,#8df0c8,#31c490)
}

html[data-theme="dark"] {
  scrollbar-color:#4ca98a #17242a
}

html[data-theme="dark"]::-webkit-scrollbar-track {
  background:#17242a
}

html[data-theme="dark"]::-webkit-scrollbar-thumb {
  border-color:#17242a;
  background:#4ca98a
}

html[data-theme="dark"] .scroll-jump-controls {
  border-color:rgba(125,226,191,.24);
  background:linear-gradient(180deg,rgba(17,60,49,.92),rgba(23,36,42,.82));
  box-shadow:-8px 0 20px rgba(0,0,0,.2)
}

@media (max-width: 760px) {
  body.has-scroll-jump-controls {
    padding-right:32px
  }

  .results-summary,
  .home-trust-bottom {
    margin-inline:12px
  }

  .bottom-search-reset .button {
    flex:1 1 150px;
    min-height:46px;
    font-size:14px
  }

  .scroll-jump-controls {
    top:72px;
    right:0;
    bottom:10px;
    width:32px
  }

  .scroll-jump-button {
    width:32px;
    height:32px;
    border-radius:9px;
    font-size:17px
  }
}

/* Darna improved158: mobile scroll controls become a small bottom-left top button and advanced filters scroll with the page. */
@media (max-width: 760px) {
  body.has-scroll-jump-controls {
    padding-right:0;
  }

  .scroll-jump-controls {
    top:auto;
    right:auto;
    bottom:14px;
    left:12px;
    width:auto;
    padding:0;
    border:0;
    border-radius:0;
    background:transparent;
    box-shadow:none;
    pointer-events:none;
  }

  .scroll-jump-button.is-down {
    display:none!important;
  }

  .scroll-jump-button.is-up {
    width:42px;
    height:42px;
    border-radius:999px;
    opacity:.92;
    border-color:rgba(0,108,76,.18);
    box-shadow:0 10px 24px rgba(0,108,76,.20);
    font-size:21px;
  }

  .search-panel .advanced-filter[open]>.advanced-filter-body {
    display:block;
    max-height:none!important;
    overflow:visible!important;
  }

  .search-panel .advanced-filter-scroll {
    max-height:none!important;
    overflow:visible!important;
    scrollbar-width:none;
  }

  .search-panel .advanced-filter-scroll::-webkit-scrollbar {
    display:none;
  }

  .search-panel .advanced-filter-actions {
    position:static;
    border-top:1px solid #b8e7d8;
    border-radius:0 0 20px 20px;
  }
}

/* Darna improved158: make the mobile top button smaller and less intrusive. */
@media (max-width: 760px) {
  .scroll-jump-controls {
    bottom:18px;
    left:14px;
  }

  .scroll-jump-button.is-up {
    width:34px;
    height:34px;
    border-radius:999px;
    opacity:.72;
    border-color:rgba(0,108,76,.16);
    box-shadow:0 8px 18px rgba(0,108,76,.14);
    font-size:17px;
  }

  .scroll-jump-button.is-up:hover,
  .scroll-jump-button.is-up:focus-visible {
    opacity:.96;
  }
}

html[data-theme="dark"] .scroll-jump-button.is-up {
  color:#dffcf2;
  background:rgba(35,105,87,.82);
  border-color:rgba(141,240,200,.16);
  box-shadow:0 8px 18px rgba(0,0,0,.24);
}

/* Darna improved158: global soft-dark pass; no harsh pure-white text in dark mode. */
html[data-theme="dark"] {
  --darna-dark-bg:#0b1216;
  --darna-dark-surface:#141f26;
  --darna-dark-surface-2:#10191f;
  --darna-dark-surface-3:#1b2930;
  --darna-dark-elevated:#18252c;
  --darna-dark-border:#2d4149;
  --darna-dark-border-strong:#3c5862;
  --darna-dark-text:#e2e9e6;
  --darna-dark-title:#edf3f0;
  --darna-dark-muted:#a8b5b1;
  --darna-dark-soft:#c7d2ce;
  --darna-dark-placeholder:#879792;
  --darna-dark-accent-soft:#c3e8dc;
  --darna-dark-warning:#fde047;
  /* --bg/--card/--text/--muted/--border are finalized by section 167. */
}

html[data-theme="dark"] body,
html[data-theme="dark"] main,
html[data-theme="dark"] footer,
html[data-theme="dark"] p,
html[data-theme="dark"] li,
html[data-theme="dark"] td,
html[data-theme="dark"] th,
html[data-theme="dark"] .container {
  color:var(--darna-dark-text);
}

html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] strong,
html[data-theme="dark"] .price,
html[data-theme="dark"] .detail-price,
html[data-theme="dark"] .card-price-main,
html[data-theme="dark"] .card-title-detail-link,
html[data-theme="dark"] .detail-title-card h1,
html[data-theme="dark"] .section-title-row strong,
html[data-theme="dark"] .popular-city-text strong,
html[data-theme="dark"] .phone-reveal-number,
html[data-theme="dark"] .results-summary strong {
  color:var(--darna-dark-title)!important;
}

html[data-theme="dark"] .meta,
html[data-theme="dark"] .mini-meta,
html[data-theme="dark"] .small-meta,
html[data-theme="dark"] .field-help,
html[data-theme="dark"] .form-hint,
html[data-theme="dark"] .auth-hint,
html[data-theme="dark"] .contact-info-hint,
html[data-theme="dark"] .provider-mini,
html[data-theme="dark"] .section-title-row span,
html[data-theme="dark"] .search-panel-heading p,
html[data-theme="dark"] .area-unit-note,
html[data-theme="dark"] .upload-copy,
html[data-theme="dark"] .upload-help-list,
html[data-theme="dark"] .image-placeholder-subtitle,
html[data-theme="dark"] .saved-search-summary,
html[data-theme="dark"] .pagination-status {
  color:var(--darna-dark-muted)!important;
}

html[data-theme="dark"] .search-box,
html[data-theme="dark"] .search-panel,
html[data-theme="dark"] .search-toolbar,
html[data-theme="dark"] .form-card,
html[data-theme="dark"] .form-section,
html[data-theme="dark"] .detail-card,
html[data-theme="dark"] .detail-title-card,
html[data-theme="dark"] .detail-side-card,
html[data-theme="dark"] .card,
html[data-theme="dark"] .property-card-modern,
html[data-theme="dark"] .home-section-card,
html[data-theme="dark"] .contact-panel,
html[data-theme="dark"] .contact-phone-reveal,
html[data-theme="dark"] .card-contact-panel,
html[data-theme="dark"] .provider-profile-box,
html[data-theme="dark"] .provider-profile-hero,
html[data-theme="dark"] .provider-trust-card,
html[data-theme="dark"] .profile-box,
html[data-theme="dark"] .profile-item,
html[data-theme="dark"] .pending-box,
html[data-theme="dark"] .report-box,
html[data-theme="dark"] .report-review-card,
html[data-theme="dark"] .saved-search-card,
html[data-theme="dark"] .saved-search-empty,
html[data-theme="dark"] .empty-state,
html[data-theme="dark"] .empty-state-friendly,
html[data-theme="dark"] .listing-preview-card,
html[data-theme="dark"] .upload-panel,
html[data-theme="dark"] .upload-preview-empty,
html[data-theme="dark"] .admin-stat-card,
html[data-theme="dark"] .admin-insight-card,
html[data-theme="dark"] .admin-email-card,
html[data-theme="dark"] .risk-card,
html[data-theme="dark"] .footer-links,
html[data-theme="dark"] .notice,
html[data-theme="dark"] .flash {
  background:var(--darna-dark-surface)!important;
  border-color:var(--darna-dark-border)!important;
  color:var(--darna-dark-text)!important;
  box-shadow:0 14px 32px rgba(0,0,0,.24);
}

html[data-theme="dark"] .detail-side-card,
html[data-theme="dark"] .improved-save-search-panel,
html[data-theme="dark"] .results-summary,
html[data-theme="dark"] .bottom-search-reset,
html[data-theme="dark"] .popular-city-card {
  background:linear-gradient(180deg,var(--darna-dark-elevated),var(--darna-dark-surface-2))!important;
  border-color:var(--darna-dark-border)!important;
  color:var(--darna-dark-text)!important;
}

html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] .contact-panel textarea[readonly],
html[data-theme="dark"] .card-contact-form textarea {
  background:var(--darna-dark-surface-2)!important;
  border-color:var(--darna-dark-border-strong)!important;
  color:var(--darna-dark-text)!important;
  box-shadow:none!important;
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
  color:var(--darna-dark-placeholder)!important;
}

html[data-theme="dark"] input:focus,
html[data-theme="dark"] select:focus,
html[data-theme="dark"] textarea:focus {
  border-color:#5aa990!important;
  outline:2px solid rgba(90,169,144,.18)!important;
  outline-offset:1px;
}

html[data-theme="dark"] label,
html[data-theme="dark"] .compact-label,
html[data-theme="dark"] .search-priority-row,
html[data-theme="dark"] .advanced-filter>summary,
html[data-theme="dark"] .advanced-features>summary,
html[data-theme="dark"] .file-label,
html[data-theme="dark"] .upload-file-label {
  color:var(--darna-dark-soft)!important;
}

html[data-theme="dark"] .advanced-filter>summary,
html[data-theme="dark"] .advanced-features>summary,
html[data-theme="dark"] .search-priority-row span,
html[data-theme="dark"] .feature-check,
html[data-theme="dark"] .quick-card,
html[data-theme="dark"] .summary-chip,
html[data-theme="dark"] .detail-item,
html[data-theme="dark"] .trust-item,
html[data-theme="dark"] .preview-item,
html[data-theme="dark"] .tab,
html[data-theme="dark"] .pill,
html[data-theme="dark"] .tenure-summary-chip,
html[data-theme="dark"] .card-badge,
html[data-theme="dark"] .admin-table tr,
html[data-theme="dark"] .admin-table th,
html[data-theme="dark"] .admin-table td,
html[data-theme="dark"] .saved-search-stats div,
html[data-theme="dark"] .report-review-body div {
  background:var(--darna-dark-surface-2)!important;
  border-color:var(--darna-dark-border)!important;
  color:var(--darna-dark-text)!important;
}

html[data-theme="dark"] .advanced-filter>summary:after,
html[data-theme="dark"] .advanced-filter[open]>summary:after,
html[data-theme="dark"] .advanced-filter-count,
html[data-theme="dark"] .tab.active,
html[data-theme="dark"] .bottom-search-reset .bottom-search-link,
html[data-theme="dark"] .contact-primary,
html[data-theme="dark"] .button.primary,
html[data-theme="dark"] button[type="submit"]:not(.nav-button):not(.password-toggle) {
  color:#eaf4ef!important;
  text-shadow:none!important;
}

html[data-theme="dark"] .button,
html[data-theme="dark"] button,
html[data-theme="dark"] .icon-btn,
html[data-theme="dark"] .nav-link,
html[data-theme="dark"] .lang-link,
html[data-theme="dark"] .bottom-search-reset .bottom-reset-link,
html[data-theme="dark"] .phone-reveal-actions a,
html[data-theme="dark"] .phone-copy-button,
html[data-theme="dark"] .contact-button-card,
html[data-theme="dark"] .favorite-card-btn,
html[data-theme="dark"] .share-card-btn,
html[data-theme="dark"] .detail-message-button,
html[data-theme="dark"] .message-card-btn {
  color:var(--darna-dark-soft)!important;
}

html[data-theme="dark"] .button.light,
html[data-theme="dark"] .button.ghost,
html[data-theme="dark"] .button.secondary,
html[data-theme="dark"] .icon-btn,
html[data-theme="dark"] .tab:not(.active),
html[data-theme="dark"] .nav-link,
html[data-theme="dark"] .lang-link {
  background:var(--darna-dark-surface-3)!important;
  border-color:var(--darna-dark-border-strong)!important;
}

html[data-theme="dark"] a:not(.button):not(.nav-link):not(.lang-link):not(.card-title-detail-link) {
  color:var(--darna-dark-accent-soft);
}

html[data-theme="dark"] .danger,
html[data-theme="dark"] .danger-hint,
html[data-theme="dark"] .deleted {
  color:#f4b4b8!important;
}

html[data-theme="dark"] .property-card-modern .listing-kind-badge,
html[data-theme="dark"] .detail-listing-badges .listing-kind-badge {
  background:#342519!important;
  border-color:#00a870!important;
  color:#b8f3dc!important;
}

html[data-theme="dark"] .property-card-modern .property-kind-badge,
html[data-theme="dark"] .detail-listing-badges .property-kind-badge {
  background:#172b38!important;
  border-color:#35566e!important;
  color:#b4d7ec!important;
}

html[data-theme="dark"] .property-card-modern .phone-available-badge,
html[data-theme="dark"] .phone-action-whatsapp,
html[data-theme="dark"] .contact-button-card,
html[data-theme="dark"] .card-phone-reveal,
html[data-theme="dark"] .card-phone-reveal a,
html[data-theme="dark"] .region-filter-help.is-active {
  color:var(--darna-dark-accent-soft)!important;
}

html[data-theme="dark"] .well-count-field,
html[data-theme="dark"] .feature-row,
html[data-theme="dark"] .form-hint,
html[data-theme="dark"] .upload-help-list {
  background:rgba(87,150,128,.10)!important;
  border-color:rgba(108,176,151,.24)!important;
}

html[data-theme="dark"] .wizard-dot,
html[data-theme="dark"] .wizard-counter,
html[data-theme="dark"] .status-pill,
html[data-theme="dark"] .trust-badge {
  color:var(--darna-dark-soft)!important;
}

html[data-theme="dark"] .scroll-jump-button.is-up,
html[data-theme="dark"] .header-theme-toggle,
html[data-theme="dark"] .theme-toggle {
  color:var(--darna-dark-accent-soft)!important;
}

/* Darna improved158: image review, main-photo and lightbox polish. */
.featured-gallery {
  display:grid;
  gap:14px;
}
.featured-gallery-main-button,
.gallery-thumb-button,
.admin-image-preview-button {
  border:0;
  padding:0;
  background:transparent;
  cursor:pointer;
  display:block;
  position:relative;
  width:100%;
  text-align:inherit;
  font-family:inherit;
}
.featured-gallery-main-button {
  border-radius:18px;
  overflow:hidden;
  border:1px solid #e4e7ec;
  background:#f9fafb;
}
.featured-gallery-main {
  display:block;
  width:100%;
  max-height:560px;
  object-fit:cover;
}
.gallery-thumbs {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(110px,1fr));
  gap:10px;
}
.gallery-thumb-button {
  border:2px solid transparent;
  border-radius:14px;
  overflow:hidden;
  background:#f2f4f7;
  min-height:78px;
}
.gallery-thumb-button:hover,
.gallery-thumb-button:focus-visible,
.gallery-thumb-button.is-primary {
  border-color:var(--brand);
  outline:none;
}
.gallery-thumb-button img {
  width:100%;
  height:86px;
  object-fit:cover;
  display:block;
}
.gallery-thumb-button span,
.primary-image-badge,
.image-status-badge,
.sort-order-badge {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  padding:5px 8px;
  font-size:11px;
  font-weight:950;
}
.gallery-thumb-button span {
  position:absolute;
  inset-inline-start:6px;
  bottom:6px;
  background:rgba(0,122,85,.92);
  color:#f6fffb;
}
.gallery-lightbox[hidden] {
  display:none!important;
}
.gallery-lightbox {
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.86);
  z-index:2000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:54px 56px;
}
.gallery-lightbox img {
  max-width:min(1120px,96vw);
  max-height:86vh;
  object-fit:contain;
  border-radius:18px;
  box-shadow:0 26px 80px rgba(0,0,0,.45);
}
.gallery-lightbox-close,
.gallery-lightbox-nav {
  position:absolute;
  border:1px solid rgba(255,255,255,.26);
  background:rgba(18,27,34,.82);
  color:#f1f5f3;
  border-radius:999px;
  width:46px;
  height:46px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:30px;
  font-weight:900;
  cursor:pointer;
}
.gallery-lightbox-close {
  top:18px;
  inset-inline-end:18px;
}
.gallery-lightbox-prev {
  inset-inline-start:18px;
}
.gallery-lightbox-next {
  inset-inline-end:18px;
}
body.gallery-lightbox-open {
  overflow:hidden;
}
.admin-images-header {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(280px,.8fr);
  gap:18px;
  align-items:start;
  margin-bottom:18px;
}
.admin-image-summary {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
}
.admin-image-summary div,
.admin-image-meta-grid div {
  border:1px solid #e4e7ec;
  border-radius:14px;
  background:#f9fafb;
  padding:10px;
}
.admin-image-summary span,
.admin-image-meta-grid span,
.admin-image-id {
  display:block;
  color:#667085;
  font-size:12px;
  font-weight:900;
  margin-bottom:4px;
}
.admin-image-summary strong,
.admin-image-meta-grid strong {
  color:#101828;
  font-weight:950;
  overflow-wrap:anywhere;
}
.admin-image-review-grid {
  display:grid;
  gap:16px;
}
.admin-image-review-card {
  display:grid;
  grid-template-columns:minmax(220px,330px) minmax(0,1fr);
  gap:16px;
  align-items:stretch;
  border:1px solid #e4e7ec;
  background:#fff;
  border-radius:20px;
  padding:14px;
  box-shadow:0 12px 30px rgba(16,24,40,.08);
}
.admin-image-review-card.is-primary {
  border-color:#7ed9bd;
  box-shadow:0 14px 34px rgba(0,122,85,.14);
}
.admin-image-preview-wrap {
  position:relative;
  min-height:220px;
  border-radius:18px;
  overflow:hidden;
  background:#eef2f6;
}
.admin-review-image {
  width:100%;
  height:100%;
  min-height:220px;
  object-fit:cover;
  display:block;
}
.admin-review-image-empty {
  min-height:220px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#667085;
  font-weight:950;
}
.admin-image-badges {
  position:absolute;
  inset-inline-start:10px;
  top:10px;
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
.image-status-badge {
  background:rgba(255,255,255,.94);
  color:#344054;
}
.primary-image-badge {
  background:#dcfaec;
  color:#027a48;
}
.sort-order-badge {
  background:#fff7ed;
  color:#b54708;
}
.admin-image-info {
  display:flex;
  flex-direction:column;
  gap:12px;
}
.admin-image-title-row {
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
}
.admin-image-title-row h2 {
  margin:0;
  font-size:20px;
}
.admin-image-title-row a {
  text-decoration:none;
}
.admin-image-meta-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}
.admin-image-address {
  margin:0;
  padding:10px 12px;
  border-radius:12px;
  background:#f7fbf9;
  border:1px solid #d9eee6;
  color:#344054;
  font-weight:850;
}
.admin-image-actions {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:auto;
}
.admin-image-actions form {
  margin:0;
}
.approve-image-btn {
  background:#079455!important;
  border-color:#079455!important;
  color:#f6fffb!important;
}
.reject-image-btn {
  background:#b42318!important;
  border-color:#b42318!important;
  color:#fff7f6!important;
}
html[data-theme="dark"] .featured-gallery-main-button,
html[data-theme="dark"] .gallery-thumb-button,
html[data-theme="dark"] .admin-image-summary div,
html[data-theme="dark"] .admin-image-review-card,
html[data-theme="dark"] .admin-image-meta-grid div,
html[data-theme="dark"] .admin-image-address {
  background:var(--darna-dark-surface-2)!important;
  border-color:var(--darna-dark-border)!important;
  color:var(--darna-dark-text)!important;
}
html[data-theme="dark"] .admin-image-summary strong,
html[data-theme="dark"] .admin-image-meta-grid strong,
html[data-theme="dark"] .admin-image-title-row h2,
html[data-theme="dark"] .admin-image-title-row a {
  color:var(--darna-dark-title)!important;
}
html[data-theme="dark"] .admin-image-summary span,
html[data-theme="dark"] .admin-image-meta-grid span,
html[data-theme="dark"] .admin-image-id {
  color:var(--darna-dark-muted)!important;
}
html[data-theme="dark"] .admin-image-review-card.is-primary {
  border-color:#5aa990!important;
  box-shadow:0 14px 34px rgba(0,0,0,.32);
}
html[data-theme="dark"] .image-status-badge {
  background:rgba(20,31,38,.9)!important;
  color:var(--darna-dark-soft)!important;
}
html[data-theme="dark"] .primary-image-badge {
  background:rgba(39,123,94,.25)!important;
  color:var(--darna-dark-accent-soft)!important;
}
html[data-theme="dark"] .sort-order-badge {
  background:rgba(0,168,112,.32)!important;
  color:#b8f3dc!important;
}
@media (max-width: 840px) {
  .admin-images-header,
  .admin-image-review-card,
  .admin-image-meta-grid {
    grid-template-columns:1fr;
  }
  .admin-image-summary {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .admin-image-actions,
  .admin-image-actions form,
  .admin-image-actions .button {
    width:100%;
  }
  .gallery-lightbox {
    padding:52px 14px;
  }
  .gallery-lightbox-nav {
    bottom:16px;
    top:auto;
  }
}

/* Darna improved158: one-click approval for all images of one listing. */
.approve-all-images-btn {
  background: #0f766e;
  color: #f8fafc;
  border-color: rgba(15, 118, 110, .4);
}
.approve-all-images-btn:hover {
  filter: brightness(1.04);
}
html[data-theme="dark"] .approve-all-images-btn {
  background: #115e59;
  color: #e6fffb;
  border-color: rgba(94, 234, 212, .25);
}

/* Darna improved165: provider image lightbox before submit + clearer admin moderation filters. */
.admin-image-status-tabs {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin:0 0 16px;
  padding:10px;
  border:1px solid #e4e7ec;
  border-radius:16px;
  background:#f9fafb;
}
.admin-image-status-tabs .status-tab {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid #d0d5dd;
  border-radius:999px;
  padding:8px 14px;
  font-weight:950;
  color:#344054;
  background:#fff;
  text-decoration:none;
}
.admin-image-status-tabs .status-tab.active,
.admin-image-status-tabs .status-tab:hover,
.admin-image-status-tabs .status-tab:focus-visible {
  border-color:var(--brand);
  color:var(--brand-dark);
  background:#e8f7f0;
  outline:none;
}
.admin-image-property-group {
  border:1px solid #e4e7ec;
  background:#fff;
  border-radius:22px;
  padding:14px;
  box-shadow:0 10px 30px rgba(16,24,40,.07);
}
.admin-image-group-header {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  border-bottom:1px solid #eef2f5;
  padding-bottom:12px;
  margin-bottom:12px;
}
.admin-image-group-header h2 {
  margin:3px 0;
}
.admin-image-group-actions {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
}
.image-count-pill {
  display:inline-flex;
  border:1px solid #d0d5dd;
  background:#f9fafb;
  color:#344054;
  border-radius:999px;
  padding:7px 10px;
  font-size:12px;
  font-weight:950;
}
.admin-image-context-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  gap:8px;
  margin-bottom:10px;
}
.admin-image-context-grid div {
  border:1px solid #e4e7ec;
  border-radius:14px;
  background:#f9fafb;
  padding:10px;
}
.admin-image-context-grid span {
  display:block;
  color:#667085;
  font-size:12px;
  font-weight:900;
  margin-bottom:4px;
}
.admin-image-context-grid strong {
  color:#101828;
  font-weight:950;
  overflow-wrap:anywhere;
}
.admin-image-cards-row {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(245px,1fr));
  gap:12px;
}
.admin-image-cards-row .admin-image-review-card {
  display:block;
  padding:10px;
  border-radius:18px;
}
.admin-image-cards-row .admin-image-info {
  padding-top:10px;
}
.image-rejection-note {
  border:1px solid #fecdca;
  background:#fef3f2;
  color:#912018;
  border-radius:12px;
  padding:8px;
  font-size:12px;
  font-weight:800;
}
.provider-image-preview-hint {
  margin:0;
}
.upload-preview-open-button,
.preview-image-button {
  border:0;
  padding:0;
  text-align:inherit;
  cursor:pointer;
  font-family:inherit;
}
.upload-preview-open-button:focus-visible,
.preview-image-button:focus-visible {
  outline:3px solid rgba(0,122,85,.32);
  outline-offset:2px;
}
.preview-image-strip {
  align-items:start;
}
.preview-image-button {
  position:relative;
  border-radius:12px;
  overflow:hidden;
  background:#f2f4f7;
}
.preview-image-button img {
  display:block;
}
.provider-preview-counter {
  position:absolute;
  bottom:18px;
  left:50%;
  transform:translateX(-50%);
  background:rgba(16,24,40,.78);
  color:#fff;
  border-radius:999px;
  padding:8px 13px;
  font-size:13px;
  font-weight:950;
}
html[data-theme="dark"] .admin-image-status-tabs,
html[data-theme="dark"] .admin-image-property-group,
html[data-theme="dark"] .admin-image-context-grid div,
html[data-theme="dark"] .image-count-pill {
  background:#111827;
  border-color:#263243;
}
html[data-theme="dark"] .admin-image-status-tabs .status-tab {
  background:#1f2937;
  border-color:#374151;
  color:#e5e7eb;
}
html[data-theme="dark"] .admin-image-status-tabs .status-tab.active {
  background:rgba(0,122,85,.24);
  border-color:#14b884;
  color:#d7fff0;
}
@media (max-width: 720px) {
  .admin-image-group-header,
  .admin-image-group-actions {
    align-items:stretch;
    justify-content:stretch;
  }
  .admin-image-group-actions > * {
    width:100%;
  }
  .admin-image-cards-row {
    grid-template-columns:1fr;
  }
}

/* Darna improved165: mobile provider image preview removal and better wizard scrolling. */
.upload-preview-card {
  position:relative;
  border-radius:12px;
}
.upload-preview-card .upload-preview-item {
  width:100%;
  text-align:inherit;
}
.upload-preview-remove {
  position:absolute;
  inset-block-start:6px;
  inset-inline-end:6px;
  z-index:4;
  width:28px;
  height:28px;
  border:0;
  border-radius:999px;
  background:rgba(16,24,40,.78);
  color:#fff;
  font-size:20px;
  line-height:1;
  font-weight:950;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 8px 18px rgba(16,24,40,.22);
  cursor:pointer;
}
.upload-preview-remove:focus-visible {
  outline:3px solid rgba(242,106,33,.35);
  outline-offset:2px;
}
.upload-limit-message {
  margin:8px 0 0;
  color:#b42318;
  background:#fef3f2;
  border:1px solid #fecdca;
}
.location-description-panel textarea,
.property-description-panel textarea {
  min-height:92px;
}
@media (max-width: 620px) {
  .wizard-progress {
    display:flex;
    overflow-x:auto;
    gap:8px;
    padding:2px 2px 10px;
    scroll-snap-type:x proximity;
    -webkit-overflow-scrolling:touch;
  }
  .wizard-dot {
    flex:0 0 auto;
    min-width:94px;
    max-width:124px;
    padding:8px 10px;
    font-size:12px;
    line-height:1.35;
    white-space:normal;
    scroll-snap-align:start;
  }
  .wizard-counter {
    margin-bottom:6px;
  }
  .upload-preview-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .upload-preview-item img {
    height:110px;
  }
}

/* Darna improved165: admin workflow actions without full page reload. */
.admin-ajax-message {
  position: fixed;
  inset-inline-start: 1rem;
  bottom: 1rem;
  z-index: 1200;
  max-width: min(360px, calc(100vw - 2rem));
  padding: .85rem 1rem;
  border-radius: 14px;
  background: rgba(22, 163, 74, .96);
  color: #fff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .18);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  font-weight: 800;
}
.admin-ajax-message.visible { opacity: 1; transform: translateY(0); }
.admin-ajax-message.error { background: rgba(220, 38, 38, .96); }
.admin-ajax-busy { opacity: .72; }
.admin-ajax-removing {
  opacity: 0;
  transform: scale(.985);
  transition: opacity .18s ease, transform .18s ease;
}
button.is-loading { cursor: progress; }
.admin-image-preview-wrap.image-file-removed .admin-review-image-empty,
.admin-image-preview-wrap.image-file-removed .admin-image-preview-button { opacity: .45; }

/* Darna improved165: modern admin workflow queue and stronger no-reload feedback. */
.admin-work-queue {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .94), rgba(255, 247, 237, .7));
  box-shadow: 0 18px 42px rgba(15, 23, 42, .08);
}
.admin-work-queue-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.admin-work-queue-head h2 { margin: 2px 0 0; }
.admin-live-note {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(34, 197, 94, .12);
  color: #166534;
  font-weight: 800;
  font-size: .88rem;
}
.admin-work-queue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}
.admin-work-card {
  display: grid;
  gap: 4px;
  text-decoration: none;
  color: #172033;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(148, 163, 184, .25);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .07);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.admin-work-card:hover,
.admin-work-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(15, 23, 42, .12);
  border-color: rgba(249, 115, 22, .35);
}
.admin-work-card strong { font-size: 1.8rem; line-height: 1; color: #f97316; }
.admin-work-card small { color: #64748b; font-weight: 700; }
.admin-work-card.urgent strong { color: #dc2626; }
.admin-work-card.warning strong { color: #d97706; }
.admin-work-card.risk strong { color: #7c3aed; }
.sticky-admin-tabs {
  position: sticky;
  top: 74px;
  z-index: 20;
  backdrop-filter: blur(14px);
}
.admin-image-progress {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(148, 163, 184, .2);
  margin-top: 7px;
}
.admin-image-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22c55e, #f97316);
  transition: width .18s ease;
}
.admin-ajax-busy { opacity: .78; }
.admin-ajax-removing { opacity: 0; transform: scale(.98); transition: opacity .18s ease, transform .18s ease; }
.admin-user-banned-row { background: rgba(254, 226, 226, .26); }
html[data-theme="dark"] .admin-work-queue {
  background: linear-gradient(135deg, rgba(15,23,42,.96), rgba(6,78,59,.72));
  border-color: rgba(148, 163, 184, .28);
}
html[data-theme="dark"] .admin-work-card {
  background: rgba(15,23,42,.82);
  color: #f8fafc;
}
html[data-theme="dark"] .admin-work-card small { color: #cbd5e1; }
html[data-theme="dark"] .admin-live-note { background: rgba(34, 197, 94, .18); color: #bbf7d0; }
@media (max-width: 700px) {
  .admin-work-queue { padding: 14px; border-radius: 18px; }
  .admin-work-queue-head { flex-direction: column; }
  .admin-work-queue-grid { grid-template-columns: 1fr 1fr; }
  .sticky-admin-tabs { top: 58px; }
}

/* improved167: admin roles */
.admin-user-badge-stack {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  justify-content: flex-end;
  align-items: center;
}
.admin-role-pill.owner,
.admin-stat-card.owner {
  background: rgba(126, 34, 206, .12);
  color: #581c87;
  border-color: rgba(126, 34, 206, .24);
}
.admin-role-pill.manager,
.admin-stat-card.manager {
  background: rgba(37, 99, 235, .12);
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, .24);
}
.admin-role-pill.moderator,
.admin-stat-card.moderator {
  background: rgba(22, 163, 74, .12);
  color: #15803d;
  border-color: rgba(22, 163, 74, .24);
}
.admin-role-pill.support,
.admin-stat-card.support {
  background: rgba(100, 116, 139, .14);
  color: #475569;
  border-color: rgba(100, 116, 139, .25);
}
.admin-user-role-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: .55rem;
  align-items: end;
  margin: .65rem 0;
}
.admin-user-role-form select { min-height: 2.6rem; }
@media (max-width: 680px) {
  .admin-user-badge-stack { justify-content: flex-start; }
  .admin-user-role-form { grid-template-columns: 1fr; }
}

.success-hint {
  color: #1f7a3d;
  font-weight: 800;
}

html[data-theme="dark"] .success-hint {
  color: #9fe6b7;
}

/* Darna improved158: soft dark support for new price and description form blocks. */
html[data-theme="dark"] .price-composer,
html[data-theme="dark"] .property-description-panel {
  background:rgba(18,32,39,.92)!important;
  border-color:rgba(128,146,160,.22)!important;
}
html[data-theme="dark"] .price-help-text {
  background:rgba(9,18,23,.58)!important;
  border-color:rgba(128,146,160,.18)!important;
  color:#cbd5df!important;
}
html[data-theme="dark"] .subsection-title {
  color:#e2e8ee!important;
}
html[data-theme="dark"] .price-saved-preview strong {
  color:#9dd5bd!important;
}

/* Darna improved158: clearer location/address guidance and visual publish preview. */
.optional-address-detail input {
  border-style: dashed;
}
.location-description-help,
.optional-address-detail .small-meta {
  line-height: 1.7;
}
.preview-images-block {
  grid-column: 1 / -1;
}
.preview-image-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: .6rem;
  margin-top: .45rem;
}
.preview-image-strip img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, .12);
  background: #f1f5f9;
}
html[data-theme="dark"] .preview-image-strip img {
  border-color: rgba(226, 232, 240, .18);
  background: #111827;
}
.price-saved-preview strong {
  direction: rtl;
  unicode-bidi: plaintext;
}

/* Darna improved158: moderation, fraud-risk hints, admin image rejection reason and publish preview polish. */
.admin-stat-card.risk,
.risk-mini-list span:last-child {
  border-color: rgba(180, 83, 9, 0.28);
  background: rgba(245, 158, 11, 0.10);
}
.moderation-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.22rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 800;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.04);
}
.moderation-pill.risk-score-clean { background: rgba(22, 163, 74, 0.10); }
.moderation-pill.risk-score-low { background: rgba(14, 165, 233, 0.10); }
.moderation-pill.risk-score-medium { background: rgba(245, 158, 11, 0.14); }
.moderation-pill.risk-score-high { background: rgba(220, 38, 38, 0.14); }
.moderation-score,
.moderation-flags {
  display: block;
  margin-top: 0.28rem;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}
.admin-listing-quality {
  display: grid;
  gap: 3px;
  margin-top: 0.4rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 0.72rem;
  background: rgba(16, 185, 129, 0.08);
  font-size: 0.76rem;
}
.admin-listing-quality small {
  color: var(--muted);
}
.reject-image-form {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  align-items: center;
}
.reject-image-form input {
  min-width: min(260px, 100%);
  border-radius: 0.7rem;
  border: 1px solid var(--border);
  padding: 0.55rem 0.65rem;
}
.preview-publish-notice {
  border: 1px solid rgba(217, 119, 6, 0.22);
  background: rgba(245, 158, 11, 0.10);
  border-radius: 0.9rem;
  padding: 0.75rem 0.9rem;
}
html[data-theme="dark"] .moderation-pill,
html[data-theme="dark"] .admin-listing-quality,
html[data-theme="dark"] .reject-image-form input,
html[data-theme="dark"] .preview-publish-notice {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.72);
}

/* Darna improved165: make wizard validation focus obvious on mobile. */
.field-error-focus {
  outline: 2px solid rgba(220, 38, 38, 0.75);
  outline-offset: 4px;
  border-radius: 16px;
  scroll-margin-top: 120px;
}
.field-error-focus input,
.field-error-focus select,
.field-error-focus textarea {
  border-color: rgba(220, 38, 38, 0.85) !important;
}

/* Darna improved180: mobile form polish and stronger dark-mode quality. */
.wizard-dot.completed {
  background:rgba(0,168,112,.10);
  border-color:rgba(0,168,112,.28);
  color:var(--brand-dark);
}
.wizard-dot[aria-current="step"] {
  position:relative;
}
.wizard-dot[aria-current="step"]:after {
  content:"";
  position:absolute;
  inset-inline:18px;
  inset-block-end:-7px;
  height:3px;
  border-radius:999px;
  background:currentColor;
}
.preview-image-button {
  display:block;
  width:100%;
  padding:0;
  border:0;
  border-radius:14px;
  background:transparent;
  cursor:pointer;
  overflow:hidden;
}
.preview-image-button:focus-visible {
  outline:3px solid rgba(0,168,112,.28);
  outline-offset:3px;
}
@media (max-width: 700px) {
  .form-card {
    padding:16px;
    border-radius:22px;
  }
  .wizard-counter {
    width:100%;
    justify-content:center;
    border-radius:14px;
    margin-bottom:8px;
  }
  .wizard-progress {
    position:sticky;
    top:72px;
    z-index:16;
    display:flex;
    gap:8px;
    margin:10px 0 14px;
    padding:8px;
    overflow-x:auto;
    overscroll-behavior-x:contain;
    scroll-snap-type:x proximity;
    -webkit-overflow-scrolling:touch;
    border:1px solid var(--border);
    border-radius:18px;
    background:rgba(255,255,255,.94);
    box-shadow:0 12px 26px rgba(16,24,40,.10);
    scrollbar-width:thin;
    mask-image:linear-gradient(90deg,transparent 0,#000 18px,#000 calc(100% - 18px),transparent 100%);
  }
  .wizard-dot {
    flex:0 0 auto;
    min-width:104px;
    max-width:138px;
    padding:9px 10px;
    border-radius:999px;
    line-height:1.35;
    font-size:12px;
    white-space:normal;
    scroll-snap-align:center;
  }
  .wizard-dot[aria-current="step"]:after {
    inset-inline:22px;
    inset-block-end:3px;
    height:2px;
  }
  .wizard-validation {
    position:sticky;
    top:132px;
    z-index:15;
    box-shadow:0 14px 28px rgba(180,35,24,.14);
  }
  .wizard-actions {
    position:sticky;
    bottom:0;
    z-index:14;
    margin:20px -4px 0;
    padding:10px;
    border:1px solid var(--border);
    border-radius:18px 18px 0 0;
    background:rgba(255,255,255,.96);
    box-shadow:0 -14px 28px rgba(16,24,40,.12);
    backdrop-filter:blur(14px);
  }
  .wizard-actions button,
  .wizard-actions .button {
    min-height:48px;
    border-radius:14px;
  }
  .form-section .grid {
    gap:12px;
  }
  .field-error-focus {
    scroll-margin-top:172px;
  }
  .upload-preview-card {
    border-radius:16px;
  }
  .upload-preview-item img {
    height:122px;
  }
}
@media (max-width: 420px) {
  .form-card {
    padding:12px;
  }
  .wizard-progress {
    top:64px;
    border-radius:16px;
  }
  .wizard-dot {
    min-width:96px;
    max-width:116px;
    font-size:11px;
    padding:8px 9px;
  }
  .wizard-actions {
    grid-template-columns:1fr 1fr;
  }
  .wizard-actions > span:empty {
    display:none;
  }
  .wizard-actions:has(> span:empty) {
    grid-template-columns:1fr;
  }
}
html[data-theme="dark"] {
  --darna-dark-bg:#071015;
  --darna-dark-surface:#111c23;
  --darna-dark-surface-2:#0d171d;
  --darna-dark-surface-3:#182731;
  --darna-dark-elevated:#15242d;
  --darna-dark-border:#334a54;
  --darna-dark-border-strong:#46636f;
  --darna-dark-text:#e5ece9;
  --darna-dark-title:#f2f7f5;
  --darna-dark-muted:#aebbb7;
  --darna-dark-accent-soft:#b9f3dd;
  --brand:#35bf8f;
  --brand-dark:#9ae8cf;
  --brand-soft:#132f29;
}
html[data-theme="dark"] body {
  background:
    radial-gradient(circle at 18% -8%,rgba(53,191,143,.13),transparent 30%),
    radial-gradient(circle at 86% 12%,rgba(125,226,191,.10),transparent 28%),
    var(--darna-dark-bg)!important;
}
html[data-theme="dark"] header {
  background:rgba(13,23,29,.94)!important;
  border-color:rgba(70,99,111,.76)!important;
  backdrop-filter:blur(18px);
}
html[data-theme="dark"] .form-card,
html[data-theme="dark"] .form-section,
html[data-theme="dark"] .wizard-progress,
html[data-theme="dark"] .wizard-actions,
html[data-theme="dark"] .upload-panel,
html[data-theme="dark"] .price-composer,
html[data-theme="dark"] .property-description-panel,
html[data-theme="dark"] .location-description-panel,
html[data-theme="dark"] .listing-preview-card,
html[data-theme="dark"] .preview-item,
html[data-theme="dark"] .upload-preview-card,
html[data-theme="dark"] .upload-preview-empty,
html[data-theme="dark"] .admin-work-queue,
html[data-theme="dark"] .admin-work-card,
html[data-theme="dark"] .admin-quick-actions,
html[data-theme="dark"] .admin-city-row {
  background:linear-gradient(180deg,rgba(21,36,45,.98),rgba(13,23,29,.98))!important;
  border-color:var(--darna-dark-border)!important;
  color:var(--darna-dark-text)!important;
  box-shadow:0 18px 40px rgba(0,0,0,.30)!important;
}
html[data-theme="dark"] .form-section {
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025),0 14px 34px rgba(0,0,0,.24)!important;
}
html[data-theme="dark"] .wizard-counter,
html[data-theme="dark"] .wizard-dot {
  background:rgba(13,23,29,.92)!important;
  border-color:var(--darna-dark-border)!important;
  color:var(--darna-dark-muted)!important;
}
html[data-theme="dark"] .wizard-dot.completed {
  background:rgba(53,191,143,.13)!important;
  border-color:rgba(111,220,184,.32)!important;
  color:#b9f3dd!important;
}
html[data-theme="dark"] .wizard-dot.active,
html[data-theme="dark"] .wizard-dot[aria-current="step"] {
  background:linear-gradient(135deg,#247c61,#35bf8f)!important;
  border-color:#58d2a8!important;
  color:#f5fffb!important;
  box-shadow:0 10px 24px rgba(53,191,143,.24)!important;
}
html[data-theme="dark"] .wizard-validation,
html[data-theme="dark"] .upload-limit-message {
  background:rgba(95,24,24,.68)!important;
  border-color:rgba(248,113,113,.46)!important;
  color:#ffd6d6!important;
}
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
  background:#0b151b!important;
  border-color:var(--darna-dark-border-strong)!important;
  color:var(--darna-dark-title)!important;
  caret-color:var(--brand-dark);
}
html[data-theme="dark"] select option {
  background:#0b151b;
  color:var(--darna-dark-title);
}
html[data-theme="dark"] input:disabled,
html[data-theme="dark"] select:disabled,
html[data-theme="dark"] textarea:disabled {
  background:#101b22!important;
  color:#7f918d!important;
  border-color:#253a43!important;
}
html[data-theme="dark"] .price-help-text,
html[data-theme="dark"] .form-hint,
html[data-theme="dark"] .upload-help-list,
html[data-theme="dark"] .feature-row,
html[data-theme="dark"] .small-meta {
  background:rgba(185,243,221,.06)!important;
  border-color:rgba(185,243,221,.14)!important;
  color:var(--darna-dark-muted)!important;
}
html[data-theme="dark"] .subsection-title,
html[data-theme="dark"] label,
html[data-theme="dark"] .compact-label,
html[data-theme="dark"] .upload-copy strong,
html[data-theme="dark"] .upload-preview-header strong,
html[data-theme="dark"] .preview-item strong {
  color:var(--darna-dark-title)!important;
}
html[data-theme="dark"] .upload-file-label {
  background:rgba(53,191,143,.12)!important;
  border-color:rgba(111,220,184,.34)!important;
  color:#d8fff1!important;
}
html[data-theme="dark"] .upload-preview-remove {
  background:rgba(248,113,113,.92)!important;
  color:#fff!important;
  box-shadow:0 10px 24px rgba(0,0,0,.36)!important;
}
html[data-theme="dark"] .preview-image-button img,
html[data-theme="dark"] .upload-preview-item img {
  border-color:rgba(185,243,221,.16)!important;
  background:#0b151b!important;
}
html[data-theme="dark"] .field-error-focus {
  outline-color:rgba(248,113,113,.88)!important;
  background:rgba(127,29,29,.20)!important;
}
html[data-theme="dark"] .field-error-focus input,
html[data-theme="dark"] .field-error-focus select,
html[data-theme="dark"] .field-error-focus textarea {
  border-color:rgba(248,113,113,.88)!important;
  box-shadow:0 0 0 3px rgba(248,113,113,.14)!important;
}
html[data-theme="dark"] .button,
html[data-theme="dark"] button[type="button"],
html[data-theme="dark"] button[type="submit"] {
  border-color:rgba(185,243,221,.22);
}
html[data-theme="dark"] .button.light,
html[data-theme="dark"] .button.ghost {
  background:#1b2d37!important;
  color:#d8fff1!important;
}
@media (max-width: 700px) {
  html[data-theme="dark"] .wizard-progress {
    background:rgba(13,23,29,.92)!important;
    box-shadow:0 14px 34px rgba(0,0,0,.38)!important;
  }
  html[data-theme="dark"] .wizard-actions {
    background:rgba(13,23,29,.94)!important;
    box-shadow:0 -18px 34px rgba(0,0,0,.42)!important;
  }
}

/* Darna improved180: draft recovery and safe wizard navigation. */
.wizard-draft-panel{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:12px 0 16px;
  padding:12px 14px;
  border:1px solid rgba(234,88,12,.22);
  border-radius:18px;
  background:rgba(255,251,245,.88);
  color:#7c2d12;
}
.wizard-draft-panel[hidden]{display:none!important}
.wizard-draft-panel [data-draft-message]{font-weight:800;line-height:1.8}
.wizard-draft-panel .button{white-space:nowrap;padding:8px 12px}
html[data-theme="dark"] .wizard-draft-panel{
  border-color:rgba(125,226,191,.35);
  background:rgba(6,78,59,.88);
  color:#b8f3dc;
  box-shadow:0 16px 34px rgba(0,0,0,.28);
}
html[data-theme="dark"] .wizard-draft-panel .button.light{
  background:rgba(255,251,245,.1);
  color:#ffedd5;
  border-color:rgba(125,226,191,.34);
}
@media (max-width: 700px) {
  .wizard-draft-panel{align-items:stretch;flex-direction:column}
  .wizard-draft-panel .button{width:100%}
}

/* Darna improved180: admin image workflow and provider preview polish. */
.admin-image-workflow-state{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 9px;
  border-radius:999px;
  background:rgba(248,113,22,.12);
  color:#9a3412;
  font-size:.78rem;
  font-weight:800;
  white-space:nowrap;
}
.admin-image-quality-strip{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:8px 0 10px;
  color:#475569;
  font-size:.82rem;
}
.admin-image-quality-strip span{
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding:5px 8px;
  border:1px solid rgba(148,163,184,.32);
  border-radius:999px;
  background:rgba(248,250,252,.82);
}
.admin-image-quality-strip strong{color:#0f172a;}
.image-file-missing .admin-image-preview-wrap,
.image-file-removed{
  border-style:dashed;
  opacity:.88;
}
.image-file-removed-note{
  margin:8px 0 0;
  padding:8px 10px;
  border-radius:12px;
  background:#fff7ed;
  border:1px solid rgba(251,146,60,.38);
  color:#9a3412;
  font-size:.83rem;
  line-height:1.6;
}
.admin-image-review-card.is-primary{
  box-shadow:0 0 0 2px rgba(248,113,22,.26),0 14px 34px rgba(15,23,42,.10);
}
.admin-image-review-card.is-primary .admin-image-workflow-state{
  background:rgba(22,163,74,.12);
  color:#166534;
}
.set-primary-image-form .button{min-width:132px;}
.provider-preview-lightbox .provider-preview-counter{
  position:absolute;
  bottom:22px;
  left:50%;
  transform:translateX(-50%);
  padding:6px 12px;
  border-radius:999px;
  background:rgba(15,23,42,.78);
  color:#fff;
  font-weight:800;
}
@media (max-width: 700px) {
  .admin-image-quality-strip{gap:6px;font-size:.78rem;}
  .admin-image-quality-strip span{padding:5px 7px;}
  .admin-image-workflow-state{font-size:.74rem;}
  .admin-image-actions{gap:8px;}
  .admin-image-actions form,.admin-image-actions button{width:100%;}
}
html[data-theme="dark"] .admin-image-workflow-state{
  background:rgba(125,226,191,.18);
  color:#b8f3dc;
  border:1px solid rgba(125,226,191,.22);
}
html[data-theme="dark"] .admin-image-quality-strip{color:#cbd5e1;}
html[data-theme="dark"] .admin-image-quality-strip span{
  background:rgba(15,23,42,.72);
  border-color:rgba(148,163,184,.24);
}
html[data-theme="dark"] .admin-image-quality-strip strong{color:#f8fafc;}
html[data-theme="dark"] .image-file-removed-note{
  background:rgba(248,113,113,.28);
  border-color:rgba(254,202,202,.32);
  color:#fecaca;
}
html[data-theme="dark"] .admin-image-review-card.is-primary{
  box-shadow:0 0 0 2px rgba(125,226,191,.34),0 18px 36px rgba(0,0,0,.32);
}
html[data-theme="dark"] .admin-image-review-card.is-primary .admin-image-workflow-state{
  background:rgba(34,197,94,.16);
  color:#bbf7d0;
}

/* Darna improved180: provider image ordering and primary-preview controls. */
.upload-preview-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.upload-preview-card.is-primary {
  border-color: rgba(242, 106, 33, .55);
  box-shadow: 0 16px 34px rgba(242, 106, 33, .12);
}

.upload-preview-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: .82rem;
  color: var(--muted);
}

.upload-preview-order,
.provider-primary-note {
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(242, 106, 33, .09);
  color: var(--brand-dark);
  font-weight: 800;
}

.provider-primary-note {
  background: rgba(39, 174, 96, .12);
  color: #20734a;
}

.upload-preview-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.upload-preview-control {
  min-height: 34px;
  border: 1px solid rgba(31, 41, 55, .12);
  border-radius: 12px;
  background: #fffdfb;
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

.upload-preview-control:disabled {
  cursor: not-allowed;
  opacity: .42;
}

.provider-primary-control {
  color: var(--brand-dark);
  background: rgba(242, 106, 33, .08);
  border-color: rgba(242, 106, 33, .24);
}

.provider-primary-image-hint {
  margin-top: 8px;
}

.preview-image-button {
  position: relative;
}

.preview-image-button.is-primary {
  border-color: rgba(242, 106, 33, .5);
  box-shadow: 0 12px 24px rgba(242, 106, 33, .14);
}

.preview-primary-badge {
  position: absolute;
  top: 6px;
  inset-inline-start: 6px;
  z-index: 2;
  border-radius: 999px;
  padding: 4px 8px;
  color: #fff;
  background: rgba(242, 106, 33, .94);
  font-size: .72rem;
  font-weight: 900;
}

html[data-theme="dark"] .upload-preview-card.is-primary {
  border-color: rgba(125,226,191,.72);
  background: rgba(125,226,191,.08);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .35);
}

html[data-theme="dark"] .upload-preview-order,
html[data-theme="dark"] .provider-primary-note {
  color: #b8f3dc;
  background: rgba(125,226,191,.14);
}

html[data-theme="dark"] .provider-primary-note {
  color: #b7f7d0;
  background: rgba(58, 204, 124, .14);
}

html[data-theme="dark"] .upload-preview-control {
  color: #f6eadf;
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .14);
}

html[data-theme="dark"] .provider-primary-control {
  color: #b8f3dc;
  background: rgba(125,226,191,.12);
  border-color: rgba(125,226,191,.26);
}

@media (max-width: 760px) {
  .upload-preview-control {
    width: 100%;
  }
}

/* Darna improved180: price and listing-type polish for cards, detail page and preview. */
.listing-price-panel {
  position: relative;
  overflow: hidden;
  display: block;
  padding: 13px 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 247, 237, 0.96), rgba(255, 255, 255, 0.98));
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}
.listing-price-panel::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--brand);
  opacity: 0.92;
}
.price-context-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.price-context-label,
.price-display-mode {
  font-size: 12px;
  font-weight: 900;
  color: #8a4b12;
}
.price-display-mode {
  border: 1px solid rgba(217, 119, 6, 0.20);
  background: rgba(255, 237, 213, 0.74);
  border-radius: 999px;
  padding: 3px 8px;
}
.structured-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px;
  line-height: 1.1;
  unicode-bidi: plaintext;
}
.structured-price .price-number {
  font-size: clamp(26px, 4.2vw, 38px);
  font-weight: 1000;
  letter-spacing: -0.03em;
}
.card-price-main.structured-price .price-number {
  font-size: clamp(24px, 3.5vw, 32px);
}
.structured-price .price-unit {
  font-size: 0.88em;
  font-weight: 950;
}
.structured-price .price-currency {
  font-size: 0.72em;
  font-weight: 850;
  color: #667085;
}
.converted-price-line {
  margin-top: 5px;
  font-weight: 800;
}
.listing-kind-badge.listing-kind-sale,
.listing-price-panel.listing-kind-sale::before {
  background-color: #ecfdf3;
  color: #027a48;
  border-color: #abefc6;
}
.listing-price-panel.listing-kind-sale {
  background: linear-gradient(135deg, rgba(236, 253, 243, 0.98), rgba(255, 255, 255, 0.98));
}
.listing-kind-badge.listing-kind-rent,
.listing-price-panel.listing-kind-rent::before {
  background-color: #eff8ff;
  color: #175cd3;
  border-color: #b2ddff;
}
.listing-price-panel.listing-kind-rent {
  background: linear-gradient(135deg, rgba(239, 248, 255, 0.98), rgba(255, 255, 255, 0.98));
}
.listing-kind-badge.listing-kind-rahn,
.listing-price-panel.listing-kind-rahn::before {
  background-color: #fffaeb;
  color: #b54708;
  border-color: #fedf89;
}
.listing-price-panel.listing-kind-rahn {
  background: linear-gradient(135deg, rgba(255, 250, 235, 0.98), rgba(255, 255, 255, 0.98));
}
.detail-price-panel {
  margin-bottom: 14px;
  padding: 16px 17px;
}
.detail-price-panel .section-eyebrow {
  display: block;
  margin-bottom: 6px;
}
.preview-item strong {
  overflow-wrap: anywhere;
}
.preview-item:first-child + .preview-item strong {
  font-size: 1.05rem;
  font-weight: 950;
}
html[data-theme="dark"] .listing-price-panel {
  border-color: rgba(226, 232, 240, 0.14);
  background: linear-gradient(135deg, rgba(24, 38, 45, 0.96), rgba(13, 23, 29, 0.96));
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.22);
}
html[data-theme="dark"] .listing-price-panel.listing-kind-sale,
html[data-theme="dark"] .listing-price-panel.listing-kind-rent,
html[data-theme="dark"] .listing-price-panel.listing-kind-rahn {
  background: linear-gradient(135deg, rgba(24, 38, 45, 0.96), rgba(13, 23, 29, 0.96));
}
html[data-theme="dark"] .price-context-label,
html[data-theme="dark"] .price-display-mode {
  color: #b8f3dc;
}
html[data-theme="dark"] .price-display-mode {
  background: rgba(125,226,191,0.12);
  border-color: rgba(125,226,191,0.22);
}
html[data-theme="dark"] .structured-price .price-number,
html[data-theme="dark"] .structured-price .price-unit {
  color: #f8fafc;
}
html[data-theme="dark"] .structured-price .price-currency,
html[data-theme="dark"] .converted-price-line {
  color: #cbd5e1;
}
@media (max-width: 640px) {
  .listing-price-panel {
    padding: 12px;
    border-radius: 16px;
  }
  .price-context-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  .structured-price .price-number {
    font-size: 30px;
  }
}

/* Darna improved180: professional search results, card polish and Arabic-safe price spacing. */
.results-summary-pro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 250, 245, 0.96), rgba(255, 255, 255, 0.98));
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.06);
}
.results-summary-copy {
  min-width: 0;
}
.results-summary-pro strong {
  display: block;
  margin-top: 2px;
  font-size: clamp(1.08rem, 2vw, 1.45rem);
  color: var(--text);
}
.active-filter-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}
.result-filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  max-width: 100%;
  padding: 4px 10px;
  border: 1px solid rgba(217, 119, 6, 0.18);
  border-radius: 999px;
  background: rgba(255, 252, 242, 0.88);
  color: #8a4b12;
  font-size: 0.85rem;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.results-summary-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.results-summary-actions .button {
  min-height: 40px;
  padding-inline: 13px;
  white-space: nowrap;
}
.property-results-grid {
  align-items: stretch;
}
.property-card-modern {
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.property-card-modern:hover,
.property-card-modern:focus-within {
  transform: translateY(-2px);
  border-color: rgba(217, 119, 6, 0.26);
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.12);
}
.card-topline {
  gap: 7px;
  flex-wrap: wrap;
}
.card-topline span,
.summary-chip {
  border-color: rgba(15, 23, 42, 0.08);
  background: rgba(248, 250, 252, 0.88);
}
.card-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 850;
  color: #344054;
}
.price-safe-arabic-layout {
  direction: rtl;
  isolation: isolate;
}
.price-safe-arabic-layout .price-context-row {
  direction: rtl;
  unicode-bidi: isolate;
}
.price-safe-arabic-layout .price-context-label,
.price-safe-arabic-layout .price-display-mode {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.price-safe-arabic-layout .structured-price {
  direction: rtl;
  unicode-bidi: isolate;
  column-gap: 0.42rem;
  row-gap: 0.14rem;
}
.price-safe-arabic-layout .price-number,
.price-safe-arabic-layout .price-unit,
.price-safe-arabic-layout .price-currency {
  display: inline-block;
  white-space: nowrap;
}
.empty-state-pro {
  padding: 28px;
  border: 1px solid rgba(217, 119, 6, 0.18);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 251, 235, 0.95), rgba(255, 255, 255, 0.98));
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.07);
}
.empty-state-pro strong {
  display: block;
  margin-bottom: 7px;
  font-size: 1.25rem;
}
.empty-state-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
}
html[data-theme="dark"] .results-summary-pro,
html[data-theme="dark"] .empty-state-pro {
  border-color: rgba(226, 232, 240, 0.14);
  background: linear-gradient(135deg, rgba(22, 33, 39, 0.96), rgba(12, 22, 28, 0.96));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}
html[data-theme="dark"] .result-filter-chip {
  border-color: rgba(125,226,191,0.24);
  background: rgba(125,226,191,0.12);
  color: #b8f3dc;
}
html[data-theme="dark"] .card-topline span,
html[data-theme="dark"] .summary-chip {
  border-color: rgba(226, 232, 240, 0.12);
  background: rgba(15, 23, 42, 0.42);
}
html[data-theme="dark"] .card-location {
  color: #d6e0ea;
}
@media (max-width: 760px) {
  .results-summary-pro {
    align-items: stretch;
    flex-direction: column;
    padding: 14px;
    border-radius: 20px;
  }
  .results-summary-actions {
    justify-content: stretch;
  }
  .results-summary-actions .button,
  .empty-state-actions .button {
    flex: 1 1 145px;
    justify-content: center;
  }
  .property-card-modern {
    border-radius: 22px;
  }
  .card-summary-row {
    gap: 6px;
  }
  .price-safe-arabic-layout .structured-price {
    align-items: baseline;
    justify-content: flex-start;
  }
}

/* Darna improved180: professional detail page, contact card, gallery and mobile polish. */
.detail-contact-card {
  border-radius: 24px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(236, 253, 243, .96), rgba(255, 255, 255, .98));
  border-color: rgba(16, 185, 129, .26);
  box-shadow: 0 18px 44px rgba(15, 118, 87, .13);
}
.detail-contact-card .detail-price-panel {
  margin-bottom: 12px;
}
.detail-feature-strip {
  gap: 7px;
  margin: 10px 0 12px;
}
.detail-contact-intro {
  display: grid;
  gap: 4px;
  margin: 12px 0 10px;
  padding: 12px;
  border: 1px solid rgba(2, 122, 72, .12);
  border-radius: 16px;
  background: rgba(255, 255, 255, .72);
}
.detail-contact-intro strong {
  color: #075f44;
  font-size: 15px;
  font-weight: 1000;
}
.detail-contact-intro span {
  color: #667085;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.55;
}
.detail-contact-actions {
  grid-template-columns: 1fr;
}
.detail-owner-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.detail-owner-actions .button {
  justify-content: center;
  min-height: 48px;
  border-radius: 16px;
  font-weight: 1000;
}
.detail-contact-action {
  justify-content: center;
  min-height: 48px;
  border-radius: 16px;
  font-weight: 1000;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .06);
}
.detail-contact-action svg {
  inline-size: 19px;
  block-size: 19px;
}
.detail-contact-whatsapp {
  background: linear-gradient(135deg, #059669, #047857) !important;
  border-color: rgba(4, 120, 87, .28) !important;
  color: #f8fffc !important;
}
.detail-contact-panel {
  margin-top: 14px;
  border-radius: 18px;
  border-color: rgba(148, 163, 184, .22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45);
}
.detail-section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.detail-section-title-row h2 {
  margin: 2px 0 0;
  font-size: clamp(20px, 2.1vw, 27px);
}
.detail-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(217, 119, 6, .2);
  border-radius: 999px;
  background: rgba(255, 249, 242, .94);
  color: #9a3412;
  font-size: 13px;
  font-weight: 1000;
  white-space: nowrap;
}
.detail-gallery-section,
.detail-info-grid,
.detail-provider-card {
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .06);
}
.detail-gallery-section {
  padding: 18px;
  border: 1px solid #eaecf0;
  background: #fff;
}
.detail-gallery-section .featured-gallery-main-button {
  border-radius: 22px;
  box-shadow: 0 16px 42px rgba(15, 23, 42, .10);
}
.detail-gallery-section .featured-gallery-main {
  aspect-ratio: 16 / 9;
  max-height: 620px;
  background: #f8fafc;
}
.detail-gallery-section .gallery-thumbs {
  grid-template-columns: repeat(auto-fill, minmax(102px, 1fr));
  gap: 10px;
}
.detail-gallery-section .gallery-thumb-button {
  border-radius: 16px;
  background: #f8fafc;
}
.detail-gallery-section .gallery-thumb-button img {
  height: 92px;
}
.detail-info-grid {
  gap: 10px;
}
.detail-info-heading {
  margin-bottom: 4px;
}
.detail-info-grid .detail-item {
  border: 1px solid rgba(234, 236, 240, .96);
  border-radius: 16px;
  padding: 12px;
  background: #f9fafb;
}
.detail-info-grid .detail-item strong {
  display: inline-block;
  color: #344054;
  margin-inline-end: 3px;
}
.detail-bottom-actions {
  padding: 14px;
  border: 1px solid rgba(234, 236, 240, .96);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .05);
}
.detail-provider-card .trust-grid {
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
}
html[data-theme="dark"] .detail-contact-card,
html[data-theme="dark"] .detail-gallery-section,
html[data-theme="dark"] .detail-info-grid,
html[data-theme="dark"] .detail-bottom-actions,
html[data-theme="dark"] .detail-provider-card {
  background: linear-gradient(180deg, rgba(22, 32, 39, .98), rgba(13, 23, 29, .98)) !important;
  border-color: var(--darna-dark-border) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .30);
}
html[data-theme="dark"] .detail-contact-intro,
html[data-theme="dark"] .detail-info-grid .detail-item,
html[data-theme="dark"] .detail-count-badge {
  background: rgba(20, 31, 38, .92);
  border-color: var(--darna-dark-border);
  color: var(--darna-dark-text);
}
html[data-theme="dark"] .detail-contact-intro strong,
html[data-theme="dark"] .detail-section-title-row h2,
html[data-theme="dark"] .detail-info-grid .detail-item strong {
  color: var(--darna-dark-title);
}
html[data-theme="dark"] .detail-contact-intro span,
html[data-theme="dark"] .detail-info-grid .detail-item {
  color: var(--darna-dark-muted);
}
html[data-theme="dark"] .detail-count-badge {
  color: #b8f3dc;
}
.detail-share-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(20, 184, 116, .18);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .05);
}
.detail-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.detail-share-action {
  min-height: 44px;
}
.detail-share-action.whatsapp-share {
  background: #047857;
  border-color: #047857;
  color: #fff;
}
html[data-theme="dark"] .detail-share-card {
  background: linear-gradient(180deg, rgba(22, 32, 39, .98), rgba(13, 23, 29, .98));
  border-color: var(--darna-dark-border);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .30);
}
@media (max-width: 760px) {
  .detail-contact-card,
  .detail-gallery-section,
  .detail-info-grid,
  .detail-bottom-actions,
  .detail-share-card,
  .detail-provider-card {
    border-radius: 20px;
  }
  .detail-contact-card {
    padding: 14px;
  }
  .detail-contact-action {
    min-height: 50px;
  }
  .detail-section-title-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .detail-count-badge {
    width: 100%;
  }
  .detail-share-actions,
  .detail-share-action {
    width: 100%;
  }
  .detail-gallery-section .gallery-thumbs {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
  }
  .detail-gallery-section .gallery-thumb-button {
    flex: 0 0 104px;
    scroll-snap-align: start;
  }
  .detail-info-grid .detail-item {
    padding: 11px;
  }
}

/* Darna improved180: provider profile and my listings professional polish. */
.provider-page-pro,
.my-properties-page-pro {
  display:flex;
  flex-direction:column;
  gap:18px;
}

.provider-profile-hero-pro,
.my-properties-hero {
  position:relative;
  overflow:hidden;
  border:1px solid #d0eadb;
  border-radius:26px;
  padding:24px;
  background:linear-gradient(135deg,#f0fdf4,#ffffff 52%,#fff7ed);
  box-shadow:0 18px 46px rgba(16,24,40,.08);
}

.provider-profile-hero-pro::before,
.my-properties-hero::before {
  content:"";
  position:absolute;
  inset:auto -40px -65px auto;
  width:190px;
  height:190px;
  border-radius:999px;
  background:rgba(246,136,29,.13);
  pointer-events:none;
}

.provider-hero-main,
.my-properties-hero > div {
  position:relative;
  z-index:1;
}

.provider-hero-main h1,
.my-properties-hero h1 {
  margin:4px 0 8px;
  font-size:clamp(28px,4vw,42px);
  line-height:1.18;
}

.provider-hero-badges {
  margin-top:14px;
}

.provider-score-card {
  position:relative;
  z-index:1;
  min-width:220px;
  max-width:300px;
  padding:18px;
  border:1px solid rgba(22,163,74,.18);
  border-radius:22px;
  background:rgba(255,255,255,.86);
  box-shadow:0 14px 34px rgba(16,24,40,.08);
}

.provider-score-card .score-label,
.provider-summary-card span,
.my-summary-card span {
  display:block;
  color:#667085;
  font-size:13px;
  font-weight:850;
}

.provider-score-card .score-value {
  display:block;
  margin:6px 0 10px;
  font-size:32px;
  font-weight:1000;
  color:#166534;
}

.provider-score-card p {
  margin:10px 0 0;
  color:#475467;
  font-size:13px;
  line-height:1.65;
}

.provider-trust-meter {
  height:9px;
  overflow:hidden;
  border-radius:999px;
  background:#e7f5ed;
}

.provider-trust-meter-fill {
  display:block;
  height:100%;
  width:0%;
  border-radius:inherit;
  background:linear-gradient(90deg,#22c55e,#f59e0b);
}

.provider-profile-summary,
.my-properties-summary,
.provider-trust-indicators {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}

.provider-summary-card,
.my-summary-card,
.trust-indicator {
  padding:16px;
  border:1px solid #e4efe8;
  border-radius:20px;
  background:#fff;
  box-shadow:0 10px 26px rgba(16,24,40,.055);
}

.provider-summary-card strong,
.my-summary-card strong {
  display:block;
  margin-top:6px;
  font-size:24px;
  color:#101828;
}

.provider-summary-card small {
  display:block;
  margin-top:4px;
  color:#667085;
  font-weight:750;
}

.provider-profile-box-pro .profile-item {
  border-radius:18px;
  background:linear-gradient(180deg,#fff,#f9fafb);
}

.provider-trust-indicators {
  grid-template-columns:repeat(3,minmax(0,1fr));
}

.trust-indicator {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  color:#475467;
}

.trust-indicator strong {
  color:#101828;
}

.trust-indicator.is-ok {
  border-color:#bbf7d0;
  background:linear-gradient(135deg,#f0fdf4,#fff);
}

.provider-rating-form-pro {
  align-items:center;
  padding:14px;
  border:1px solid #e4efe8;
  border-radius:18px;
  background:#fff;
}

.provider-rating-form-pro .rating-label {
  font-weight:900;
}

.provider-listings-title-pro {
  align-items:flex-end;
  padding:6px 0;
}

.provider-listings-title-pro h2 {
  margin:2px 0 0;
}

.provider-listing-count-badge {
  padding:8px 12px;
  border-radius:999px;
  background:#f0fdf4;
  color:#166534;
  font-weight:950;
  border:1px solid #bbf7d0;
}

.my-properties-hero {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
}

.my-properties-summary {
  grid-template-columns:repeat(4,minmax(0,1fr));
}

.my-summary-card.status-active {
  border-color:#bbf7d0;
  background:#f0fdf4;
}

.my-summary-card.status-pending {
  border-color:#fed7aa;
  background:#fff7ed;
}

.my-summary-card.status-inactive {
  border-color:#d0d5dd;
  background:#f9fafb;
}

.my-properties-list {
  display:flex;
  flex-direction:column;
  gap:14px;
}

.my-card-pro {
  display:grid;
  grid-template-columns:210px minmax(0,1fr);
  gap:16px;
  padding:14px;
  border:1px solid #e4efe8;
  border-radius:24px;
  background:#fff;
  box-shadow:0 14px 36px rgba(16,24,40,.07);
}

.my-card-media {
  overflow:hidden;
  border-radius:18px;
  background:#f2f4f7;
  min-height:150px;
}

.my-card-media a,
.my-card-media img,
.my-card-media .image-placeholder {
  display:block;
  width:100%;
  height:100%;
}

.my-card-media img,
.my-card-media .image-placeholder {
  object-fit:cover;
  min-height:150px;
}

.my-card-body {
  display:flex;
  flex-direction:column;
  gap:12px;
  min-width:0;
}

.my-card-pro .my-card-top {
  margin:0;
  align-items:flex-start;
}

.my-card-pro h2 {
  margin:0 0 6px;
  font-size:21px;
  line-height:1.35;
}

.my-card-price-row {
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  padding:12px 14px;
  border-radius:16px;
  background:#f8fbfa;
  border:1px solid #e4efe8;
}

.my-card-price-row span {
  color:#667085;
  font-weight:850;
}

.my-card-price-row strong {
  color:#101828;
  font-size:19px;
}

.my-card-stats {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.my-card-stats span {
  padding:7px 10px;
  border-radius:999px;
  background:#f2f4f7;
  color:#475467;
  font-weight:800;
  font-size:13px;
}

.my-status-help {
  margin:0;
  border-radius:14px;
}

.inactive-help {
  background:#f9fafb;
  border-color:#d0d5dd;
}

.listing-quality-card {
  display:grid;
  gap:8px;
  padding:11px 12px;
  border:1px solid #d1fae5;
  border-radius:16px;
  background:#f0fdf4;
}

.listing-quality-head {
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
  flex-wrap:wrap;
}

.listing-quality-head span,
.listing-quality-hints small {
  color:#047857;
  font-weight:750;
}

.listing-quality-bar {
  overflow:hidden;
  height:8px;
  border-radius:999px;
  background:#d1fae5;
}

.listing-quality-bar span {
  display:block;
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,#0f766e,#22c55e);
}

.listing-quality-hints {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}

.listing-quality-hints small {
  padding:5px 8px;
  border-radius:999px;
  background:#fff;
  border:1px solid #bbf7d0;
}

.my-card-actions {
  margin-top:0;
}

html[data-theme="dark"] .provider-profile-hero-pro,
html[data-theme="dark"] .my-properties-hero {
  background:linear-gradient(135deg,#12211d,#18282c 55%,#2a2016);
  border-color:#2e4a43;
  box-shadow:0 18px 46px rgba(0,0,0,.28);
}

html[data-theme="dark"] .provider-score-card,
html[data-theme="dark"] .provider-summary-card,
html[data-theme="dark"] .my-summary-card,
html[data-theme="dark"] .trust-indicator,
html[data-theme="dark"] .provider-rating-form-pro,
html[data-theme="dark"] .my-card-pro,
html[data-theme="dark"] .my-card-price-row,
html[data-theme="dark"] .listing-quality-card {
  background:#142027;
  border-color:#30434a;
  color:#eef7f3;
}

html[data-theme="dark"] .provider-score-card .score-label,
html[data-theme="dark"] .provider-summary-card span,
html[data-theme="dark"] .my-summary-card span,
html[data-theme="dark"] .my-card-price-row span,
html[data-theme="dark"] .provider-score-card p {
  color:#a7b8b4;
}

html[data-theme="dark"] .listing-quality-head span,
html[data-theme="dark"] .listing-quality-hints small {
  color:#b8f3dc;
}

html[data-theme="dark"] .listing-quality-bar {
  background:#203136;
}

html[data-theme="dark"] .listing-quality-hints small {
  background:#203136;
  border-color:#34554b;
}

html[data-theme="dark"] .provider-score-card .score-value,
html[data-theme="dark"] .provider-summary-card strong,
html[data-theme="dark"] .my-summary-card strong,
html[data-theme="dark"] .trust-indicator strong,
html[data-theme="dark"] .my-card-price-row strong,
html[data-theme="dark"] .my-card-pro h2 {
  color:#f6fffb;
}

html[data-theme="dark"] .provider-trust-meter {
  background:#25373b;
}

html[data-theme="dark"] .trust-indicator.is-ok,
html[data-theme="dark"] .my-summary-card.status-active,
html[data-theme="dark"] .my-summary-card.status-pending,
html[data-theme="dark"] .my-summary-card.status-inactive,
html[data-theme="dark"] .provider-profile-box-pro .profile-item {
  background:#16272a;
  border-color:#34554b;
}

html[data-theme="dark"] .my-card-stats span,
html[data-theme="dark"] .my-card-media {
  background:#203136;
  color:#d8e8e2;
}

@media (max-width: 900px) {
  .provider-profile-summary,
  .my-properties-summary {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .my-card-pro {
    grid-template-columns:170px minmax(0,1fr);
  }
}

@media (max-width: 760px) {
  .provider-profile-hero-pro,
  .my-properties-hero {
    display:flex;
    flex-direction:column;
    align-items:stretch;
    padding:18px;
  }

  .provider-score-card {
    max-width:none;
    min-width:0;
  }

  .provider-profile-summary,
  .my-properties-summary,
  .provider-trust-indicators {
    grid-template-columns:1fr;
  }

  .my-card-pro {
    grid-template-columns:1fr;
    padding:12px;
  }

  .my-card-media,
  .my-card-media img,
  .my-card-media .image-placeholder {
    min-height:190px;
  }

  .my-card-price-row,
  .my-card-pro .my-card-top {
    align-items:flex-start;
    flex-direction:column;
  }

  .my-card-actions .button,
  .my-card-actions form,
  .my-card-actions button {
    width:100%;
  }
}


.trust-width-0 { width:0%; }
.trust-width-1 { width:1%; }
.trust-width-2 { width:2%; }
.trust-width-3 { width:3%; }
.trust-width-4 { width:4%; }
.trust-width-5 { width:5%; }
.trust-width-6 { width:6%; }
.trust-width-7 { width:7%; }
.trust-width-8 { width:8%; }
.trust-width-9 { width:9%; }
.trust-width-10 { width:10%; }
.trust-width-11 { width:11%; }
.trust-width-12 { width:12%; }
.trust-width-13 { width:13%; }
.trust-width-14 { width:14%; }
.trust-width-15 { width:15%; }
.trust-width-16 { width:16%; }
.trust-width-17 { width:17%; }
.trust-width-18 { width:18%; }
.trust-width-19 { width:19%; }
.trust-width-20 { width:20%; }
.trust-width-21 { width:21%; }
.trust-width-22 { width:22%; }
.trust-width-23 { width:23%; }
.trust-width-24 { width:24%; }
.trust-width-25 { width:25%; }
.trust-width-26 { width:26%; }
.trust-width-27 { width:27%; }
.trust-width-28 { width:28%; }
.trust-width-29 { width:29%; }
.trust-width-30 { width:30%; }
.trust-width-31 { width:31%; }
.trust-width-32 { width:32%; }
.trust-width-33 { width:33%; }
.trust-width-34 { width:34%; }
.trust-width-35 { width:35%; }
.trust-width-36 { width:36%; }
.trust-width-37 { width:37%; }
.trust-width-38 { width:38%; }
.trust-width-39 { width:39%; }
.trust-width-40 { width:40%; }
.trust-width-41 { width:41%; }
.trust-width-42 { width:42%; }
.trust-width-43 { width:43%; }
.trust-width-44 { width:44%; }
.trust-width-45 { width:45%; }
.trust-width-46 { width:46%; }
.trust-width-47 { width:47%; }
.trust-width-48 { width:48%; }
.trust-width-49 { width:49%; }
.trust-width-50 { width:50%; }
.trust-width-51 { width:51%; }
.trust-width-52 { width:52%; }
.trust-width-53 { width:53%; }
.trust-width-54 { width:54%; }
.trust-width-55 { width:55%; }
.trust-width-56 { width:56%; }
.trust-width-57 { width:57%; }
.trust-width-58 { width:58%; }
.trust-width-59 { width:59%; }
.trust-width-60 { width:60%; }
.trust-width-61 { width:61%; }
.trust-width-62 { width:62%; }
.trust-width-63 { width:63%; }
.trust-width-64 { width:64%; }
.trust-width-65 { width:65%; }
.trust-width-66 { width:66%; }
.trust-width-67 { width:67%; }
.trust-width-68 { width:68%; }
.trust-width-69 { width:69%; }
.trust-width-70 { width:70%; }
.trust-width-71 { width:71%; }
.trust-width-72 { width:72%; }
.trust-width-73 { width:73%; }
.trust-width-74 { width:74%; }
.trust-width-75 { width:75%; }
.trust-width-76 { width:76%; }
.trust-width-77 { width:77%; }
.trust-width-78 { width:78%; }
.trust-width-79 { width:79%; }
.trust-width-80 { width:80%; }
.trust-width-81 { width:81%; }
.trust-width-82 { width:82%; }
.trust-width-83 { width:83%; }
.trust-width-84 { width:84%; }
.trust-width-85 { width:85%; }
.trust-width-86 { width:86%; }
.trust-width-87 { width:87%; }
.trust-width-88 { width:88%; }
.trust-width-89 { width:89%; }
.trust-width-90 { width:90%; }
.trust-width-91 { width:91%; }
.trust-width-92 { width:92%; }
.trust-width-93 { width:93%; }
.trust-width-94 { width:94%; }
.trust-width-95 { width:95%; }
.trust-width-96 { width:96%; }
.trust-width-97 { width:97%; }
.trust-width-98 { width:98%; }
.trust-width-99 { width:99%; }
.trust-width-100 { width:100%; }

/* Darna improved188: reporting and contact-message workflow polish. */
[data-report-form-polish="182"]{
  border:1px solid rgba(180,83,9,.18);
  border-radius:18px;
  background:linear-gradient(180deg,rgba(255,247,237,.86),rgba(255,255,255,.96));
  box-shadow:0 14px 34px rgba(15,23,42,.07);
  overflow:hidden;
}
[data-report-form-polish="182"]>summary{
  padding:15px 18px;
  cursor:pointer;
  font-weight:900;
  display:flex;
  align-items:center;
  gap:10px;
}
.report-box-pro{padding:0 18px 18px}
.report-box-head{margin-bottom:14px}
.report-box-head h2{margin:4px 0 6px}
.report-form-pro{display:grid;gap:16px}
.report-reason-grid{
  border:0;
  padding:0;
  margin:0;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.report-reason-grid legend{font-weight:900;margin-bottom:8px;color:var(--text)}
.report-reason-card{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:8px 10px;
  align-items:start;
  padding:12px;
  border:1px solid var(--border);
  border-radius:14px;
  background:#fff;
  cursor:pointer;
  transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease;
}
.report-reason-card:hover,
.report-reason-card:focus-within{
  transform:translateY(-1px);
  border-color:rgba(245,124,0,.45);
  box-shadow:0 10px 22px rgba(15,23,42,.08);
}
.report-reason-card input{margin-top:4px;accent-color:var(--primary)}
.report-reason-card span{font-weight:900;color:var(--text)}
.report-reason-card small{grid-column:2;color:var(--muted);line-height:1.55}
.report-reason-card.important-phone{border-color:rgba(245,124,0,.35);background:linear-gradient(180deg,#fff7ed,#fff)}
.report-message-field label{display:block;font-weight:900;margin-bottom:6px}
.report-message-field textarea{width:100%;min-height:105px;resize:vertical}
.report-submit-row{display:flex;justify-content:flex-start}
.admin-reports-page-pro .report-stat-grid-pro .urgent{border-color:rgba(220,38,38,.28);background:linear-gradient(180deg,#fff7ed,#fff)}
.admin-reports-page-pro .report-stat-grid-pro .muted{background:rgba(15,23,42,.04)}
.report-card-list-pro{display:grid;gap:14px}
.report-review-card-pro{border-radius:18px;overflow:hidden;position:relative}
.report-review-card-pro.reason-wrong_phone{border-color:rgba(245,124,0,.38)}
.report-review-card-pro.reason-wrong_phone:before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:5px;
  background:linear-gradient(180deg,#f97316,#ef4444);
}
.report-review-card-pro .message-eyebrow,
.message-eyebrow{
  display:block;
  font-size:.78rem;
  font-weight:900;
  color:var(--primary);
  margin-bottom:4px;
}
.report-review-body-pro{display:grid;grid-template-columns:minmax(180px,.75fr) 1fr;gap:12px;margin-top:12px}
.report-review-body-pro>div{border:1px solid var(--border);border-radius:14px;padding:12px;background:rgba(255,255,255,.74)}
.report-review-body-pro span{display:block;color:var(--muted);font-weight:800;font-size:.86rem;margin-bottom:4px}
.report-review-body-pro strong{display:block;line-height:1.65;overflow-wrap:anywhere}
.report-reason-cell.phone-problem{background:linear-gradient(180deg,#fff7ed,#fff);border-color:rgba(245,124,0,.28)}
.report-phone-warning{
  margin-top:12px;
  padding:10px 12px;
  border-radius:14px;
  background:#fff7ed;
  border:1px solid rgba(245,124,0,.26);
  font-weight:800;
  color:#9a3412;
  line-height:1.7;
}
.report-review-actions-pro{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.messages-page-pro{display:grid;gap:18px}
.messages-toolbar{align-items:start}
.message-stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.message-stat-card{
  border:1px solid var(--border);
  border-radius:16px;
  padding:14px;
  background:linear-gradient(180deg,#fff,#f8fafc);
  box-shadow:0 10px 24px rgba(15,23,42,.05);
}
.message-stat-card span{display:block;color:var(--muted);font-weight:800;font-size:.86rem}
.message-stat-card strong{display:block;font-size:1.45rem;margin-top:4px;color:var(--text)}
.message-card-list{display:grid;gap:14px}
.message-review-card{
  border:1px solid var(--border);
  border-radius:18px;
  padding:16px;
  background:linear-gradient(180deg,#fff,#fbfdfc);
  box-shadow:0 12px 30px rgba(15,23,42,.06);
}
.message-card-head{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:start}
.message-card-head h2{margin:0;font-size:1.05rem}
.message-contact-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0}
.message-contact-row>div,.message-body-box{border:1px solid var(--border);border-radius:14px;padding:12px;background:rgba(255,255,255,.74)}
.message-contact-row span,.message-body-box span{display:block;color:var(--muted);font-weight:800;font-size:.86rem;margin-bottom:4px}
.message-body-box p{margin:0;line-height:1.75;font-weight:700}
.message-card-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.message-empty-state{padding:24px}
.status-pill.new{background:#fff7ed;color:#9a3412;border-color:rgba(245,124,0,.28)}
@media (max-width: 760px) {
  .report-reason-grid,.report-review-body-pro,.message-stat-grid,.message-contact-row{grid-template-columns:1fr}
  .message-card-head{grid-template-columns:1fr}
  [data-report-form-polish="182"]>summary{padding:14px}
  .report-box-pro{padding:0 14px 14px}
  .report-review-actions-pro .inline-form,.report-review-actions-pro button,.message-card-actions .button{width:100%}
}
html[data-theme="dark"] [data-report-form-polish="182"],
html[data-theme="dark"] .message-review-card,
html[data-theme="dark"] .message-stat-card{
  background:linear-gradient(180deg,rgba(21,32,39,.98),rgba(13,23,29,.98));
  border-color:rgba(125,226,191,.18);
  box-shadow:0 18px 45px rgba(0,0,0,.34);
}
html[data-theme="dark"] .report-reason-card,
html[data-theme="dark"] .report-review-body-pro>div,
html[data-theme="dark"] .message-contact-row>div,
html[data-theme="dark"] .message-body-box{
  background:rgba(255,255,255,.055);
  border-color:rgba(125,226,191,.14);
}
html[data-theme="dark"] .report-reason-card.important-phone,
html[data-theme="dark"] .report-reason-cell.phone-problem,
html[data-theme="dark"] .report-phone-warning{
  background:rgba(253,224,71,.10);
  border-color:rgba(253,224,71,.24);
  color:#fde047;
}
html[data-theme="dark"] .report-reason-card small,
html[data-theme="dark"] .report-review-body-pro span,
html[data-theme="dark"] .message-contact-row span,
html[data-theme="dark"] .message-body-box span,
html[data-theme="dark"] .message-stat-card span{color:#7de2bf}
html[data-theme="dark"] .message-body-box p,
html[data-theme="dark"] .message-stat-card strong{color:#fff4e8}

/* Darna improved188: multi-city/region search and logical range filters. */
.multi-location-filter select[multiple]{
  min-height:132px;
  padding:10px;
  border-radius:18px;
  background:rgba(255,255,255,.94);
  scrollbar-width:thin;
}
.multi-location-filter select[multiple] option{
  padding:6px 8px;
  border-radius:10px;
  margin:1px 0;
}
.multi-location-filter select[multiple] option:checked{
  font-weight:800;
}
.multi-location-filter .form-hint{
  margin-top:6px;
  font-size:.82rem;
  line-height:1.45;
  color:var(--muted);
}
.multi-location-filter optgroup{
  font-weight:800;
  color:var(--text);
}
.range-pair select option:disabled{
  color:#9ca3af;
}
select[data-range-max] option[hidden]{
  display:none;
}
html[data-theme="dark"] .multi-location-filter select[multiple]{
  background:rgba(15,23,42,.92);
  border-color:rgba(148,163,184,.34);
  color:#e5edf7;
}
html[data-theme="dark"] .multi-location-filter optgroup{
  color:#f8fafc;
}
html[data-theme="dark"] .multi-location-filter .form-hint{
  color:#a8b3c5;
}
@media (max-width: 720px) {
  .multi-location-filter select[multiple]{
    min-height:116px;
    max-height:170px;
  }
  .multi-location-filter .form-hint{
    font-size:.78rem;
  }
}

/* Darna improved188: professional search-filter UX with chips, removable filters and clearer ranges. */
.search-panel[data-search-filter-ux="184"] .enhanced-multi-filter{
  position:relative;
  padding:12px;
  border:1px solid rgba(226,232,240,.95);
  border-radius:22px;
  background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(248,250,252,.92));
  box-shadow:0 12px 28px rgba(15,23,42,.06);
}
.filter-label-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:8px;
}
.filter-label-row label{
  margin:0!important;
  font-weight:900;
}
.mini-clear-filter{
  border:1px solid rgba(234,88,12,.22);
  background:rgba(255,251,245,.94);
  color:#9a3412;
  border-radius:999px;
  padding:5px 10px;
  font-weight:800;
  font-size:.78rem;
  cursor:pointer;
  white-space:nowrap;
}
.mini-clear-filter:hover,
.mini-clear-filter:focus-visible{
  background:#ffedd5;
  border-color:rgba(234,88,12,.42);
}
.selected-choice-chips{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:8px;
  min-height:31px;
}
.selected-choice-chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  border:1px solid rgba(37,99,235,.18);
  background:rgba(239,246,255,.96);
  color:#1d4ed8;
  border-radius:999px;
  padding:5px 9px;
  font-weight:850;
  font-size:.82rem;
  cursor:pointer;
}
.selected-choice-chip b{
  display:inline-grid;
  place-items:center;
  width:18px;
  height:18px;
  border-radius:50%;
  background:rgba(37,99,235,.13);
  font-size:.85rem;
}
.selected-choice-chip:hover,
.selected-choice-chip:focus-visible{
  background:rgba(219,234,254,1);
  border-color:rgba(37,99,235,.38);
}
.selected-choice-empty{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  color:var(--muted);
  font-size:.82rem;
  font-weight:700;
}
.range-filter-card{
  border:1px solid rgba(226,232,240,.9);
  border-radius:20px;
  padding:10px;
  background:rgba(255,255,255,.78);
}
.range-status-hint{
  margin:7px 2px 0;
  color:var(--muted);
  font-size:.8rem;
  line-height:1.45;
}
.range-status-hint.is-active{
  color:#0f766e;
  font-weight:850;
}
.active-filter-strip-removable{
  align-items:center;
}
.active-filter-strip-title{
  display:inline-flex;
  align-items:center;
  padding:6px 0;
  color:var(--muted);
  font-size:.82rem;
  font-weight:900;
}
.result-filter-chip.chip-removable{
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:7px;
  transition:transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.result-filter-chip.chip-removable b{
  display:inline-grid;
  place-items:center;
  width:18px;
  height:18px;
  border-radius:50%;
  background:rgba(15,23,42,.09);
  color:inherit;
  font-size:.85rem;
}
.result-filter-chip.chip-removable:hover,
.result-filter-chip.chip-removable:focus-visible{
  transform:translateY(-1px);
  box-shadow:0 10px 22px rgba(15,23,42,.10);
}
.search-panel[data-search-filter-ux="184"] .multi-location-filter select[multiple] optgroup{
  padding-top:7px;
  color:#0f172a;
}
.search-panel[data-search-filter-ux="184"] .multi-location-filter select[multiple] option{
  border:1px solid transparent;
}
.search-panel[data-search-filter-ux="184"] .multi-location-filter select[multiple] option:checked{
  background:linear-gradient(90deg,rgba(59,130,246,.18),rgba(14,165,233,.12));
  border-color:rgba(59,130,246,.22);
  color:#1e3a8a;
}
html[data-theme="dark"] .search-panel[data-search-filter-ux="184"] .enhanced-multi-filter,
html[data-theme="dark"] .range-filter-card{
  background:linear-gradient(180deg,rgba(15,23,42,.96),rgba(17,24,39,.9));
  border-color:rgba(148,163,184,.24);
  box-shadow:0 14px 30px rgba(0,0,0,.26);
}
html[data-theme="dark"] .mini-clear-filter{
  background:rgba(0,168,112,.32);
  border-color:rgba(125,226,191,.26);
  color:#b8f3dc;
}
html[data-theme="dark"] .selected-choice-chip{
  background:rgba(30,64,175,.32);
  border-color:rgba(96,165,250,.28);
  color:#dbeafe;
}
html[data-theme="dark"] .selected-choice-chip b{
  background:rgba(147,197,253,.18);
}
html[data-theme="dark"] .selected-choice-empty,
html[data-theme="dark"] .active-filter-strip-title,
html[data-theme="dark"] .range-status-hint{
  color:#a8b3c5;
}
html[data-theme="dark"] .range-status-hint.is-active{
  color:#5eead4;
}
html[data-theme="dark"] .search-panel[data-search-filter-ux="184"] .multi-location-filter select[multiple] optgroup{
  color:#f8fafc;
}
html[data-theme="dark"] .search-panel[data-search-filter-ux="184"] .multi-location-filter select[multiple] option:checked{
  background:linear-gradient(90deg,rgba(59,130,246,.35),rgba(14,165,233,.22));
  color:#eff6ff;
}
@media (max-width: 720px) {
  .search-panel[data-search-filter-ux="184"] .enhanced-multi-filter{
    padding:10px;
    border-radius:18px;
  }
  .filter-label-row{
    align-items:flex-start;
  }
  .selected-choice-chips{
    gap:5px;
  }
  .selected-choice-chip{
    font-size:.78rem;
    padding:5px 8px;
  }
  .active-filter-strip-title{
    width:100%;
  }
  .result-filter-chip.chip-removable{
    max-width:100%;
  }
  .range-filter-card{
    padding:9px;
  }
}

/* Darna improved189: repair city/rif + region multi-select alignment, locking and mobile usability. */
.search-panel[data-search-filter-ux="189"] .simple-search-grid{
  align-items:stretch;
}
.search-panel[data-search-filter-ux="189"] .quick-search-city,
.search-panel[data-search-filter-ux="189"] .quick-search-region{
  align-self:stretch!important;
  display:flex;
  flex-direction:column;
  min-height:0;
}
.search-panel[data-search-filter-ux="189"] .quick-search-city .filter-label-row,
.search-panel[data-search-filter-ux="189"] .quick-search-region .filter-label-row{
  min-height:34px;
  margin-bottom:7px;
}
.search-panel[data-search-filter-ux="189"] .multi-location-filter select[multiple]{
  width:100%;
  height:154px;
  min-height:154px;
  max-height:154px;
  line-height:1.45;
  overscroll-behavior:contain;
}
.search-panel[data-search-filter-ux="189"] .multi-location-filter select[multiple] option[value=""]{
  font-weight:900;
  color:#0f766e;
  background:rgba(240,253,250,.92);
}
.search-panel[data-search-filter-ux="189"] .region-filter-field select.is-region-locked,
.search-panel[data-search-filter-ux="189"] .region-filter-field select:disabled{
  cursor:not-allowed;
  opacity:.76;
  background:linear-gradient(180deg,rgba(248,250,252,.96),rgba(241,245,249,.9));
  border-style:dashed;
}
.search-panel[data-search-filter-ux="189"] .region-filter-field select.is-region-locked
+ .selected-choice-chips .selected-choice-empty::after{
  content:" — اختر المدينة / الريف أولاً";
  color:#9a3412;
  font-weight:800;
}
.search-panel[data-search-filter-ux="189"] .selected-choice-chips{
  min-height:34px;
  align-content:flex-start;
}
.search-panel[data-search-filter-ux="189"] .form-hint{
  min-height:38px;
}
.search-panel[data-search-filter-ux="189"] .quick-search-region .form-hint{
  color:var(--muted);
}
html[data-theme="dark"] .search-panel[data-search-filter-ux="189"]
.multi-location-filter select[multiple] option[value=""]{
  color:#99f6e4;
  background:rgba(20,83,45,.24);
}
html[data-theme="dark"] .search-panel[data-search-filter-ux="189"]
.region-filter-field select.is-region-locked,
html[data-theme="dark"] .search-panel[data-search-filter-ux="189"]
.region-filter-field select:disabled{
  background:linear-gradient(180deg,rgba(15,23,42,.72),rgba(30,41,59,.58));
  border-color:rgba(148,163,184,.24);
  color:#94a3b8;
}
html[data-theme="dark"] .search-panel[data-search-filter-ux="189"]
.region-filter-field select.is-region-locked
+ .selected-choice-chips .selected-choice-empty::after{
  color:#b8f3dc;
}
@media (max-width: 760px) {
  .search-panel[data-search-filter-ux="189"] .simple-search-grid{
    grid-template-columns:1fr!important;
    gap:10px!important;
  }
  .search-panel[data-search-filter-ux="189"] .quick-search-city,
  .search-panel[data-search-filter-ux="189"] .quick-search-region,
  .search-panel[data-search-filter-ux="189"] .quick-search-type,
  .search-panel[data-search-filter-ux="189"] .quick-search-actions{
    grid-column:1/-1!important;
  }
  .search-panel[data-search-filter-ux="189"] .multi-location-filter select[multiple]{
    height:138px;
    min-height:138px;
    max-height:138px;
  }
  .search-panel[data-search-filter-ux="189"] .quick-search-city .filter-label-row,
  .search-panel[data-search-filter-ux="189"] .quick-search-region .filter-label-row{
    min-height:0;
  }
  .search-panel[data-search-filter-ux="189"] .form-hint{
    min-height:0;
  }
  .search-panel[data-search-filter-ux="189"] .mini-clear-filter{
    padding:6px 9px;
    font-size:.76rem;
  }
}

/* Darna improved188: complete dark-mode palette refresh with bright, non-harsh text stages. */
html[data-theme="dark"]{
  --darna-night-bg:#0b1220;
  --darna-night-bg-soft:#101827;
  --darna-night-surface:#162033;
  --darna-night-surface-2:#1b2940;
  --darna-night-surface-3:#22324d;
  --darna-night-field:#111a2b;
  --darna-night-border:#3a4a64;
  --darna-night-border-strong:#53637c;
  --darna-night-title:#f8fafc;
  --darna-night-text:#eef2f7;
  --darna-night-soft:#d9e2ec;
  --darna-night-muted:#c0cad7;
  --darna-night-disabled:#8fa0b4;
  --darna-night-placeholder:#a6b4c6;
  --darna-night-accent:#24c48e;
  --darna-night-accent-strong:#00a870;
  --darna-night-accent-soft:rgba(36,196,142,.17);
  --darna-night-green:#7dd3b0;
  --darna-night-green-soft:rgba(125,211,176,.15);
  /* Canonical aliases, color-scheme and body paint are owned by section 167. */
}
html[data-theme="dark"] main,
html[data-theme="dark"] footer,
html[data-theme="dark"] section,
html[data-theme="dark"] article,
html[data-theme="dark"] p,
html[data-theme="dark"] li,
html[data-theme="dark"] td,
html[data-theme="dark"] th,
html[data-theme="dark"] .container,
html[data-theme="dark"] .description,
html[data-theme="dark"] .card-description,
html[data-theme="dark"] .property-description,
html[data-theme="dark"] .detail-description,
html[data-theme="dark"] .message-body,
html[data-theme="dark"] .report-message,
html[data-theme="dark"] .provider-card-body{
  color:var(--darna-night-text)!important;
}
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] strong,
html[data-theme="dark"] b,
html[data-theme="dark"] label,
html[data-theme="dark"] .compact-label,
html[data-theme="dark"] .filter-label-row,
html[data-theme="dark"] .card-title,
html[data-theme="dark"] .card-title-detail-link,
html[data-theme="dark"] .detail-title-card h1,
html[data-theme="dark"] .section-title-row strong,
html[data-theme="dark"] .price,
html[data-theme="dark"] .price-number,
html[data-theme="dark"] .price-unit,
html[data-theme="dark"] .price-currency,
html[data-theme="dark"] .structured-price,
html[data-theme="dark"] .phone-reveal-number,
html[data-theme="dark"] .admin-stat-value,
html[data-theme="dark"] .message-card-title,
html[data-theme="dark"] .provider-profile-title{
  color:var(--darna-night-title)!important;
}
html[data-theme="dark"] small,
html[data-theme="dark"] .meta,
html[data-theme="dark"] .mini-meta,
html[data-theme="dark"] .small-meta,
html[data-theme="dark"] .field-help,
html[data-theme="dark"] .form-hint,
html[data-theme="dark"] .auth-hint,
html[data-theme="dark"] .contact-info-hint,
html[data-theme="dark"] .section-title-row span,
html[data-theme="dark"] .search-panel-heading p,
html[data-theme="dark"] .area-unit-note,
html[data-theme="dark"] .upload-copy,
html[data-theme="dark"] .upload-help-list,
html[data-theme="dark"] .image-placeholder-subtitle,
html[data-theme="dark"] .saved-search-summary,
html[data-theme="dark"] .pagination-status,
html[data-theme="dark"] .result-filter-kind,
html[data-theme="dark"] .price-context-label,
html[data-theme="dark"] .provider-mini,
html[data-theme="dark"] .hint-text{
  color:var(--darna-night-muted)!important;
}
html[data-theme="dark"] header,
html[data-theme="dark"] .nav-menu-panel{
  background:rgba(15,23,42,.94)!important;
  border-color:rgba(83,99,124,.72)!important;
  box-shadow:0 18px 42px rgba(0,0,0,.36)!important;
  backdrop-filter:blur(18px);
}
html[data-theme="dark"] .search-box,
html[data-theme="dark"] .search-panel,
html[data-theme="dark"] .search-toolbar,
html[data-theme="dark"] .results-overview,
html[data-theme="dark"] .results-summary,
html[data-theme="dark"] .active-filter-panel,
html[data-theme="dark"] .property-card-modern,
html[data-theme="dark"] .card,
html[data-theme="dark"] .detail-card,
html[data-theme="dark"] .detail-title-card,
html[data-theme="dark"] .detail-side-card,
html[data-theme="dark"] .detail-gallery-card,
html[data-theme="dark"] .contact-panel,
html[data-theme="dark"] .contact-phone-reveal,
html[data-theme="dark"] .card-contact-panel,
html[data-theme="dark"] .form-card,
html[data-theme="dark"] .form-section,
html[data-theme="dark"] .price-composer,
html[data-theme="dark"] .property-description-panel,
html[data-theme="dark"] .location-description-panel,
html[data-theme="dark"] .listing-preview-card,
html[data-theme="dark"] .upload-panel,
html[data-theme="dark"] .upload-preview-card,
html[data-theme="dark"] .provider-profile-box,
html[data-theme="dark"] .provider-profile-hero,
html[data-theme="dark"] .provider-trust-card,
html[data-theme="dark"] .provider-property-card,
html[data-theme="dark"] .profile-box,
html[data-theme="dark"] .profile-item,
html[data-theme="dark"] .pending-box,
html[data-theme="dark"] .report-box,
html[data-theme="dark"] .report-review-card,
html[data-theme="dark"] .report-reason-card,
html[data-theme="dark"] .message-review-card,
html[data-theme="dark"] .messages-page-pro,
html[data-theme="dark"] .saved-search-card,
html[data-theme="dark"] .saved-search-empty,
html[data-theme="dark"] .empty-state,
html[data-theme="dark"] .empty-state-friendly,
html[data-theme="dark"] .admin-stat-card,
html[data-theme="dark"] .admin-insight-card,
html[data-theme="dark"] .admin-email-card,
html[data-theme="dark"] .admin-work-card,
html[data-theme="dark"] .admin-image-card,
html[data-theme="dark"] .risk-card,
html[data-theme="dark"] .notice,
html[data-theme="dark"] .flash{
  background:linear-gradient(180deg,rgba(27,41,64,.98),rgba(22,32,51,.98))!important;
  border-color:rgba(83,99,124,.72)!important;
  color:var(--darna-night-text)!important;
  box-shadow:0 18px 46px rgba(0,0,0,.32)!important;
}
html[data-theme="dark"] .home-section-card,
html[data-theme="dark"] .popular-city-card,
html[data-theme="dark"] .quick-card,
html[data-theme="dark"] .active-filter-chip,
html[data-theme="dark"] .result-filter-chip,
html[data-theme="dark"] .selected-choice-chip,
html[data-theme="dark"] .feature-chip,
html[data-theme="dark"] .badge,
html[data-theme="dark"] .status-pill,
html[data-theme="dark"] .listing-type-badge{
  background:rgba(34,50,77,.96)!important;
  border-color:rgba(83,99,124,.74)!important;
  color:var(--darna-night-soft)!important;
}
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] .contact-panel textarea[readonly],
html[data-theme="dark"] .card-contact-form textarea{
  background:var(--darna-night-field)!important;
  border-color:var(--darna-night-border-strong)!important;
  color:var(--darna-night-title)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035),0 10px 24px rgba(0,0,0,.18)!important;
  caret-color:var(--darna-night-accent);
}
html[data-theme="dark"] select option{
  background:var(--darna-night-field)!important;
  color:var(--darna-night-title)!important;
}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder{
  color:var(--darna-night-placeholder)!important;
  opacity:1;
}
html[data-theme="dark"] input:focus,
html[data-theme="dark"] select:focus,
html[data-theme="dark"] textarea:focus,
html[data-theme="dark"] .button:focus-visible,
html[data-theme="dark"] a:focus-visible{
  border-color:var(--darna-night-accent)!important;
  outline:3px solid rgba(125,226,191,.24)!important;
  outline-offset:2px;
}
html[data-theme="dark"] input:disabled,
html[data-theme="dark"] select:disabled,
html[data-theme="dark"] textarea:disabled,
html[data-theme="dark"] .is-region-locked{
  background:#101827!important;
  border-color:#2c3b52!important;
  color:var(--darna-night-disabled)!important;
  opacity:.78;
}
html[data-theme="dark"] .button,
html[data-theme="dark"] button[type="submit"],
html[data-theme="dark"] .primary-button,
html[data-theme="dark"] .search-button{
  background:linear-gradient(135deg,var(--darna-night-accent-strong),var(--darna-night-accent))!important;
  border-color:rgba(125,226,191,.76)!important;
  color:#111827!important;
  box-shadow:0 14px 30px rgba(125,226,191,.24)!important;
}
html[data-theme="dark"] .button.light,
html[data-theme="dark"] .button.ghost,
html[data-theme="dark"] .button.secondary,
html[data-theme="dark"] .icon-btn,
html[data-theme="dark"] .mini-clear-filter,
html[data-theme="dark"] .tab:not(.active),
html[data-theme="dark"] .nav-link,
html[data-theme="dark"] .lang-link{
  background:rgba(34,50,77,.96)!important;
  border-color:var(--darna-night-border-strong)!important;
  color:var(--darna-night-text)!important;
  box-shadow:none!important;
}
html[data-theme="dark"] .button.light:hover,
html[data-theme="dark"] .button.ghost:hover,
html[data-theme="dark"] .button.secondary:hover,
html[data-theme="dark"] .nav-link:hover,
html[data-theme="dark"] .lang-link:hover{
  background:rgba(48,64,96,.98)!important;
  color:var(--darna-night-title)!important;
  border-color:rgba(125,226,191,.48)!important;
}
html[data-theme="dark"] .tab.active,
html[data-theme="dark"] .listing-tabs .tab.active,
html[data-theme="dark"] .active-filter-chip.is-active,
html[data-theme="dark"] .selected-choice-chip.is-active{
  background:linear-gradient(135deg,rgba(125,226,191,.96),rgba(125,226,191,.96))!important;
  color:#111827!important;
  border-color:rgba(125,226,191,.82)!important;
}
html[data-theme="dark"] a:not(.button):not(.nav-link):not(.lang-link):not(.card-title-detail-link){
  color:#b8f3dc!important;
}
html[data-theme="dark"] .price-panel,
html[data-theme="dark"] .listing-price-panel,
html[data-theme="dark"] .detail-price-panel,
html[data-theme="dark"] .structured-price{
  background:linear-gradient(135deg,rgba(125,226,191,.16),rgba(125,211,176,.08))!important;
  border-color:rgba(125,226,191,.36)!important;
  color:var(--darna-night-title)!important;
}
html[data-theme="dark"] .wizard-validation,
html[data-theme="dark"] .upload-limit-message,
html[data-theme="dark"] .error,
html[data-theme="dark"] .danger,
html[data-theme="dark"] .flash.error{
  background:rgba(127,29,29,.74)!important;
  border-color:rgba(248,113,113,.58)!important;
  color:#fee2e2!important;
}
html[data-theme="dark"] .success,
html[data-theme="dark"] .flash.success,
html[data-theme="dark"] .trust-positive,
html[data-theme="dark"] .approved{
  background:rgba(20,83,45,.42)!important;
  border-color:rgba(125,211,176,.38)!important;
  color:#dcfce7!important;
}
html[data-theme="dark"] .warning,
html[data-theme="dark"] .flash.warning,
html[data-theme="dark"] .pending{
  background:rgba(63,63,10,.44)!important;
  border-color:rgba(253,224,71,.36)!important;
  color:#fef3c7!important;
}
html[data-theme="dark"] .selected-choice-chips,
html[data-theme="dark"] .active-filter-list,
html[data-theme="dark"] .filter-chip-row,
html[data-theme="dark"] .range-status-hint{
  color:var(--darna-night-muted)!important;
}
html[data-theme="dark"] .selected-choice-chip button,
html[data-theme="dark"] .result-filter-chip .remove-filter,
html[data-theme="dark"] .chip-removable a{
  color:var(--darna-night-title)!important;
}
@media (max-width: 760px) {
  html[data-theme="dark"] .search-box,
  html[data-theme="dark"] .search-panel,
  html[data-theme="dark"] .form-card,
  html[data-theme="dark"] .detail-card,
  html[data-theme="dark"] .contact-panel,
  html[data-theme="dark"] .property-card-modern{
    box-shadow:0 14px 34px rgba(0,0,0,.36)!important;
  }
  html[data-theme="dark"] .selected-choice-chip,
  html[data-theme="dark"] .result-filter-chip,
  html[data-theme="dark"] .active-filter-chip{
    min-height:36px;
  }
}

/* Darna improved189: compact city/rif and grouped region chip picker. */
.sr-only{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important;
}
.search-panel[data-search-filter-ux="189"] .compact-location-filter{
  padding:12px;
  border-radius:22px;
}
.search-panel[data-search-filter-ux="189"] .compact-location-filter select[multiple]{
  position:absolute;
  inline-size:1px;
  block-size:1px;
  opacity:.01;
  pointer-events:none;
  overflow:hidden;
}
.compact-choice-grid,
.city-choice-grid,
.region-chip-row{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  align-items:center;
}
.compact-choice-chip{
  appearance:none;
  border:1px solid rgba(15,118,110,.22);
  background:rgba(255,255,255,.96);
  color:#123f34;
  border-radius:999px;
  padding:6px 11px;
  min-height:34px;
  width:auto;
  max-width:100%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  font-size:.86rem;
  font-weight:900;
  line-height:1.1;
  box-shadow:0 7px 16px rgba(15,23,42,.055);
  cursor:pointer;
  transition:background .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease,transform .16s ease;
}
.compact-choice-chip:hover,
.compact-choice-chip:focus-visible{
  transform:translateY(-1px);
  border-color:rgba(0,168,112,.45);
  box-shadow:0 10px 20px rgba(15,23,42,.10);
}
.compact-choice-chip.is-selected{
  background:linear-gradient(135deg,#00a870,#07845f);
  color:#fff;
  border-color:rgba(0,132,91,.92);
  box-shadow:0 10px 22px rgba(0,132,91,.23);
}
.compact-choice-chip.is-all-choice{
  border-color:rgba(234,88,12,.22);
  color:#9a3412;
  background:rgba(255,248,240,.96);
}
.compact-choice-chip.is-all-choice.is-selected{
  color:#fff;
  background:linear-gradient(135deg,#f97316,#ea580c);
  border-color:#ea580c;
}
.choice-check{
  width:16px;
  height:16px;
  border-radius:999px;
  display:none;
  place-items:center;
  font-size:.72rem;
  background:rgba(255,255,255,.22);
}
.compact-choice-chip.is-selected .choice-check{
  display:inline-grid;
}
.region-quick-filter{
  width:100%;
  min-height:40px;
  border:1px solid rgba(0,168,112,.25);
  border-radius:999px;
  padding:9px 14px;
  margin:2px 0 10px;
  background:#fff;
  color:#0f172a;
  font-weight:800;
}
.region-quick-filter:focus{
  outline:3px solid rgba(0,168,112,.18);
  border-color:#00a870;
}
.region-quick-filter:disabled{
  opacity:.65;
  cursor:not-allowed;
  background:#f1f5f9;
}
.region-choice-groups{
  display:flex;
  flex-direction:column;
  gap:11px;
  margin-top:4px;
}
.region-choice-groups.is-locked{
  gap:0;
}
.compact-choice-empty-state{
  display:block;
  width:100%;
  padding:11px 13px;
  border-radius:16px;
  border:1px dashed rgba(100,116,139,.35);
  background:rgba(248,250,252,.82);
  color:#64748b;
  font-weight:850;
  text-align:center;
}
.region-choice-group{
  border:1px solid rgba(0,168,112,.14);
  background:rgba(248,253,251,.82);
  border-radius:18px;
  padding:10px;
}
.region-choice-heading{
  margin:0 auto 9px;
  width:max-content;
  max-width:100%;
  padding:6px 16px;
  border-radius:999px;
  background:rgba(0,168,112,.12);
  color:#007a55;
  font-size:.9rem;
  line-height:1.2;
  font-weight:1000;
  text-align:center;
  border:1px solid rgba(0,168,112,.22);
}
.region-missing-help{
  margin-top:11px;
  padding:13px;
  border-radius:18px;
  border:1px solid rgba(234,88,12,.25);
  background:linear-gradient(180deg,rgba(255,247,237,.98),rgba(255,251,245,.9));
  color:#7c2d12;
}
.region-missing-help strong{
  display:block;
  font-weight:1000;
  margin-bottom:5px;
}
.region-missing-help p{
  margin:0 0 10px;
  line-height:1.65;
  font-weight:800;
}
.mini-suggest-region-link{
  display:inline-flex;
  min-height:34px;
  padding:7px 12px;
  border-radius:999px;
  font-weight:950;
}
.search-panel[data-search-filter-ux="189"] .selected-choice-chips{
  margin-top:9px;
}
html[data-theme="dark"] .compact-choice-chip{
  background:rgba(22,32,51,.96);
  color:#eef2f7;
  border-color:rgba(94,234,212,.22);
  box-shadow:0 8px 20px rgba(0,0,0,.22);
}
html[data-theme="dark"] .compact-choice-chip.is-selected{
  background:linear-gradient(135deg,#00a870,#087f5b);
  color:#fff;
  border-color:rgba(45,212,191,.4);
}
html[data-theme="dark"] .compact-choice-chip.is-all-choice{
  color:#b8f3dc;
  background:rgba(0,168,112,.28);
  border-color:rgba(125,226,191,.28);
}
html[data-theme="dark"] .compact-choice-chip.is-all-choice.is-selected{
  color:#fff;
  background:linear-gradient(135deg,#7de2bf,#24c48e);
}
html[data-theme="dark"] .region-quick-filter{
  background:var(--darna-night-field,#101827);
  color:var(--darna-night-title,#f8fafc);
  border-color:rgba(94,234,212,.24);
}
html[data-theme="dark"] .region-quick-filter:disabled{
  background:rgba(15,23,42,.72);
  color:#8fa0b4;
}
html[data-theme="dark"] .region-choice-group{
  background:rgba(15,23,42,.58);
  border-color:rgba(94,234,212,.16);
}
html[data-theme="dark"] .region-choice-heading{
  background:rgba(0,168,112,.18);
  color:#7dd3c7;
  border-color:rgba(94,234,212,.22);
}
html[data-theme="dark"] .compact-choice-empty-state{
  color:#c0cad7;
  background:rgba(15,23,42,.68);
  border-color:rgba(148,163,184,.24);
}
html[data-theme="dark"] .region-missing-help{
  background:linear-gradient(180deg,rgba(0,168,112,.32),rgba(6,78,59,.22));
  border-color:rgba(125,226,191,.25);
  color:#ffedd5;
}
@media (max-width: 760px) {
  .search-panel[data-search-filter-ux="189"] .compact-location-filter{
    padding:10px;
    border-radius:18px;
  }
  .compact-choice-grid,
  .city-choice-grid,
  .region-chip-row{
    gap:6px;
  }
  .compact-choice-chip{
    min-height:32px;
    padding:6px 9px;
    font-size:.8rem;
  }
  .region-choice-group{
    padding:9px;
    border-radius:16px;
  }
  .region-choice-heading{
    font-size:.84rem;
    padding:5px 13px;
  }
  .region-quick-filter{
    min-height:38px;
    padding:8px 12px;
  }
}

/* Darna improved189: keep compact city/region choices inside scroll areas and restore provider region help. */
.search-panel[data-search-filter-ux="189"] .city-choice-grid,
.search-panel[data-search-filter-ux="189"] .region-choice-groups{
  overflow-y:auto;
  overflow-x:hidden;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
  padding:8px;
  border-radius:18px;
  border:1px solid rgba(0,168,112,.12);
  background:rgba(248,253,251,.64);
}
.search-panel[data-search-filter-ux="189"] .city-choice-grid{
  max-height:178px;
  align-content:flex-start;
}
.search-panel[data-search-filter-ux="189"] .region-choice-groups{
  max-height:260px;
}
.search-panel[data-search-filter-ux="189"] .city-choice-grid::-webkit-scrollbar,
.search-panel[data-search-filter-ux="189"] .region-choice-groups::-webkit-scrollbar{
  width:9px;
}
.search-panel[data-search-filter-ux="189"] .city-choice-grid::-webkit-scrollbar-thumb,
.search-panel[data-search-filter-ux="189"] .region-choice-groups::-webkit-scrollbar-thumb{
  background:rgba(0,132,91,.35);
  border-radius:999px;
}
.search-panel[data-search-filter-ux="189"] .region-choice-groups.is-locked{
  max-height:none;
  overflow:visible;
}
.search-panel[data-search-filter-ux="189"] .selected-choice-chips{
  max-height:74px;
  overflow-y:auto;
  overscroll-behavior:contain;
  padding-block:2px;
}
.provider-region-field .provider-region-suggestion-panel{
  margin-top:10px;
  padding:12px 13px;
  border-radius:18px;
  border:1px solid rgba(0,168,112,.2);
  background:linear-gradient(180deg,rgba(240,253,250,.9),rgba(255,255,255,.94));
  color:#134e4a;
}
.provider-region-suggestion-panel strong{
  display:block;
  margin-bottom:5px;
  font-weight:1000;
}
.provider-region-suggestion-panel p{
  margin:0 0 10px;
  line-height:1.7;
  font-weight:800;
}
[data-floor-optional] input:optional{
  border-style:solid;
}
html[data-theme="dark"] .search-panel[data-search-filter-ux="189"] .city-choice-grid,
html[data-theme="dark"] .search-panel[data-search-filter-ux="189"] .region-choice-groups{
  background:rgba(15,23,42,.52);
  border-color:rgba(94,234,212,.14);
}
html[data-theme="dark"] .search-panel[data-search-filter-ux="189"] .city-choice-grid::-webkit-scrollbar-thumb,
html[data-theme="dark"] .search-panel[data-search-filter-ux="189"] .region-choice-groups::-webkit-scrollbar-thumb{
  background:rgba(94,234,212,.32);
}
html[data-theme="dark"] .provider-region-field .provider-region-suggestion-panel{
  background:linear-gradient(180deg,rgba(6,78,59,.3),rgba(15,23,42,.62));
  border-color:rgba(94,234,212,.2);
  color:var(--darna-night-text,#eef2f7);
}
@media (max-width: 760px) {
  .search-panel[data-search-filter-ux="189"] .city-choice-grid{
    max-height:138px;
  }
  .search-panel[data-search-filter-ux="189"] .region-choice-groups{
    max-height:170px;
  }
  .search-panel[data-search-filter-ux="189"] .selected-choice-chips{
    max-height:58px;
  }
  .provider-region-field .provider-region-suggestion-panel{
    padding:11px;
    border-radius:16px;
  }
}

/* Darna improved191: compact listing details, Arabic label/value spacing, and visible provider region suggestion. */
.label-value-inline,
.label-value-row{
  display:inline-flex;
  align-items:center;
  gap:0;
  direction:rtl;
  unicode-bidi:isolate;
  white-space:normal;
}
.label-value-inline b,
.label-value-row strong{
  font-weight:1000;
}
.label-value-inline i,
.label-value-row .detail-separator{
  font-style:normal;
  font-weight:1000;
  padding-inline:4px;
  color:inherit;
  flex:0 0 auto;
}
.property-card-modern .compact-card-topline{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-bottom:4px;
  font-size:.82rem;
}
.property-card-modern .compact-card-topline .label-value-inline{
  padding:4px 8px;
  border-radius:999px;
  background:rgba(0,168,112,.07);
  border:1px solid rgba(0,168,112,.12);
}
.property-card-modern .compact-listing-summary{
  gap:6px;
  margin-top:9px;
}
.property-card-modern .compact-listing-summary .summary-chip{
  min-height:30px;
  padding:6px 9px;
  border-radius:999px;
  font-size:.84rem;
  line-height:1.25;
}
.property-card-modern .tenure-summary-chip,
.property-card-modern .card-summary-row .price-per-sqm-summary-chip{
  display:none !important;
}
.detail-info-grid{
  gap:9px !important;
}
.detail-info-grid .detail-item{
  min-height:auto !important;
  padding:10px 12px !important;
  border-radius:16px !important;
  line-height:1.45 !important;
  align-items:center;
  justify-content:flex-start;
}
.detail-info-grid .label-value-row{
  display:flex;
  flex-wrap:wrap;
  column-gap:0;
  row-gap:3px;
}
.detail-info-grid .label-value-row strong{
  flex:0 0 auto;
}
.detail-info-grid .label-value-row > span:last-child,
.detail-info-grid .label-value-row > .ltr-value{
  min-width:0;
  word-break:break-word;
}
.detail-info-grid .label-value-block{
  display:block;
}
.detail-info-grid .label-value-block .detail-description-text{
  margin-top:6px;
  line-height:1.75;
  font-weight:800;
}
.provider-region-suggestion-standalone{
  display:block !important;
  grid-column:1 / -1;
  position:relative;
  z-index:2;
}
.provider-region-suggestion-standalone .mini-suggest-region-link{
  margin-top:4px;
}
.my-property-stats .label-value-inline,
.admin-dashboard .label-value-inline,
.image-workflow-meta .label-value-inline{
  display:inline-flex;
  align-items:center;
}
html[data-theme="dark"] .property-card-modern .compact-card-topline .label-value-inline{
  background:rgba(45,212,191,.08);
  border-color:rgba(94,234,212,.14);
  color:var(--darna-night-text,#eef2f7);
}
html[data-theme="dark"] .detail-info-grid .detail-item{
  background:rgba(22,32,51,.92) !important;
  border-color:rgba(94,234,212,.14) !important;
  color:var(--darna-night-text,#eef2f7) !important;
}
html[data-theme="dark"] .provider-region-suggestion-standalone{
  background:linear-gradient(180deg,rgba(6,78,59,.34),rgba(15,23,42,.76));
  border-color:rgba(94,234,212,.24);
}
@media (max-width: 760px) {
  .property-card-modern .compact-card-topline{
    font-size:.78rem;
    gap:5px;
  }
  .property-card-modern .compact-card-topline .label-value-inline,
  .property-card-modern .compact-listing-summary .summary-chip{
    padding:5px 8px;
  }
  .detail-info-grid{
    grid-template-columns:1fr !important;
    gap:7px !important;
  }
  .detail-info-grid .detail-item{
    padding:9px 10px !important;
    border-radius:14px !important;
  }
}

/* Mobile search results become compact classifieds-style rows. */
@media (max-width: 760px) {
  html,
  body,
  .container,
  .search-panel,
  .cards,
  .property-results-grid,
  .latest-cards,
  .favorites-grid,
  .provider-listings-grid{
    max-width:100%;
    min-width:0;
    overflow-x:hidden;
  }

  .cards,
  .property-results-grid,
  .latest-cards,
  .favorites-grid,
  .provider-listings-grid{
    grid-template-columns:minmax(0,1fr)!important;
    gap:8px!important;
  }

  .property-card-modern{
    display:grid!important;
    grid-template-columns:92px minmax(0,1fr);
    min-height:104px;
    border-radius:12px!important;
    overflow:hidden;
    box-shadow:0 4px 12px rgba(15,23,42,.08)!important;
    transform:none!important;
  }

  .property-card-modern:hover,
  .property-card-modern:focus-within{
    transform:none!important;
    box-shadow:0 5px 14px rgba(15,23,42,.10)!important;
  }

  .property-card-modern .card-media{
    width:92px;
    min-width:92px;
    height:104px;
    min-height:104px;
    overflow:hidden;
    align-self:stretch;
  }

  .property-card-modern .card-media-detail-link{
    width:100%;
    height:100%;
  }

  .listing-card .property-image,
  .listing-card .image-placeholder,
  .property-card-modern .property-image,
  .property-card-modern .image-placeholder{
    width:92px!important;
    height:104px!important;
    min-height:104px!important;
    display:flex;
    object-fit:cover;
    border-radius:0!important;
  }

  .property-card-modern .image-placeholder{
    padding:8px!important;
  }

  .property-card-modern .image-placeholder .placeholder-icon,
  .property-card-modern .smart-property-placeholder .placeholder-icon{
    width:36px;
    height:36px;
  }

  .property-card-modern .image-placeholder-title,
  .property-card-modern .image-placeholder-subtitle{
    display:none;
  }

  .property-card-modern .card-content{
    min-width:0;
    padding:8px 10px 7px!important;
    gap:3px!important;
    overflow:hidden;
  }

  .property-card-modern .card-badges,
  .property-card-modern .compact-card-topline,
  .property-card-modern .card-address,
  .property-card-modern .price-context-row,
  .property-card-modern .converted-price-line,
  .property-card-modern .provider-mini,
  .property-card-modern .card-actions-user,
  .property-card-modern .card-phone-reveal,
  .property-card-modern .card-contact-panel{
    display:none!important;
  }

  .property-card-modern h2{
    display:block!important;
    min-height:0!important;
    margin:0!important;
    font-size:14px!important;
    line-height:1.25!important;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  .property-card-modern .card-title-detail-link{
    display:block;
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }

  .property-card-modern .card-location{
    display:block!important;
    min-width:0;
    color:#667085!important;
    font-size:12px!important;
    font-weight:850!important;
    line-height:1.2!important;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  .property-card-modern .listing-price-panel{
    margin:1px 0 0!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    overflow:hidden;
  }

  .property-card-modern .listing-price-panel::before{
    display:none!important;
  }

  .property-card-modern .card-price-main.structured-price{
    min-width:0;
    display:flex;
    flex-wrap:nowrap;
    align-items:baseline;
    gap:4px;
    line-height:1.15!important;
    overflow:hidden;
    white-space:nowrap;
    text-overflow:ellipsis;
  }

  .property-card-modern .card-price-main .price-number{
    font-size:15px!important;
    letter-spacing:0!important;
  }

  .property-card-modern .card-price-main .price-unit,
  .property-card-modern .card-price-main .price-currency{
    flex:0 1 auto;
    min-width:0;
    font-size:11px!important;
  }

  .property-card-modern .compact-listing-summary{
    display:flex!important;
    flex-wrap:nowrap!important;
    align-items:center;
    gap:4px!important;
    max-width:100%;
    margin:2px 0 0!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
    overflow:hidden;
  }

  .property-card-modern .compact-listing-summary .summary-chip{
    flex:0 1 auto;
    max-width:50%;
    min-height:0!important;
    padding:3px 6px!important;
    border-radius:999px!important;
    font-size:11px!important;
    line-height:1.2!important;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  .property-card-modern .compact-listing-summary .summary-chip:nth-child(n+3){
    display:none!important;
  }
}

@media (max-width: 420px) {
  .property-card-modern{
    grid-template-columns:84px minmax(0,1fr);
    min-height:96px;
  }

  .property-card-modern .card-media{
    width:84px;
    min-width:84px;
    height:96px;
    min-height:96px;
  }

  .listing-card .property-image,
  .listing-card .image-placeholder,
  .property-card-modern .property-image,
  .property-card-modern .image-placeholder{
    width:84px!important;
    height:96px!important;
    min-height:96px!important;
  }

  .property-card-modern .card-content{
    padding:7px 9px!important;
  }

  .property-card-modern h2{
    font-size:13px!important;
  }
}

/* Darna improved194: admin roles explanation matrix without changing backend permissions. */
.admin-roles-matrix-panel {
  margin: 18px 0 20px;
  padding: 18px;
  border: 1px solid #dcebe4;
  border-radius: 8px;
  background: linear-gradient(180deg, #f7fffb, #ffffff);
  box-shadow: 0 12px 28px rgba(29, 37, 44, .07);
}

.admin-roles-matrix-title {
  align-items: flex-start;
  margin-bottom: 14px;
}

.admin-roles-matrix-title h2 {
  margin: 4px 0 6px;
  font-size: clamp(21px, 2.2vw, 28px);
}

.admin-role-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 18px;
}

.admin-role-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #dcebe4;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(29, 37, 44, .06);
}

.admin-role-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.admin-role-description {
  margin: 0;
  color: #344054;
  line-height: 1.7;
  font-weight: 700;
}

.admin-role-purpose-box {
  display: grid;
  gap: 4px;
  padding: 9px 10px;
  border-radius: 8px;
  background: #ecfdf3;
  border: 1px solid #bbf7d0;
}

.admin-role-purpose-box strong,
.admin-role-mini-lists strong {
  color: var(--brand-dark);
  font-size: 13px;
}

.admin-role-purpose-box span {
  color: #344054;
  line-height: 1.55;
}

.admin-role-purpose-box.muted {
  background: #f8fafc;
  border-color: #e4e7ec;
}

.admin-role-mini-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.admin-role-mini-lists ul {
  margin: 6px 0 0;
  padding-inline-start: 18px;
  color: #475467;
  line-height: 1.65;
  font-size: 13px;
}

.admin-role-permission-table-wrap {
  overflow-x: auto;
  border: 1px solid #dcebe4;
  border-radius: 8px;
  background: #fff;
}

.admin-role-permission-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.admin-role-permission-table th,
.admin-role-permission-table td {
  padding: 11px 10px;
  border-bottom: 1px solid #edf2f7;
  text-align: center;
  vertical-align: middle;
}

.admin-role-permission-table th:first-child,
.admin-role-permission-table td:first-child {
  text-align: start;
  font-weight: 900;
  color: #344054;
  min-width: 220px;
}

.admin-role-permission-table thead th {
  background: #e8f7f0;
  color: #164d3a;
  font-size: 13px;
}

.permission-state {
  font-size: 20px;
  font-weight: 950;
}

.permission-state.allowed {
  color: #008f60;
}

.permission-state.blocked {
  color: #98a2b3;
}

@media (max-width: 980px) {
  .admin-role-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .admin-roles-matrix-panel {
    padding: 13px;
  }

  .admin-role-card-grid {
    grid-template-columns: 1fr;
  }

  .admin-role-mini-lists {
    grid-template-columns: 1fr;
  }

  .admin-role-permission-table {
    min-width: 640px;
  }
}

html[data-theme="dark"] .admin-roles-matrix-panel,
html[data-theme="dark"] .admin-role-card,
html[data-theme="dark"] .admin-role-permission-table-wrap {
  background: linear-gradient(180deg, rgba(27, 41, 64, .98), rgba(22, 32, 51, .98)) !important;
  border-color: rgba(83, 99, 124, .72) !important;
  color: var(--darna-night-text) !important;
  box-shadow: 0 18px 46px rgba(0, 0, 0, .30) !important;
}

html[data-theme="dark"] .admin-role-description,
html[data-theme="dark"] .admin-role-purpose-box span,
html[data-theme="dark"] .admin-role-mini-lists ul,
html[data-theme="dark"] .admin-role-permission-table td:first-child {
  color: var(--darna-night-text) !important;
}

html[data-theme="dark"] .admin-role-purpose-box,
html[data-theme="dark"] .admin-role-purpose-box.muted {
  background: rgba(16, 185, 129, .13) !important;
  border-color: rgba(52, 211, 153, .34) !important;
}

html[data-theme="dark"] .admin-role-purpose-box strong,
html[data-theme="dark"] .admin-role-mini-lists strong {
  color: var(--darna-night-green, #7dd3b0) !important;
}

html[data-theme="dark"] .admin-role-permission-table thead th {
  background: rgba(16, 185, 129, .18) !important;
  color: #d1fae5 !important;
}

html[data-theme="dark"] .admin-role-permission-table th,
html[data-theme="dark"] .admin-role-permission-table td {
  border-bottom-color: rgba(83, 99, 124, .55) !important;
}

html[data-theme="dark"] .permission-state.allowed {
  color: #7dd3b0 !important;
}

/* Darna improved194: cleaner Login/Register/Password-Reset presentation. */
.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, .88fr);
  gap: 18px;
  align-items: stretch;
}

.auth-main-card,
.auth-side-card {
  border-radius: 8px;
}

.auth-main-card {
  position: relative;
  overflow: hidden;
}

.auth-main-card::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 6px;
  background: linear-gradient(180deg, var(--brand), var(--brand-dark));
}

.auth-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.auth-header-row h1 {
  margin-bottom: 7px;
}

.auth-mode-badge {
  flex: 0 0 auto;
  padding: 8px 11px;
  border: 1px solid #bfe9db;
  border-radius: 999px;
  background: #e8f7f0;
  color: var(--brand-dark);
  font-weight: 950;
  font-size: 13px;
}

.auth-grid {
  gap: 14px;
}

.auth-field label,
.auth-reset-field label {
  font-weight: 950;
}

.auth-field input,
.auth-field select,
.auth-reset-field input {
  min-height: 46px;
}

.auth-field .password-input-wrap input,
.auth-reset-field .password-input-wrap input {
  padding-inline-end: 56px;
}

.auth-actions {
  margin-top: 4px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.auth-actions .button,
.auth-actions button {
  min-height: 44px;
}

.auth-side-card {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 26px;
  border: 1px solid #dcebe4;
  background: linear-gradient(145deg, #e8f7f0, #ffffff 58%, #f7fffb);
  box-shadow: 0 12px 28px rgba(29, 37, 44, .08);
}


.auth-side-card h2 {
  margin: 0;
  font-size: clamp(22px, 2.3vw, 30px);
}

.auth-side-card p {
  margin: 0;
  color: #475467;
  line-height: 1.7;
  font-weight: 700;
}

.auth-benefit-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.auth-benefit-list li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 9px 10px;
  border: 1px solid #dcebe4;
  border-radius: 8px;
  background: rgba(255, 255, 255, .74);
  color: #344054;
  font-weight: 800;
}

.auth-benefit-list li::before {
  content: "✓";
  color: var(--brand-dark);
  font-weight: 950;
}

.password-reset-shell {
  max-width: 960px;
  margin-inline: auto;
}

.password-reset-card.auth-main-card {
  padding-block: 28px;
}

.password-reset-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 2px;
}

.password-reset-step {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #dcebe4;
  background: #f8fffb;
  color: #344054;
  font-weight: 800;
  line-height: 1.5;
}

.password-reset-step strong {
  display: block;
  color: var(--brand-dark);
  margin-bottom: 4px;
}

@media (max-width: 820px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-side-card {
    order: -1;
    padding: 18px;
  }

  .password-reset-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .auth-header-row {
    display: grid;
  }

  .auth-mode-badge {
    justify-self: start;
  }

  .auth-actions .button,
  .auth-actions button {
    width: 100%;
  }
}

html[data-theme="dark"] .auth-main-card::before {
  background: linear-gradient(180deg, var(--darna-night-green-brand, #24c48e), var(--darna-night-green-strong, #10b981));
}

html[data-theme="dark"] .auth-mode-badge,
html[data-theme="dark"] .password-reset-step,
html[data-theme="dark"] .auth-benefit-list li {
  background: rgba(16, 185, 129, .13) !important;
  border-color: rgba(52, 211, 153, .34) !important;
  color: var(--darna-night-text, #eef2f7) !important;
}

html[data-theme="dark"] .auth-side-card {
  background: linear-gradient(145deg, rgba(16, 185, 129, .17), rgba(27, 41, 64, .98) 58%, rgba(22, 32, 51, .98)) !important;
  border-color: rgba(52, 211, 153, .34) !important;
  box-shadow: 0 18px 46px rgba(0, 0, 0, .30) !important;
}


html[data-theme="dark"] .auth-side-card p,
html[data-theme="dark"] .password-reset-step {
  color: var(--darna-night-text, #eef2f7) !important;
}

html[data-theme="dark"] .auth-benefit-list li::before,
html[data-theme="dark"] .password-reset-step strong,
html[data-theme="dark"] .auth-mode-badge {
  color: var(--darna-night-green, #7dd3b0) !important;
}

/* Darna improved194: replace orange-heavy dark-mode cards with Darna green accents. */
html[data-theme="dark"] {
  --darna-night-green-brand: #24c48e;
  --darna-night-green-strong: #10b981;
  --darna-night-green-soft-2: rgba(36, 196, 142, .18);
  /* Final brand aliases and body paint are owned by section 167. */
}

html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] .contact-panel textarea[readonly],
html[data-theme="dark"] .card-contact-form textarea {
  caret-color: var(--darna-night-green-brand) !important;
}

html[data-theme="dark"] input:focus,
html[data-theme="dark"] select:focus,
html[data-theme="dark"] textarea:focus,
html[data-theme="dark"] .button:focus-visible,
html[data-theme="dark"] a:focus-visible {
  border-color: var(--darna-night-green-brand) !important;
  outline-color: rgba(36, 196, 142, .24) !important;
}

html[data-theme="dark"] .button,
html[data-theme="dark"] button[type="submit"],
html[data-theme="dark"] .primary-button,
html[data-theme="dark"] .search-button {
  background: linear-gradient(135deg, var(--darna-night-green-strong), var(--darna-night-green-brand)) !important;
  border-color: rgba(36, 196, 142, .74) !important;
  color: #052e24 !important;
  box-shadow: 0 14px 30px rgba(16, 185, 129, .22) !important;
}

html[data-theme="dark"] .button.light:hover,
html[data-theme="dark"] .button.ghost:hover,
html[data-theme="dark"] .button.secondary:hover,
html[data-theme="dark"] .nav-link:hover,
html[data-theme="dark"] .lang-link:hover {
  border-color: rgba(36, 196, 142, .48) !important;
}

html[data-theme="dark"] .tab.active,
html[data-theme="dark"] .listing-tabs .tab.active,
html[data-theme="dark"] .active-filter-chip.is-active,
html[data-theme="dark"] .selected-choice-chip.is-active,
html[data-theme="dark"] .region-choice.is-active,
html[data-theme="dark"] .city-choice.is-active {
  background: linear-gradient(135deg, rgba(16, 185, 129, .96), rgba(36, 196, 142, .96)) !important;
  color: #052e24 !important;
  border-color: rgba(36, 196, 142, .82) !important;
}

html[data-theme="dark"] a:not(.button):not(.nav-link):not(.lang-link):not(.card-title-detail-link) {
  color: #7dd3b0 !important;
}

html[data-theme="dark"] .price-panel,
html[data-theme="dark"] .listing-price-panel,
html[data-theme="dark"] .detail-price-panel,
html[data-theme="dark"] .structured-price,
html[data-theme="dark"] .report-reason-card.important-phone,
html[data-theme="dark"] .admin-reports-page-pro .report-stat-grid-pro .urgent,
html[data-theme="dark"] .report-reason-cell.phone-problem {
  background: linear-gradient(135deg, rgba(16, 185, 129, .17), rgba(125, 211, 176, .08)) !important;
  border-color: rgba(36, 196, 142, .38) !important;
  color: var(--darna-night-title) !important;
}

html[data-theme="dark"] .region-choice-heading,
html[data-theme="dark"] .region-missing-help strong,
html[data-theme="dark"] .search-panel-heading strong {
  color: #7dd3b0 !important;
}

html[data-theme="dark"] .status-pill.new,
html[data-theme="dark"] .warning,
html[data-theme="dark"] .flash.warning,
html[data-theme="dark"] .pending {
  background: rgba(16, 185, 129, .16) !important;
  border-color: rgba(36, 196, 142, .34) !important;
  color: #d1fae5 !important;
}

/* Darna improved194: focused mobile-view refinement for search, cards, wizard and detail actions. */
@media (max-width: 760px) {
  .hero-home{
    margin-bottom:10px!important;
    padding:16px!important;
    border-radius:22px!important;
  }

  .hero-home .hero-copy h1{
    font-size:clamp(1.28rem,7vw,1.85rem)!important;
    line-height:1.25!important;
    margin-bottom:6px!important;
  }

  .hero-home .hero-copy p{
    font-size:.9rem!important;
    line-height:1.65!important;
    margin-bottom:10px!important;
  }

  .hero-home .hero-actions{
    display:grid!important;
    grid-template-columns:1fr 1fr;
    gap:8px!important;
  }

  .hero-home .hero-actions .button{
    min-height:42px!important;
    padding:9px 10px!important;
    font-size:.86rem!important;
  }

  .search-panel[data-search-filter-ux="189"]{
    padding:12px!important;
    border-radius:20px!important;
  }

  .search-panel[data-search-filter-ux="189"] .search-panel-heading{
    gap:7px!important;
    margin-bottom:10px!important;
  }

  .search-panel[data-search-filter-ux="189"] .search-panel-heading h2{
    font-size:1.12rem!important;
    line-height:1.3!important;
  }

  .search-panel[data-search-filter-ux="189"] .search-panel-heading p{
    font-size:.82rem!important;
    line-height:1.6!important;
  }

  .search-panel[data-search-filter-ux="189"] .listing-tabs{
    display:flex!important;
    gap:6px!important;
    overflow-x:auto!important;
    padding-bottom:2px!important;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }

  .search-panel[data-search-filter-ux="189"] .listing-tabs::-webkit-scrollbar{
    display:none;
  }

  .search-panel[data-search-filter-ux="189"] .listing-tabs .tab{
    flex:0 0 auto;
    min-height:34px!important;
    padding:8px 13px!important;
    font-size:.82rem!important;
  }

  .search-panel[data-search-filter-ux="189"] .quick-search-query input,
  .search-panel[data-search-filter-ux="189"] .quick-search-type select{
    min-height:42px!important;
    border-radius:14px!important;
  }

  .search-panel[data-search-filter-ux="189"] .compact-location-filter{
    padding:9px!important;
    border-radius:16px!important;
  }

  .search-panel[data-search-filter-ux="189"] .filter-label-row{
    gap:7px!important;
    margin-bottom:6px!important;
  }

  .search-panel[data-search-filter-ux="189"] .filter-label-row label{
    font-size:.86rem!important;
  }

  .search-panel[data-search-filter-ux="189"] .city-choice-grid,
  .search-panel[data-search-filter-ux="189"] .region-choice-groups{
    overflow-y:auto!important;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
    padding-inline-end:2px;
  }

  .search-panel[data-search-filter-ux="189"] .city-choice-grid{
    max-height:112px!important;
  }

  .search-panel[data-search-filter-ux="189"] .region-choice-groups{
    max-height:188px!important;
  }

  .search-panel[data-search-filter-ux="189"] .region-quick-filter{
    position:sticky;
    top:0;
    z-index:3;
    min-height:38px!important;
    margin-bottom:8px!important;
    box-shadow:0 8px 16px rgba(15,23,42,.06);
  }

  .search-panel[data-search-filter-ux="189"] .compact-choice-chip{
    min-height:29px!important;
    padding:5px 9px!important;
    font-size:.78rem!important;
    box-shadow:none!important;
  }

  .search-panel[data-search-filter-ux="189"] .choice-check{
    width:14px!important;
    height:14px!important;
    font-size:.66rem!important;
  }

  .search-panel[data-search-filter-ux="189"] .region-choice-group{
    padding:8px!important;
    border-radius:15px!important;
  }

  .search-panel[data-search-filter-ux="189"] .region-choice-heading{
    margin-bottom:7px!important;
    padding:4px 11px!important;
    font-size:.78rem!important;
  }

  .search-panel[data-search-filter-ux="189"] .selected-choice-chips{
    max-height:46px!important;
    overflow-y:auto!important;
    margin-top:7px!important;
    gap:5px!important;
  }

  .search-panel[data-search-filter-ux="189"] .form-hint{
    margin-top:6px!important;
    font-size:.76rem!important;
    line-height:1.55!important;
  }

  .search-panel[data-search-filter-ux="189"] .quick-search-actions{
    display:grid!important;
    grid-template-columns:1fr auto!important;
    align-items:center!important;
    gap:8px!important;
  }

  .search-panel[data-search-filter-ux="189"] .quick-search-actions button{
    min-height:46px!important;
    border-radius:16px!important;
  }

  .search-panel[data-search-filter-ux="189"] .quick-search-actions .button.light{
    min-height:42px!important;
    padding-inline:12px!important;
    border-radius:15px!important;
  }

  /* Darna_improved296: listing-card sizing moved to 166_listing_cards_282.css. */

  .results-summary-pro{
    padding:12px!important;
    border-radius:18px!important;
    gap:10px!important;
  }

  .results-summary-pro strong{
    font-size:1.02rem!important;
  }

  .active-filter-strip{
    max-height:74px;
    overflow-y:auto;
    gap:5px!important;
  }

  .result-filter-chip{
    min-height:26px!important;
    padding:4px 8px!important;
    font-size:.78rem!important;
  }

  .detail-page{
    padding-bottom:82px!important;
  }

  .detail-contact-card{
    border-radius:20px!important;
  }

  .detail-contact-actions{
    position:fixed!important;
    left:8px!important;
    right:8px!important;
    bottom:max(8px,env(safe-area-inset-bottom))!important;
    z-index:80!important;
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:7px!important;
    padding:8px!important;
    border:1px solid rgba(0,168,112,.18)!important;
    border-radius:18px!important;
    background:rgba(255,255,255,.96)!important;
    box-shadow:0 -12px 32px rgba(15,23,42,.18)!important;
    backdrop-filter:blur(16px);
  }

  .detail-contact-actions .button{
    min-height:43px!important;
    padding:8px 6px!important;
    border-radius:13px!important;
    font-size:.78rem!important;
    line-height:1.25!important;
  }

  .detail-contact-actions .button svg{
    width:16px!important;
    height:16px!important;
  }

  .admin-work-card,
  .admin-image-card,
  .admin-role-card,
  .report-card-pro{
    border-radius:18px!important;
  }

  .admin-image-actions,
  .admin-report-actions,
  .admin-user-actions{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:7px!important;
  }

  .admin-image-actions .button,
  .admin-report-actions .button,
  .admin-user-actions .button,
  .admin-image-actions button,
  .admin-report-actions button,
  .admin-user-actions button{
    width:100%!important;
    min-height:42px!important;
    justify-content:center!important;
  }
}

@media (max-width: 700px) {
  .wizard-counter{
    position:sticky!important;
    top:66px!important;
    z-index:18!important;
    width:100%!important;
    justify-content:center!important;
    min-height:38px!important;
    border-radius:14px!important;
  }

  .wizard-progress{
    top:110px!important;
    overflow:visible!important;
    justify-content:center!important;
    padding:8px!important;
    mask-image:none!important;
    scrollbar-width:none!important;
  }

  .wizard-progress::-webkit-scrollbar{
    display:none;
  }

  .wizard-progress .wizard-dot:not(.active){
    display:none!important;
  }

  .wizard-progress .wizard-dot.active{
    display:flex!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    justify-content:center!important;
    padding:10px 12px!important;
    border-radius:14px!important;
    font-size:.88rem!important;
  }

  .wizard-progress .wizard-dot[aria-current="step"]:after{
    inset-inline:28%!important;
    inset-block-end:4px!important;
  }

  .wizard-validation:not([hidden]){
    top:158px!important;
    padding:11px 13px!important;
    border-radius:16px!important;
    font-size:.9rem!important;
    line-height:1.6!important;
  }

  .wizard-actions{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:8px!important;
  }

  .wizard-actions > span:empty{
    display:none!important;
  }

  .wizard-actions:has(> span:empty){
    grid-template-columns:1fr!important;
  }

  .field-error-focus{
    scroll-margin-top:210px!important;
    border-radius:16px!important;
  }

  .upload-preview-grid{
    grid-template-columns:1fr!important;
    gap:10px!important;
  }

  .upload-preview-card,
  .upload-preview-item{
    border-radius:18px!important;
  }

  .upload-preview-item img{
    height:180px!important;
    object-fit:cover!important;
  }

  .upload-preview-remove{
    width:32px!important;
    height:32px!important;
    min-height:32px!important;
    border-radius:999px!important;
  }
}

@media (max-width: 420px) {
  .hero-home .hero-actions,
  .search-panel[data-search-filter-ux="189"] .quick-search-actions{
    grid-template-columns:1fr!important;
  }

  /* Darna_improved296: narrow listing-card sizing moved to 166_listing_cards_282.css. */

  .detail-contact-actions{
    left:6px!important;
    right:6px!important;
    gap:5px!important;
    padding:6px!important;
  }

  .detail-contact-actions .button{
    min-height:40px!important;
    font-size:.72rem!important;
  }
}

html[data-theme="dark"] .search-panel[data-search-filter-ux="189"] .region-quick-filter{
  box-shadow:0 10px 20px rgba(0,0,0,.24)!important;
}

html[data-theme="dark"] .detail-contact-actions{
  background:rgba(13,23,29,.96)!important;
  border-color:rgba(36,196,142,.26)!important;
  box-shadow:0 -16px 34px rgba(0,0,0,.42)!important;
}

html[data-theme="dark"] .active-filter-strip,
html[data-theme="dark"] .selected-choice-chips{
  scrollbar-color:rgba(36,196,142,.45) transparent;
}

/* Darna improved199: visible search filter summary and no-result guidance. */
.search-active-summary-panel{
  margin-top:14px;
  padding:14px;
  border:1px solid rgba(23,92,78,.16);
  border-radius:18px;
  background:linear-gradient(135deg,rgba(16,141,111,.08),rgba(255,255,255,.95));
  box-shadow:0 12px 30px rgba(11,53,43,.08);
}
.search-active-summary-panel>strong{
  display:block;
  margin-bottom:10px;
  color:var(--brand-dark);
  font-size:.98rem;
}
.search-active-summary-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}
.search-active-summary-item{
  display:flex;
  flex-direction:column;
  gap:4px;
  padding:10px 12px;
  border-radius:14px;
  background:rgba(255,255,255,.82);
  border:1px solid rgba(23,92,78,.12);
}
.search-active-summary-item span{
  color:var(--muted);
  font-size:.79rem;
  font-weight:800;
}
.search-active-summary-item b{
  color:var(--text);
  font-size:.93rem;
  line-height:1.45;
}
.search-empty-guidance{
  border:1px solid rgba(16,141,111,.18);
  background:linear-gradient(135deg,rgba(16,141,111,.07),rgba(255,255,255,.97));
}
.search-empty-actions{
  gap:10px;
  flex-wrap:wrap;
  justify-content:center;
}
.search-diagnostic-panel{
  max-width:1080px;
  margin:18px auto;
  padding:18px;
  border-radius:22px;
  border:1px dashed rgba(23,92,78,.35);
  background:rgba(236,250,245,.92);
}
.search-diagnostic-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}
.search-diagnostic-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  border-radius:14px;
  padding:10px 12px;
  background:rgba(255,255,255,.88);
  border:1px solid rgba(23,92,78,.14);
}
.search-diagnostic-item span{font-weight:800;color:var(--muted);font-size:.86rem}
.search-diagnostic-item strong{font-size:1.08rem;color:var(--brand-dark)}
.search-diagnostic-item small{
  font-weight:900;
  color:#0b8f6f;
  background:rgba(11,143,111,.1);
  border-radius:999px;
  padding:3px 7px;
}
html[data-theme="dark"] .search-active-summary-panel,
html[data-theme="dark"] .search-empty-guidance,
html[data-theme="dark"] .search-diagnostic-panel{
  background:linear-gradient(135deg,rgba(35,169,131,.14),rgba(13,25,31,.96));
  border-color:rgba(94,220,176,.24);
  box-shadow:none;
}
html[data-theme="dark"] .search-active-summary-panel>strong,
html[data-theme="dark"] .search-diagnostic-item strong{color:#8ce7c3}
html[data-theme="dark"] .search-active-summary-item,
html[data-theme="dark"] .search-diagnostic-item{
  background:rgba(12,28,34,.86);
  border-color:rgba(94,220,176,.16);
}
html[data-theme="dark"] .search-active-summary-item b{color:#eefaf6}
@media (max-width: 760px) {
  .search-active-summary-panel{padding:12px;margin-top:10px;border-radius:16px}
  .search-active-summary-grid{grid-template-columns:1fr;gap:8px}
  .search-active-summary-item{padding:9px 10px}
  .search-empty-actions .button{width:100%;justify-content:center}
  .search-diagnostic-panel{margin:14px 0;padding:14px;border-radius:18px}
  .search-diagnostic-grid{grid-template-columns:1fr}
}

/* Darna improved199: search result consistency panel for browser verification. */
.search-consistency-panel{
  margin-top:12px;
  border:1px solid rgba(23,92,78,.16);
  border-radius:18px;
  padding:13px;
  background:linear-gradient(135deg,rgba(35,169,131,.09),rgba(255,255,255,.96));
  box-shadow:0 10px 24px rgba(13,31,28,.06);
}
.search-consistency-heading{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}
.search-consistency-heading strong{color:var(--brand-dark);font-size:1rem}
.search-consistency-heading span{color:var(--muted);font-size:.88rem;max-width:520px;line-height:1.6}
.search-consistency-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  gap:8px;
}
.search-consistency-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  border-radius:13px;
  padding:9px 11px;
  background:rgba(255,255,255,.9);
  border:1px solid rgba(23,92,78,.12);
}
.search-consistency-item span{font-weight:800;color:var(--muted);font-size:.84rem}
.search-consistency-item b{font-size:1.02rem;color:var(--brand-dark)}
html[data-theme="dark"] .search-consistency-panel{
  background:linear-gradient(135deg,rgba(35,169,131,.14),rgba(13,25,31,.96));
  border-color:rgba(94,220,176,.24);
  box-shadow:none;
}
html[data-theme="dark"] .search-consistency-heading strong,
html[data-theme="dark"] .search-consistency-item b{color:#8ce7c3}
html[data-theme="dark"] .search-consistency-item{
  background:rgba(12,28,34,.86);
  border-color:rgba(94,220,176,.16);
}
@media (max-width: 760px) {
  .search-consistency-panel{padding:12px;margin-top:10px;border-radius:16px}
  .search-consistency-heading{display:block}
  .search-consistency-heading span{display:block;margin-top:4px}
  .search-consistency-grid{grid-template-columns:1fr;gap:8px}
  .search-consistency-item{padding:9px 10px}
}

/* Darna improved199: compact removable filter chips and likely blocker guidance. */
.active-filter-strip-compact {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.35rem 0;
}

.active-filter-strip-compact .active-filter-strip-title {
  font-size: 0.82rem;
  opacity: 0.78;
  margin-inline-end: 0.15rem;
}

.active-filter-strip-compact .result-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  max-width: min(100%, 18rem);
  padding: 0.34rem 0.62rem;
  border-radius: 999px;
  line-height: 1.35;
  white-space: nowrap;
  text-decoration: none;
}

.active-filter-strip-compact .result-filter-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.active-filter-strip-compact .result-filter-chip b {
  display: inline-grid;
  place-items: center;
  min-width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  line-height: 1;
}

.active-filter-strip-compact .region-filter-chip {
  border-style: solid;
  border-width: 1px;
}

.active-filter-strip-compact .chip-remove-group {
  font-weight: 800;
}

.search-likely-blockers {
  margin: 1rem auto 0;
  padding: 1rem;
  border-radius: 1.1rem;
  text-align: start;
}

.search-likely-blockers > strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.search-likely-blockers > p {
  margin: 0 0 0.8rem;
  opacity: 0.82;
}

.search-blocker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.65rem;
}

.search-blocker-card {
  display: grid;
  gap: 0.2rem;
  padding: 0.78rem 0.9rem;
  border-radius: 0.95rem;
  text-decoration: none;
  border: 1px solid rgba(20, 117, 82, 0.22);
  background: rgba(20, 117, 82, 0.08);
}

.search-blocker-card span {
  font-weight: 800;
}

.search-blocker-card b {
  font-size: 0.95rem;
}

.search-blocker-card small {
  opacity: 0.75;
}

.search-blocker-card:hover,
.search-blocker-card:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(20, 117, 82, 0.45);
}

body.dark-mode .search-likely-blockers,
.dark .search-likely-blockers,
[data-theme="dark"] .search-likely-blockers {
  background: rgba(20, 117, 82, 0.11);
  border: 1px solid rgba(80, 190, 145, 0.24);
}

body.dark-mode .search-blocker-card,
.dark .search-blocker-card,
[data-theme="dark"] .search-blocker-card {
  background: rgba(20, 117, 82, 0.16);
  border-color: rgba(80, 190, 145, 0.28);
}

@media (max-width: 640px) {
  .active-filter-strip-compact {
    gap: 0.35rem;
    max-height: 6.9rem;
    overflow: auto;
    padding-block: 0.45rem;
    -webkit-overflow-scrolling: touch;
  }

  .active-filter-strip-compact .result-filter-chip {
    max-width: 100%;
    padding: 0.32rem 0.54rem;
    font-size: 0.82rem;
  }

  .search-blocker-grid {
    grid-template-columns: 1fr;
  }
}

/* Darna improved205: compact mobile search result header, filter chips and no-result guidance. */
.results-summary-mobile-compact {
  align-items: flex-start;
  gap: 0.95rem;
  padding: 1rem 1.05rem;
}

.results-summary-mobile-compact .results-summary-copy {
  min-width: 0;
  display: grid;
  gap: 0.42rem;
}

.results-summary-mobile-compact .section-eyebrow {
  margin-bottom: 0;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}

.results-summary-mobile-compact .results-summary-copy > strong {
  line-height: 1.35;
}

.results-summary-mobile-compact .results-summary-actions {
  gap: 0.45rem;
}

.results-summary-mobile-compact .results-summary-actions .button {
  min-height: 2.35rem;
  padding: 0.48rem 0.78rem;
}

.results-summary-mobile-compact .search-active-summary-panel,
.results-summary-mobile-compact .search-consistency-panel {
  margin-top: 0.45rem;
  padding: 0.68rem;
  border-radius: 0.95rem;
  box-shadow: none;
}

.results-summary-mobile-compact .search-active-summary-panel > strong,
.results-summary-mobile-compact .search-consistency-heading strong {
  font-size: 0.88rem;
}

.results-summary-mobile-compact .search-active-summary-grid,
.results-summary-mobile-compact .search-consistency-grid {
  gap: 0.42rem;
}

.results-summary-mobile-compact .search-active-summary-item,
.results-summary-mobile-compact .search-consistency-item {
  min-height: auto;
  padding: 0.48rem 0.58rem;
  border-radius: 0.72rem;
}

.active-filter-strip-compact[data-mobile-filter-chips="200"] {
  gap: 0.34rem;
  padding-block: 0.25rem;
}

.active-filter-strip-compact[data-mobile-filter-chips="200"] .result-filter-chip {
  min-height: 2rem;
  padding: 0.28rem 0.52rem;
  font-size: 0.82rem;
  border-radius: 999px;
}

.active-filter-strip-compact[data-mobile-filter-chips="200"] .result-filter-chip b {
  min-width: 1rem;
  height: 1rem;
  font-size: 0.76rem;
}

.search-empty-guidance-compact {
  max-width: 920px;
  padding: 1rem;
  border-radius: 1.1rem;
}

.search-empty-guidance-compact > strong {
  display: block;
  margin-bottom: 0.28rem;
  font-size: 1.05rem;
}

.search-empty-guidance-compact .empty-tips {
  display: grid;
  gap: 0.32rem;
  margin: 0.65rem auto;
  max-width: 760px;
  text-align: start;
}

.search-likely-blockers-compact {
  margin-top: 0.7rem;
  padding: 0.72rem;
  border-radius: 0.9rem;
}

.search-likely-blockers-compact > strong {
  font-size: 0.92rem;
}

.search-likely-blockers-compact > p {
  margin-bottom: 0.55rem;
  font-size: 0.86rem;
}

.search-likely-blockers-compact .search-blocker-grid {
  grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
  gap: 0.48rem;
}

.search-likely-blockers-compact .search-blocker-card {
  padding: 0.58rem 0.66rem;
  border-radius: 0.72rem;
}

.search-likely-blockers-compact .search-blocker-card b {
  font-size: 0.86rem;
}

.search-likely-blockers-compact .search-blocker-card small {
  font-size: 0.76rem;
}

@media (max-width: 760px) {
  .results-summary-mobile-compact {
    margin: 0.8rem auto;
    padding: 0.78rem;
    border-radius: 1rem;
    gap: 0.55rem;
  }

  .results-summary-mobile-compact .results-summary-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .results-summary-mobile-compact .results-summary-actions .button {
    width: 100%;
    justify-content: center;
    min-height: 2.25rem;
    padding: 0.42rem 0.5rem;
    font-size: 0.82rem;
  }

  .active-filter-strip-compact[data-mobile-filter-chips="200"] {
    max-height: 4.75rem;
    overflow: auto;
    scrollbar-width: thin;
    border-block: 1px solid rgba(20, 117, 82, 0.1);
  }

  .active-filter-strip-compact[data-mobile-filter-chips="200"] .active-filter-strip-title {
    flex-basis: 100%;
    font-size: 0.76rem;
  }

  .active-filter-strip-compact[data-mobile-filter-chips="200"] .result-filter-chip {
    max-width: 100%;
    min-height: 1.85rem;
    padding: 0.25rem 0.46rem;
    font-size: 0.78rem;
  }

  .results-summary-mobile-compact .search-active-summary-panel,
  .results-summary-mobile-compact .search-consistency-panel {
    padding: 0.55rem;
    border-radius: 0.82rem;
  }

  .results-summary-mobile-compact .search-active-summary-grid,
  .results-summary-mobile-compact .search-consistency-grid {
    grid-template-columns: 1fr 1fr;
  }

  .results-summary-mobile-compact .search-active-summary-item,
  .results-summary-mobile-compact .search-consistency-item {
    padding: 0.42rem 0.46rem;
  }

  .results-summary-mobile-compact .search-active-summary-item span,
  .results-summary-mobile-compact .search-consistency-item span {
    font-size: 0.72rem;
  }

  .results-summary-mobile-compact .search-active-summary-item b,
  .results-summary-mobile-compact .search-consistency-item b {
    font-size: 0.82rem;
  }

  .search-empty-guidance-compact {
    margin: 0.85rem auto;
    padding: 0.82rem;
    border-radius: 0.95rem;
  }

  .search-empty-guidance-compact .empty-tips {
    margin: 0.52rem 0;
    padding-inline-start: 1.05rem;
    font-size: 0.86rem;
  }

  .search-likely-blockers-compact {
    padding: 0.58rem;
    margin-top: 0.55rem;
  }

  .search-likely-blockers-compact .search-blocker-grid {
    grid-template-columns: 1fr;
    gap: 0.38rem;
  }

  .search-empty-guidance-compact .empty-state-actions {
    gap: 0.42rem;
  }

  .search-empty-guidance-compact .empty-state-actions .button {
    min-height: 2.3rem;
    padding: 0.48rem 0.65rem;
    font-size: 0.84rem;
  }
}

@media (max-width: 420px) {
  .results-summary-mobile-compact .search-active-summary-grid,
  .results-summary-mobile-compact .search-consistency-grid,
  .results-summary-mobile-compact .results-summary-actions {
    grid-template-columns: 1fr;
  }
}

/* Darna improved205: real mobile search and detail contact comfort pass.
   Display-only layer for touch targets, spacing, and density.
   Search logic, admin roles, and permissions are intentionally unchanged. */

.results-summary-mobile-compact[data-mobile-search-review="201"] {
  isolation: isolate;
}

.active-filter-strip-compact[data-mobile-filter-review="201"] {
  position: relative;
}

.active-filter-strip-compact[data-mobile-filter-review="201"] .result-filter-chip {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.property-results-grid[data-mobile-results-grid-review="201"] {
  scroll-margin-top: 5.5rem;
}

.search-empty-guidance-compact[data-mobile-empty-review="201"] .search-empty-actions {
  align-items: center;
}

.search-likely-blockers-compact[data-mobile-blockers-review="201"] .search-blocker-card {
  min-height: auto;
}

.detail-contact-card[data-mobile-detail-contact="201"] {
  scroll-margin-top: 5rem;
}

.detail-contact-actions[data-mobile-contact-bar="201"] {
  transform: translateZ(0);
}

@media (max-width: 760px) {
  .results-summary-mobile-compact[data-mobile-search-review="201"] {
    display: grid;
    grid-template-columns: 1fr;
    margin-block: 0.65rem;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
  }

  .results-summary-mobile-compact[data-mobile-search-review="201"] .results-summary-copy > strong {
    font-size: 1.02rem;
    line-height: 1.28;
  }

  .results-summary-mobile-compact[data-mobile-search-review="201"] .section-eyebrow {
    font-size: 0.72rem;
  }

  .active-filter-strip-compact[data-mobile-filter-review="201"] {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    max-height: none;
    padding: 0.32rem 0.15rem 0.42rem;
    margin-inline: -0.12rem;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .active-filter-strip-compact[data-mobile-filter-review="201"]::after {
    content: "";
    position: sticky;
    inset-inline-end: -1px;
    width: 1.4rem;
    min-width: 1.4rem;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.96));
  }

  .active-filter-strip-compact[data-mobile-filter-review="201"] .active-filter-strip-title {
    flex: 0 0 auto;
    align-self: center;
    margin-inline-end: 0.05rem;
  }

  .active-filter-strip-compact[data-mobile-filter-review="201"] .result-filter-chip {
    flex: 0 0 auto;
    max-width: min(78vw, 18rem);
    scroll-snap-align: start;
  }

  .results-summary-mobile-compact[data-mobile-search-review="201"] .search-active-summary-panel,
  .results-summary-mobile-compact[data-mobile-search-review="201"] .search-consistency-panel {
    margin-top: 0.34rem;
  }

  .results-summary-mobile-compact[data-mobile-search-review="201"] .search-active-summary-grid,
  .results-summary-mobile-compact[data-mobile-search-review="201"] .search-consistency-grid {
    display: flex;
    overflow-x: auto;
    gap: 0.38rem;
    padding-bottom: 0.12rem;
    scroll-snap-type: x proximity;
  }

  .results-summary-mobile-compact[data-mobile-search-review="201"] .search-active-summary-item,
  .results-summary-mobile-compact[data-mobile-search-review="201"] .search-consistency-item {
    flex: 0 0 min(44vw, 11rem);
    scroll-snap-align: start;
  }

  .property-results-grid[data-mobile-results-grid-review="201"] {
    gap: 0.62rem;
  }

  .property-results-grid[data-mobile-results-grid-review="201"] .property-card-modern {
    border-radius: 1rem;
  }

  .property-results-grid[data-mobile-results-grid-review="201"]
  .property-card-modern .card-content {
    gap: 0.26rem;
  }

  .property-results-grid[data-mobile-results-grid-review="201"]
  .property-card-modern .card-location {
    font-size: 0.82rem;
  }

  .property-results-grid[data-mobile-results-grid-review="201"]
  .property-card-modern .compact-listing-summary {
    gap: 0.28rem;
  }

  .search-empty-guidance-compact[data-mobile-empty-review="201"] {
    padding: 0.72rem;
  }

  .search-empty-guidance-compact[data-mobile-empty-review="201"] > strong {
    font-size: 0.98rem;
  }

  .search-empty-guidance-compact[data-mobile-empty-review="201"] .empty-tips li:nth-child(n+3) {
    display: none;
  }

  .search-empty-guidance-compact[data-mobile-empty-review="201"] .search-empty-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .search-empty-guidance-compact[data-mobile-empty-review="201"] .search-empty-actions .button {
    width: 100%;
    justify-content: center;
  }

  .search-likely-blockers-compact[data-mobile-blockers-review="201"] {
    max-height: 14rem;
    overflow: auto;
  }

  .detail-contact-actions[data-mobile-contact-bar="201"] {
    bottom: max(0.45rem, env(safe-area-inset-bottom));
    border-radius: 1rem;
  }
}

@media (max-width: 520px) {
  .results-summary-mobile-compact[data-mobile-search-review="201"] .results-summary-actions {
    grid-template-columns: 1fr 1fr;
  }

  .results-summary-mobile-compact[data-mobile-search-review="201"]
  .results-summary-actions .button {
    min-height: 2.08rem;
    font-size: 0.76rem;
  }

  .property-results-grid[data-mobile-results-grid-review="201"]
  .property-card-modern .card-price-main .price-number {
    font-size: 1.15rem;
  }

  .detail-contact-actions[data-mobile-contact-bar="201"] .button {
    min-height: 2.28rem !important;
    padding-block: 0.42rem !important;
  }
}

@media (max-width: 380px) {
  .results-summary-mobile-compact[data-mobile-search-review="201"] .results-summary-actions,
  .search-empty-guidance-compact[data-mobile-empty-review="201"] .search-empty-actions {
    grid-template-columns: 1fr;
  }

  .active-filter-strip-compact[data-mobile-filter-review="201"] .result-filter-chip {
    max-width: 84vw;
  }

  .detail-contact-actions[data-mobile-contact-bar="201"] {
    left: 0.3rem !important;
    right: 0.3rem !important;
    gap: 0.25rem !important;
  }

  .detail-contact-actions[data-mobile-contact-bar="201"] .button span {
    font-size: 0.68rem;
  }
}

html[data-theme="dark"] .active-filter-strip-compact[data-mobile-filter-review="201"]::after {
  background: linear-gradient(90deg, rgba(13,23,29,0), rgba(13,23,29,0.96));
}

html[data-theme="dark"] .results-summary-mobile-compact[data-mobile-search-review="201"] {
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.32);
}

/* Darna improved205: screenshot-ready mobile polish for search, cards and fixed contact bar.
   This pass only tightens spacing/readability after handheld review markers; no search or admin logic changes. */
.results-summary-mobile-compact[data-mobile-screenshot-ready="202"] {
  scroll-margin-top: 84px;
}
.active-filter-strip-compact[data-mobile-chip-screenshot-ready="202"] {
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}
.search-empty-guidance-compact[data-mobile-empty-screenshot-ready="202"] {
  scroll-margin-top: 96px;
}
.search-likely-blockers-compact[data-mobile-blockers-screenshot-ready="202"] .search-blocker-card {
  min-width: 0;
}
.property-results-grid[data-mobile-results-screenshot-ready="202"] .property-card-modern {
  overflow: hidden;
}
.detail-contact-card[data-mobile-detail-screenshot-ready="202"] {
  scroll-margin-bottom: 96px;
}
.detail-contact-actions[data-mobile-contact-screenshot-ready="202"] {
  isolation: isolate;
}

@media (max-width: 760px) {
  .results-summary-mobile-compact[data-mobile-screenshot-ready="202"] {
    margin-block: 14px 10px;
    border-radius: 18px;
  }
  .results-summary-mobile-compact[data-mobile-screenshot-ready="202"] .results-summary-copy {
    min-width: 0;
  }
  .results-summary-mobile-compact[data-mobile-screenshot-ready="202"] .results-summary-copy > strong {
    line-height: 1.35;
    max-width: 100%;
  }
  .results-summary-mobile-compact[data-mobile-screenshot-ready="202"] .search-active-summary-panel,
  .results-summary-mobile-compact[data-mobile-screenshot-ready="202"] .search-consistency-panel {
    border-radius: 14px;
    margin-top: 8px;
  }
  .results-summary-mobile-compact[data-mobile-screenshot-ready="202"] .search-consistency-heading {
    gap: 3px;
  }
  .active-filter-strip-compact[data-mobile-chip-screenshot-ready="202"] {
    margin-top: 8px;
    padding: 6px 0 7px;
    gap: 6px;
    max-width: 100%;
  }
  .active-filter-strip-compact[data-mobile-chip-screenshot-ready="202"] .active-filter-strip-title {
    flex: 0 0 100%;
    margin-bottom: 1px;
  }
  .active-filter-strip-compact[data-mobile-chip-screenshot-ready="202"] .result-filter-chip {
    min-height: 32px;
    max-width: min(88vw, 310px);
    white-space: nowrap;
  }
  .active-filter-strip-compact[data-mobile-chip-screenshot-ready="202"] .result-filter-chip span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .property-results-grid[data-mobile-results-screenshot-ready="202"] {
    gap: 11px;
  }
  .property-results-grid[data-mobile-results-screenshot-ready="202"] .property-card-modern {
    border-radius: 18px;
  }
  .property-results-grid[data-mobile-results-screenshot-ready="202"] .property-card-body,
  .property-results-grid[data-mobile-results-screenshot-ready="202"] .card-content {
    min-width: 0;
  }
  .property-results-grid[data-mobile-results-screenshot-ready="202"] .property-meta-line,
  .property-results-grid[data-mobile-results-screenshot-ready="202"] .property-card-title {
    overflow-wrap: anywhere;
  }
  .search-empty-guidance-compact[data-mobile-empty-screenshot-ready="202"] {
    margin-block: 14px 12px;
    padding: 14px;
    border-radius: 18px;
  }
  .search-empty-guidance-compact[data-mobile-empty-screenshot-ready="202"] .empty-tips {
    margin-block: 8px;
  }
  .search-empty-guidance-compact[data-mobile-empty-screenshot-ready="202"] .search-empty-actions {
    gap: 7px;
  }
  .search-likely-blockers-compact[data-mobile-blockers-screenshot-ready="202"] {
    margin-top: 9px;
    padding: 10px;
    border-radius: 15px;
  }
  .search-likely-blockers-compact[data-mobile-blockers-screenshot-ready="202"] .search-blocker-grid {
    grid-template-columns: 1fr;
    gap: 7px;
  }
  .search-likely-blockers-compact[data-mobile-blockers-screenshot-ready="202"] .search-blocker-card {
    padding: 9px 10px;
  }
  .detail-contact-actions[data-mobile-contact-screenshot-ready="202"] {
    padding: 8px max(10px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
    gap: 7px;
    box-shadow: 0 -10px 24px rgba(15, 23, 42, .14);
  }
  .detail-contact-actions[data-mobile-contact-screenshot-ready="202"] .button {
    min-height: 40px;
    border-radius: 13px;
    padding-inline: 9px;
  }
  body:has(.detail-contact-actions[data-mobile-contact-screenshot-ready="202"]) {
    padding-bottom: calc(62px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 420px) {
  .results-summary-mobile-compact[data-mobile-screenshot-ready="202"] {
    padding: 11px;
  }
  .results-summary-mobile-compact[data-mobile-screenshot-ready="202"] .results-summary-actions,
  .search-empty-guidance-compact[data-mobile-empty-screenshot-ready="202"] .search-empty-actions {
    grid-template-columns: 1fr;
  }
  .active-filter-strip-compact[data-mobile-chip-screenshot-ready="202"] .result-filter-chip {
    max-width: 84vw;
    font-size: .8rem;
  }
  .property-results-grid[data-mobile-results-screenshot-ready="202"] .property-card-modern {
    min-height: 0;
  }
  .detail-contact-actions[data-mobile-contact-screenshot-ready="202"] .button {
    font-size: .82rem;
  }
}

html[data-theme="dark"] .results-summary-mobile-compact[data-mobile-screenshot-ready="202"],
html[data-theme="dark"] .search-empty-guidance-compact[data-mobile-empty-screenshot-ready="202"],
html[data-theme="dark"] .search-likely-blockers-compact[data-mobile-blockers-screenshot-ready="202"] {
  border-color: rgba(74, 222, 128, .20);
  box-shadow: 0 18px 34px rgba(0, 0, 0, .28);
}
html[data-theme="dark"] .detail-contact-actions[data-mobile-contact-screenshot-ready="202"] {
  box-shadow: 0 -14px 32px rgba(0, 0, 0, .40);
}

/* Darna improved205: mobile visual review polish after screenshot-ready pass.
   Display-only layer for handheld density, safe areas and long labels.
   No search logic, admin roles, permissions or data flows are changed. */

.results-summary-mobile-compact[data-mobile-visual-review="203"] {
  contain: layout paint;
}
.active-filter-strip-compact[data-mobile-chip-visual-review="203"] {
  -webkit-overflow-scrolling: touch;
}
.property-results-grid[data-mobile-results-visual-review="203"] {
  min-width: 0;
}
.search-empty-guidance-compact[data-mobile-empty-visual-review="203"] {
  overflow: hidden;
}
.search-likely-blockers-compact[data-mobile-blockers-visual-review="203"] {
  min-width: 0;
}
.detail-contact-card[data-mobile-detail-visual-review="203"] {
  min-width: 0;
}
.detail-contact-actions[data-mobile-contact-visual-review="203"] {
  backface-visibility: hidden;
}

@media (max-width: 760px) {
  .results-summary-mobile-compact[data-mobile-visual-review="203"] {
    gap: 8px;
    padding: 12px;
  }
  .results-summary-mobile-compact[data-mobile-visual-review="203"] .results-summary-actions {
    gap: 7px;
  }
  .results-summary-mobile-compact[data-mobile-visual-review="203"] .results-summary-actions .button {
    min-height: 38px;
    border-radius: 13px;
  }
  .results-summary-mobile-compact[data-mobile-visual-review="203"] .search-active-summary-grid,
  .results-summary-mobile-compact[data-mobile-visual-review="203"] .search-consistency-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .results-summary-mobile-compact[data-mobile-visual-review="203"] .search-active-summary-item,
  .results-summary-mobile-compact[data-mobile-visual-review="203"] .search-consistency-item {
    min-width: 0;
    padding: 7px 9px;
  }
  .results-summary-mobile-compact[data-mobile-visual-review="203"] .search-active-summary-item b,
  .results-summary-mobile-compact[data-mobile-visual-review="203"] .search-consistency-item b {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .active-filter-strip-compact[data-mobile-chip-visual-review="203"] {
    max-height: 88px;
    align-content: flex-start;
    padding-bottom: 9px;
  }
  .active-filter-strip-compact[data-mobile-chip-visual-review="203"]::-webkit-scrollbar {
    height: 4px;
  }
  .active-filter-strip-compact[data-mobile-chip-visual-review="203"] .result-filter-chip {
    flex: 0 0 auto;
    max-width: min(80vw, 280px);
    padding-inline: 10px 8px;
  }
  .active-filter-strip-compact[data-mobile-chip-visual-review="203"] .result-filter-chip b {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    display: inline-grid;
    place-items: center;
  }
  .property-results-grid[data-mobile-results-visual-review="203"] .property-card-modern,
  .property-results-grid[data-mobile-results-visual-review="203"] .property-card {
    width: 100%;
    max-width: 100%;
  }
  .property-results-grid[data-mobile-results-visual-review="203"] .property-card-modern img,
  .property-results-grid[data-mobile-results-visual-review="203"] .property-card img {
    max-width: 100%;
  }
  .property-results-grid[data-mobile-results-visual-review="203"] .label-value-inline,
  .property-results-grid[data-mobile-results-visual-review="203"] .property-specs,
  .property-results-grid[data-mobile-results-visual-review="203"] .card-meta-grid {
    min-width: 0;
  }
  .search-empty-guidance-compact[data-mobile-empty-visual-review="203"] {
    display: grid;
    gap: 8px;
  }
  .search-empty-guidance-compact[data-mobile-empty-visual-review="203"] > strong {
    line-height: 1.25;
  }
  .search-empty-guidance-compact[data-mobile-empty-visual-review="203"] .empty-tips {
    padding-inline-start: 18px;
  }
  .search-likely-blockers-compact[data-mobile-blockers-visual-review="203"] p {
    margin-block: 4px 7px;
  }
  .search-likely-blockers-compact[data-mobile-blockers-visual-review="203"] .search-blocker-card {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 4px 8px;
  }
  .search-likely-blockers-compact[data-mobile-blockers-visual-review="203"] .search-blocker-card small {
    grid-column: 1 / -1;
  }
  .detail-contact-actions[data-mobile-contact-visual-review="203"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-height: calc(54px + env(safe-area-inset-bottom));
  }
  .detail-contact-actions[data-mobile-contact-visual-review="203"] .button span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 420px) {
  .results-summary-mobile-compact[data-mobile-visual-review="203"] {
    padding: 10px;
  }
  .active-filter-strip-compact[data-mobile-chip-visual-review="203"] {
    max-height: 82px;
  }
  .active-filter-strip-compact[data-mobile-chip-visual-review="203"] .result-filter-chip {
    max-width: 78vw;
  }
  .search-likely-blockers-compact[data-mobile-blockers-visual-review="203"] .search-blocker-card {
    grid-template-columns: 1fr;
  }
  .detail-contact-actions[data-mobile-contact-visual-review="203"] {
    gap: 6px;
  }
  .detail-contact-actions[data-mobile-contact-visual-review="203"] .button {
    min-height: 38px;
    padding-inline: 6px;
  }
}

@media (max-width: 360px) {
  .detail-contact-actions[data-mobile-contact-visual-review="203"] .button svg {
    display: none;
  }
  .detail-contact-actions[data-mobile-contact-visual-review="203"] .button {
    font-size: .78rem;
  }
}

html[data-theme="dark"] .results-summary-mobile-compact[data-mobile-visual-review="203"],
html[data-theme="dark"] .search-empty-guidance-compact[data-mobile-empty-visual-review="203"],
html[data-theme="dark"] .search-likely-blockers-compact[data-mobile-blockers-visual-review="203"],
html[data-theme="dark"] .detail-contact-card[data-mobile-detail-visual-review="203"] {
  border-color: rgba(34, 197, 94, .22);
}
html[data-theme="dark"] .active-filter-strip-compact[data-mobile-chip-visual-review="203"] .result-filter-chip {
  box-shadow: inset 0 0 0 1px rgba(74, 222, 128, .16);
}

/* Darna improved205: conservative mobile visual tuning layer.
   Display-only polish for handheld search summaries, filter chips, cards, empty results and contact actions.
   No search logic, admin roles, permissions or data flows are changed. */

.results-summary-mobile-compact[data-mobile-visual-tuning="204"],
.active-filter-strip-compact[data-mobile-chip-tuning="204"],
.property-results-grid[data-mobile-results-tuning="204"],
.search-empty-guidance-compact[data-mobile-empty-tuning="204"],
.search-likely-blockers-compact[data-mobile-blockers-tuning="204"],
.detail-contact-actions[data-mobile-contact-tuning="204"] {
  min-width: 0;
}

@media (max-width: 760px) {
  .results-summary-mobile-compact[data-mobile-visual-tuning="204"] {
    margin-inline: 0;
    border-radius: 18px;
  }
  .results-summary-mobile-compact[data-mobile-visual-tuning="204"] .results-summary-copy {
    min-width: 0;
  }
  .results-summary-mobile-compact[data-mobile-visual-tuning="204"] .section-eyebrow {
    letter-spacing: 0;
  }
  .active-filter-strip-compact[data-mobile-chip-tuning="204"] {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    max-height: 48px;
    gap: 6px;
    scroll-snap-type: x proximity;
  }
  .active-filter-strip-compact[data-mobile-chip-tuning="204"] .active-filter-strip-title {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  .active-filter-strip-compact[data-mobile-chip-tuning="204"] .result-filter-chip {
    scroll-snap-align: start;
    max-width: min(72vw, 245px);
    min-height: 34px;
  }
  .active-filter-strip-compact[data-mobile-chip-tuning="204"] .result-filter-chip span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .property-results-grid[data-mobile-results-tuning="204"] {
    gap: 12px;
  }
  .property-results-grid[data-mobile-results-tuning="204"] .property-card-modern,
  .property-results-grid[data-mobile-results-tuning="204"] .property-card {
    overflow: hidden;
  }
  .search-empty-guidance-compact[data-mobile-empty-tuning="204"] {
    padding: 16px;
  }
  .search-empty-guidance-compact[data-mobile-empty-tuning="204"] .empty-state-actions,
  .search-empty-guidance-compact[data-mobile-empty-tuning="204"] .search-empty-actions {
    gap: 8px;
  }
  .search-likely-blockers-compact[data-mobile-blockers-tuning="204"] .search-blocker-grid {
    gap: 8px;
  }
  .detail-contact-actions[data-mobile-contact-tuning="204"] {
    position: sticky;
    bottom: max(8px, env(safe-area-inset-bottom));
    z-index: 12;
    border-radius: 18px;
  }
}

@media (max-width: 420px) {
  .results-summary-mobile-compact[data-mobile-visual-tuning="204"] {
    gap: 7px;
  }
  .active-filter-strip-compact[data-mobile-chip-tuning="204"] {
    max-height: 44px;
  }
  .active-filter-strip-compact[data-mobile-chip-tuning="204"] .result-filter-chip {
    max-width: 70vw;
    font-size: .78rem;
  }
  .search-empty-guidance-compact[data-mobile-empty-tuning="204"] {
    padding: 14px;
  }
  .detail-contact-actions[data-mobile-contact-tuning="204"] .button {
    min-width: 0;
  }
}

@media (max-width: 360px) {
  .active-filter-strip-compact[data-mobile-chip-tuning="204"] .result-filter-chip {
    max-width: 66vw;
  }
  .detail-contact-actions[data-mobile-contact-tuning="204"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

html[data-theme="dark"] .results-summary-mobile-compact[data-mobile-visual-tuning="204"],
html[data-theme="dark"] .search-empty-guidance-compact[data-mobile-empty-tuning="204"],
html[data-theme="dark"] .search-likely-blockers-compact[data-mobile-blockers-tuning="204"],
html[data-theme="dark"] .detail-contact-actions[data-mobile-contact-tuning="204"] {
  box-shadow: 0 14px 32px rgba(0, 0, 0, .26);
}
html[data-theme="dark"] .active-filter-strip-compact[data-mobile-chip-tuning="204"] .result-filter-chip {
  border-color: rgba(74, 222, 128, .22);
}

/* Darna improved205: final mobile visual guard for search summaries, chips, cards and contact bar.
   Display-only polish after the 204 handheld pass.  It deliberately does not change search logic,
   admin permissions, roles, form validation or data writes. */

.results-summary-mobile-compact[data-mobile-final-tuning="205"],
.active-filter-strip-compact[data-mobile-chip-final="205"],
.property-results-grid[data-mobile-results-final="205"],
.search-empty-guidance-compact[data-mobile-empty-final="205"],
.search-likely-blockers-compact[data-mobile-blockers-final="205"],
.detail-contact-actions[data-mobile-contact-final="205"] {
  box-sizing: border-box;
  max-width: 100%;
}

@media (max-width: 760px) {
  .results-summary-mobile-compact[data-mobile-final-tuning="205"] {
    padding: 14px;
    gap: 10px;
    align-items: stretch;
  }
  .results-summary-mobile-compact[data-mobile-final-tuning="205"] .results-summary-actions {
    gap: 7px;
  }
  .results-summary-mobile-compact[data-mobile-final-tuning="205"] .results-summary-actions .button {
    min-height: 38px;
    padding: 8px 11px;
  }
  .active-filter-strip-compact[data-mobile-chip-final="205"] {
    padding-block-end: 2px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }
  .active-filter-strip-compact[data-mobile-chip-final="205"]::after {
    content: "";
    flex: 0 0 8px;
  }
  .active-filter-strip-compact[data-mobile-chip-final="205"] .result-filter-chip {
    flex: 0 0 auto;
    border-radius: 999px;
    line-height: 1.25;
  }
  .active-filter-strip-compact[data-mobile-chip-final="205"] .chip-remove-group {
    max-width: 190px;
  }
  .property-results-grid[data-mobile-results-final="205"] .property-card-modern,
  .property-results-grid[data-mobile-results-final="205"] .property-card {
    min-width: 0;
    contain: layout paint;
  }
  .search-empty-guidance-compact[data-mobile-empty-final="205"] {
    margin-block-start: 12px;
    border-radius: 18px;
  }
  .search-empty-guidance-compact[data-mobile-empty-final="205"] .empty-tips {
    margin-block: 8px 10px;
  }
  .search-likely-blockers-compact[data-mobile-blockers-final="205"] {
    margin-block-start: 10px;
  }
  .search-likely-blockers-compact[data-mobile-blockers-final="205"] .search-blocker-card {
    min-height: 44px;
    padding: 9px 10px;
  }
  .detail-contact-actions[data-mobile-contact-final="205"] {
    gap: 7px;
    padding: 8px;
    backdrop-filter: blur(10px);
  }
  .detail-contact-actions[data-mobile-contact-final="205"] .detail-contact-action,
  .detail-contact-actions[data-mobile-contact-final="205"] .button {
    min-height: 42px;
    padding-inline: 8px;
  }
}

@media (max-width: 420px) {
  .results-summary-mobile-compact[data-mobile-final-tuning="205"] {
    padding: 12px;
  }
  .results-summary-mobile-compact[data-mobile-final-tuning="205"] strong {
    font-size: .98rem;
  }
  .active-filter-strip-compact[data-mobile-chip-final="205"] .result-filter-chip {
    max-width: 68vw;
  }
  .search-likely-blockers-compact[data-mobile-blockers-final="205"] .search-blocker-grid {
    grid-template-columns: 1fr;
  }
  .detail-contact-actions[data-mobile-contact-final="205"] {
    border-radius: 16px;
  }
}

@media (max-width: 360px) {
  .results-summary-mobile-compact[data-mobile-final-tuning="205"] .results-summary-actions {
    grid-template-columns: 1fr;
  }
  .active-filter-strip-compact[data-mobile-chip-final="205"] .result-filter-chip {
    max-width: 64vw;
  }
  .detail-contact-actions[data-mobile-contact-final="205"] span {
    font-size: .76rem;
  }
}

html[data-theme="dark"] .results-summary-mobile-compact[data-mobile-final-tuning="205"],
html[data-theme="dark"] .search-empty-guidance-compact[data-mobile-empty-final="205"],
html[data-theme="dark"] .search-likely-blockers-compact[data-mobile-blockers-final="205"],
html[data-theme="dark"] .detail-contact-actions[data-mobile-contact-final="205"] {
  border-color: rgba(74, 222, 128, .16);
}
html[data-theme="dark"] .active-filter-strip-compact[data-mobile-chip-final="205"] .result-filter-chip {
  background: rgba(15, 118, 82, .18);
}

/* Darna improved206: admin-only mobile review checklist.
   This avoids another blind visual layer and gives testers a compact mobile QA aid. */
.search-mobile-review-checklist[data-mobile-review-checklist="206"] {
  border-color: rgba(14, 148, 103, 0.22);
  background: linear-gradient(135deg, rgba(14, 148, 103, 0.09), rgba(255, 255, 255, 0.96));
}

.search-mobile-review-checklist[data-mobile-review-checklist="206"] .section-title-row {
  align-items: flex-start;
  gap: 0.55rem;
}

.mobile-review-grid {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.mobile-review-item {
  border: 1px solid rgba(14, 148, 103, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  padding: 0.7rem 0.8rem;
}

.mobile-review-item strong {
  display: block;
  color: var(--color-text, #17362d);
  font-size: 0.92rem;
  margin-bottom: 0.2rem;
}

.mobile-review-item span {
  color: var(--color-muted, #5d746d);
  font-size: 0.82rem;
  line-height: 1.55;
}

@media (max-width: 760px) {
  .search-mobile-review-checklist[data-mobile-review-checklist="206"] {
    margin-top: 0.8rem;
    padding: 0.85rem;
    border-radius: 18px;
  }

  .search-mobile-review-checklist[data-mobile-review-checklist="206"] .section-title-row h2 {
    font-size: 1rem;
  }

  .search-mobile-review-checklist[data-mobile-review-checklist="206"] .section-title-row span {
    font-size: 0.78rem;
    line-height: 1.5;
  }

  .mobile-review-grid {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .mobile-review-item {
    padding: 0.62rem 0.68rem;
    border-radius: 14px;
  }
}

html[data-theme="dark"] .search-mobile-review-checklist[data-mobile-review-checklist="206"] {
  border-color: rgba(56, 188, 140, 0.26);
  background: linear-gradient(135deg, rgba(56, 188, 140, 0.12), rgba(12, 26, 23, 0.94));
}

html[data-theme="dark"] .search-mobile-review-checklist[data-mobile-review-checklist="206"] .mobile-review-item {
  border-color: rgba(56, 188, 140, 0.18);
  background: rgba(13, 31, 27, 0.82);
}

/* Darna improved207: admin-only mobile problem report aid.
   It helps testers send focused screenshots without affecting public users. */
.search-mobile-review-checklist[data-mobile-review-handoff="207"] {
  position: relative;
}

.mobile-review-report-note[data-mobile-review-report="207"] {
  margin-top: 0.65rem;
  border: 1px dashed rgba(14, 148, 103, 0.28);
  border-radius: 16px;
  background: rgba(14, 148, 103, 0.07);
  padding: 0.72rem 0.82rem;
}

.mobile-review-report-note strong {
  display: block;
  margin-bottom: 0.22rem;
  color: var(--color-text, #17362d);
  font-size: 0.9rem;
}

.mobile-review-report-note span {
  display: block;
  color: var(--color-muted, #5d746d);
  font-size: 0.8rem;
  line-height: 1.55;
}

.mobile-review-report-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.48rem;
}

.mobile-review-report-list em {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(14, 148, 103, 0.16);
  color: var(--color-text, #17362d);
  font-style: normal;
  font-size: 0.76rem;
  padding: 0.24rem 0.55rem;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .mobile-review-report-note[data-mobile-review-report="207"] {
    padding: 0.62rem 0.68rem;
    border-radius: 14px;
  }

  .mobile-review-report-list {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.1rem;
    scrollbar-width: thin;
  }

  .mobile-review-report-list em {
    flex: 0 0 auto;
    max-width: 82vw;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

html[data-theme="dark"] .mobile-review-report-note[data-mobile-review-report="207"] {
  border-color: rgba(56, 188, 140, 0.28);
  background: rgba(56, 188, 140, 0.09);
}

html[data-theme="dark"] .mobile-review-report-list em {
  background: rgba(13, 31, 27, 0.88);
  border-color: rgba(56, 188, 140, 0.18);
}

/* Darna improved208: admin-only mobile search report snapshot.
   Purpose: connect the mobile debug checklist with the exact active search state
   without adding another public visual layer for normal users. */
.search-mobile-review-checklist[data-mobile-review-handoff="207"] .mobile-review-snapshot[data-mobile-review-snapshot="208"] {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(18, 138, 92, 0.24);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(18, 138, 92, 0.09), rgba(255, 255, 255, 0.72));
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.07);
}

.mobile-review-snapshot strong,
.mobile-review-copy-label {
  display: block;
  color: var(--darna-green, #128a5c);
  font-weight: 900;
}

.mobile-review-snapshot > span {
  display: block;
  margin-top: 4px;
  color: var(--muted, #64748b);
  font-size: 0.92rem;
}

.mobile-review-snapshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.mobile-review-snapshot-grid div,
.mobile-review-snapshot-filters em {
  border: 1px solid rgba(18, 138, 92, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  padding: 8px 10px;
  font-style: normal;
}

.mobile-review-snapshot-grid span,
.mobile-review-snapshot-filters em {
  color: var(--muted, #64748b);
  font-size: 0.82rem;
}

.mobile-review-snapshot-grid b {
  display: block;
  margin-top: 2px;
  color: var(--text, #10201a);
  font-size: 1rem;
}

.mobile-review-snapshot-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.mobile-review-copy-label {
  margin-top: 12px;
  font-size: 0.9rem;
}

.mobile-review-snapshot textarea {
  box-sizing: border-box;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid rgba(18, 138, 92, 0.28);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text, #10201a);
  font: inherit;
  line-height: 1.6;
  resize: vertical;
  direction: rtl;
}

html[data-theme="dark"] .mobile-review-snapshot[data-mobile-review-snapshot="208"],
.dark .mobile-review-snapshot[data-mobile-review-snapshot="208"] {
  border-color: rgba(67, 186, 127, 0.32);
  background:
    linear-gradient(135deg, rgba(18, 138, 92, 0.20), rgba(15, 23, 42, 0.80));
  box-shadow: none;
}

[data-theme="dark"] .mobile-review-snapshot-grid div,
[data-theme="dark"] .mobile-review-snapshot-filters em,
[data-theme="dark"] .mobile-review-snapshot textarea,
.dark .mobile-review-snapshot-grid div,
.dark .mobile-review-snapshot-filters em,
.dark .mobile-review-snapshot textarea {
  border-color: rgba(67, 186, 127, 0.24);
  background: rgba(15, 23, 42, 0.78);
  color: #e5f7ef;
}

@media (max-width: 640px) {
  .mobile-review-snapshot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mobile-review-snapshot-filters {
    max-height: 96px;
    overflow: auto;
  }

  .mobile-review-snapshot textarea {
    min-height: 132px;
    font-size: 0.88rem;
  }
}

/* Darna improved209: admin mobile report copy affordance.
   Adds a visible debug-search status and a copy button for the admin-only report. */
.mobile-review-debug-status[data-mobile-review-debug-status="209"] {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  width: fit-content;
  max-width: 100%;
  margin: 0.1rem 0 0.72rem;
  padding: 0.32rem 0.66rem;
  border: 1px solid rgba(18, 138, 92, 0.24);
  border-radius: 999px;
  background: rgba(18, 138, 92, 0.09);
  color: var(--darna-green, #128a5c);
  font-size: 0.82rem;
  font-weight: 900;
}

.mobile-review-debug-status code {
  direction: ltr;
  unicode-bidi: plaintext;
  font-size: 0.78rem;
  color: inherit;
}

.mobile-review-copy-actions[data-mobile-review-copy-actions="209"] {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.55rem;
}

.mobile-review-copy-button[data-mobile-review-copy-button] {
  min-height: 38px;
  padding-inline: 0.9rem;
}

.mobile-review-copy-status[data-mobile-review-copy-status] {
  color: var(--muted, #64748b);
  font-size: 0.84rem;
  line-height: 1.5;
}

.mobile-review-copy-status[data-copy-state="success"] {
  color: var(--darna-green, #128a5c);
  font-weight: 900;
}

.mobile-review-copy-status[data-copy-state="manual"],
.mobile-review-copy-status[data-copy-state="error"] {
  color: #a16207;
  font-weight: 800;
}

html[data-theme="dark"] .mobile-review-debug-status[data-mobile-review-debug-status="209"],
.dark .mobile-review-debug-status[data-mobile-review-debug-status="209"] {
  border-color: rgba(67, 186, 127, 0.30);
  background: rgba(67, 186, 127, 0.10);
  color: #9ff0c9;
}

html[data-theme="dark"] .mobile-review-copy-status[data-mobile-review-copy-status],
.dark .mobile-review-copy-status[data-mobile-review-copy-status] {
  color: #b9d5ca;
}

html[data-theme="dark"] .mobile-review-copy-status[data-copy-state="success"],
.dark .mobile-review-copy-status[data-copy-state="success"] {
  color: #9ff0c9;
}

html[data-theme="dark"] .mobile-review-copy-status[data-copy-state="manual"],
html[data-theme="dark"] .mobile-review-copy-status[data-copy-state="error"],
.dark .mobile-review-copy-status[data-copy-state="manual"],
.dark .mobile-review-copy-status[data-copy-state="error"] {
  color: #fde68a;
}

@media (max-width: 640px) {
  .mobile-review-debug-status[data-mobile-review-debug-status="209"] {
    font-size: 0.78rem;
    padding: 0.28rem 0.52rem;
  }

  .mobile-review-copy-actions[data-mobile-review-copy-actions="209"] {
    align-items: stretch;
  }

  .mobile-review-copy-button[data-mobile-review-copy-button] {
    flex: 1 1 130px;
  }

  .mobile-review-copy-status[data-mobile-review-copy-status] {
    flex: 1 1 100%;
  }
}

/* Darna_improved212: keep the admin mobile/debug helper useful without taking over the page. */
.search-mobile-review-checklist[data-mobile-review-panel="210"] {
  padding: 0;
  overflow: hidden;
}

.mobile-review-collapsible {
  display: block;
}

.mobile-review-collapsible-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.9rem 1rem;
  cursor: pointer;
  font-weight: 800;
  color: var(--text);
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.12), rgba(17, 24, 39, 0.03));
  border-radius: inherit;
  list-style-position: inside;
}

.mobile-review-collapsible-summary code {
  direction: ltr;
  unicode-bidi: isolate;
  font-size: 0.82rem;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  color: var(--darna-green-dark, #166534);
  background: rgba(22, 163, 74, 0.12);
  border: 1px solid rgba(22, 163, 74, 0.22);
}

.mobile-review-collapsible-summary em {
  flex: 1 1 auto;
  min-width: 10rem;
  font-style: normal;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.86rem;
  text-align: start;
}

.mobile-review-collapsible-body {
  padding: 1rem;
  display: grid;
  gap: 0.9rem;
}

.mobile-review-collapsible:not([open]) .mobile-review-collapsible-summary {
  border-radius: inherit;
}

.mobile-review-collapsible[open] .mobile-review-collapsible-summary {
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

html.theme-dark .mobile-review-collapsible-summary,
body.theme-dark .mobile-review-collapsible-summary {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.16), rgba(2, 6, 23, 0.4));
}

html.theme-dark .mobile-review-collapsible-summary code,
body.theme-dark .mobile-review-collapsible-summary code {
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.28);
}

@media (max-width: 720px) {
  .search-mobile-review-checklist[data-mobile-review-panel="210"] {
    margin-block: 0.75rem;
  }

  .mobile-review-collapsible-summary {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 0.75rem 0.85rem;
  }

  .mobile-review-collapsible-summary span {
    flex: 1 1 45%;
  }

  .mobile-review-collapsible-summary em {
    flex-basis: 100%;
    min-width: 0;
    font-size: 0.8rem;
    line-height: 1.55;
  }

  .mobile-review-collapsible-body {
    padding: 0.8rem;
    gap: 0.75rem;
  }
}

/* Darna_improved212: let admins leave the mobile/debug view safely after a phone test. */
.search-mobile-review-checklist[data-mobile-review-debug-close="211"] .mobile-review-debug-close {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0.65rem 0 0.95rem;
    padding: 0.7rem 0.85rem;
    border: 1px solid rgba(18, 123, 89, 0.18);
    border-radius: 16px;
    background: rgba(18, 123, 89, 0.07);
}

.search-mobile-review-checklist[data-mobile-review-debug-close="211"] .mobile-review-debug-close span {
    min-width: 0;
    color: var(--muted, #667085);
    font-size: 0.9rem;
    line-height: 1.6;
}

.search-mobile-review-checklist[data-mobile-review-debug-close="211"] .mobile-review-debug-close .button {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0.45rem 0.8rem;
    border-color: rgba(18, 123, 89, 0.28);
    color: var(--darna-green, #127b59);
    white-space: nowrap;
}

body.dark .search-mobile-review-checklist[data-mobile-review-debug-close="211"] .mobile-review-debug-close,
[data-theme="dark"] .search-mobile-review-checklist[data-mobile-review-debug-close="211"] .mobile-review-debug-close {
    border-color: rgba(67, 214, 162, 0.24);
    background: rgba(67, 214, 162, 0.08);
}

body.dark .search-mobile-review-checklist[data-mobile-review-debug-close="211"] .mobile-review-debug-close span,
[data-theme="dark"] .search-mobile-review-checklist[data-mobile-review-debug-close="211"] .mobile-review-debug-close span {
    color: rgba(236, 253, 245, 0.78);
}

body.dark .search-mobile-review-checklist[data-mobile-review-debug-close="211"] .mobile-review-debug-close .button,
[data-theme="dark"] .search-mobile-review-checklist[data-mobile-review-debug-close="211"] .mobile-review-debug-close .button {
    border-color: rgba(67, 214, 162, 0.36);
    color: #43d6a2;
    background: rgba(15, 23, 42, 0.78);
}

@media (max-width: 640px) {
    .search-mobile-review-checklist[data-mobile-review-debug-close="211"] .mobile-review-debug-close {
        align-items: stretch;
        flex-direction: column;
        padding: 0.65rem;
    }

    .search-mobile-review-checklist[data-mobile-review-debug-close="211"] .mobile-review-debug-close .button {
        justify-content: center;
        width: 100%;
    }
}

/* Darna_improved212: show the no-debug normal-view URL inside the admin mobile review snapshot. */
.mobile-review-snapshot[data-mobile-review-snapshot="208"] .mobile-review-normal-url[data-mobile-review-normal-url="212"] {
    display: grid;
    gap: 0.35rem;
    margin: 0.65rem 0;
    padding: 0.65rem 0.75rem;
    border: 1px solid rgba(18, 123, 89, 0.18);
    border-radius: 14px;
    background: rgba(18, 123, 89, 0.055);
}

.mobile-review-snapshot[data-mobile-review-snapshot="208"] .mobile-review-normal-url[data-mobile-review-normal-url="212"] span {
    color: var(--muted, #667085);
    font-size: 0.82rem;
    font-weight: 800;
}

.mobile-review-snapshot[data-mobile-review-snapshot="208"] .mobile-review-normal-url[data-mobile-review-normal-url="212"] code {
    display: block;
    overflow-x: auto;
    max-width: 100%;
    padding: 0.4rem 0.5rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.76);
    color: var(--text, #101828);
    font-size: 0.78rem;
    line-height: 1.5;
    white-space: nowrap;
}

body.dark .mobile-review-normal-url[data-mobile-review-normal-url="212"],
[data-theme="dark"] .mobile-review-normal-url[data-mobile-review-normal-url="212"] {
    border-color: rgba(67, 214, 162, 0.24);
    background: rgba(67, 214, 162, 0.08);
}

body.dark .mobile-review-normal-url[data-mobile-review-normal-url="212"] code,
[data-theme="dark"] .mobile-review-normal-url[data-mobile-review-normal-url="212"] code {
    background: rgba(15, 23, 42, 0.76);
    color: rgba(236, 253, 245, 0.92);
}

/* Darna_improved227: include the release name in the admin mobile review snapshot. */
.mobile-review-snapshot[data-mobile-review-release="214"] .mobile-review-snapshot-grid div:last-child {
    border-color: rgba(18, 123, 89, 0.24);
    background: rgba(18, 123, 89, 0.075);
}

.mobile-review-snapshot[data-mobile-review-release="214"] .mobile-review-snapshot-grid div:last-child b {
    direction: ltr;
    unicode-bidi: isolate;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: 0.01em;
}

body.dark .mobile-review-snapshot[data-mobile-review-release="214"] .mobile-review-snapshot-grid div:last-child,
[data-theme="dark"] .mobile-review-snapshot[data-mobile-review-release="214"] .mobile-review-snapshot-grid div:last-child {
    border-color: rgba(67, 214, 162, 0.28);
    background: rgba(67, 214, 162, 0.09);
}

/* Darna_improved227: keep the admin mobile debug report useful without adding public UI. */
.mobile-review-compare-hint[data-mobile-review-compare="214"] {
    margin-top: 0.5rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid rgba(18, 123, 89, 0.18);
    border-radius: 14px;
    background: rgba(18, 123, 89, 0.06);
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.6;
}

body.dark .mobile-review-compare-hint[data-mobile-review-compare="214"],
[data-theme="dark"] .mobile-review-compare-hint[data-mobile-review-compare="214"] {
    border-color: rgba(67, 214, 162, 0.22);
    background: rgba(67, 214, 162, 0.08);
    color: rgba(229, 231, 235, 0.82);
}

@media (max-width: 640px) {
    .mobile-review-compare-hint[data-mobile-review-compare="214"] {
        font-size: 0.82rem;
        padding: 0.5rem 0.62rem;
    }
}

/* Darna_improved227: final admin-only mobile test handoff without public UI changes. */
.mobile-review-final-check[data-mobile-review-final-check="215"] {
    margin-top: 0.5rem;
    padding: 0.6rem 0.72rem;
    border: 1px dashed rgba(18, 123, 89, 0.24);
    border-radius: 14px;
    background: rgba(18, 123, 89, 0.045);
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.65;
}

.mobile-review-final-check[data-mobile-review-final-check="215"] strong {
    display: block;
    color: var(--text);
    margin-bottom: 0.18rem;
}

body.dark .mobile-review-final-check[data-mobile-review-final-check="215"],
[data-theme="dark"] .mobile-review-final-check[data-mobile-review-final-check="215"] {
    border-color: rgba(67, 214, 162, 0.28);
    background: rgba(67, 214, 162, 0.07);
    color: rgba(229, 231, 235, 0.82);
}

body.dark .mobile-review-final-check[data-mobile-review-final-check="215"] strong,
[data-theme="dark"] .mobile-review-final-check[data-mobile-review-final-check="215"] strong {
    color: rgba(236, 253, 245, 0.94);
}

@media (max-width: 640px) {
    .mobile-review-final-check[data-mobile-review-final-check="215"] {
        font-size: 0.81rem;
        padding: 0.5rem 0.62rem;
    }
}

/* Darna_improved227: visible mobile fixes from screenshot review.
   Scope: trust accordion spacing/RTL icon, bottom search buttons, card price line,
   and form area unit outside the input. */

.home-trust-bottom {
  margin-top: 8px !important;
}

.home-trust-bottom .home-trust-disclosure {
  margin-top: 0 !important;
}

.home-trust-disclosure summary {
  justify-content: flex-start !important;
  gap: 10px !important;
}

.home-trust-disclosure summary::after {
  flex: 0 0 auto;
  margin-inline-start: 8px;
}

html[dir="rtl"] .home-trust-disclosure summary::after {
  margin-inline-start: 8px;
  margin-inline-end: 0;
}

html[data-theme="dark"] .home-trust-disclosure,
html[data-theme="dark"] .home-trust-bottom .home-trust-disclosure {
  background: linear-gradient(135deg, rgba(15, 31, 35, 0.96), rgba(10, 21, 26, 0.98)) !important;
  border-color: rgba(32, 201, 151, 0.28) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22) !important;
}

html[data-theme="dark"] .home-trust-disclosure summary {
  color: #d9fff3 !important;
}

html[data-theme="dark"] .home-trust-disclosure summary::after {
  color: #20c997 !important;
}

.bottom-search-reset {
  margin-top: 10px !important;
  margin-bottom: 6px !important;
  padding: 8px 10px !important;
  gap: 7px !important;
  border-radius: 14px !important;
}

.bottom-search-reset .button {
  min-height: 36px !important;
  padding: 8px 13px !important;
  border-radius: 12px !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
  box-shadow: 0 8px 18px rgba(0, 166, 118, 0.12) !important;
}

.bottom-search-reset .ui-icon {
  width: 16px !important;
  height: 16px !important;
}

.property-card-modern .card-price-line.listing-price-panel {
  width: fit-content !important;
  max-width: 100% !important;
  margin: 4px 0 2px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.property-card-modern .card-price-line.listing-price-panel::before {
  display: none !important;
}

.property-card-modern .card-price-line .price-context-row {
  display: none !important;
}

.property-card-modern .card-price-line .card-price-main.structured-price {
  display: inline-flex !important;
  align-items: center !important;
  width: auto !important;
  max-width: 100% !important;
  padding: 4px 9px !important;
  border: 1px solid rgba(0, 166, 118, 0.24) !important;
  border-radius: 999px !important;
  background: rgba(0, 166, 118, 0.10) !important;
  box-shadow: none !important;
  gap: 4px !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
}

html[data-theme="dark"] .property-card-modern .card-price-line .card-price-main.structured-price {
  border-color: rgba(32, 201, 151, 0.30) !important;
  background: rgba(32, 201, 151, 0.13) !important;
}

.property-card-modern .card-price-line .price-number {
  font-size: 16px !important;
  line-height: 1.1 !important;
  letter-spacing: 0 !important;
}

.property-card-modern .card-price-line .price-unit,
.property-card-modern .card-price-line .price-currency {
  font-size: 12px !important;
  line-height: 1.1 !important;
}

.form-area-field > label {
  display: block;
  margin-bottom: 8px;
}

.form-area-field .area-value-field .compact-label {
  display: none !important;
}

.area-input-with-unit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.area-input-with-unit input {
  min-width: 0;
}

.area-input-unit {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(0, 166, 118, 0.08);
  color: #0b6f55;
  font-weight: 900;
  white-space: nowrap;
}

html[data-theme="dark"] .area-input-unit {
  border-color: rgba(32, 201, 151, 0.26);
  background: rgba(32, 201, 151, 0.12);
  color: #c9f7ea;
}

@media (max-width: 680px) {
  .bottom-search-reset {
    margin: 8px 18px 4px !important;
    padding: 8px !important;
  }

  .bottom-search-reset .button {
    min-height: 34px !important;
    padding: 7px 10px !important;
    font-size: 12.5px !important;
    flex: 1 1 120px !important;
  }

  .home-trust-bottom {
    margin: 8px 18px 0 !important;
  }

  .home-trust-disclosure summary {
    min-height: 44px;
    padding: 10px 13px !important;
    font-size: 14px !important;
  }

  .property-card-modern .card-price-line .card-price-main.structured-price {
    padding: 3px 8px !important;
  }

  .property-card-modern .card-price-line .price-number {
    font-size: 15px !important;
  }

  .area-input-with-unit {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px;
  }

  .area-input-unit {
    min-height: 44px;
    padding: 0 10px;
    font-size: 13px;
  }
}

/* Darna_improved227: compact mobile UI from screenshot review.
   Scope: empty results, Darna features accordion, compact feature chips,
   advanced search density, and auth/login intro. */

.results-summary-pro:has(+ .empty-state-pro),
.results-summary-pro[data-mobile-visible-fixes-218="true"]:has(+ .empty-state-pro) {
  margin-bottom: 8px !important;
}

.results-summary-pro:has(+ .empty-state-pro) .results-summary-actions {
  display: none !important;
}

.search-empty-guidance-compact {
  padding: 14px 16px !important;
  gap: 8px !important;
  border-radius: 16px !important;
}

.search-empty-guidance-compact > strong {
  font-size: 17px !important;
  line-height: 1.25 !important;
}

.search-empty-guidance-compact > div {
  font-size: 13px !important;
  line-height: 1.45 !important;
}

.search-empty-guidance-compact .empty-tips {
  margin: 4px 0 6px !important;
  gap: 4px !important;
  padding-inline-start: 16px !important;
}

.search-empty-guidance-compact .empty-tips li {
  font-size: 12.5px !important;
  line-height: 1.45 !important;
}

.search-likely-blockers-compact {
  margin-top: 7px !important;
  padding: 10px !important;
  border-radius: 14px !important;
}

.search-likely-blockers-compact > p {
  margin: 3px 0 7px !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
}

.search-blocker-grid {
  gap: 7px !important;
}

.search-blocker-card {
  min-height: 0 !important;
  padding: 8px 9px !important;
  border-radius: 12px !important;
}

.search-blocker-card span {
  font-size: 12.5px !important;
  line-height: 1.25 !important;
}

.search-blocker-card b,
.search-blocker-card small {
  font-size: 11.5px !important;
  line-height: 1.2 !important;
}

.search-empty-actions {
  margin-top: 8px !important;
  gap: 7px !important;
}

.search-empty-actions .button {
  min-height: 34px !important;
  padding: 7px 10px !important;
  border-radius: 12px !important;
  font-size: 12.5px !important;
  line-height: 1.2 !important;
}

.search-empty-remove-features {
  border-color: rgba(0, 166, 118, .26) !important;
  background: rgba(0, 166, 118, .08) !important;
  color: #075f49 !important;
  font-weight: 900 !important;
}

.home-trust-bottom {
  margin-top: 4px !important;
}

.home-trust-disclosure summary {
  min-height: 38px !important;
  padding: 8px 12px !important;
  gap: 8px !important;
  font-size: 13.5px !important;
  line-height: 1.25 !important;
  justify-content: flex-start !important;
}

.home-trust-disclosure summary::after {
  font-size: 18px !important;
  margin-inline-start: 6px !important;
}

.home-trust-disclosure .hero-trust-row {
  gap: 8px !important;
  padding: 8px !important;
}

.home-trust-disclosure .hero-trust-row div {
  padding: 9px !important;
  border-radius: 12px !important;
}

.advanced-filter-body,
.advanced-filter-scroll {
  gap: 10px !important;
}

.advanced-filter .grid {
  gap: 10px !important;
}

.range-filter-card,
.tenure-filter-field,
.sort-filter-field {
  padding: 8px !important;
  border-radius: 12px !important;
}


.advanced-features summary {
  min-height: 38px !important;
  padding: 8px 11px !important;
  font-size: 13.5px !important;
}

.advanced-features .feature-row,
.form-section .feature-row {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 6px !important;
  align-items: stretch !important;
}

.advanced-features .feature-check,
.form-section .feature-check {
  min-width: 0 !important;
  width: 100% !important;
  min-height: 34px !important;
  padding: 5px 6px !important;
  border-radius: 11px !important;
  gap: 4px !important;
  justify-content: center !important;
  text-align: center !important;
  font-size: 11.5px !important;
  line-height: 1.15 !important;
  white-space: normal !important;
  overflow: hidden !important;
}

.advanced-features .feature-check input,
.form-section .feature-check input {
  flex: 0 0 auto !important;
  width: 13px !important;
  height: 13px !important;
  margin: 0 !important;
}

.advanced-features .feature-check:has(input:checked),
.form-section .feature-check:has(input:checked) {
  border-color: rgba(0, 166, 118, .52) !important;
  background: rgba(0, 166, 118, .13) !important;
  color: #075f49 !important;
  box-shadow: inset 0 0 0 1px rgba(0, 166, 118, .10) !important;
}

.auth-side-card {
  gap: 8px !important;
  padding: 16px !important;
  align-content: start !important;
}

.auth-side-card h2 {
  font-size: clamp(18px, 4.5vw, 22px) !important;
  line-height: 1.35 !important;
}

.auth-side-card p {
  font-size: 13px !important;
  line-height: 1.55 !important;
}

.auth-benefit-list {
  gap: 6px !important;
}

.auth-benefit-list li {
  padding: 7px 8px !important;
  border-radius: 11px !important;
  font-size: 12.5px !important;
  line-height: 1.35 !important;
}

.alert,
.flash-message,
.notice-danger {
  padding-block: 8px !important;
  min-height: 0 !important;
}

html[data-theme="dark"] .home-trust-disclosure summary {
  color: #ecfff8 !important;
}

html[data-theme="dark"] .search-empty-remove-features,
html[data-theme="dark"] .advanced-features .feature-check:has(input:checked),
html[data-theme="dark"] .form-section .feature-check:has(input:checked) {
  border-color: rgba(32, 201, 151, .38) !important;
  background: rgba(32, 201, 151, .14) !important;
  color: #d7fff2 !important;
}

html[data-theme="dark"] .auth-side-card {
  background: rgba(16, 25, 40, .92) !important;
  border-color: rgba(52, 211, 153, .22) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .24) !important;
}

@media (max-width: 680px) {
  .search-empty-guidance-compact {
    margin-inline: 18px !important;
    padding: 12px !important;
  }

  .search-blocker-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .search-empty-actions .button {
    flex: 1 1 calc(50% - 7px) !important;
    max-width: 100% !important;
  }

  .advanced-filter-body {
    padding: 10px !important;
  }

  .advanced-filter-actions {
    padding: 9px !important;
    gap: 7px !important;
  }

  .advanced-filter-actions .button,
  .advanced-filter-actions button {
    min-height: 34px !important;
    padding: 7px 10px !important;
    font-size: 12.5px !important;
  }

  .form-section .feature-row,
  .advanced-features .feature-row {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  .form-section .feature-check,
  .advanced-features .feature-check {
    min-height: 32px !important;
    padding: 5px 4px !important;
    font-size: 10.5px !important;
  }

  .form-section .feature-check input,
  .advanced-features .feature-check input {
    width: 12px !important;
    height: 12px !important;
  }

  .auth-shell {
    gap: 10px !important;
  }

  .auth-side-card {
    padding: 12px !important;
  }
}


/* Darna improved224 follow-up: calmer field borders, clearer favorites, compact price help, visible saved price. */
#flash-messages {
  scroll-margin-top: 96px;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(0, 166, 118, .42) !important;
  box-shadow: 0 0 0 3px rgba(0, 166, 118, .10) !important;
}

.mini-clear-filter {
  border-color: rgba(0, 166, 118, .20) !important;
  background: rgba(236, 253, 243, .92) !important;
  color: #047857 !important;
}

.mini-clear-filter:hover,
.mini-clear-filter:focus-visible {
  border-color: rgba(0, 166, 118, .34) !important;
  background: rgba(220, 252, 231, .96) !important;
}

[data-favorite-button].fav-on {
  background: #fef2f2 !important;
  border-color: rgba(220, 38, 38, .38) !important;
  color: #dc2626 !important;
}

[data-favorite-button].fav-on .ui-icon {
  fill: currentColor;
  stroke: currentColor;
}

[data-favorite-button].fav-on [data-favorite-label] {
  font-weight: 950;
}

.price-help-text {
  font-size: .78rem !important;
  line-height: 1.45 !important;
  padding: 6px 8px !important;
  border-radius: 10px !important;
  font-weight: 750 !important;
}

.price-saved-preview {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: fit-content !important;
  max-width: 100% !important;
  padding: 9px 12px !important;
  border: 1.5px solid rgba(0, 166, 118, .34) !important;
  border-radius: 14px !important;
  background: rgba(236, 253, 243, .96) !important;
  color: #065f46 !important;
}

.price-saved-preview b {
  font-size: .82rem !important;
  color: #047857 !important;
}

.price-saved-preview strong {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 30px !important;
  padding: 3px 10px !important;
  border-radius: 999px !important;
  background: #fff !important;
  border: 1px solid rgba(0, 166, 118, .20) !important;
  color: #047857 !important;
  font-size: 1.08rem !important;
  font-weight: 1000 !important;
}

html[data-theme="dark"] .price-saved-preview {
  background: rgba(6, 78, 59, .28) !important;
  border-color: rgba(52, 211, 153, .30) !important;
  color: #bbf7d0 !important;
}

html[data-theme="dark"] .price-saved-preview strong {
  background: rgba(15, 23, 42, .72) !important;
  color: #86efac !important;
}

/* Darna_improved227: clearer mobile image selection, phone plus fix support, and simpler empty search state. */
.upload-preview-card.is-primary {
  border: 2px solid rgba(0, 166, 118, .78) !important;
  background: linear-gradient(180deg, rgba(0, 166, 118, .10), rgba(13, 27, 42, .03)) !important;
  box-shadow: 0 0 0 3px rgba(0, 166, 118, .10), 0 14px 30px rgba(0, 166, 118, .14) !important;
}

.upload-preview-item.is-primary,
.preview-image-button.is-primary {
  border: 2px solid rgba(0, 166, 118, .82) !important;
  box-shadow: 0 0 0 3px rgba(0, 166, 118, .12) !important;
}

.upload-primary-badge,
.preview-primary-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  width: auto !important;
  max-width: calc(100% - 16px) !important;
  min-height: 0 !important;
  padding: 4px 7px !important;
  border-radius: 999px !important;
  background: rgba(0, 166, 118, .94) !important;
  border: 1px solid rgba(255, 255, 255, .55) !important;
  color: #fff !important;
  font-size: 10.5px !important;
  line-height: 1.1 !important;
  font-weight: 900 !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .22) !important;
  white-space: nowrap !important;
}

.upload-primary-badge::before,
.preview-primary-badge::before {
  content: "★";
  font-size: 10px;
  line-height: 1;
}

.provider-primary-note {
  background: rgba(0, 166, 118, .12) !important;
  color: #08735a !important;
  border: 1px solid rgba(0, 166, 118, .18) !important;
}

.gallery-lightbox,
.provider-preview-lightbox {
  touch-action: pan-y;
}

.search-empty-guidance-compact[data-mobile-empty-compact-218="true"] {
  text-align: center !important;
  gap: 10px !important;
}

.search-empty-guidance-compact[data-mobile-empty-compact-218="true"] .empty-tips {
  list-style: none !important;
  padding: 0 !important;
  margin: 4px 0 8px !important;
  display: grid !important;
  gap: 6px !important;
}

.search-empty-guidance-compact[data-mobile-empty-compact-218="true"] .empty-tips li {
  border: 1px solid rgba(0, 166, 118, .16) !important;
  border-radius: 12px !important;
  padding: 8px 10px !important;
  background: rgba(0, 166, 118, .07) !important;
  font-size: 13px !important;
}

.search-empty-guidance-compact[data-mobile-empty-compact-218="true"] .search-likely-blockers,
.search-empty-guidance-compact[data-mobile-empty-compact-218="true"] .search-blocker-grid,
.search-empty-guidance-compact[data-mobile-empty-compact-218="true"] .search-blocker-card {
  display: none !important;
}

.search-empty-guidance-compact[data-mobile-empty-compact-218="true"] .search-empty-actions .button {
  font-size: 13.5px !important;
  min-height: 42px !important;
}

html[data-theme="dark"] .upload-preview-card.is-primary {
  border-color: rgba(32, 201, 151, .86) !important;
  background: linear-gradient(180deg, rgba(32, 201, 151, .16), rgba(15, 23, 42, .72)) !important;
  box-shadow: 0 0 0 3px rgba(32, 201, 151, .14), 0 18px 38px rgba(0, 0, 0, .36) !important;
}

html[data-theme="dark"] .upload-primary-badge,
html[data-theme="dark"] .preview-primary-badge {
  background: rgba(32, 201, 151, .92) !important;
  color: #06251e !important;
  border-color: rgba(255, 255, 255, .30) !important;
}

html[data-theme="dark"] .provider-primary-note {
  background: rgba(32, 201, 151, .14) !important;
  color: #c6f7e9 !important;
  border-color: rgba(32, 201, 151, .22) !important;
}

html[data-theme="dark"] .search-empty-guidance-compact[data-mobile-empty-compact-218="true"] .empty-tips li {
  background: rgba(32, 201, 151, .10) !important;
  border-color: rgba(32, 201, 151, .18) !important;
}

@media (max-width: 680px) {
  .upload-primary-badge,
  .preview-primary-badge {
    font-size: 10px !important;
    padding: 3px 6px !important;
  }

  .upload-preview-card.is-primary {
    box-shadow: 0 0 0 2px rgba(0, 166, 118, .12), 0 10px 22px rgba(0, 166, 118, .12) !important;
  }
}

/* Darna_improved227: clearer admin/provider review workflow. */
.status-needs-edit,
.status-rejected,
.my-summary-card.status-needs-edit,
.my-summary-card.status-rejected {
  border-color: rgba(214, 126, 36, .32);
}
.my-summary-card.status-rejected {
  border-color: rgba(190, 42, 42, .34);
}
.my-image-status-strip,
.admin-property-image-status {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 8px;
}
.my-image-status-strip span,
.admin-property-image-status small {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  border: 1px solid var(--border-soft, rgba(0,0,0,.08));
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  background: var(--card-soft, rgba(255,255,255,.72));
}
.review-reason-help,
.review-reason-inline {
  border-color: rgba(190, 42, 42, .22);
  background: rgba(255, 246, 238, .72);
}
.admin-review-reason-form {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.admin-review-reason-form select {
  min-width: 150px;
  max-width: 210px;
  height: 34px;
  font-size: 12px;
}
.admin-image-status-line {
  margin: 6px 0 0;
  font-size: 13px;
  opacity: .86;
}
.provider-submit-preview .preview-grid {
  border: 1px solid rgba(34, 120, 83, .14);
}
.preview-publish-notice {
  border-inline-start: 4px solid var(--darna-green, #237a57);
}
html[data-theme="dark"] .my-image-status-strip span,
html[data-theme="dark"] .admin-property-image-status small {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
}
html[data-theme="dark"] .review-reason-help,
html[data-theme="dark"] .review-reason-inline {
  background: rgba(190, 42, 42, .12);
  border-color: rgba(190, 42, 42, .26);
}
@media (max-width: 760px) {
  .admin-review-reason-form,
  .admin-review-reason-form select,
  .admin-review-reason-form button {
    width: 100%;
  }
  .my-image-status-strip span,
  .admin-property-image-status small {
    font-size: 11px;
    padding: 3px 7px;
  }
}

/* Darna_improved227: natural international phone input with leading plus. */
input[data-phone-input],
.phone-input-ltr {
  direction: ltr !important;
  unicode-bidi: plaintext;
  text-align: left !important;
  caret-color: currentColor;
}

html[dir="rtl"] input[data-phone-input],
html[dir="rtl"] .phone-input-ltr {
  direction: ltr !important;
  text-align: left !important;
}

/* Darna improved227: cleaner top search box, no external empty-region text, side-by-side search/type on mobile. */
.search-panel[data-search-filter-ux="189"]{
  padding:clamp(14px,2.4vw,22px)!important;
  border-radius:26px!important;
  border:1px solid rgba(16,185,129,.20)!important;
  background:linear-gradient(145deg,rgba(255,255,255,.96),rgba(236,253,245,.74))!important;
  box-shadow:0 18px 46px rgba(15,23,42,.10)!important;
}
.search-panel[data-search-filter-ux="189"] .search-panel-heading{
  margin-bottom:14px!important;
  padding-bottom:10px!important;
  border-bottom:1px solid rgba(15,118,110,.10)!important;
}
.search-panel[data-search-filter-ux="189"] .simple-search-grid{
  display:grid!important;
  grid-template-columns:minmax(0,1.72fr) minmax(122px,1fr)!important;
  gap:12px!important;
  align-items:stretch!important;
}
.search-panel[data-search-filter-ux="189"] .quick-search-query{
  grid-column:1!important;
  min-width:0!important;
}
.search-panel[data-search-filter-ux="189"] .quick-search-type{
  grid-column:2!important;
  min-width:0!important;
}
.search-panel[data-search-filter-ux="189"] .quick-search-city{
  grid-column:1!important;
  min-width:0!important;
}
.search-panel[data-search-filter-ux="189"] .quick-search-region{
  grid-column:2!important;
  min-width:0!important;
}
.search-panel[data-search-filter-ux="189"] .quick-search-actions{
  grid-column:1/-1!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:10px!important;
  align-items:center!important;
}
.search-panel[data-search-filter-ux="189"] label,
.search-panel[data-search-filter-ux="189"] .compact-label{
  font-weight:900!important;
  letter-spacing:.01em!important;
}
.search-panel[data-search-filter-ux="189"] input,
.search-panel[data-search-filter-ux="189"] select{
  min-height:48px!important;
  border-radius:17px!important;
  border-color:rgba(15,118,110,.18)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.55)!important;
}
.search-panel[data-search-filter-ux="189"] input:focus,
.search-panel[data-search-filter-ux="189"] select:focus{
  border-color:rgba(16,185,129,.62)!important;
  box-shadow:0 0 0 4px rgba(16,185,129,.12)!important;
}
.search-panel[data-search-filter-ux="189"] .compact-location-filter{
  border-radius:20px!important;
  border-color:rgba(16,185,129,.13)!important;
  background:linear-gradient(180deg,rgba(255,255,255,.88),rgba(240,253,250,.58))!important;
}
.search-panel[data-search-filter-ux="189"] .quick-search-actions button{
  min-height:50px!important;
  border-radius:18px!important;
  font-size:1rem!important;
  font-weight:950!important;
}
.search-panel[data-search-filter-ux="189"] .quick-search-actions .button.light{
  min-height:46px!important;
  border-radius:17px!important;
  padding-inline:16px!important;
  opacity:.84!important;
}
.search-panel[data-search-filter-ux="189"] .selected-choice-empty:empty{
  display:none!important;
}
.search-panel[data-search-filter-ux="189"] .selected-choice-chips[data-empty-label=""]{
  min-height:0!important;
  margin-top:0!important;
  padding:0!important;
}
.icon-only-link{
  width:46px!important;
  min-width:46px!important;
  padding-inline:0!important;
  justify-content:center!important;
}
.icon-only-link svg{
  margin:0!important;
}
html[data-theme="dark"] .search-panel[data-search-filter-ux="189"]{
  background:linear-gradient(145deg,rgba(15,23,42,.96),rgba(6,78,59,.36))!important;
  border-color:rgba(45,212,191,.20)!important;
  box-shadow:0 18px 50px rgba(0,0,0,.34)!important;
}
html[data-theme="dark"] .search-panel[data-search-filter-ux="189"] .compact-location-filter{
  background:linear-gradient(180deg,rgba(15,23,42,.74),rgba(8,47,73,.38))!important;
  border-color:rgba(45,212,191,.16)!important;
}
@media (max-width: 760px) {
  .search-panel[data-search-filter-ux="189"]{
    padding:12px!important;
    border-radius:22px!important;
  }
  .search-panel[data-search-filter-ux="189"] label,
  .search-panel[data-search-filter-ux="189"] .compact-label{
    font-size:.82rem!important;
  }
  .search-panel[data-search-filter-ux="189"] .compact-location-filter{
    padding:8px!important;
  }
}

/* Darna_improved227: compact, equal-height mobile search controls without changing filter logic. */
.search-panel[data-mobile-search-ux="227"]{
  --darna-search-control-height:46px;
  --darna-search-keyboard-inset:0px;
}
.search-panel[data-mobile-search-ux="227"] .quick-search-city,
.search-panel[data-mobile-search-ux="227"] .quick-search-region{
  min-width:0;
}
.search-panel[data-mobile-search-ux="227"] .region-quick-filter{
  block-size:var(--darna-search-control-height);
  min-block-size:var(--darna-search-control-height)!important;
}
.search-panel[data-mobile-search-ux="227"] .compact-choice-chip,
.search-panel[data-mobile-search-ux="227"] .selected-choice-chip{
  max-width:100%;
}
.search-panel[data-mobile-search-ux="227"] .compact-choice-chip > span:last-child,
.search-panel[data-mobile-search-ux="227"] .selected-choice-chip > span{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.search-panel[data-mobile-search-ux="227"] .city-choice-grid,
.search-panel[data-mobile-search-ux="227"] .region-choice-groups{
  scrollbar-width:thin;
  scrollbar-color:rgba(0,132,91,.35) transparent;
}
.search-panel[data-mobile-search-ux="227"] :is(input,select,button,a){
  scroll-margin-block-start:84px;
  scroll-margin-block-end:calc(var(--darna-search-keyboard-inset, 0px) + 24px);
}

@media (max-width: 760px) {
  .search-panel[data-mobile-search-ux="227"]{
    --darna-search-control-height:42px;
    padding:10px!important;
    border-radius:20px!important;
  }
  .search-panel[data-mobile-search-ux="227"] .search-panel-heading{
    margin-bottom:9px!important;
    padding-bottom:8px!important;
    gap:6px!important;
  }
  .search-panel[data-mobile-search-ux="227"] .search-panel-heading h2{
    margin:1px 0 0!important;
    font-size:clamp(1rem,4.4vw,1.16rem)!important;
    line-height:1.22!important;
  }
  .search-panel[data-mobile-search-ux="227"] .search-panel-heading p{
    margin:0!important;
    font-size:.75rem!important;
    line-height:1.45!important;
  }
  .search-panel[data-mobile-search-ux="227"] .search-toolbar{
    margin-bottom:8px!important;
  }
  .search-panel[data-mobile-search-ux="227"] label,
  .search-panel[data-mobile-search-ux="227"] .compact-label{
    margin-bottom:5px!important;
    font-size:.78rem!important;
    line-height:1.25!important;
  }
  .search-panel[data-mobile-search-ux="227"] .quick-search-city,
  .search-panel[data-mobile-search-ux="227"] .quick-search-region{
    display:flex!important;
    flex-direction:column!important;
    height:clamp(238px,62vw,286px)!important;
    min-height:238px!important;
    max-height:286px!important;
    padding:7px!important;
    border-radius:16px!important;
    overflow:hidden!important;
  }
  .search-panel[data-mobile-search-ux="227"] .quick-search-city .filter-label-row,
  .search-panel[data-mobile-search-ux="227"] .quick-search-region .filter-label-row{
    flex:0 0 auto;
    min-height:27px;
    gap:4px!important;
    margin-bottom:5px!important;
  }
  .search-panel[data-mobile-search-ux="227"] .filter-label-row label{
    margin:0!important;
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  .search-panel[data-mobile-search-ux="227"] .mini-clear-filter{
    flex:0 0 auto;
    min-height:26px!important;
    padding:3px 7px!important;
    font-size:.68rem!important;
    border-radius:999px!important;
  }
  .search-panel[data-mobile-search-ux="227"] .region-quick-filter{
    flex:0 0 auto;
    width:100%!important;
    margin:0 0 6px!important;
    padding:7px 9px!important;
    font-size:.76rem!important;
    border-radius:13px!important;
  }
  .search-panel[data-mobile-search-ux="227"] .city-choice-grid,
  .search-panel[data-mobile-search-ux="227"] .region-choice-groups{
    flex:1 1 auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    padding:5px!important;
    gap:5px!important;
    border-radius:13px!important;
    scrollbar-gutter:stable;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
  }
  .search-panel[data-mobile-search-ux="227"] .region-choice-groups.is-locked{
    flex:1 1 auto!important;
    overflow-y:auto!important;
  }
  .search-panel[data-mobile-search-ux="227"] .compact-choice-grid,
  .search-panel[data-mobile-search-ux="227"] .city-choice-grid,
  .search-panel[data-mobile-search-ux="227"] .region-chip-row{
    gap:5px!important;
  }
  .search-panel[data-mobile-search-ux="227"] .compact-choice-chip{
    min-height:28px!important;
    max-width:100%!important;
    padding:4px 7px!important;
    gap:4px!important;
    font-size:.72rem!important;
    line-height:1.12!important;
    box-shadow:none!important;
  }
  .search-panel[data-mobile-search-ux="227"] .choice-check{
    width:13px!important;
    height:13px!important;
    font-size:.58rem!important;
  }
  .search-panel[data-mobile-search-ux="227"] .region-choice-group{
    padding:6px!important;
    border-radius:13px!important;
  }
  .search-panel[data-mobile-search-ux="227"] .region-choice-heading{
    max-width:100%;
    margin:0 auto 6px!important;
    padding:4px 9px!important;
    font-size:.72rem!important;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  .search-panel[data-mobile-search-ux="227"] .selected-choice-chips{
    flex:0 0 auto;
    display:flex!important;
    flex-wrap:nowrap!important;
    gap:4px!important;
    width:100%;
    min-height:0!important;
    max-height:32px!important;
    margin-top:5px!important;
    padding:1px 0 2px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    scrollbar-width:none;
    overscroll-behavior-inline:contain;
  }
  .search-panel[data-mobile-search-ux="227"] .selected-choice-chips::-webkit-scrollbar{
    display:none;
  }
  .search-panel[data-mobile-search-ux="227"] .selected-choice-chip{
    flex:0 0 auto;
    min-height:27px!important;
    max-width:128px!important;
    padding:4px 7px!important;
    gap:4px!important;
    font-size:.69rem!important;
    border-radius:999px!important;
  }
  .search-panel[data-mobile-search-ux="227"] .selected-choice-empty{
    font-size:.68rem!important;
    line-height:1.25!important;
  }
  .search-panel[data-mobile-search-ux="227"] .quick-search-city .form-hint{
    flex:0 0 auto;
    margin:4px 1px 0!important;
    font-size:.64rem!important;
    line-height:1.25!important;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
  }
  .search-panel[data-mobile-search-ux="227"] .region-missing-help{
    flex:0 0 auto;
    max-height:78px;
    margin-top:5px!important;
    padding:7px!important;
    overflow:auto;
    border-radius:13px!important;
    font-size:.68rem!important;
  }
  .search-panel[data-mobile-search-ux="227"] .region-missing-help p{
    margin-bottom:5px!important;
    line-height:1.35!important;
  }
  .search-panel[data-mobile-search-ux="227"] .mini-suggest-region-link{
    min-height:27px!important;
    padding:4px 8px!important;
    font-size:.68rem!important;
  }
  html.darna-mobile-keyboard-open .search-panel[data-mobile-search-ux="227"]{
    padding-bottom:calc(10px + min(var(--darna-search-keyboard-inset, 0px), 24px))!important;
  }
}

@media (max-width: 420px) {
  .search-panel[data-mobile-search-ux="227"] .quick-search-city,
  .search-panel[data-mobile-search-ux="227"] .quick-search-region{
    height:clamp(228px,66vw,268px)!important;
    min-height:228px!important;
    max-height:268px!important;
  }
  .search-panel[data-mobile-search-ux="227"] .compact-choice-chip{
    padding-inline:6px!important;
    font-size:.68rem!important;
  }
  .search-panel[data-mobile-search-ux="227"] .selected-choice-chip{
    max-width:108px!important;
  }
}

/* Darna_improved228: move city/rif and region to the top of advanced search on mobile while prioritizing query and property type. */
.mobile-advanced-location-fields{
  display:none;
}

@media (max-width: 760px) {
  .search-panel[data-mobile-location-layout="228"].mobile-location-layout-active .mobile-advanced-location-fields{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:12px!important;
    width:100%!important;
    margin:0 0 14px!important;
    padding:0 0 14px!important;
    border-bottom:1px solid rgba(15,118,110,.13)!important;
  }
  .search-panel[data-mobile-location-layout="228"] .mobile-advanced-location-fields[hidden]{
    display:none!important;
  }
  .search-panel[data-mobile-location-layout="228"] .mobile-advanced-location-fields .quick-search-city,
  .search-panel[data-mobile-location-layout="228"] .mobile-advanced-location-fields .quick-search-region{
    display:flex!important;
    grid-column:1!important;
    width:100%!important;
    min-width:0!important;
    height:clamp(220px,58vw,264px)!important;
    min-height:220px!important;
    max-height:264px!important;
    margin:0!important;
    padding:9px!important;
    border-radius:18px!important;
  }
  .search-panel[data-mobile-location-layout="228"] .mobile-advanced-location-fields .quick-search-region{
    min-height:238px!important;
    height:clamp(238px,62vw,282px)!important;
    max-height:282px!important;
  }
  .search-panel[data-mobile-location-layout="228"] .mobile-advanced-location-fields .filter-label-row label{
    font-size:.86rem!important;
    font-weight:950!important;
  }
  .search-panel[data-mobile-location-layout="228"] .advanced-filter>summary{
    min-height:54px!important;
    border-radius:17px!important;
  }
  .search-panel[data-mobile-location-layout="228"] .advanced-filter[open]>summary{
    border-color:rgba(16,185,129,.34)!important;
    box-shadow:0 7px 17px rgba(0,132,91,.08)!important;
  }
  html[data-theme="dark"] .search-panel[data-mobile-location-layout="228"].mobile-location-layout-active .mobile-advanced-location-fields{
    border-bottom-color:rgba(45,212,191,.16)!important;
  }
}

/* Darna_improved229: use the full mobile toolbar width for larger, clearer listing-type tabs without enlarging other cards. */
@media (max-width: 760px) {
  .search-panel[data-mobile-listing-tabs="229"] .search-toolbar{
    width:100%!important;
    margin:0 0 8px!important;
    padding:0!important;
  }

  .search-panel[data-mobile-listing-tabs="229"] .listing-tabs{
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    align-items:stretch!important;
    width:100%!important;
    max-width:none!important;
    gap:7px!important;
    padding:0!important;
    overflow:visible!important;
    scrollbar-width:none;
  }

  .search-panel[data-mobile-listing-tabs="229"] .listing-tabs::-webkit-scrollbar{
    display:none;
  }

  .search-panel[data-mobile-listing-tabs="229"] .listing-tabs .tab{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    min-width:0!important;
    min-height:40px!important;
    padding:8px 5px!important;
    border-radius:999px!important;
    font-size:.87rem!important;
    font-weight:950!important;
    line-height:1.1!important;
    text-align:center!important;
    white-space:nowrap!important;
    box-sizing:border-box!important;
  }

  .search-panel[data-mobile-listing-tabs="229"] .listing-tabs .tab.active{
    transform:none!important;
    box-shadow:0 9px 20px rgba(0,168,112,.22)!important;
  }
}

@media (max-width: 390px) {
  .search-panel[data-mobile-listing-tabs="229"] .listing-tabs{
    gap:5px!important;
  }

  .search-panel[data-mobile-listing-tabs="229"] .listing-tabs .tab{
    min-height:39px!important;
    padding-inline:3px!important;
    font-size:.79rem!important;
  }
}

html[data-theme="dark"] .search-panel[data-mobile-listing-tabs="229"] .listing-tabs .tab.active{
  box-shadow:0 9px 20px rgba(16,185,129,.20)!important;
}

/* Darna_improved232: clearer admin-role overview and safer role-management UI. */
.admin-current-role-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  margin: 16px 0 18px;
  padding: 14px 16px;
  border: 1px solid rgba(22, 163, 116, .28);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(16, 185, 129, .10), rgba(255, 255, 255, .96));
}

.admin-current-role-card > div {
  display: grid;
  gap: 6px;
}

.admin-current-role-card p {
  margin: 0;
  color: #475467;
  line-height: 1.65;
}

.admin-current-role-count {
  white-space: nowrap;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, .12);
  color: #087a57;
  font-weight: 900;
  font-size: 13px;
}

.admin-roles-matrix-panel > summary {
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.admin-roles-matrix-panel > summary::-webkit-details-marker {
  display: none;
}

.admin-role-matrix-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid rgba(16, 185, 129, .30);
  border-radius: 999px;
  background: rgba(16, 185, 129, .08);
  color: #087a57;
  font-size: 13px;
  font-weight: 900;
}

.admin-roles-matrix-panel[open] .admin-role-matrix-toggle {
  background: rgba(16, 185, 129, .16);
}

.admin-roles-matrix-body {
  padding-top: 4px;
}

.admin-user-card.is-protected-admin {
  border-color: rgba(124, 92, 255, .32);
  box-shadow: 0 12px 28px rgba(79, 70, 229, .08);
}

.admin-user-role-form {
  display: grid;
  grid-template-columns: minmax(150px, .8fr) minmax(240px, 1.7fr) auto;
  gap: 10px;
  align-items: end;
}

.admin-role-reason-field input {
  width: 100%;
}

.admin-self-role-hint,
.admin-protected-account-hint {
  margin: 10px 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(124, 92, 255, .24);
  background: rgba(124, 92, 255, .07);
  color: #5145cd;
  font-weight: 800;
}

@media (max-width: 760px) {
  .admin-current-role-card {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .admin-current-role-count {
    justify-self: start;
  }

  .admin-roles-matrix-title {
    display: grid;
    gap: 10px;
  }

  .admin-role-matrix-toggle {
    justify-self: stretch;
  }

  .admin-user-role-form {
    grid-template-columns: 1fr;
  }
}

html[data-theme="dark"] .admin-current-role-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, .16), rgba(22, 32, 51, .98));
  border-color: rgba(52, 211, 153, .34);
}

html[data-theme="dark"] .admin-current-role-card p {
  color: var(--darna-night-text);
}

html[data-theme="dark"] .admin-current-role-count,
html[data-theme="dark"] .admin-role-matrix-toggle {
  color: #b7f7dd;
  border-color: rgba(52, 211, 153, .38);
  background: rgba(16, 185, 129, .16);
}

html[data-theme="dark"] .admin-self-role-hint,
html[data-theme="dark"] .admin-protected-account-hint {
  color: #ddd6fe;
  border-color: rgba(167, 139, 250, .38);
  background: rgba(124, 92, 255, .14);
}

/* Darna_improved232: natural mobile scrolling, explicit area-unit gating, auth shortcuts and larger card media. */
html,
body{
  overscroll-behavior-y:auto;
}

.nav-auth-links{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  width:100%;
  direction:rtl;
}
.nav-auth-links .nav-link{
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:0;
  min-height:40px;
  margin:0;
  text-align:center;
  border-radius:12px;
}
.nav-auth-links .nav-register-link{
  color:#fff;
  background:linear-gradient(135deg,var(--brand),var(--brand-dark));
  border-color:transparent;
  box-shadow:0 8px 18px rgba(0,132,91,.18);
}
.nav-auth-links .nav-login-link{
  background:rgba(240,253,250,.78);
  border:1px solid rgba(15,118,110,.18);
}

.area-unit-gated{
  border-color:rgba(0,168,112,.2)!important;
  background:linear-gradient(145deg,rgba(240,253,250,.82),rgba(255,255,255,.96))!important;
}
.area-unit-gated .area-unit-selector{
  position:relative;
  padding:12px;
  border:1px solid rgba(0,168,112,.25);
  border-radius:18px;
  background:linear-gradient(135deg,rgba(209,250,229,.78),rgba(240,253,250,.94));
  box-shadow:0 8px 18px rgba(0,132,91,.08);
}
.area-unit-gated .area-unit-label{
  display:flex;
  align-items:center;
  gap:7px;
  color:#06765a;
  font-weight:1000;
}
.area-unit-gated .area-unit-label::before{
  content:"↔";
  display:inline-grid;
  place-items:center;
  width:24px;
  height:24px;
  border-radius:999px;
  color:#fff;
  background:linear-gradient(135deg,#10b981,#07845f);
  font-size:.8rem;
  line-height:1;
}
.area-unit-gated [data-search-area-unit]{
  min-height:48px;
  border:2px solid rgba(0,168,112,.32);
  border-radius:15px;
  background:#fff;
  color:#123f34;
  font-weight:950;
}
.area-unit-gated [data-search-area-unit]:focus{
  outline:3px solid rgba(16,185,129,.17);
  border-color:#10b981;
}
.area-unit-gated .area-unit-gate-hint{
  min-height:0!important;
  margin:7px 2px 0!important;
  color:#527065;
  font-size:.76rem;
  line-height:1.5;
}
.area-unit-gated .area-range-controls{
  transition:opacity .18s ease,filter .18s ease,transform .18s ease;
}
.area-unit-gated.area-unit-is-locked .area-range-controls{
  opacity:.46;
  filter:saturate(.45);
}
.area-unit-gated.area-unit-is-locked .area-range-select{
  cursor:not-allowed;
  border-style:dashed!important;
  background:rgba(226,232,240,.72)!important;
}
.area-unit-gated.area-unit-is-selected .area-range-controls{
  opacity:1;
  filter:none;
}
.area-unit-gated.area-unit-is-selected .area-unit-selector{
  border-color:rgba(16,185,129,.45);
  box-shadow:0 10px 24px rgba(0,132,91,.12);
}

.search-assist-relaxed-note{
  margin-top:6px;
  padding:8px 11px;
  border:1px solid rgba(0,168,112,.2);
  border-radius:13px;
  background:rgba(236,253,245,.86);
  color:#176b54;
  font-size:.78rem;
  font-weight:850;
  line-height:1.5;
}

html[data-theme="dark"] .nav-auth-links .nav-login-link{
  background:rgba(15,23,42,.68);
  border-color:rgba(94,234,212,.2);
  color:#e8f5f1;
}
html[data-theme="dark"] .area-unit-gated{
  background:linear-gradient(145deg,rgba(6,78,59,.25),rgba(15,23,42,.86))!important;
  border-color:rgba(94,234,212,.17)!important;
}
html[data-theme="dark"] .area-unit-gated .area-unit-selector{
  background:linear-gradient(135deg,rgba(6,78,59,.45),rgba(15,23,42,.8));
  border-color:rgba(94,234,212,.23);
}
html[data-theme="dark"] .area-unit-gated .area-unit-label{
  color:#8be3cf;
}
html[data-theme="dark"] .area-unit-gated [data-search-area-unit]{
  background:#101827;
  color:#f1f5f9;
  border-color:rgba(94,234,212,.28);
}
html[data-theme="dark"] .area-unit-gated .area-unit-gate-hint{
  color:#b9c8c3;
}
html[data-theme="dark"] .area-unit-gated.area-unit-is-locked .area-range-select{
  background:rgba(15,23,42,.7)!important;
  color:#7f8e9f!important;
}
html[data-theme="dark"] .search-assist-relaxed-note{
  background:rgba(6,78,59,.31);
  border-color:rgba(94,234,212,.18);
  color:#b9f5e7;
}

@media (max-width: 760px) {
  html,
  body{
    overscroll-behavior-y:auto!important;
    touch-action:pan-y;
  }

  /* Let the page itself scroll through advanced filters. Only the long option
     lists keep an internal scroller, so Android pull-to-refresh and boundary
     handoff remain natural. */
  .search-panel[data-mobile-scroll-ux="231"] .advanced-filter[open]>.advanced-filter-body{
    max-height:none!important;
    height:auto!important;
    overflow:visible!important;
  }
  .search-panel[data-mobile-scroll-ux="231"] .advanced-filter-scroll{
    max-height:none!important;
    height:auto!important;
    overflow:visible!important;
    overscroll-behavior-y:auto!important;
    touch-action:pan-y;
  }
  .search-panel[data-mobile-scroll-ux="231"] .advanced-filter-actions{
    position:static!important;
  }
  .search-panel[data-mobile-scroll-ux="231"] .mobile-advanced-location-fields .quick-search-city,
  .search-panel[data-mobile-scroll-ux="231"] .mobile-advanced-location-fields .quick-search-region{
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow:visible!important;
  }
  .search-panel[data-mobile-scroll-ux="231"] .city-choice-grid,
  .search-panel[data-mobile-scroll-ux="231"] .region-choice-groups{
    flex:0 1 auto!important;
    min-height:116px!important;
    max-height:min(46vh,330px)!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    overscroll-behavior-y:auto!important;
    -webkit-overflow-scrolling:touch;
    touch-action:pan-y;
    scroll-behavior:auto!important;
    scrollbar-gutter:auto!important;
  }
  .search-panel[data-mobile-scroll-ux="231"] .region-choice-groups{
    min-height:145px!important;
    max-height:min(52vh,390px)!important;
  }
  .search-panel[data-mobile-scroll-ux="231"] .region-choice-groups.is-locked{
    min-height:80px!important;
    overflow:visible!important;
  }
  .search-panel[data-mobile-scroll-ux="231"] .selected-choice-chips,
  .search-panel[data-mobile-scroll-ux="231"] .active-filter-strip{
    overscroll-behavior-inline:auto!important;
    touch-action:pan-x;
  }
  .search-panel[data-mobile-scroll-ux="231"] [data-touch-scroll="231"]{
    -webkit-overflow-scrolling:touch;
  }

  .nav-auth-links{
    gap:7px;
  }
  .nav-auth-links .nav-link{
    min-height:43px;
    font-size:.86rem;
  }

  .area-unit-gated .area-unit-selector{
    padding:10px;
    border-radius:16px;
  }
  .area-unit-gated [data-search-area-unit]{
    min-height:46px;
  }
  .area-unit-gated .area-range-controls{
    margin-top:9px;
  }

  /* Darna_improved296: listing-card mobile sizing moved to 166_listing_cards_282.css. */
}

/* Darna_improved296: narrow listing-card mobile sizing moved to 166_listing_cards_282.css. */

/* Darna_improved232: property-type-aware features and land-only area-unit gating. */
[data-dynamic-features] .feature-type-hint{
  margin:8px 0 10px!important;
  padding:8px 11px;
  border:1px solid rgba(15,118,110,.16);
  border-radius:12px;
  background:rgba(236,253,245,.72);
  color:#35685a;
  font-size:.78rem;
  line-height:1.5;
}
[data-dynamic-features] .feature-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px!important;
}
[data-dynamic-features] .feature-check{
  flex:0 0 auto!important;
  width:auto!important;
  min-width:0!important;
  min-height:34px;
  padding:7px 10px!important;
  border-radius:999px!important;
  line-height:1.2;
}
[data-dynamic-features] .feature-check:has(input:checked){
  border-color:rgba(0,168,112,.52)!important;
  background:rgba(209,250,229,.9)!important;
  color:#075f48!important;
  box-shadow:0 6px 15px rgba(0,132,91,.10);
}

[data-search-area-gate] [data-area-range-controls][hidden],
[data-form-area-gate] [data-form-area-value-field][hidden]{
  display:none!important;
}
[data-search-area-gate] [data-area-unit-section].field-hidden-by-type,
[data-form-area-gate] [data-area-unit-section].field-hidden-by-type{
  display:none!important;
}
[data-form-area-gate].area-unit-is-locked{
  border:1px solid rgba(245,158,11,.25);
  border-radius:18px;
  padding:11px;
  background:rgba(255,251,235,.75);
}
[data-form-area-gate] [data-form-area-unit]{
  min-height:48px;
  border:2px solid rgba(0,168,112,.28);
  border-radius:15px;
  font-weight:900;
}
[data-form-area-gate].area-unit-is-selected [data-form-area-value-field]{
  animation:darnaAreaReveal232 .18s ease-out;
}
@keyframes darnaAreaReveal232{
  from{opacity:0;transform:translateY(-4px)}
  to{opacity:1;transform:translateY(0)}
}

html[data-theme="dark"] [data-dynamic-features] .feature-type-hint{
  background:rgba(6,78,59,.28);
  border-color:rgba(94,234,212,.16);
  color:#b9f5e7;
}
html[data-theme="dark"] [data-dynamic-features] .feature-check:has(input:checked){
  background:rgba(16,185,129,.18)!important;
  color:#c9f8eb!important;
  border-color:rgba(52,211,153,.44)!important;
}
html[data-theme="dark"] [data-form-area-gate].area-unit-is-locked{
  background:rgba(63,63,10,.16);
  border-color:rgba(253,224,71,.22);
}

@media (max-width: 760px) {
  [data-dynamic-features] .feature-row{
    gap:6px!important;
  }
  [data-dynamic-features] .feature-check{
    min-height:31px;
    padding:6px 8px!important;
    font-size:.75rem!important;
  }
  [data-dynamic-features] .feature-type-hint{
    font-size:.72rem;
  }
}

/* Darna_improved233: make land area units visibly reachable. */
[data-search-area-gate] .area-combo.area-awaiting-unit,
[data-form-area-gate] .area-combo.area-awaiting-unit{
  grid-template-columns:minmax(0,1fr)!important;
}

[data-search-area-gate] .area-combo.area-awaiting-unit [data-area-unit-section],
[data-form-area-gate] .area-combo.area-awaiting-unit [data-area-unit-section]{
  display:flex!important;
  visibility:visible!important;
  opacity:1!important;
  min-width:0;
}

[data-search-area-gate] .area-combo.area-awaiting-unit [data-area-range-controls],
[data-form-area-gate] .area-combo.area-awaiting-unit [data-form-area-value-field]{
  display:none!important;
}

.search-panel[data-current-property-type="land"] [data-land-area-card]{
  order:-20;
  grid-column:1/-1!important;
  align-self:stretch;
  border-color:rgba(245,158,11,.34)!important;
  background:linear-gradient(135deg,rgba(255,251,235,.96),rgba(240,253,250,.9))!important;
  box-shadow:0 10px 24px rgba(146,64,14,.08)!important;
}

.search-panel[data-current-property-type="land"] [data-area-unit-section]{
  display:flex!important;
}

.search-panel[data-current-property-type="land"] [data-search-area-unit],
[data-form-area-gate][data-current-property-type="land"] [data-form-area-unit]{
  border-color:rgba(245,158,11,.48)!important;
  box-shadow:0 0 0 4px rgba(245,158,11,.10)!important;
}

html[data-theme="dark"] .search-panel[data-current-property-type="land"] [data-land-area-card]{
  background:linear-gradient(135deg,rgba(63,63,10,.22),rgba(6,78,59,.25))!important;
  border-color:rgba(253,224,71,.28)!important;
}

@media (max-width: 760px) {
  .search-panel[data-current-property-type="land"] [data-land-area-card]{
    order:-30;
    margin-bottom:4px;
  }
}

/* Darna_improved234: place land area below its unit and prioritize registration at the add-property access gate. */
[data-form-area-gate][data-area-unit-visibility-ux="234"] .area-combo{
  grid-template-columns:minmax(0,1fr)!important;
  align-items:stretch!important;
}
[data-form-area-gate][data-area-unit-visibility-ux="234"] [data-area-unit-section]{
  order:1;
  width:100%;
}
[data-form-area-gate][data-area-unit-visibility-ux="234"] [data-form-area-value-field]{
  order:2;
  width:100%;
  margin-top:10px;
}
[data-form-area-gate][data-area-unit-visibility-ux="234"] [data-form-area-value-field] > label{
  display:block;
  margin:0 0 8px;
  font-weight:950;
}
[data-form-area-gate][data-area-unit-visibility-ux="234"].area-unit-is-locked [data-form-area-value-field]{
  display:none!important;
}
[data-form-area-gate][data-area-unit-visibility-ux="234"].area-unit-is-selected [data-form-area-value-field]:not([hidden]){
  display:flex;
  flex-direction:column;
}

.add-property-auth-gate{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:18px;
  align-items:center;
  margin:0 0 18px;
  padding:20px;
  border:1px solid rgba(16,185,129,.28);
  border-radius:18px;
  background:linear-gradient(135deg,rgba(236,253,245,.96),rgba(255,255,255,.98));
  box-shadow:0 14px 34px rgba(0,132,91,.10);
}
.add-property-auth-copy{
  min-width:0;
}
.add-property-auth-copy h1{
  margin:4px 0 8px;
  font-size:clamp(1.4rem,3vw,2rem);
}
.add-property-auth-copy p{
  margin:0;
  color:#475467;
  line-height:1.75;
  font-weight:750;
}
.add-property-auth-actions{
  display:grid;
  grid-template-columns:minmax(142px,1fr) minmax(132px,.9fr);
  gap:10px;
  align-items:stretch;
}
.add-property-auth-actions .button{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  margin:0;
  text-align:center;
  border-radius:14px;
  font-weight:950;
}
.add-property-register-first{
  background:linear-gradient(135deg,var(--brand),var(--brand-dark))!important;
  color:#fff!important;
  border-color:transparent!important;
  box-shadow:0 10px 22px rgba(0,132,91,.20);
}
.add-property-login-second{
  background:rgba(255,255,255,.85)!important;
}
.auth-shell-for-add-property .auth-main-card{
  scroll-margin-top:16px;
}

html[data-theme="dark"] .add-property-auth-gate{
  background:linear-gradient(135deg,rgba(6,78,59,.34),rgba(15,23,42,.96));
  border-color:rgba(52,211,153,.30);
  box-shadow:0 16px 36px rgba(0,0,0,.28);
}
html[data-theme="dark"] .add-property-auth-copy p{
  color:var(--darna-night-text,#eef2f7);
}
html[data-theme="dark"] .add-property-login-second{
  background:rgba(15,23,42,.76)!important;
  color:#dff8f0!important;
  border-color:rgba(94,234,212,.22)!important;
}

@media (max-width: 760px) {
  header.guest-header{
    flex-wrap:nowrap!important;
    row-gap:0!important;
    padding-block:10px!important;
  }
  header.guest-header .header-controls{
    width:auto!important;
    order:initial!important;
    justify-content:flex-end;
    margin-inline-start:auto!important;
  }
  .add-property-auth-gate{
    grid-template-columns:1fr;
    gap:14px;
    padding:16px;
  }
  .add-property-auth-actions{
    grid-template-columns:1fr 1fr;
    width:100%;
  }
}

@media (max-width: 430px) {
  .add-property-auth-actions{
    grid-template-columns:1fr;
  }
  .add-property-register-first{
    order:1;
  }
  .add-property-login-second{
    order:2;
  }
}

/* Darna_improved235: compact provider trust card aligned with Darna's green visual language. */
.detail-provider-card[data-provider-card-polish="235"]{
  display:grid;
  gap:14px;
  padding:18px;
  border:1px solid rgba(15,118,110,.22);
  border-radius:24px;
  background:linear-gradient(155deg,rgba(248,255,252,.98),rgba(237,250,245,.96));
  box-shadow:0 16px 38px rgba(15,118,87,.10);
  overflow:hidden;
}

.detail-provider-card[data-provider-card-polish="235"] .provider-card-heading{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
}

.detail-provider-card[data-provider-card-polish="235"] .provider-card-heading h2{
  margin:2px 0 5px;
  color:#123f34;
  font-size:clamp(1.25rem,2.5vw,1.65rem);
}

.detail-provider-card[data-provider-card-polish="235"] .provider-card-heading .meta{
  max-width:700px;
  margin:0;
  color:#5d746d;
  line-height:1.65;
}

.provider-badge-row{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:7px;
}

.provider-status-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:32px;
  padding:6px 11px;
  border-radius:999px;
  border:1px solid rgba(15,118,110,.2);
  background:rgba(236,253,245,.92);
  color:#0f6a53;
  font-size:.78rem;
  font-weight:950;
  white-space:nowrap;
}

.provider-status-badge.provider-type-badge{
  background:rgba(15,118,110,.10);
}

.provider-status-badge.provider-verification-badge{
  background:rgba(16,185,129,.14);
  border-color:rgba(16,185,129,.28);
  color:#067052;
}

.provider-status-badge.provider-verification-badge.is-muted{
  background:rgba(148,163,184,.12);
  border-color:rgba(148,163,184,.22);
  color:#667085;
}

.provider-trust-overview{
  display:grid;
  grid-template-columns:auto minmax(160px,1fr) auto;
  align-items:center;
  gap:12px;
  padding:13px 14px;
  border:1px solid rgba(15,118,110,.18);
  border-radius:18px;
  background:rgba(255,255,255,.78);
}

.provider-trust-copy{
  display:flex;
  align-items:center;
  gap:9px;
  white-space:nowrap;
}

.provider-trust-copy span{
  color:#48665c;
  font-size:.82rem;
  font-weight:900;
}

.provider-trust-copy strong{
  color:#08785b;
  font-size:1.35rem;
  line-height:1;
  font-weight:1000;
}

.provider-trust-progress{
  position:relative;
  height:9px;
  overflow:hidden;
  border-radius:999px;
  background:rgba(15,118,110,.12);
  box-shadow:inset 0 1px 3px rgba(15,23,42,.08);
}

.provider-trust-progress>span{
  display:block;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,#059669,#22c58b);
  box-shadow:0 0 12px rgba(16,185,129,.25);
}

.provider-trust-level-label{
  min-width:86px;
  padding:5px 9px;
  border-radius:999px;
  background:rgba(15,118,110,.09);
  color:#0f6a53;
  font-size:.76rem;
  font-weight:950;
  text-align:center;
  white-space:nowrap;
}

.provider-facts{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  margin:0;
}

.provider-facts>div{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-width:0;
  padding:10px 12px;
  border:1px solid rgba(15,118,110,.12);
  border-radius:14px;
  background:rgba(255,255,255,.70);
}

.provider-facts dt{
  color:#60736d;
  font-size:.78rem;
  font-weight:850;
}

.provider-facts dd{
  min-width:0;
  margin:0;
  overflow:hidden;
  color:#153b32;
  font-size:.9rem;
  font-weight:950;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.provider-fact-positive{
  color:#08785b;
}

.provider-card-footer{
  display:flex;
  justify-content:flex-end;
}

.provider-profile-link{
  min-height:40px!important;
  padding:8px 14px!important;
  border-color:rgba(15,118,110,.20)!important;
  border-radius:13px!important;
  background:rgba(236,253,245,.82)!important;
  color:#08785b!important;
  box-shadow:none!important;
}

html[data-theme="dark"] .detail-provider-card[data-provider-card-polish="235"]{
  border-color:rgba(45,212,191,.20)!important;
  background:linear-gradient(155deg,rgba(19,34,42,.98),rgba(11,28,33,.98))!important;
  box-shadow:0 18px 42px rgba(0,0,0,.28)!important;
}

html[data-theme="dark"] .detail-provider-card[data-provider-card-polish="235"] .provider-card-heading h2{
  color:#f1faf7;
}

html[data-theme="dark"] .detail-provider-card[data-provider-card-polish="235"] .provider-card-heading .meta,
html[data-theme="dark"] .provider-trust-copy span,
html[data-theme="dark"] .provider-facts dt{
  color:#9eb5ad;
}

html[data-theme="dark"] .provider-trust-overview,
html[data-theme="dark"] .provider-facts>div{
  border-color:rgba(45,212,191,.14);
  background:rgba(8,22,27,.62);
}

html[data-theme="dark"] .provider-trust-copy strong,
html[data-theme="dark"] .provider-facts dd,
html[data-theme="dark"] .provider-fact-positive{
  color:#e8fff7;
}

html[data-theme="dark"] .provider-status-badge,
html[data-theme="dark"] .provider-trust-level-label,
html[data-theme="dark"] .provider-profile-link{
  border-color:rgba(45,212,191,.18)!important;
  background:rgba(15,118,110,.18)!important;
  color:#baf7e5!important;
}

html[data-theme="dark"] .provider-status-badge.provider-verification-badge.is-muted{
  border-color:rgba(148,163,184,.18)!important;
  background:rgba(71,85,105,.22)!important;
  color:#c1ccd6!important;
}

@media (max-width: 760px) {
  .detail-provider-card[data-provider-card-polish="235"]{
    gap:11px;
    padding:14px;
    border-radius:20px;
  }

  .detail-provider-card[data-provider-card-polish="235"] .provider-card-heading{
    display:grid;
    gap:9px;
  }

  .provider-badge-row{
    justify-content:flex-start;
  }

  .provider-trust-overview{
    grid-template-columns:1fr auto;
    gap:8px 10px;
    padding:11px 12px;
  }

  .provider-trust-progress{
    grid-column:1 / -1;
    grid-row:2;
  }

  .provider-trust-level-label{
    min-width:0;
  }

  .provider-facts{
    grid-template-columns:1fr;
    gap:6px;
  }

  .provider-facts>div{
    min-height:44px;
    padding:9px 10px;
  }

  .provider-card-footer,
  .provider-card-footer .provider-profile-link{
    width:100%;
  }

  /* Stop the mobile contact bar from covering provider information. */
  .detail-page{
    padding-bottom:18px!important;
  }

  .detail-contact-actions[data-mobile-contact-bar="201"]{
    position:static!important;
    inset:auto!important;
    z-index:auto!important;
    min-height:0!important;
    margin-top:8px!important;
    padding:6px!important;
    border-radius:15px!important;
    background:rgba(255,255,255,.76)!important;
    box-shadow:0 8px 20px rgba(15,23,42,.08)!important;
    backdrop-filter:none!important;
  }

  .detail-contact-actions[data-mobile-contact-bar="201"] .detail-contact-action,
  .detail-contact-actions[data-mobile-contact-bar="201"] .button{
    min-height:40px!important;
    padding:7px 5px!important;
    border-radius:12px!important;
    font-size:.77rem!important;
    box-shadow:none!important;
  }

  html[data-theme="dark"] .detail-contact-actions[data-mobile-contact-bar="201"]{
    border-color:rgba(45,212,191,.14)!important;
    background:rgba(11,28,33,.82)!important;
    box-shadow:0 8px 20px rgba(0,0,0,.20)!important;
  }
}

/* Darna improved240: separate listing/image moderation and compact admin review UI. */
.admin-section-nav{
  display:flex;
  align-items:center;
  gap:8px;
  overflow-x:auto;
  padding:8px;
  margin:0 0 18px;
  border:1px solid rgba(15,118,110,.18);
  border-radius:18px;
  background:linear-gradient(135deg,#f7fcfa,#fff);
  scrollbar-width:thin;
}
.admin-section-nav a{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:8px 13px;
  border:1px solid transparent;
  border-radius:12px;
  color:#475467;
  font-size:.86rem;
  font-weight:900;
  text-decoration:none;
  white-space:nowrap;
}
.admin-section-nav a:hover,
.admin-section-nav a:focus-visible{
  color:#075e46;
  background:#eefaf5;
  outline:none;
}
.admin-section-nav a.active{
  color:#fff;
  background:var(--brand);
  border-color:var(--brand);
  box-shadow:0 7px 18px rgba(0,122,85,.18);
}
.admin-page-title-row{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.admin-page-title-row h1{margin:0;}
.admin-mode-badge{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:5px 10px;
  border:1px solid rgba(2,122,72,.2);
  border-radius:999px;
  color:#05603a;
  background:#ecfdf3;
  font-size:.76rem;
  font-weight:950;
}
.admin-mode-badge.listing-mode{
  color:#854d0e;
  background:#fffbeb;
  border-color:#fde68a;
}
.admin-workflow-separation-notice{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  margin:0 0 14px;
  padding:12px 14px;
  border:1px solid rgba(14,116,144,.22);
  border-inline-start:4px solid #0e7490;
  border-radius:16px;
  background:#f0f9ff;
  color:#164e63;
}
.admin-workflow-separation-notice strong{display:block;margin-bottom:2px;}
.admin-workflow-separation-notice p{margin:0;font-size:.88rem;line-height:1.6;}
.admin-workflow-notice-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  border-radius:12px;
  background:rgba(14,116,144,.1);
  font-size:1.15rem;
}
.admin-listing-review-intro{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:12px 0;
  padding:11px 13px;
  border:1px solid #fde68a;
  border-radius:14px;
  background:#fffbeb;
  color:#713f12;
  font-size:.86rem;
}
.admin-listing-review-intro strong{white-space:nowrap;}
.admin-images-page .admin-images-header{
  grid-template-columns:minmax(0,1fr) minmax(360px,.72fr);
  align-items:center;
  margin-bottom:12px;
}
.admin-images-page .admin-image-summary div{
  padding:8px 10px;
  border-radius:12px;
}
.admin-images-page .admin-image-summary strong{font-size:1.2rem;}
.admin-images-page .admin-image-status-tabs{
  padding:7px;
  margin-bottom:12px;
  border-radius:14px;
}
.admin-images-page .admin-image-status-tabs .status-tab{
  padding:7px 12px;
  font-size:.84rem;
}
.admin-image-property-group{
  padding:12px;
  border-radius:18px;
}
.admin-image-group-header{
  gap:12px;
  padding-bottom:10px;
  margin-bottom:10px;
}
.admin-image-listing-heading{min-width:0;}
.admin-image-listing-heading h2{
  margin:2px 0 3px;
  font-size:1.05rem;
  line-height:1.35;
}
.admin-image-listing-heading h2 a{overflow-wrap:anywhere;}
.admin-image-listing-state{
  display:flex;
  align-items:center;
  gap:7px;
  flex-wrap:wrap;
  margin-top:7px;
  font-size:.78rem;
  color:#667085;
  font-weight:800;
}
.admin-image-listing-state .status-pill{
  padding:4px 8px;
  font-size:.72rem;
}
.admin-image-listing-state a{
  color:var(--brand-dark);
  font-weight:950;
  text-decoration:none;
}
.admin-image-listing-state a:hover{text-decoration:underline;}
.admin-image-group-actions{
  max-width:360px;
  gap:7px;
}
.admin-image-group-actions .image-count-pill{
  padding:6px 9px;
  font-size:.74rem;
}
.admin-image-group-actions form,
.admin-image-group-actions .button{width:100%;}
.admin-image-context-grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:7px;
  margin-bottom:8px;
}
.admin-image-context-grid div{
  padding:8px 9px;
  border-radius:11px;
}
.admin-image-context-grid span{font-size:.7rem;margin-bottom:2px;}
.admin-image-context-grid strong{font-size:.82rem;}
.admin-image-address{
  margin:0 0 9px;
  padding:8px 10px;
  font-size:.8rem;
}
.admin-image-cards-row{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}
.admin-image-cards-row .admin-image-review-card{
  display:flex;
  flex-direction:column;
  min-width:0;
  padding:8px;
  gap:0;
  border-radius:15px;
  box-shadow:0 7px 18px rgba(16,24,40,.07);
}
.admin-image-cards-row .admin-image-preview-wrap{
  min-height:0;
  aspect-ratio:4/3;
  border-radius:12px;
}
.admin-image-cards-row .admin-review-image,
.admin-image-cards-row .admin-review-image-empty{
  width:100%;
  height:100%;
  min-height:0;
  aspect-ratio:4/3;
  object-fit:cover;
}
.admin-image-cards-row .admin-image-badges{
  inset-inline-start:7px;
  top:7px;
  gap:4px;
}
.admin-image-cards-row .image-status-badge,
.admin-image-cards-row .primary-image-badge,
.admin-image-cards-row .sort-order-badge{
  padding:4px 6px;
  font-size:.63rem;
}
.admin-image-cards-row .admin-image-info{
  flex:1;
  gap:7px;
  padding-top:7px;
}
.admin-image-cards-row .admin-image-title-row{
  align-items:center;
  gap:6px;
  font-size:.78rem;
}
.admin-image-cards-row .admin-image-workflow-state{
  max-width:58%;
  padding:3px 6px;
  font-size:.65rem;
  overflow:hidden;
  text-overflow:ellipsis;
}
.admin-image-cards-row .admin-image-quality-strip{
  gap:5px;
  margin:0;
  font-size:.68rem;
}
.admin-image-cards-row .admin-image-quality-strip span{
  padding:4px 6px;
}
.admin-image-cards-row .admin-image-actions{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:6px;
  margin-top:auto;
}
.admin-image-cards-row .admin-image-actions form,
.admin-image-cards-row .admin-image-actions .button{
  width:100%;
  min-width:0;
}
.admin-image-cards-row .admin-image-actions .button{
  min-height:34px;
  padding:6px 7px;
  font-size:.72rem;
}
.admin-image-cards-row .reject-image-form{
  grid-column:1/-1;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:6px;
}
.admin-image-cards-row .reject-image-form input{
  min-width:0;
  height:34px;
  padding:6px 8px;
  font-size:.72rem;
}
.admin-image-cards-row .reject-image-form .button{width:auto;min-width:82px;}
.admin-image-cards-row .image-rejection-note,
.admin-image-cards-row .image-file-removed-note{
  padding:6px 7px;
  margin:0;
  font-size:.7rem;
  border-radius:9px;
}
.admin-dashboard .admin-stat-grid-extended{
  grid-template-columns:repeat(auto-fit,minmax(120px,1fr));
  gap:8px;
  margin:14px 0;
}
.admin-dashboard .admin-stat-card{
  padding:11px 12px;
  border-radius:14px;
  box-shadow:none;
}
.admin-dashboard .admin-stat-card span{margin-bottom:4px;font-size:.7rem;}
.admin-dashboard .admin-stat-card strong{font-size:1.55rem;}
.admin-dashboard .admin-work-queue{
  padding:14px;
  border-radius:18px;
  box-shadow:0 10px 24px rgba(15,23,42,.06);
}
.admin-dashboard .admin-work-card{
  padding:11px;
  border-radius:14px;
}
.admin-dashboard .admin-work-card strong{font-size:1.45rem;}
.admin-table-scroll{
  width:100%;
  overflow-x:auto;
  border:1px solid #eaecf0;
  border-radius:16px;
}
.admin-property-review-table{
  margin:0;
  border:0;
  min-width:1080px;
}
.admin-property-review-table thead th{
  position:sticky;
  top:0;
  z-index:3;
  background:#f8fafc;
  color:#475467;
  font-size:.76rem;
  white-space:nowrap;
}
.admin-property-review-table tbody tr{
  scroll-margin-top:92px;
  transition:background .15s ease,box-shadow .15s ease;
}
.admin-property-review-table tbody tr:hover{background:#f8fcfa;}
.admin-property-review-table tbody tr:target{
  background:#ecfdf3;
  box-shadow:inset 4px 0 0 var(--brand);
}
.admin-property-review-table td{vertical-align:top;font-size:.82rem;}
.admin-property-review-table .admin-actions{
  display:grid;
  grid-template-columns:repeat(2,minmax(110px,1fr));
  gap:6px;
  min-width:250px;
}
.admin-property-review-table .admin-actions form,
.admin-property-review-table .admin-actions button,
.admin-property-review-table .admin-actions select,
.admin-property-review-table .admin-actions input{width:100%;min-width:0;}
.admin-property-review-table .admin-review-reason-form,
.admin-property-review-table .inline-form{
  grid-column:1/-1;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:6px;
}
.admin-property-review-table .admin-review-reason-form .button,
.admin-property-review-table .inline-form .button{width:auto;min-width:92px;}
html[data-theme="dark"] .admin-section-nav{
  background:linear-gradient(135deg,#101b1a,#111827);
  border-color:rgba(45,212,191,.2);
}
html[data-theme="dark"] .admin-section-nav a{color:#cbd5e1;}
html[data-theme="dark"] .admin-section-nav a:hover{background:rgba(16,185,129,.12);color:#d1fae5;}
html[data-theme="dark"] .admin-section-nav a.active{background:#0f766e;color:#fff;}
html[data-theme="dark"] .admin-mode-badge{
  color:#bbf7d0;
  background:rgba(22,163,74,.16);
  border-color:rgba(74,222,128,.24);
}
html[data-theme="dark"] .admin-mode-badge.listing-mode{
  color:#fde68a;
  background:rgba(36,196,142,.2);
  border-color:rgba(253,230,138,.2);
}
html[data-theme="dark"] .admin-workflow-separation-notice{
  color:#bae6fd;
  background:rgba(14,116,144,.14);
  border-color:rgba(56,189,248,.22);
  border-inline-start-color:#38bdf8;
}
html[data-theme="dark"] .admin-listing-review-intro{
  color:#fde68a;
  background:rgba(36,196,142,.14);
  border-color:rgba(253,230,138,.2);
}
html[data-theme="dark"] .admin-property-review-table thead th{background:#172033;color:#d0d5dd;}
html[data-theme="dark"] .admin-property-review-table tbody tr:hover{background:rgba(16,185,129,.06);}
html[data-theme="dark"] .admin-property-review-table tbody tr:target{background:rgba(22,163,74,.12);}
html[data-theme="dark"] .admin-table-scroll{border-color:var(--darna-dark-border);}
@media (max-width: 1180px) {
  .admin-image-cards-row{grid-template-columns:repeat(3,minmax(0,1fr));}
  .admin-images-page .admin-images-header{grid-template-columns:1fr;}
}
@media (max-width: 860px) {
  .admin-image-cards-row{grid-template-columns:repeat(2,minmax(0,1fr));}
  .admin-image-context-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .admin-workflow-separation-notice{grid-template-columns:auto minmax(0,1fr);}
  .admin-workflow-separation-notice .button{grid-column:1/-1;width:100%;}
  .admin-listing-review-intro{align-items:flex-start;flex-direction:column;}
  .admin-listing-review-intro strong{white-space:normal;}
}
@media (max-width: 620px) {
  .admin-section-nav{margin-inline:-4px;padding:6px;border-radius:14px;}
  .admin-section-nav a{min-height:36px;padding:7px 10px;font-size:.8rem;}
  .admin-image-cards-row{grid-template-columns:1fr;}
  .admin-image-cards-row .admin-image-preview-wrap,
  .admin-image-cards-row .admin-review-image,
  .admin-image-cards-row .admin-review-image-empty{aspect-ratio:16/10;}
  .admin-image-group-actions{width:100%;max-width:none;}
  .admin-image-context-grid{grid-template-columns:1fr 1fr;}
  .admin-image-cards-row .admin-image-actions{grid-template-columns:1fr;}
  .admin-image-cards-row .reject-image-form{grid-column:auto;grid-template-columns:1fr;}
  .admin-image-cards-row .reject-image-form .button{width:100%;}
  .admin-workflow-separation-notice{grid-template-columns:1fr;text-align:start;}
  .admin-workflow-notice-icon{display:none;}
  .admin-dashboard .admin-stat-grid-extended{grid-template-columns:repeat(2,minmax(0,1fr));}
  .admin-dashboard .admin-stat-card strong{font-size:1.35rem;}
  .admin-table-scroll{overflow:visible;border:0;}
  .admin-property-review-table{min-width:0;}
  .admin-property-review-table .admin-actions{grid-template-columns:1fr;min-width:0;}
  .admin-property-review-table .admin-review-reason-form,
  .admin-property-review-table .inline-form{grid-column:auto;grid-template-columns:1fr;}
  .admin-property-review-table .admin-review-reason-form .button,
  .admin-property-review-table .inline-form .button{width:100%;}
}
.admin-property-filter-banner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin:0 0 12px;
  padding:9px 12px;
  border:1px solid rgba(0,122,85,.2);
  border-radius:13px;
  background:#f0fdf7;
  color:#065f46;
  font-size:.84rem;
  font-weight:850;
}
.admin-review-images-link{grid-column:1/-1;}
html[data-theme="dark"] .admin-property-filter-banner{
  color:#bbf7d0;
  background:rgba(16,185,129,.1);
  border-color:rgba(52,211,153,.2);
}
@media (max-width: 620px) {
  .admin-property-filter-banner{align-items:stretch;flex-direction:column;}
  .admin-property-filter-banner .button{width:100%;}
}

/* Darna_improved243: mobile property cards follow a photo-first classifieds layout. */
.mobile-classified-media-actions {
  display: none;
}

@media (max-width: 760px) {
  /* Darna_improved296: duplicated public grid sizing is now owned by 166_listing_cards_282.css. */

  .property-card-modern[data-mobile-classified-card="243"] {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
    transform: none !important;
  }

  .property-card-modern[data-mobile-classified-card="243"]:hover,
  .property-card-modern[data-mobile-classified-card="243"]:focus-within {
    transform: none !important;
    box-shadow: none !important;
  }

  .property-card-modern[data-mobile-classified-card="243"] .card-media {
    position: relative !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    background: rgba(15, 118, 110, 0.08) !important;
  }

  .property-card-modern[data-mobile-classified-card="243"] .card-media-detail-link {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
  }

  .listing-card[data-mobile-classified-card="243"] .property-image,
  .listing-card[data-mobile-classified-card="243"] .image-placeholder,
  .property-card-modern[data-mobile-classified-card="243"] .property-image,
  .property-card-modern[data-mobile-classified-card="243"] .image-placeholder {
    display: flex !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    border-radius: 10px !important;
  }

  .property-card-modern[data-mobile-classified-card="243"] .image-placeholder {
    padding: 12px !important;
  }

  .property-card-modern[data-mobile-classified-card="243"] .image-placeholder .placeholder-icon,
  .property-card-modern[data-mobile-classified-card="243"] .smart-property-placeholder .placeholder-icon {
    width: 58px !important;
    height: 58px !important;
  }

  .property-card-modern[data-mobile-classified-card="243"] .image-placeholder-title,
  .property-card-modern[data-mobile-classified-card="243"] .image-placeholder-subtitle,
  .property-card-modern[data-mobile-classified-card="243"] .card-badges {
    display: none !important;
  }

  .mobile-classified-media-actions {
    position: absolute;
    top: 8px;
    inset-inline-end: 8px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    min-height: 36px;
    padding: 3px 5px;
    border-radius: 999px;
    background: rgba(18, 22, 24, 0.78);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(7px);
  }

  .mobile-classified-image-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    padding-inline: 3px;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
  }

  .mobile-classified-favorite-form {
    display: inline-flex;
    margin: 0;
  }

  .mobile-classified-favorite {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #fff;
    box-shadow: none;
  }

  .mobile-classified-favorite .ui-icon {
    width: 21px;
    height: 21px;
    stroke-width: 2.25;
  }

  .mobile-classified-favorite.fav-on {
    color: #ef4444;
    background: rgba(255, 255, 255, 0.96);
  }

  .mobile-classified-favorite-label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }

  .property-card-modern[data-mobile-classified-card="243"] .card-content {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    min-height: 82px !important;
    padding: 7px 3px 2px !important;
    gap: 2px !important;
    overflow: hidden !important;
    background: transparent !important;
  }

  .property-card-modern[data-mobile-classified-card="243"] .compact-card-topline,
  .property-card-modern[data-mobile-classified-card="243"] .card-address,
  .property-card-modern[data-mobile-classified-card="243"] .price-context-row,
  .property-card-modern[data-mobile-classified-card="243"] .converted-price-line,
  .property-card-modern[data-mobile-classified-card="243"] .compact-listing-summary,
  .property-card-modern[data-mobile-classified-card="243"] .provider-mini,
  .property-card-modern[data-mobile-classified-card="243"] .card-actions-user,
  .property-card-modern[data-mobile-classified-card="243"] .card-phone-reveal,
  .property-card-modern[data-mobile-classified-card="243"] .card-contact-panel {
    display: none !important;
  }

  .property-card-modern[data-mobile-classified-card="243"] .card-location {
    order: 1;
    display: block !important;
    min-width: 0;
    margin: 0 !important;
    color: #667085 !important;
    font-size: 12px !important;
    font-weight: 750 !important;
    line-height: 1.25 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .property-card-modern[data-mobile-classified-card="243"] h2 {
    order: 2;
    display: -webkit-box !important;
    min-height: 2.5em !important;
    max-height: 2.5em !important;
    margin: 0 !important;
    color: var(--text) !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    overflow: hidden !important;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .property-card-modern[data-mobile-classified-card="243"] .card-title-detail-link {
    display: inline !important;
    color: inherit !important;
    white-space: normal !important;
  }

  .property-card-modern[data-mobile-classified-card="243"] .listing-price-panel {
    order: 3;
    display: block !important;
    min-width: 0 !important;
    margin: 1px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: hidden !important;
  }

  .property-card-modern[data-mobile-classified-card="243"] .listing-price-panel::before {
    display: none !important;
  }

  .property-card-modern[data-mobile-classified-card="243"] .card-price-main.structured-price {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: baseline !important;
    justify-content: flex-start !important;
    min-width: 0 !important;
    gap: 4px !important;
    color: var(--brand) !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .property-card-modern[data-mobile-classified-card="243"] .card-price-main .price-number {
    color: inherit !important;
    font-size: 17px !important;
    font-weight: 950 !important;
    letter-spacing: 0 !important;
  }

  .property-card-modern[data-mobile-classified-card="243"] .card-price-main .price-unit,
  .property-card-modern[data-mobile-classified-card="243"] .card-price-main .price-currency {
    min-width: 0;
    color: inherit !important;
    font-size: 13px !important;
    font-weight: 900 !important;
  }

  html[data-theme="dark"] .property-card-modern[data-mobile-classified-card="243"] .card-location {
    color: #aeb8c4 !important;
  }

  html[data-theme="dark"] .property-card-modern[data-mobile-classified-card="243"] h2,
  html[data-theme="dark"] .property-card-modern[data-mobile-classified-card="243"] .card-title-detail-link {
    color: #f7fafc !important;
  }

  html[data-theme="dark"] .property-card-modern[data-mobile-classified-card="243"] .card-price-main.structured-price {
    color: #b9f76c !important;
  }
}

@media (max-width: 340px) {
  /* Darna_improved296: duplicated narrow grid sizing is now owned by 166_listing_cards_282.css. */

  .property-card-modern[data-mobile-classified-card="243"] .card-content {
    min-height: 76px !important;
  }
}

/* Darna improved248: focused admin listing moderation workspace. */
.admin-property-review-page {
  display: grid;
  gap: 18px;
}

.admin-review-page-header,
.admin-review-decision-head,
.admin-review-gallery-head,
.admin-review-approve-all,
.admin-review-header-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.admin-review-page-header {
  align-items: flex-start;
  padding: 4px 2px 14px;
  border-bottom: 1px solid var(--border-color, rgba(126, 156, 148, .26));
}

.admin-review-page-header h1 {
  margin: 6px 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.admin-review-back-link {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--primary, #16c79a);
  font-weight: 800;
  text-decoration: none;
}

.admin-review-header-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-review-separation-note {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid rgba(22, 199, 154, .32);
  border-radius: 14px;
  background: rgba(22, 199, 154, .08);
}

.admin-review-separation-note span {
  color: var(--muted-text, #8fa4ad);
  line-height: 1.65;
}

.admin-review-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, .75fr);
  gap: 18px;
  align-items: start;
}

.admin-review-gallery,
.admin-review-property-summary,
.admin-review-listing-decision {
  border: 1px solid var(--border-color, rgba(126, 156, 148, .26));
  border-radius: 18px;
  background: var(--card-bg, rgba(9, 29, 35, .7));
  padding: 16px;
}

.admin-review-gallery {
  min-width: 0;
}

.admin-review-gallery-head {
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.admin-review-gallery-head > div:first-child {
  display: grid;
  gap: 3px;
}

.admin-review-gallery-head > div:first-child span {
  color: var(--muted-text, #8fa4ad);
}

.admin-review-gallery-head > div:first-child strong {
  font-size: 1.15rem;
}

.admin-review-progress {
  flex: 1 1 180px;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(126, 156, 148, .18);
  align-self: center;
}

.admin-review-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #18c896, #f2a129);
  transition: width .22s ease;
}

.admin-review-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.admin-review-counts span {
  padding: 5px 9px;
  border-radius: 999px;
  font-size: .82rem;
  background: rgba(126, 156, 148, .13);
}

.admin-review-counts .pending { color: #f4b54d; }
.admin-review-counts .approved { color: #40d8a9; }
.admin-review-counts .rejected { color: #ff7d7d; }

.admin-review-main-image-panel {
  display: grid;
  gap: 12px;
}

.admin-review-main-image-wrap {
  position: relative;
  overflow: hidden;
  min-height: 440px;
  border-radius: 16px;
  background: #071218;
}

.admin-review-main-image-button {
  width: 100%;
  height: 100%;
  min-height: 440px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.admin-review-main-image-button img,
.admin-review-main-image-wrap > img,
.admin-review-main-image-wrap [data-admin-review-main-image] {
  width: 100%;
  height: 100%;
  min-height: 440px;
  max-height: 620px;
  object-fit: contain;
  display: block;
}

.admin-review-main-image-empty {
  min-height: 440px;
  display: grid;
  place-items: center;
  color: #aebac0;
  background: repeating-linear-gradient(135deg, #0d1b22, #0d1b22 12px, #10232b 12px, #10232b 24px);
}

.admin-review-main-badges {
  position: absolute;
  inset: 12px 12px auto;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  pointer-events: none;
}

.admin-review-image-position {
  margin-inline-start: auto;
  padding: 5px 9px;
  border-radius: 999px;
  color: white;
  background: rgba(0, 0, 0, .68);
  direction: ltr;
}

.admin-review-gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 42px;
  height: 52px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: rgba(0, 0, 0, .58);
  font-size: 2rem;
  transform: translateY(-50%);
  cursor: pointer;
}

.admin-review-gallery-arrow.previous { inset-inline-start: 12px; }
.admin-review-gallery-arrow.next { inset-inline-end: 12px; }

.admin-review-current-image-info {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  min-height: 32px;
}

.admin-review-current-image-info span {
  color: var(--muted-text, #8fa4ad);
}

.admin-review-current-image-info [data-admin-review-current-reason] {
  flex-basis: 100%;
  color: #ff9a9a;
}

.admin-review-image-action-set {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(2, 12, 17, .38);
}

.admin-review-image-action-set.is-hidden {
  display: none;
}

.admin-review-image-action-set form,
.admin-review-image-action-set button {
  width: 100%;
}

.admin-review-reject-form {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.admin-review-reject-form label {
  display: grid;
  gap: 5px;
}

.admin-review-reject-form label span {
  color: var(--muted-text, #8fa4ad);
  font-size: .82rem;
}

.admin-review-thumbnail-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 112px;
  gap: 9px;
  overflow-x: auto;
  padding: 4px 2px 9px;
  scroll-snap-type: x proximity;
}

.admin-review-thumbnail {
  position: relative;
  height: 92px;
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  background: #0a171d;
  cursor: pointer;
  scroll-snap-align: start;
}

.admin-review-thumbnail.active {
  border-color: #18c896;
  box-shadow: 0 0 0 3px rgba(24, 200, 150, .18);
}

.admin-review-thumbnail.status-pending { border-bottom-color: #f2a129; }
.admin-review-thumbnail.status-approved { border-bottom-color: #18c896; }
.admin-review-thumbnail.status-rejected { border-bottom-color: #e86868; }
.admin-review-thumbnail.is-primary::after {
  content: "الرئيسية";
  position: absolute;
  inset: 5px auto auto 5px;
  padding: 2px 5px;
  border-radius: 6px;
  color: #05231b;
  background: #63e0b9;
  font-size: .65rem;
  font-weight: 900;
}

.admin-review-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-review-thumb-empty {
  display: grid;
  place-items: center;
  height: 100%;
  color: #d89a9a;
}

.admin-review-thumb-index,
.admin-review-thumb-status,
.admin-review-thumb-primary {
  position: absolute;
  z-index: 2;
  color: white;
  background: rgba(0, 0, 0, .68);
}

.admin-review-thumb-index { inset: auto 5px 5px auto; padding: 2px 5px; border-radius: 5px; }
.admin-review-thumb-status { inset: auto auto 5px 5px; padding: 2px 5px; border-radius: 5px; font-size: .65rem; }
.admin-review-thumb-primary { inset: 5px 5px auto auto; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; }

.admin-review-approve-all {
  margin-top: 12px;
  padding: 13px;
  border: 1px dashed rgba(24, 200, 150, .36);
  border-radius: 14px;
  background: rgba(24, 200, 150, .06);
}

.admin-review-approve-all > div {
  display: grid;
  gap: 3px;
}

.admin-review-approve-all span {
  color: var(--muted-text, #8fa4ad);
  font-size: .85rem;
}

.admin-review-property-summary {
  position: sticky;
  top: 12px;
  display: grid;
  gap: 14px;
}

.admin-review-property-summary h2,
.admin-review-listing-decision h2 {
  margin: 0;
}

.admin-review-facts {
  display: grid;
  gap: 0;
  margin: 0;
}

.admin-review-facts > div {
  display: grid;
  grid-template-columns: minmax(110px, .75fr) minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(126, 156, 148, .14);
}

.admin-review-facts dt {
  color: var(--muted-text, #8fa4ad);
}

.admin-review-facts dd {
  margin: 0;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.admin-review-description,
.admin-review-provider-card {
  display: grid;
  gap: 7px;
  padding: 12px;
  border-radius: 13px;
  background: rgba(126, 156, 148, .08);
}

.admin-review-description p {
  margin: 0;
  line-height: 1.75;
}

.admin-review-provider-card h3 {
  margin: 0;
}

.admin-review-provider-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-review-listing-decision {
  display: grid;
  gap: 14px;
}

.admin-review-readiness {
  max-width: 420px;
  padding: 9px 12px;
  border-radius: 11px;
  font-weight: 800;
}

.admin-review-readiness.is-blocked {
  color: #ffd18a;
  background: rgba(242, 161, 41, .12);
}

.admin-review-readiness.is-ready {
  color: #76e8c3;
  background: rgba(24, 200, 150, .11);
}

.admin-review-listing-actions {
  display: grid;
  grid-template-columns: minmax(180px, .7fr) repeat(2, minmax(220px, 1fr));
  gap: 10px;
  align-items: end;
}

.admin-review-listing-actions form,
.admin-review-listing-actions button {
  width: 100%;
}

.admin-review-reason-form {
  display: grid;
  gap: 7px;
}

.admin-open-review-link {
  white-space: nowrap;
}

.admin-property-review-title {
  font-weight: 900;
  color: inherit;
}

html[data-theme="light"] .admin-review-gallery,
html[data-theme="light"] .admin-review-property-summary,
html[data-theme="light"] .admin-review-listing-decision {
  background: #fff;
}

html[data-theme="light"] .admin-review-image-action-set {
  background: #f3f8f7;
}

@media (max-width: 980px) {
  .admin-review-workspace {
    grid-template-columns: 1fr;
  }

  .admin-review-property-summary {
    position: static;
  }

  .admin-review-listing-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .admin-property-review-page {
    gap: 12px;
  }

  .admin-review-page-header,
  .admin-review-decision-head,
  .admin-review-approve-all {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-review-header-actions {
    justify-content: flex-start;
  }

  .admin-review-gallery,
  .admin-review-property-summary,
  .admin-review-listing-decision {
    padding: 12px;
    border-radius: 14px;
  }

  .admin-review-main-image-wrap,
  .admin-review-main-image-button,
  .admin-review-main-image-button img,
  .admin-review-main-image-wrap [data-admin-review-main-image],
  .admin-review-main-image-empty {
    min-height: 300px;
  }

  .admin-review-main-image-button img,
  .admin-review-main-image-wrap [data-admin-review-main-image] {
    max-height: 440px;
  }

  .admin-review-image-action-set {
    grid-template-columns: 1fr;
  }

  .admin-review-reject-form {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .admin-review-thumbnail-strip {
    grid-auto-columns: 92px;
  }

  .admin-review-thumbnail {
    height: 78px;
  }

  .admin-review-gallery-arrow {
    width: 38px;
    height: 46px;
  }

  .admin-review-facts > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* Darna_improved248: compact provider information and non-overlapping mobile contact actions. */
.detail-provider-card[data-provider-card-compact="244"] {
  --provider-compact-border: rgba(15, 118, 110, .18);
  --provider-compact-surface: rgba(248, 255, 252, .76);
  --provider-compact-muted: #60736d;
}

.detail-provider-card[data-provider-card-compact="244"] .provider-trust-overview {
  border-color: var(--provider-compact-border) !important;
  background: var(--provider-compact-surface) !important;
  box-shadow: none !important;
}

.detail-provider-card[data-provider-card-compact="244"].trust-level-new .provider-trust-overview,
.detail-provider-card[data-provider-card-compact="244"].trust-level-basic .provider-trust-overview {
  border-color: rgba(15, 118, 110, .20) !important;
}

.detail-provider-card[data-provider-card-compact="244"] .provider-fact-empty {
  color: var(--provider-compact-muted);
  font-weight: 800;
}

html[data-theme="dark"] .detail-provider-card[data-provider-card-compact="244"] {
  --provider-compact-border: rgba(45, 212, 191, .16);
  --provider-compact-surface: rgba(8, 22, 27, .54);
  --provider-compact-muted: #9eb5ad;
}

html[data-theme="dark"] .detail-provider-card[data-provider-card-compact="244"] .provider-trust-overview {
  border-color: var(--provider-compact-border) !important;
  background: var(--provider-compact-surface) !important;
  color: #e8fff7 !important;
}

html[data-theme="dark"] .detail-provider-card[data-provider-card-compact="244"] .provider-fact-empty {
  color: #9eb5ad !important;
}

@media (max-width: 760px) {
  .detail-provider-card[data-provider-card-compact="244"] {
    gap: 8px !important;
    padding: 12px !important;
    border-radius: 18px !important;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .08) !important;
  }

  .detail-provider-card[data-provider-card-compact="244"] .provider-card-heading {
    display: grid !important;
    gap: 7px !important;
  }

  .detail-provider-card[data-provider-card-compact="244"] .provider-card-heading .section-eyebrow {
    display: none !important;
  }

  .detail-provider-card[data-provider-card-compact="244"] .provider-card-heading h2 {
    margin: 0 0 3px !important;
    font-size: 1.12rem !important;
    line-height: 1.35 !important;
  }

  .detail-provider-card[data-provider-card-compact="244"] .provider-card-heading .meta {
    margin: 0 !important;
    font-size: .78rem !important;
    line-height: 1.45 !important;
  }

  .detail-provider-card[data-provider-card-compact="244"] .provider-badge-row {
    justify-content: flex-start !important;
    gap: 5px !important;
  }

  .detail-provider-card[data-provider-card-compact="244"] .provider-status-badge {
    min-height: 26px !important;
    padding: 4px 8px !important;
    border-radius: 999px !important;
    font-size: .7rem !important;
    box-shadow: none !important;
  }

  .detail-provider-card[data-provider-card-compact="244"] .provider-trust-overview {
    grid-template-columns: auto minmax(72px, 1fr) auto !important;
    gap: 7px !important;
    padding: 8px 9px !important;
    border-radius: 13px !important;
  }

  .detail-provider-card[data-provider-card-compact="244"] .provider-trust-copy {
    gap: 6px !important;
  }

  .detail-provider-card[data-provider-card-compact="244"] .provider-trust-copy span {
    font-size: .72rem !important;
  }

  .detail-provider-card[data-provider-card-compact="244"] .provider-trust-copy strong {
    font-size: 1.05rem !important;
  }

  .detail-provider-card[data-provider-card-compact="244"] .provider-trust-progress {
    grid-column: auto !important;
    grid-row: auto !important;
    height: 5px !important;
    min-width: 70px !important;
  }

  .detail-provider-card[data-provider-card-compact="244"] .provider-trust-level-label {
    min-width: 0 !important;
    padding: 4px 7px !important;
    font-size: .67rem !important;
  }

  .detail-provider-card[data-provider-card-compact="244"] .provider-facts {
    display: block !important;
    overflow: hidden !important;
    border-block: 1px solid var(--provider-compact-border) !important;
    margin: 0 !important;
  }

  .detail-provider-card[data-provider-card-compact="244"] .provider-facts > div {
    min-height: 38px !important;
    padding: 7px 2px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--provider-compact-border) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .detail-provider-card[data-provider-card-compact="244"] .provider-facts > div:last-child {
    border-bottom: 0 !important;
  }

  .detail-provider-card[data-provider-card-compact="244"] .provider-facts dt {
    font-size: .75rem !important;
  }

  .detail-provider-card[data-provider-card-compact="244"] .provider-facts dd {
    max-width: 62% !important;
    font-size: .82rem !important;
  }

  .detail-provider-card[data-provider-card-compact="244"] .provider-card-footer {
    justify-content: flex-end !important;
  }

  .detail-provider-card[data-provider-card-compact="244"] .provider-card-footer,
  .detail-provider-card[data-provider-card-compact="244"] .provider-card-footer .provider-profile-link {
    width: auto !important;
  }

  .detail-provider-card[data-provider-card-compact="244"] .provider-profile-link {
    min-height: 34px !important;
    padding: 6px 10px !important;
    border-radius: 10px !important;
    font-size: .76rem !important;
  }

  /* Keep the contact actions useful without covering the provider information below. */
  .detail-contact-actions[data-mobile-contact-compact="244"] {
    position: sticky !important;
    inset: auto !important;
    bottom: max(6px, env(safe-area-inset-bottom)) !important;
    z-index: 12 !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 5px !important;
    min-height: 0 !important;
    margin-top: 7px !important;
    padding: 5px !important;
    border: 1px solid rgba(15, 118, 110, .18) !important;
    border-radius: 14px !important;
    background: rgba(248, 255, 252, .94) !important;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .10) !important;
    backdrop-filter: blur(8px) !important;
  }

  .detail-contact-actions[data-mobile-contact-compact="244"] .detail-contact-action,
  .detail-contact-actions[data-mobile-contact-compact="244"] .button {
    min-width: 0 !important;
    min-height: 42px !important;
    padding: 6px 4px !important;
    border-radius: 11px !important;
    font-size: .73rem !important;
    line-height: 1.2 !important;
    box-shadow: none !important;
  }

  .detail-contact-actions[data-mobile-contact-compact="244"] .detail-contact-action svg,
  .detail-contact-actions[data-mobile-contact-compact="244"] .button svg {
    width: 16px !important;
    height: 16px !important;
  }

  .detail-contact-actions[data-mobile-contact-compact="244"] .detail-contact-action span,
  .detail-contact-actions[data-mobile-contact-compact="244"] .button span {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body:has(.detail-contact-actions[data-mobile-contact-compact="244"]) {
    padding-bottom: env(safe-area-inset-bottom) !important;
  }

  body:has(.detail-provider-card[data-provider-card-compact="244"]) .scroll-jump-controls {
    bottom: 70px !important;
    left: 8px !important;
  }

  body:has(.detail-provider-card[data-provider-card-compact="244"]) .scroll-jump-button.is-up {
    width: 38px !important;
    height: 38px !important;
    font-size: 19px !important;
  }

  html[data-theme="dark"] .detail-provider-card[data-provider-card-compact="244"] {
    box-shadow: 0 10px 26px rgba(0, 0, 0, .22) !important;
  }

  html[data-theme="dark"] .detail-contact-actions[data-mobile-contact-compact="244"] {
    border-color: rgba(45, 212, 191, .15) !important;
    background: rgba(9, 24, 29, .94) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .24) !important;
  }
}

@media (max-width: 360px) {
  .detail-provider-card[data-provider-card-compact="244"] .provider-trust-overview {
    grid-template-columns: 1fr auto !important;
  }

  .detail-provider-card[data-provider-card-compact="244"] .provider-trust-progress {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
  }
}

﻿/* Darna improved251: unified swipe galleries, independent primary image and direct provider sorting. */
[data-inline-gallery],
[data-inline-gallery-open],
.admin-review-main-image-wrap,
.gallery-lightbox-stage {
  touch-action: pan-y;
}

.card-inline-gallery,
.my-card-inline-gallery,
.card-inline-gallery > button,
.my-card-inline-gallery > button {
  width: 100%;
  height: 100%;
}

.card-gallery-open,
.my-card-gallery-open,
.featured-gallery-main-button,
.admin-review-main-image-button,
.admin-image-preview-button,
.upload-preview-open-button {
  cursor: pointer;
}

.gallery-inline-counter,
.gallery-lightbox-counter {
  direction: ltr;
  font-variant-numeric: tabular-nums;
  border-radius: 999px;
  background: rgba(7, 18, 24, .78);
  color: #fff;
  font-weight: 900;
  line-height: 1;
}

.gallery-inline-counter {
  position: absolute;
  inset-block-start: 10px;
  inset-inline-end: 10px;
  z-index: 3;
  padding: 7px 10px;
  font-size: .78rem;
  pointer-events: none;
}

.gallery-position-dots {
  position: absolute;
  inset-inline: 12px;
  inset-block-end: 10px;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  pointer-events: none;
}

.gallery-position-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .52);
  box-shadow: 0 1px 5px rgba(0, 0, 0, .35);
}

.gallery-position-dot.active {
  width: 18px;
  background: #fff;
}

.global-gallery-lightbox {
  flex-direction: column;
  background: rgba(2, 7, 10, .96);
  padding: 62px 64px 44px;
}

.gallery-lightbox-stage {
  width: min(1220px, 100%);
  height: min(82vh, 900px);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.gallery-lightbox-stage img,
.global-gallery-lightbox img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
  user-select: none;
  -webkit-user-drag: none;
}

.gallery-lightbox-counter {
  position: absolute;
  inset-block-start: 20px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  z-index: 4;
  padding: 8px 13px;
}

.gallery-lightbox-dots {
  position: static;
  min-height: 18px;
  margin-top: 12px;
}

.upload-preview-grid,
.existing-image-grid {
  align-items: stretch;
}

.upload-preview-card {
  min-width: 0;
  transition: transform .16s ease, opacity .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.upload-preview-card.is-primary {
  border: 2px solid var(--brand, #0d7b5c);
  box-shadow: 0 0 0 3px rgba(13, 123, 92, .14), 0 16px 34px rgba(13, 123, 92, .13);
}

.upload-preview-card.is-dragging {
  opacity: .58;
  transform: scale(.98);
  z-index: 5;
}

.upload-preview-grid.is-touch-sorting,
.existing-image-grid.is-touch-sorting {
  touch-action: none;
  user-select: none;
}

.upload-preview-controls {
  grid-template-columns: minmax(96px, .8fr) minmax(130px, 1.2fr);
  align-items: center;
}

.upload-position-control {
  display: grid;
  grid-template-columns: auto minmax(58px, 1fr);
  align-items: center;
  gap: 7px;
  min-height: 36px;
}

.upload-position-control select {
  width: 100%;
  min-height: 36px;
  border-radius: 10px;
}

.upload-drag-handle {
  position: absolute;
  inset-block-start: 8px;
  inset-inline-start: 8px;
  z-index: 4;
  display: inline-grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 10px;
  background: rgba(7, 18, 24, .74);
  color: #fff;
  font-weight: 950;
  letter-spacing: -4px;
  cursor: grab;
  pointer-events: none;
}

.upload-primary-badge {
  border: 1px solid rgba(255, 255, 255, .45);
  background: rgba(13, 123, 92, .94);
}

.existing-image-sorter {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(13, 123, 92, .24);
  border-radius: 16px;
  background: rgba(13, 123, 92, .035);
}

.admin-review-header-publish-form {
  margin: 0;
}

.admin-review-listing-decision {
  position: sticky;
  bottom: 10px;
  z-index: 20;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .22);
}

.admin-review-main-image-wrap {
  overscroll-behavior-inline: contain;
}

.admin-review-thumbnail[data-gallery-item] {
  cursor: pointer;
}

html[data-theme="dark"] .existing-image-sorter {
  border-color: rgba(64, 216, 169, .22);
  background: rgba(64, 216, 169, .05);
}

html[data-theme="dark"] .upload-preview-card.is-primary {
  border-color: #40d8a9;
  background: rgba(64, 216, 169, .07);
  box-shadow: 0 0 0 3px rgba(64, 216, 169, .12), 0 18px 42px rgba(0, 0, 0, .34);
}

@media (max-width: 760px) {
  .global-gallery-lightbox {
    padding: 58px 8px 24px;
  }

  .gallery-lightbox-stage {
    width: 100%;
    height: 78vh;
  }

  .gallery-lightbox-nav {
    display: none;
  }

  .gallery-lightbox-close {
    top: 12px;
    inset-inline-end: 12px;
  }

  .gallery-lightbox-counter {
    top: 16px;
  }

  .upload-preview-controls {
    grid-template-columns: 1fr;
  }

  .admin-review-listing-decision {
    bottom: 6px;
  }

  .admin-review-main-image-button,
  .admin-review-main-image-wrap,
  .featured-gallery-main-button,
  .card-gallery-open,
  .my-card-gallery-open {
    touch-action: pan-y;
  }
}

/* Darna_improved270: edit form must show status for every loaded property image. */
.upload-image-status-badge {
  position: absolute;
  inset-inline-start: 0.65rem;
  inset-block-start: 0.65rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.8rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 23, 42, 0.78);
  color: #f8fafc;
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(2, 6, 23, 0.28);
  backdrop-filter: blur(10px);
}

.upload-image-status-badge.status-approved {
  background: rgba(22, 163, 74, 0.86);
}

.upload-image-status-badge.status-pending {
  background: rgba(217, 119, 6, 0.88);
}

.upload-image-status-badge.status-rejected {
  background: rgba(220, 38, 38, 0.88);
}

/* Darna_improved258: custom tenure type and clearer saved-search actions. */
.tenure-other-field {
  margin-top: 0.75rem;
  padding: 0.8rem;
  border: 1px solid var(--border, #d9e3df);
  border-radius: 0.85rem;
  background: color-mix(in srgb, var(--surface, #fff) 92%, var(--brand, #0b8f6a) 8%);
}

.tenure-other-field[hidden] { display: none !important; }

.saved-search-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.saved-search-filter-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 1.9rem;
  padding: 0.25rem 0.65rem;
  border: 1px solid color-mix(in srgb, var(--brand, #0b8f6a) 38%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand, #0b8f6a) 12%, transparent);
  font-size: 0.86rem;
  font-weight: 700;
}

.saved-search-open-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 10rem;
}

@media (max-width: 640px) {
  .saved-search-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.65rem;
  }

  .saved-search-open-button {
    width: 100%;
    min-width: 0;
  }

  .saved-search-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .saved-search-stats > div:last-child {
    grid-column: 1 / -1;
  }
}

/* Darna_improved258: PDF correction block for saved searches, user cards, favorites and tenure other. */

/* Saved-search accordion: collapsed by default, RTL-safe, no layout jump. */
.search-panel .save-search-accordion {
  display: block;
  padding: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--brand, #14b88a) 42%, transparent);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(12, 48, 58, .96), rgba(16, 34, 58, .98));
  box-shadow: 0 14px 34px rgba(2, 18, 30, .18);
}
.save-search-accordion-header {
  width: 100%;
  min-height: 78px;
  padding: 14px 16px;
  border: 0;
  background: transparent;
  color: #f8fffd;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: start;
  cursor: pointer;
}
.save-search-accordion-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.save-search-accordion-copy strong {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 900;
}
.save-search-accordion-copy > span {
  color: #bed1d7;
  font-size: .86rem;
  line-height: 1.55;
}
.save-search-accordion-sign {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(45, 212, 158, .42);
  background: rgba(20, 184, 138, .15);
  color: #56e5b8;
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1;
  transition: transform .22s ease, background .22s ease;
}
.save-search-accordion.is-open .save-search-accordion-sign {
  background: rgba(20, 184, 138, .28);
  transform: rotate(180deg);
}
.save-search-accordion-body {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 16px;
  transition: max-height .28s ease, opacity .22s ease, padding .28s ease;
}
.save-search-accordion.is-open .save-search-accordion-body {
  max-height: 520px;
  opacity: 1;
  padding: 0 16px 16px;
}
.save-search-ajax-form {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto auto;
  gap: 12px;
  align-items: end;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 190, 194, .18);
}
.save-search-ajax-form > div,
.save-search-ajax-form > div label {
  display: grid;
  gap: 6px;
}
.save-search-ajax-form label,
.save-search-ajax-form .feature-check {
  color: #e6f4f2;
}
.save-search-feedback {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: 800;
}
.save-search-feedback.is-success {
  color: #d8fff1;
  border: 1px solid rgba(52, 211, 153, .36);
  background: rgba(16, 185, 129, .14);
}
.save-search-feedback.is-error {
  color: #ffe4e6;
  border: 1px solid rgba(251, 113, 133, .36);
  background: rgba(225, 29, 72, .14);
}
.saved-search-card.is-newly-saved {
  border-color: #2dd49e;
  box-shadow: 0 0 0 3px rgba(45, 212, 158, .2), 0 18px 42px rgba(5, 150, 105, .2);
  animation: saved-search-highlight 1.1s ease 2;
}
@keyframes saved-search-highlight {
  50% { transform: translateY(-3px); }
}
.saved-search-open-button .ui-icon {
  width: 1.1rem;
  height: 1.1rem;
}

/* Custom tenure type: Darna colors in both themes, never a white glare in dark mode. */
.tenure-other-field {
  color: #15322f;
  border-color: rgba(12, 143, 106, .34);
  background: linear-gradient(145deg, rgba(232, 250, 244, .98), rgba(245, 252, 250, .98));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4);
}
.tenure-other-field > label {
  color: #0a4f41;
  font-weight: 900;
}
.tenure-other-field .small-meta {
  color: #4f6d67;
  line-height: 1.65;
}
html[data-theme="dark"] .tenure-other-field {
  color: #f1fffb;
  border-color: rgba(45, 212, 158, .42);
  background: linear-gradient(145deg, #102e32, #10243a);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .16);
}
html[data-theme="dark"] .tenure-other-field > label {
  color: #f7fffd;
}
html[data-theme="dark"] .tenure-other-field input {
  color: #fff;
  border-color: rgba(86, 229, 184, .32);
  background: rgba(5, 25, 34, .72);
}
html[data-theme="dark"] .tenure-other-field .small-meta {
  color: #b8d2cd;
}

/* Admin/user profile cards in the Darna visual language. */
.admin-user-card {
  border-color: rgba(16, 128, 104, .22);
  background: linear-gradient(145deg, #f7fcfa, #edf7f4);
  box-shadow: 0 16px 38px rgba(12, 74, 63, .09);
}
.admin-user-card-head h2 {
  color: #113d36;
  margin-bottom: 4px;
}
.admin-user-badge-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.admin-user-stat-tiles {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.admin-user-facts .admin-user-stat-tile {
  min-height: 112px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 5px;
  border: 1px solid rgba(16, 128, 104, .14);
  background: rgba(255, 255, 255, .76);
}
.admin-user-stat-icon {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  color: #08785e;
  background: rgba(16, 185, 129, .12);
}
.admin-user-stat-icon .ui-icon {
  width: 17px;
  height: 17px;
}
.admin-user-facts .admin-user-stat-tile strong {
  color: #102f2a;
  font-size: 1.08rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.admin-user-facts .admin-user-stat-tile > span:last-child {
  color: #5f7772;
  font-size: .76rem;
  font-weight: 750;
}
html[data-theme="dark"] .admin-user-card {
  border-color: rgba(45, 212, 158, .25);
  background: linear-gradient(145deg, #112740, #0b252a);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .24);
}
html[data-theme="dark"] .admin-user-card-head h2,
html[data-theme="dark"] .admin-user-card-head .meta,
html[data-theme="dark"] .admin-user-facts .admin-user-stat-tile strong {
  color: #f6fffd;
}
html[data-theme="dark"] .admin-user-facts .admin-user-stat-tile {
  border-color: rgba(62, 196, 157, .18);
  background: rgba(3, 22, 30, .58);
}
html[data-theme="dark"] .admin-user-stat-icon {
  color: #5de6bd;
  background: rgba(45, 212, 158, .14);
}
html[data-theme="dark"] .admin-user-facts .admin-user-stat-tile > span:last-child {
  color: #b8cdc9;
}

/* The heart represents personal favorite state only; gallery 1/N remains the sole image counter. */
.mobile-classified-image-count,
.card-badge.media-count,
[data-favorite-count] {
  display: none !important;
}

@media (max-width: 760px) {
  .save-search-ajax-form {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .save-search-feedback {
    align-items: stretch;
    flex-direction: column;
  }
  .admin-user-stat-tiles,
  .admin-user-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .save-search-accordion-header { padding-inline: 13px; }
  .save-search-accordion-body { padding-inline: 13px; }
  .save-search-accordion.is-open .save-search-accordion-body { padding-inline: 13px; }
  .admin-user-facts .admin-user-stat-tile { min-height: 104px; }
}

@media (prefers-reduced-motion: reduce) {
  .save-search-accordion-body,
  .save-search-accordion-sign,
  .saved-search-card.is-newly-saved {
    transition: none;
    animation: none;
  }
}

/* Darna_improved258: align the saved-search accordion visually with the advanced-search card. */
.search-panel .save-search-accordion.save-search-advanced-card {
  display: block !important;
  margin-top: 18px;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid rgba(82, 114, 128, .78);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(7, 19, 27, .96), rgba(9, 31, 39, .96));
  box-shadow: 0 16px 36px rgba(1, 12, 18, .22), inset 0 0 0 1px rgba(45, 212, 158, .05);
}

.search-panel .save-search-advanced-card .save-search-accordion-header {
  width: 100%;
  min-height: 78px;
  padding: 15px 18px;
  border: 0;
  background: transparent !important;
  color: #f6fffb;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: start;
  cursor: pointer;
}

.search-panel .save-search-advanced-card .save-search-accordion-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
  text-align: start;
}

.search-panel .save-search-advanced-card .save-search-accordion-copy strong {
  color: #ffffff;
  font-size: clamp(1.04rem, 4vw, 1.2rem);
  font-weight: 950;
  line-height: 1.25;
}

.search-panel .save-search-advanced-card .save-search-accordion-copy > span {
  color: rgba(222, 238, 239, .82);
  font-size: clamp(.86rem, 3.4vw, .96rem);
  font-weight: 800;
  line-height: 1.55;
}

.search-panel .save-search-advanced-card .save-search-accordion-sign {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(48, 214, 166, .5);
  background: #21b98d;
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(33, 185, 141, .24);
  font-size: 2rem;
  font-weight: 950;
  line-height: 1;
}

.search-panel .save-search-advanced-card.is-open .save-search-accordion-sign {
  background: #213650;
  border-color: rgba(148, 163, 184, .38);
  transform: none;
}

.search-panel .save-search-advanced-card .save-search-accordion-body {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 18px;
  border-top: 1px solid transparent;
  background: transparent;
  transition: max-height .28s ease, opacity .22s ease, padding .28s ease, border-color .28s ease;
}

.search-panel .save-search-advanced-card.is-open .save-search-accordion-body {
  max-height: 620px;
  opacity: 1;
  padding: 16px 18px 18px;
  border-top-color: rgba(148, 190, 194, .18);
}

.search-panel .save-search-advanced-card .save-search-ajax-form {
  padding-top: 0;
  border-top: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 13px;
  align-items: stretch;
}

.search-panel .save-search-advanced-card .save-search-ajax-form input[name="name"] {
  width: 100%;
}

.search-panel .save-search-advanced-card .save-search-ajax-form .feature-check {
  min-height: 56px;
  justify-content: center;
  border-radius: 16px;
  background: rgba(9, 20, 31, .54);
  border: 1px solid rgba(148, 163, 184, .22);
}

.search-panel .save-search-advanced-card .save-search-ajax-form .button,
.search-panel .save-search-advanced-card .save-search-feedback .button {
  width: 100%;
  justify-content: center;
}

.search-panel .save-search-advanced-card .save-search-feedback {
  flex-direction: column;
  align-items: stretch;
  text-align: center;
}

html:not([data-theme="dark"]) .search-panel .save-search-accordion.save-search-advanced-card {
  border-color: rgba(42, 157, 128, .24);
  background: linear-gradient(145deg, #ffffff, #eefbf6);
  box-shadow: 0 14px 30px rgba(16, 24, 40, .08);
}

html:not([data-theme="dark"]) .search-panel .save-search-advanced-card .save-search-accordion-copy strong {
  color: #143447;
}

html:not([data-theme="dark"]) .search-panel .save-search-advanced-card .save-search-accordion-copy > span {
  color: #496678;
}

html:not([data-theme="dark"]) .search-panel .save-search-advanced-card .save-search-ajax-form .feature-check {
  background: #f8fbfc;
  border-color: #d7e6e2;
}

@media (max-width: 640px) {
  .search-panel .save-search-advanced-card .save-search-accordion-header {
    min-height: 86px;
    padding: 14px 15px;
    gap: 12px;
  }

  .search-panel .save-search-advanced-card .save-search-accordion-sign {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
  }

  .search-panel .save-search-advanced-card.is-open .save-search-accordion-body {
    padding-inline: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .search-panel .save-search-advanced-card .save-search-accordion-body,
  .search-panel .save-search-advanced-card .save-search-accordion-sign {
    transition: none;
  }
}

/* Darna improved258: providers and admins can see uploaded images during moderation. */
.provider-private-gallery-notice {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid color-mix(in srgb, var(--accent, #22c995) 34%, transparent);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--surface-strong, #0d1d25) 92%, var(--accent, #22c995) 8%);
}

.provider-private-gallery-notice > strong {
  line-height: 1.7;
}

.provider-private-gallery-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.gallery-thumb-button .provider-image-review-status {
  position: absolute;
  inset-inline-start: 0.35rem;
  inset-block-end: 0.35rem;
  z-index: 2;
  max-width: calc(100% - 0.7rem);
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.3;
  color: #fff;
  background: rgba(16, 31, 39, 0.9);
  backdrop-filter: blur(5px);
}

.gallery-thumb-button .provider-image-review-status.status-pending {
  background: rgba(180, 117, 18, 0.94);
}

.gallery-thumb-button .provider-image-review-status.status-rejected {
  background: rgba(163, 45, 45, 0.94);
}

@media (max-width: 640px) {
  .provider-private-gallery-notice {
    padding: 0.8rem;
  }

  .provider-private-gallery-counts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .provider-private-gallery-counts .status-pill {
    justify-content: center;
    text-align: center;
  }
}

/* Darna_improved258: stable provider image-selection count and edit-mode empty state. */
[data-upload-count]{
  direction:ltr;
  unicode-bidi:isolate;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-inline-size:4.2rem;
  font-variant-numeric:tabular-nums;
}

.upload-preview-empty[data-existing-empty],
.upload-preview-grid .upload-preview-empty{
  text-align:center;
}

.upload-panel .upload-preview-header [data-upload-count]{
  color:var(--text-strong, #f8fafc);
  font-weight:800;
}

/* Darna_improved270: bottom bulk image approval and compact provider listings gallery. */
.admin-image-group-footer {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-top:18px;
  padding:16px;
  border:1px solid rgba(23,169,119,.32);
  border-radius:20px;
  background:linear-gradient(135deg,rgba(23,169,119,.1),rgba(12,33,39,.03));
}
.admin-image-bulk-copy { display:flex; flex-direction:column; gap:5px; min-width:0; }
.admin-image-bulk-copy strong { font-size:1rem; }
.admin-image-bulk-copy span { color:var(--muted,#667085); line-height:1.65; }
.admin-image-group-footer form { margin:0; flex:0 0 auto; }
.admin-image-group-footer .approve-all-images-btn { min-width:210px; }
html[data-theme="dark"] .admin-image-group-footer {
  border-color:rgba(52,211,153,.34);
  background:linear-gradient(135deg,rgba(16,185,129,.14),rgba(7,22,27,.8));
}
html[data-theme="dark"] .admin-image-bulk-copy span { color:#b7cbc5; }

.my-properties-page .my-card-media,
.my-properties-page .my-card-inline-gallery,
.my-properties-page .my-card-gallery-open {
  position:relative;
}
.my-properties-page .my-card-gallery-open {
  display:block;
  overflow:hidden;
  border:0;
  padding:0;
  background:transparent;
}
.my-properties-page .my-card-gallery-open img {
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}
.my-card-image-status {
  position:absolute;
  inset-inline-start:10px;
  inset-block-end:10px;
  z-index:4;
  padding:6px 9px;
  border-radius:999px;
  color:#fff;
  background:rgba(12,24,30,.82);
  box-shadow:0 4px 14px rgba(0,0,0,.22);
  font-size:.76rem;
  font-weight:900;
  pointer-events:none;
}
.my-card-image-status.status-pending { background:#b26a12; }
.my-card-image-status.status-approved { background:#137a55; }
.my-card-image-status.status-rejected { background:#a63b3b; }

@media (max-width: 760px) {
  .admin-image-group-footer {
    align-items:stretch;
    flex-direction:column;
    padding:14px;
  }
  .admin-image-group-footer form,
  .admin-image-group-footer .approve-all-images-btn,
  .admin-review-approve-all button { width:100%; min-width:0; }

  .my-properties-page .my-card-pro { gap:10px; }
  .my-properties-page .my-card-media {
    width:100%;
    min-height:0;
    max-height:260px;
    aspect-ratio:4 / 3;
  }
  .my-properties-page .my-card-inline-gallery,
  .my-properties-page .my-card-gallery-open,
  .my-properties-page .my-card-media > a,
  .my-properties-page .my-card-media .image-placeholder {
    width:100%;
    height:100%;
    min-height:0;
    aspect-ratio:4 / 3;
  }
  .my-properties-page .my-card-media img,
  .my-properties-page .my-card-media .image-placeholder {
    width:100%;
    height:100%;
    min-height:0;
    max-height:260px;
    object-fit:cover;
  }
  .my-properties-page .my-card-body { gap:9px; }
}

@media (max-width: 420px) {
  .my-properties-page .my-card-media,
  .my-properties-page .my-card-media img,
  .my-properties-page .my-card-media .image-placeholder { max-height:230px; }
}

﻿/* Darna_improved270: remove green frames around listing-card images and use the freed media space. */
.property-card-modern[data-property-card] .card-media,
.property-card-modern[data-mobile-classified-card="243"] .card-media,
.listing-card[data-property-card] .card-media {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.property-card-modern[data-property-card] .card-inline-gallery,
.property-card-modern[data-property-card] .card-media-detail-link,
.property-card-modern[data-mobile-classified-card="243"] .card-inline-gallery,
.property-card-modern[data-mobile-classified-card="243"] .card-media-detail-link {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.property-card-modern[data-property-card] .property-image,
.property-card-modern[data-mobile-classified-card="243"] .property-image,
.listing-card[data-property-card] .property-image {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  border: 0 !important;
  box-shadow: none !important;
}

.property-card-modern[data-property-card] .image-placeholder,
.property-card-modern[data-mobile-classified-card="243"] .image-placeholder,
.listing-card[data-property-card] .image-placeholder {
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.property-card-modern[data-property-card] .smart-property-placeholder .placeholder-asset,
.property-card-modern[data-mobile-classified-card="243"] .smart-property-placeholder .placeholder-asset,
.listing-card[data-property-card] .smart-property-placeholder .placeholder-asset {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center !important;
}

@media (max-width: 760px) {
  .property-card-modern[data-mobile-classified-card="243"] .card-media {
    border-radius: 10px !important;
  }

  .property-card-modern[data-mobile-classified-card="243"] .card-inline-gallery,
  .property-card-modern[data-mobile-classified-card="243"] .card-media-detail-link,
  .property-card-modern[data-mobile-classified-card="243"] .property-image,
  .property-card-modern[data-mobile-classified-card="243"] .image-placeholder {
    border-radius: inherit !important;
  }
}

html[data-theme="dark"] .property-card-modern[data-property-card] .card-media,
html[data-theme="dark"] .property-card-modern[data-mobile-classified-card="243"] .card-media,
html[data-theme="dark"] .listing-card[data-property-card] .card-media {
  background: transparent !important;
  box-shadow: none !important;
}

﻿/* Darna_improved270: keep result-header actions unique and label the bottom edit-search action clearly. */
.bottom-search-reset .bottom-search-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 170px;
  white-space: nowrap;
  direction: rtl;
}

.bottom-search-reset .bottom-search-link > span {
  display: inline;
  visibility: visible;
  opacity: 1;
}

.bottom-search-reset .bottom-search-link .ui-icon {
  flex: 0 0 auto;
}

@media (max-width: 760px) {
  .bottom-search-reset .bottom-search-link,
  .bottom-search-reset .bottom-reset-link {
    flex: 1 1 150px;
    width: auto;
  }
}

/* Darna_improved270: final image-state, accordion, floor hint and benefits layout. */
.upload-preview-grid.unified-image-grid {
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  align-items: stretch;
  overflow-x: hidden;
}

.unified-image-card,
.unified-image-card *,
.upload-preview-card,
.upload-preview-item,
.upload-preview-item img {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
}

.unified-image-card {
  position: relative;
  width: 100%;
}

.unified-image-card .upload-preview-item {
  width: 100%;
}

.unified-image-card .upload-preview-item img {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  display: block;
}

.unified-image-card .upload-preview-name {
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.unified-image-card .upload-drag-handle {
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
}

.unified-image-card.is-drop-target {
  outline: 3px solid rgba(13, 123, 92, .45);
  outline-offset: 3px;
}

.admin-review-target-highlight {
  outline: 3px solid rgba(24, 167, 125, .65);
  outline-offset: 4px;
  box-shadow: 0 0 0 8px rgba(24, 167, 125, .14);
}

.unified-image-card .upload-preview-remove,
.existing-image-delete {
  display: inline-grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  border: 1px solid rgba(220, 38, 38, .24);
  background: #fff1f2;
  color: #b42318;
  font-size: 1.3rem;
  font-weight: 900;
  line-height: 1;
}

.unified-image-card .provider-primary-note {
  min-height: 2.2rem;
  align-items: center;
}

[data-floor-optional] .small-meta[hidden] {
  display: none !important;
}

.darna-accordion-toggle,
.advanced-filter > summary::after,
.advanced-features > summary::after,
.save-search-accordion-sign,
.home-trust-disclosure > summary::after {
  inline-size: 44px !important;
  block-size: 44px !important;
  border-radius: 999px !important;
  display: inline-grid !important;
  place-items: center !important;
  border: 1px solid rgba(13, 123, 92, .42) !important;
  background: #18a77d !important;
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(13, 123, 92, .20) !important;
  font-size: 1.75rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-align: center !important;
  flex: 0 0 44px !important;
}

.advanced-filter > summary::after,
.advanced-features > summary::after,
.home-trust-disclosure > summary::after {
  content: "+" !important;
}

.advanced-filter[open] > summary::after,
.advanced-features[open] > summary::after,
.home-trust-disclosure[open] > summary::after {
  content: "−" !important;
  background: #24364a !important;
}

.save-search-accordion-sign {
  transform: none !important;
}

.save-search-accordion.is-open .save-search-accordion-sign {
  background: #24364a !important;
}

.advanced-features {
  border: 1px solid rgba(82, 114, 128, .42);
  border-radius: 18px;
  background: rgba(255, 255, 255, .86);
  padding: 0;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(16, 24, 40, .06);
}

.advanced-features > summary {
  min-height: 78px;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
}


.advanced-features .feature-row {
  margin-block-end: 18px;
}

.home-trust-disclosure > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.home-trust-disclosure > summary::-webkit-details-marker,
.advanced-filter > summary::-webkit-details-marker,
.advanced-features > summary::-webkit-details-marker {
  display: none;
}

.home-trust-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-trust-row > div {
  min-height: 100%;
}

html[data-theme="dark"] .advanced-features {
  border-color: rgba(64, 216, 169, .20);
  background: rgba(7, 19, 27, .96);
}

html[data-theme="dark"] .unified-image-card .upload-preview-remove,
html[data-theme="dark"] .existing-image-delete {
  background: rgba(127, 29, 29, .46);
  color: #fecaca;
  border-color: rgba(248, 113, 113, .34);
}

@media (max-width: 900px) {
  .home-trust-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .upload-preview-grid.unified-image-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-trust-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .darna-accordion-toggle,
  .advanced-filter > summary::after,
  .advanced-features > summary::after,
  .save-search-accordion-sign,
  .home-trust-disclosure > summary::after {
    inline-size: 42px !important;
    block-size: 42px !important;
    flex-basis: 42px !important;
  }
}

/* Darna_improved296: the saved-search accordion is the single visual source of truth.
   Only real accordion toggles use this component; unrelated add/create controls keep
   their own semantics and are intentionally untouched. */

/* Disable every historical pseudo-element icon before applying the shared component. */
.advanced-filter > summary::before,
.advanced-filter > summary::after,
.advanced-features > summary::before,
.advanced-features > summary::after,
.home-trust-disclosure > summary::before,
.home-trust-disclosure > summary::after,
[data-darna-accordion-header]::before,
[data-darna-accordion-header]::after {
  content: none !important;
  display: none !important;
}

/* One header contract, copied from the final saved-search card. */
[data-darna-accordion-header] {
  inline-size: 100% !important;
  min-inline-size: 0 !important;
  min-block-size: 78px !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 15px 18px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: inherit !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  direction: rtl !important;
  text-align: start !important;
  cursor: pointer !important;
  list-style: none !important;
}

[data-darna-accordion-header]::-webkit-details-marker,
[data-darna-accordion-header]::marker {
  display: none !important;
  content: "" !important;
}

/* Text always stays on the right; the shared plus/minus always stays on the left. */
[data-darna-accordion-header] > .darna-accordion-copy {
  order: 1 !important;
  flex: 1 1 auto !important;
  min-inline-size: 0 !important;
  margin: 0 !important;
  display: grid !important;
  gap: 5px !important;
  direction: rtl !important;
  text-align: right !important;
}

[data-darna-accordion-header] > .darna-accordion-copy strong {
  margin: 0 !important;
  color: inherit;
  font-size: clamp(1.04rem, 4vw, 1.2rem) !important;
  font-weight: 950 !important;
  line-height: 1.25 !important;
}

[data-darna-accordion-header] > .darna-accordion-copy small,
[data-darna-accordion-header] > .darna-accordion-copy > span {
  margin: 0 !important;
  color: var(--muted, #60727c);
  font-size: clamp(.86rem, 3.4vw, .96rem) !important;
  font-weight: 800 !important;
  line-height: 1.55 !important;
}

/* Exact saved-search reference toggle. No card-specific size, offset or transform. */
[data-darna-accordion-header] > [data-darna-accordion-toggle] {
  order: 2 !important;
  inline-size: 46px !important;
  block-size: 46px !important;
  min-inline-size: 46px !important;
  min-block-size: 46px !important;
  max-inline-size: 46px !important;
  max-block-size: 46px !important;
  flex: 0 0 46px !important;
  box-sizing: border-box !important;
  margin: 0 0 0 0 !important;
  padding: 0 0 2px !important;
  border: 1px solid rgba(48, 214, 166, .5) !important;
  border-radius: 999px !important;
  outline: 0 !important;
  background: #21b98d !important;
  color: #fff !important;
  box-shadow: 0 12px 26px rgba(33, 185, 141, .24) !important;
  display: inline-grid !important;
  place-items: center !important;
  overflow: hidden !important;
  direction: ltr !important;
  writing-mode: horizontal-tb !important;
  text-align: center !important;
  text-indent: 0 !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 2rem !important;
  font-weight: 950 !important;
  font-style: normal !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  transform: none !important;
  translate: none !important;
  rotate: none !important;
  scale: 1 !important;
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease !important;
  pointer-events: none !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}

[data-darna-accordion-header]:hover > [data-darna-accordion-toggle] {
  box-shadow: 0 14px 30px rgba(33, 185, 141, .30) !important;
}

[data-darna-accordion-header]:focus-visible {
  outline: 3px solid rgba(24, 167, 125, .35) !important;
  outline-offset: 3px !important;
  border-radius: 14px !important;
}

/* Open state is also shared: only the character and reference background change. */
.advanced-filter[open] > [data-darna-accordion-header] > [data-darna-accordion-toggle],
.advanced-features[open] > [data-darna-accordion-header] > [data-darna-accordion-toggle],
.home-trust-disclosure[open] > [data-darna-accordion-header] > [data-darna-accordion-toggle],
.save-search-accordion.is-open > [data-darna-accordion-header] > [data-darna-accordion-toggle],
[data-darna-accordion-header][aria-expanded="true"] > [data-darna-accordion-toggle] {
  background: #213650 !important;
  border-color: rgba(148, 163, 184, .38) !important;
  transform: none !important;
}

/* Keep the existing card bodies and features; only the accordion frame is normalized. */
.advanced-filter,
.advanced-features,
.save-search-accordion.save-search-advanced-card,
.home-trust-disclosure {
  overflow: hidden;
}

.advanced-features {
  padding: 0 !important;
}

.advanced-features .feature-type-hint,
.advanced-features .feature-row {
  margin-inline: 18px;
}

/* Existing image-state hardening retained from the previous release. */
.upload-panel,
.upload-preview-grid.unified-image-grid,
.unified-image-card,
.unified-image-card .upload-preview-item,
.unified-image-card .upload-preview-item img {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.upload-preview-grid.unified-image-grid {
  overflow-x: clip;
  overscroll-behavior-x: contain;
}

.unified-image-card .upload-drag-handle {
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.unified-image-grid.is-touch-sorting {
  cursor: grabbing;
}

.unified-image-grid.is-touch-sorting .unified-image-card:not(.is-dragging) {
  transition: transform .12s ease;
}

html[data-theme="dark"] [data-darna-accordion-header] > .darna-accordion-copy small,
html[data-theme="dark"] [data-darna-accordion-header] > .darna-accordion-copy > span {
  color: #a9bdc7 !important;
}

@media (max-width: 640px) {
  [data-darna-accordion-header] {
    min-block-size: 86px !important;
    padding: 14px 15px !important;
    gap: 12px !important;
  }

  [data-darna-accordion-header] > [data-darna-accordion-toggle] {
    inline-size: 44px !important;
    block-size: 44px !important;
    min-inline-size: 44px !important;
    min-block-size: 44px !important;
    max-inline-size: 44px !important;
    max-block-size: 44px !important;
    flex-basis: 44px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-darna-accordion-header] > [data-darna-accordion-toggle],
  .unified-image-grid.is-touch-sorting .unified-image-card {
    transition: none !important;
  }
}

/* Darna_improved296: direct, header-safe navigation to pending listing moderation. */

.admin-pending-listings-section,
.admin-pending-listings-section [data-admin-property-row] {
  scroll-margin-top: 120px;
}

.admin-pending-listings-section:focus {
  outline: none;
}

.admin-pending-listing-target {
  position: relative;
}

.admin-pending-listing-target-highlight {
  outline: 3px solid var(--accent, #17b890);
  outline-offset: 4px;
  border-radius: 14px;
  animation: admin-pending-target-pulse-276 1.05s ease-in-out 2;
}

@keyframes admin-pending-target-pulse-276 {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(23, 184, 144, 0);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(23, 184, 144, 0.18);
  }
}

@media (max-width: 760px) {
  .admin-pending-listings-section,
  .admin-pending-listings-section [data-admin-property-row] {
    scroll-margin-top: 96px;
  }

  .admin-pending-listing-target-highlight {
    outline-width: 2px;
    outline-offset: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .admin-pending-listing-target-highlight {
    animation: none;
  }
}

/* Darna_improved280: keep password values visually stable on RTL pages.
   The class remains active when the visibility toggle changes type=password to type=text. */
.password-input-wrap > input.password-input-ltr {
  direction: ltr;
  unicode-bidi: plaintext;
  text-align: left;
}

/* The Arabic wrapper keeps the eye button on the left. Reserve that same side
   after dir=ltr changes the input's own logical inline direction. */
[dir="rtl"] .password-input-wrap > input.password-input-ltr {
  padding-left: 56px;
  padding-right: 12px;
}

/* Preserve the existing mirrored placement if another Darna language uses LTR. */
[dir="ltr"] .password-input-wrap > input.password-input-ltr {
  padding-right: 56px;
  padding-left: 12px;
}

/* Darna_improved296: one canonical mobile quick-search layout.
   Earlier sections still own desktop search, the location chooser and keyboard handling.
   This section alone owns mobile query/type/actions sizing and placement. */

@media (max-width: 760px) {
  .search-panel[data-mobile-quick-search="281"] .simple-search-grid{
    grid-template-columns:minmax(0,1.82fr) minmax(102px,1fr)!important;
    gap:9px!important;
    align-items:stretch!important;
  }

  .search-panel[data-mobile-quick-search="281"] .quick-search-query{
    grid-column:1!important;
  }

  .search-panel[data-mobile-quick-search="281"] .quick-search-type{
    grid-column:2!important;
  }

  .search-panel[data-mobile-quick-search="281"] .quick-search-query,
  .search-panel[data-mobile-quick-search="281"] .quick-search-type{
    min-width:0!important;
    align-self:stretch;
    padding:8px!important;
    border:1px solid rgba(15,118,110,.13)!important;
    border-radius:17px!important;
    background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(240,253,250,.72))!important;
    box-shadow:0 8px 18px rgba(15,23,42,.06)!important;
  }

  .search-panel[data-mobile-quick-search="281"] .quick-search-query label,
  .search-panel[data-mobile-quick-search="281"] .quick-search-type label{
    margin-bottom:6px!important;
    font-size:.88rem!important;
    font-weight:950!important;
    line-height:1.25!important;
  }

  .search-panel[data-mobile-quick-search="281"] .quick-search-query input,
  .search-panel[data-mobile-quick-search="281"] .quick-search-type select{
    width:100%;
    min-width:0;
    min-height:50px!important;
    block-size:50px!important;
    border-radius:15px!important;
    font-size:.95rem!important;
    font-weight:750!important;
  }

  .search-panel[data-mobile-quick-search="281"] .quick-search-query input{
    padding-inline:12px!important;
  }

  .search-panel[data-mobile-quick-search="281"] .quick-search-type select{
    padding-inline:8px 28px!important;
  }

  .search-panel[data-mobile-quick-search="281"] .quick-search-actions{
    grid-column:1/-1!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:center!important;
    gap:7px!important;
    margin-top:2px!important;
  }

  .search-panel[data-mobile-quick-search="281"] .quick-search-actions button{
    width:100%!important;
    min-width:0;
    min-height:44px!important;
    border-radius:15px!important;
    font-size:.92rem!important;
    box-shadow:0 9px 20px rgba(0,132,91,.20)!important;
  }

  .search-panel[data-mobile-quick-search="281"] .quick-search-actions .button.light{
    min-height:42px!important;
    padding-inline:11px!important;
    border-radius:14px!important;
    font-size:.78rem!important;
    opacity:.76!important;
    box-shadow:none!important;
  }

  html[data-theme="dark"] .search-panel[data-mobile-quick-search="281"] .quick-search-query,
  html[data-theme="dark"] .search-panel[data-mobile-quick-search="281"] .quick-search-type{
    background:linear-gradient(180deg,rgba(15,23,42,.92),rgba(6,78,59,.32))!important;
    border-color:rgba(45,212,191,.18)!important;
    box-shadow:0 8px 20px rgba(0,0,0,.20)!important;
  }
}

@media (max-width: 420px) {
  .search-panel[data-mobile-quick-search="281"] .simple-search-grid{
    grid-template-columns:minmax(0,1.74fr) minmax(92px,.96fr)!important;
    gap:7px!important;
  }

  .search-panel[data-mobile-quick-search="281"] .quick-search-query,
  .search-panel[data-mobile-quick-search="281"] .quick-search-type{
    padding:7px!important;
    border-radius:15px!important;
  }

  .search-panel[data-mobile-quick-search="281"] .quick-search-query label,
  .search-panel[data-mobile-quick-search="281"] .quick-search-type label{
    font-size:.81rem!important;
  }

  .search-panel[data-mobile-quick-search="281"] .quick-search-query input,
  .search-panel[data-mobile-quick-search="281"] .quick-search-type select{
    min-height:48px!important;
    block-size:48px!important;
    font-size:.88rem!important;
  }
}

/* Darna_improved296: one final source for public listing-card layout.
   Scope: public result cards only. Search, forms, admin review cards and provider edit cards stay untouched. */

.property-card-modern[data-listing-card-css="282"] {
  min-width: 0;
  overflow: hidden;
}

.property-card-modern[data-listing-card-css="282"] .card-media,
.property-card-modern[data-listing-card-css="282"] .card-inline-gallery,
.property-card-modern[data-listing-card-css="282"] .card-media-detail-link {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.property-card-modern[data-listing-card-css="282"] .property-image,
.property-card-modern[data-listing-card-css="282"] .image-placeholder {
  display: flex !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  border: 0 !important;
  box-shadow: none !important;
}

.property-card-modern[data-listing-card-css="282"] .smart-property-placeholder .placeholder-asset {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center !important;
}

.property-card-modern[data-listing-card-css="282"] .gallery-inline-counter {
  inset-inline-start: auto;
  inset-inline-end: 8px;
}

.property-card-modern[data-listing-card-css="282"] .mobile-classified-media-actions {
  direction: rtl;
}

.property-card-modern[data-listing-card-css="282"] .mobile-classified-favorite,
.property-card-modern[data-listing-card-css="282"] .favorite-card-btn {
  cursor: pointer;
}

.property-card-modern[data-listing-card-css="282"] [data-favorite-button].fav-on .ui-icon,
.property-card-modern[data-listing-card-css="282"] .mobile-classified-favorite.fav-on .ui-icon,
.property-card-modern[data-listing-card-css="282"] .favorite-card-btn.fav-on .ui-icon {
  color: #ef4444;
  stroke: currentColor;
  fill: rgba(239, 68, 68, 0.18);
}

@media (max-width: 760px) {
  .property-results-grid,
  .latest-cards,
  .favorites-grid,
  .provider-listings-grid,
  .similar-listings-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px 8px !important;
    align-items: start !important;
    overflow: visible !important;
  }

  .property-card-modern[data-listing-card-css="282"] {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
    transform: none !important;
  }

  .property-card-modern[data-listing-card-css="282"]:hover,
  .property-card-modern[data-listing-card-css="282"]:focus-within {
    transform: none !important;
    box-shadow: none !important;
  }

  .property-card-modern[data-listing-card-css="282"] .card-media {
    position: relative !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    background: rgba(15, 118, 110, 0.08) !important;
  }

  .property-card-modern[data-listing-card-css="282"] .card-inline-gallery,
  .property-card-modern[data-listing-card-css="282"] .card-media-detail-link,
  .property-card-modern[data-listing-card-css="282"] .property-image,
  .property-card-modern[data-listing-card-css="282"] .image-placeholder {
    border-radius: inherit !important;
  }

  .property-card-modern[data-listing-card-css="282"] .image-placeholder {
    padding: 12px !important;
  }

  .property-card-modern[data-listing-card-css="282"] .image-placeholder .placeholder-icon,
  .property-card-modern[data-listing-card-css="282"] .smart-property-placeholder .placeholder-icon {
    width: 58px !important;
    height: 58px !important;
  }

  .property-card-modern[data-listing-card-css="282"] .image-placeholder-title,
  .property-card-modern[data-listing-card-css="282"] .image-placeholder-subtitle,
  .property-card-modern[data-listing-card-css="282"] .card-badges {
    display: none !important;
  }

  .property-card-modern[data-listing-card-css="282"] .mobile-classified-media-actions {
    position: absolute;
    top: 8px;
    inset-inline-end: 8px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    min-height: 36px;
    padding: 3px 5px;
    border-radius: 999px;
    background: rgba(18, 22, 24, 0.78);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(7px);
  }

  .property-card-modern[data-listing-card-css="282"] .mobile-classified-image-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    padding-inline: 3px;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
  }

  .property-card-modern[data-listing-card-css="282"] .mobile-classified-favorite-form {
    display: inline-flex;
    margin: 0;
  }

  .property-card-modern[data-listing-card-css="282"] .mobile-classified-favorite {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #fff;
    box-shadow: none;
  }

  .property-card-modern[data-listing-card-css="282"] .mobile-classified-favorite.fav-on {
    color: #ef4444;
    background: rgba(255, 255, 255, 0.96);
  }

  .property-card-modern[data-listing-card-css="282"] .mobile-classified-favorite-label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }

  .property-card-modern[data-listing-card-css="282"] .card-content {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    min-height: 82px !important;
    padding: 7px 3px 2px !important;
    gap: 2px !important;
    overflow: hidden !important;
    background: transparent !important;
  }

  .property-card-modern[data-listing-card-css="282"] .compact-card-topline,
  .property-card-modern[data-listing-card-css="282"] .card-address,
  .property-card-modern[data-listing-card-css="282"] .price-context-row,
  .property-card-modern[data-listing-card-css="282"] .converted-price-line,
  .property-card-modern[data-listing-card-css="282"] .compact-listing-summary,
  .property-card-modern[data-listing-card-css="282"] .provider-mini,
  .property-card-modern[data-listing-card-css="282"] .card-actions-user,
  .property-card-modern[data-listing-card-css="282"] .card-phone-reveal,
  .property-card-modern[data-listing-card-css="282"] .card-contact-panel {
    display: none !important;
  }

  .property-card-modern[data-listing-card-css="282"] .card-location {
    order: 1;
    display: block !important;
    min-width: 0;
    margin: 0 !important;
    color: #667085 !important;
    font-size: 12px !important;
    font-weight: 750 !important;
    line-height: 1.25 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .property-card-modern[data-listing-card-css="282"] h2 {
    order: 2;
    display: -webkit-box !important;
    min-height: 2.5em !important;
    max-height: 2.5em !important;
    margin: 0 !important;
    color: var(--text) !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    overflow: hidden !important;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .property-card-modern[data-listing-card-css="282"] .card-title-detail-link {
    display: inline !important;
    color: inherit !important;
    white-space: normal !important;
  }

  .property-card-modern[data-listing-card-css="282"] .listing-price-panel {
    order: 3;
    display: block !important;
    min-width: 0 !important;
    margin: 1px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: hidden !important;
  }

  .property-card-modern[data-listing-card-css="282"] .listing-price-panel::before {
    display: none !important;
  }

  .property-card-modern[data-listing-card-css="282"] .card-price-main.structured-price {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: baseline !important;
    justify-content: flex-start !important;
    min-width: 0 !important;
    gap: 4px !important;
    color: var(--brand) !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .property-card-modern[data-listing-card-css="282"] .card-price-main .price-number {
    color: inherit !important;
    font-size: 17px !important;
    font-weight: 950 !important;
    letter-spacing: 0 !important;
  }

  .property-card-modern[data-listing-card-css="282"] .card-price-main .price-unit,
  .property-card-modern[data-listing-card-css="282"] .card-price-main .price-currency {
    min-width: 0;
    color: inherit !important;
    font-size: 13px !important;
    font-weight: 900 !important;
  }

  html[data-theme="dark"] .property-card-modern[data-listing-card-css="282"] .card-location {
    color: #aeb8c4 !important;
  }

  html[data-theme="dark"] .property-card-modern[data-listing-card-css="282"] h2,
  html[data-theme="dark"] .property-card-modern[data-listing-card-css="282"] .card-title-detail-link {
    color: #f7fafc !important;
  }

  html[data-theme="dark"] .property-card-modern[data-listing-card-css="282"] .card-price-main.structured-price {
    color: #b9f76c !important;
  }
}

@media (max-width: 340px) {
  .property-results-grid,
  .latest-cards,
  .favorites-grid,
  .provider-listings-grid,
  .similar-listings-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .property-card-modern[data-listing-card-css="282"] .card-content {
    min-height: 76px !important;
  }
}

/* Darna_improved296: canonical dark-mode system layer.
   This file remains the shared dark-mode system foundation. It does not change app logic.
   Darna_improved296 adds a final green palette lock in section 171 so future dark-theme
   styling cannot silently reintroduce decorative orange accents. */

html[data-theme="dark"] {
  --darna-dark-bg: #0b1220;
  --darna-dark-bg-soft: #101827;
  --darna-dark-surface: #162033;
  --darna-dark-surface-raised: #1b2940;
  --darna-dark-surface-strong: #22324d;
  --darna-dark-field: #111a2b;
  --darna-dark-border: #3a4a64;
  --darna-dark-border-strong: #53637c;
  --darna-dark-text: #eef2f7;
  --darna-dark-title: #f8fafc;
  --darna-dark-muted: #c0cad7;
  --darna-dark-placeholder: #a6b4c6;
  --darna-dark-accent: #24c48e;
  --darna-dark-accent-soft: rgba(36,196,142,.16);
  --darna-dark-green: #7dd3b0;
  --darna-dark-green-soft: rgba(125, 211, 176, .15);
  --darna-dark-danger: #f87171;
  --darna-dark-danger-soft: rgba(127, 29, 29, .72);
  --darna-dark-warning: #facc15;
  --darna-dark-warning-soft: rgba(63,63,10,.52);
  --darna-dark-shadow: 0 18px 46px rgba(0, 0, 0, .32);

  --bg: var(--darna-dark-bg);
  --card: var(--darna-dark-surface);
  --text: var(--darna-dark-text);
  --muted: var(--darna-dark-muted);
  --border: var(--darna-dark-border);
  --brand: var(--darna-dark-accent);
  --brand-dark: #7de2bf;
  --brand-soft: var(--darna-dark-accent-soft);
  color-scheme: dark;
}

html[data-theme="dark"] body {
  background:
    radial-gradient(circle at 12% -8%, rgba(125,226,191,.12), transparent 34%),
    radial-gradient(circle at 88% 10%, rgba(125, 211, 176, .10), transparent 30%),
    linear-gradient(180deg, var(--darna-dark-bg) 0%, #0f172a 48%, var(--darna-dark-bg) 100%) !important;
  color: var(--darna-dark-text) !important;
}

html[data-theme="dark"] .darna-dark-surface,
html[data-theme="dark"] header,
html[data-theme="dark"] .nav-menu-panel,
html[data-theme="dark"] .search-box,
html[data-theme="dark"] .search-panel,
html[data-theme="dark"] .search-toolbar,
html[data-theme="dark"] .results-overview,
html[data-theme="dark"] .results-summary,
html[data-theme="dark"] .active-filter-panel,
html[data-theme="dark"] .card,
html[data-theme="dark"] .property-card-modern,
html[data-theme="dark"] .detail-card,
html[data-theme="dark"] .detail-title-card,
html[data-theme="dark"] .detail-side-card,
html[data-theme="dark"] .detail-gallery-card,
html[data-theme="dark"] .contact-panel,
html[data-theme="dark"] .form-card,
html[data-theme="dark"] .form-section,
html[data-theme="dark"] .price-composer,
html[data-theme="dark"] .upload-panel,
html[data-theme="dark"] .upload-preview-card,
html[data-theme="dark"] .provider-profile-box,
html[data-theme="dark"] .provider-profile-hero,
html[data-theme="dark"] .provider-trust-card,
html[data-theme="dark"] .provider-property-card,
html[data-theme="dark"] .profile-box,
html[data-theme="dark"] .profile-item,
html[data-theme="dark"] .pending-box,
html[data-theme="dark"] .report-box,
html[data-theme="dark"] .report-review-card,
html[data-theme="dark"] .report-reason-card,
html[data-theme="dark"] .message-review-card,
html[data-theme="dark"] .messages-page-pro,
html[data-theme="dark"] .saved-search-card,
html[data-theme="dark"] .saved-search-empty,
html[data-theme="dark"] .save-search-advanced-card,
html[data-theme="dark"] .empty-state,
html[data-theme="dark"] .empty-state-friendly,
html[data-theme="dark"] .admin-stat-card,
html[data-theme="dark"] .admin-insight-card,
html[data-theme="dark"] .admin-email-card,
html[data-theme="dark"] .admin-work-card,
html[data-theme="dark"] .admin-image-card,
html[data-theme="dark"] .risk-card,
html[data-theme="dark"] .notice,
html[data-theme="dark"] .flash {
  background: linear-gradient(180deg, var(--darna-dark-surface-raised), var(--darna-dark-surface)) !important;
  border-color: var(--darna-dark-border-strong) !important;
  color: var(--darna-dark-text) !important;
  box-shadow: var(--darna-dark-shadow) !important;
}

html[data-theme="dark"] .darna-dark-text,
html[data-theme="dark"] main,
html[data-theme="dark"] footer,
html[data-theme="dark"] section,
html[data-theme="dark"] article,
html[data-theme="dark"] p,
html[data-theme="dark"] li,
html[data-theme="dark"] td,
html[data-theme="dark"] th,
html[data-theme="dark"] .container,
html[data-theme="dark"] .description,
html[data-theme="dark"] .card-description,
html[data-theme="dark"] .property-description,
html[data-theme="dark"] .detail-description,
html[data-theme="dark"] .message-body,
html[data-theme="dark"] .report-message,
html[data-theme="dark"] .provider-card-body {
  color: var(--darna-dark-text) !important;
}

html[data-theme="dark"] .darna-dark-title,
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] strong,
html[data-theme="dark"] b,
html[data-theme="dark"] label,
html[data-theme="dark"] .card-title,
html[data-theme="dark"] .card-title-detail-link,
html[data-theme="dark"] .price,
html[data-theme="dark"] .price-number,
html[data-theme="dark"] .price-unit,
html[data-theme="dark"] .price-currency,
html[data-theme="dark"] .structured-price,
html[data-theme="dark"] .admin-stat-value,
html[data-theme="dark"] .provider-profile-title,
html[data-theme="dark"] .message-card-title {
  color: var(--darna-dark-title) !important;
}

html[data-theme="dark"] .darna-dark-muted,
html[data-theme="dark"] small,
html[data-theme="dark"] .meta,
html[data-theme="dark"] .mini-meta,
html[data-theme="dark"] .small-meta,
html[data-theme="dark"] .field-help,
html[data-theme="dark"] .form-hint,
html[data-theme="dark"] .auth-hint,
html[data-theme="dark"] .hint-text,
html[data-theme="dark"] .saved-search-summary,
html[data-theme="dark"] .pagination-status,
html[data-theme="dark"] .price-context-label,
html[data-theme="dark"] .provider-mini,
html[data-theme="dark"] [data-darna-accordion-header] > .darna-accordion-copy small,
html[data-theme="dark"] [data-darna-accordion-header] > .darna-accordion-copy > span {
  color: var(--darna-dark-muted) !important;
}

html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] .contact-panel textarea[readonly],
html[data-theme="dark"] .card-contact-form textarea {
  background: var(--darna-dark-field) !important;
  border-color: var(--darna-dark-border-strong) !important;
  color: var(--darna-dark-title) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 10px 24px rgba(0,0,0,.18) !important;
  caret-color: var(--darna-dark-accent);
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
  color: var(--darna-dark-placeholder) !important;
  opacity: 1;
}

html[data-theme="dark"] input:focus,
html[data-theme="dark"] select:focus,
html[data-theme="dark"] textarea:focus,
html[data-theme="dark"] .button:focus-visible,
html[data-theme="dark"] button:focus-visible,
html[data-theme="dark"] a:focus-visible,
html[data-theme="dark"] [data-darna-accordion-header]:focus-visible {
  border-color: var(--darna-dark-accent) !important;
  outline: 3px solid rgba(125,226,191,.24) !important;
  outline-offset: 2px;
}

html[data-theme="dark"] .button,
html[data-theme="dark"] button[type="submit"],
html[data-theme="dark"] .primary-button,
html[data-theme="dark"] .search-button {
  background: linear-gradient(135deg, #00a870, var(--darna-dark-accent)) !important;
  border-color: rgba(36,196,142,.76) !important;
  color: #111827 !important;
  box-shadow: 0 14px 30px rgba(36,196,142,.24) !important;
}

html[data-theme="dark"] .button.light,
html[data-theme="dark"] .button.ghost,
html[data-theme="dark"] .button.secondary,
html[data-theme="dark"] .icon-btn,
html[data-theme="dark"] .mini-clear-filter,
html[data-theme="dark"] .tab:not(.active),
html[data-theme="dark"] .nav-link,
html[data-theme="dark"] .lang-link {
  background: var(--darna-dark-surface-strong) !important;
  border-color: var(--darna-dark-border-strong) !important;
  color: var(--darna-dark-text) !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .darna-dark-chip,
html[data-theme="dark"] .home-section-card,
html[data-theme="dark"] .popular-city-card,
html[data-theme="dark"] .quick-card,
html[data-theme="dark"] .active-filter-chip,
html[data-theme="dark"] .result-filter-chip,
html[data-theme="dark"] .selected-choice-chip,
html[data-theme="dark"] .feature-chip,
html[data-theme="dark"] .badge,
html[data-theme="dark"] .status-pill,
html[data-theme="dark"] .listing-type-badge,
html[data-theme="dark"] .admin-role-badge,
html[data-theme="dark"] .provider-badge {
  background: var(--darna-dark-surface-strong) !important;
  border-color: var(--darna-dark-border-strong) !important;
  color: #d9e2ec !important;
}

html[data-theme="dark"] .price-panel,
html[data-theme="dark"] .listing-price-panel,
html[data-theme="dark"] .detail-price-panel,
html[data-theme="dark"] .structured-price {
  background: linear-gradient(135deg, var(--darna-dark-accent-soft), rgba(125,211,176,.08)) !important;
  border-color: rgba(125,226,191,.36) !important;
  color: var(--darna-dark-title) !important;
}

html[data-theme="dark"] .admin-stat-card,
html[data-theme="dark"] .profile-item,
html[data-theme="dark"] .provider-trust-card {
  background: linear-gradient(135deg, var(--darna-dark-surface-strong), var(--darna-dark-surface)) !important;
  border-color: rgba(125,211,176,.28) !important;
}

html[data-theme="dark"] .success,
html[data-theme="dark"] .flash.success,
html[data-theme="dark"] .trust-positive,
html[data-theme="dark"] .approved {
  background: rgba(20, 83, 45, .42) !important;
  border-color: rgba(125,211,176,.38) !important;
  color: #dcfce7 !important;
}

html[data-theme="dark"] .warning,
html[data-theme="dark"] .flash.warning,
html[data-theme="dark"] .pending {
  background: var(--darna-dark-warning-soft) !important;
  border-color: rgba(253,224,71,.36) !important;
  color: #fef3c7 !important;
}

html[data-theme="dark"] .wizard-validation,
html[data-theme="dark"] .upload-limit-message,
html[data-theme="dark"] .error,
html[data-theme="dark"] .danger,
html[data-theme="dark"] .flash.error {
  background: var(--darna-dark-danger-soft) !important;
  border-color: rgba(248,113,113,.58) !important;
  color: #fee2e2 !important;
}

@media (max-width: 760px) {
  html[data-theme="dark"] .search-box,
  html[data-theme="dark"] .search-panel,
  html[data-theme="dark"] .form-card,
  html[data-theme="dark"] .detail-card,
  html[data-theme="dark"] .contact-panel,
  html[data-theme="dark"] .property-card-modern,
  html[data-theme="dark"] .admin-stat-card {
    box-shadow: 0 14px 34px rgba(0,0,0,.36) !important;
  }
}

/* Darna_improved296: desktop-only image proportions for public listing cards and property details.
   Mobile and tablet layouts remain owned by their existing responsive layers. */

@media (min-width: 1024px) {
  .property-card-modern[data-listing-card-css="282"] .card-media {
    width: 100%;
    height: clamp(158px, 10.5vw, 188px);
    min-height: 158px;
    max-height: 188px;
    aspect-ratio: auto;
    overflow: hidden;
  }

  .property-card-modern[data-listing-card-css="282"] .card-inline-gallery,
  .property-card-modern[data-listing-card-css="282"] .card-media-detail-link {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .property-card-modern[data-listing-card-css="282"] .property-image,
  .property-card-modern[data-listing-card-css="282"] .image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    object-fit: cover;
    object-position: center;
  }

  .property-card-modern[data-listing-card-css="282"] .card-content {
    padding: 14px 15px 15px;
    gap: 5px;
  }

  .detail-gallery-section .featured-gallery-main-button {
    width: 100%;
    height: clamp(340px, 34vw, 500px);
    max-height: 500px;
    overflow: hidden;
  }

  .detail-gallery-section .featured-gallery-main {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center;
  }

  .detail-gallery-section .gallery-thumbs {
    grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
    gap: 9px;
  }

  .detail-gallery-section .gallery-thumb-button img {
    height: 78px;
    object-fit: cover;
  }
}

/* Darna_improved296: desktop-only layout refinement.
   The layer improves wide-screen use, card rhythm and detail-page readability.
   It deliberately does not change mobile/tablet rules, markup, JavaScript or data flow. */

@media (min-width: 1024px) {
  .container {
    width: min(1320px, calc(100% - 48px));
  }

  .property-results-grid,
  .latest-cards,
  .favorites-grid,
  .provider-listings-grid,
  .similar-listings-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
  }

  .property-card-modern[data-listing-card-css="282"] {
    height: 100%;
    border-radius: 18px;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
  }

  .property-card-modern[data-listing-card-css="282"]:hover,
  .property-card-modern[data-listing-card-css="282"]:focus-within {
    transform: translateY(-3px);
    border-color: rgba(15, 118, 110, 0.24);
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.12);
  }

  .property-card-modern[data-listing-card-css="282"] .card-content {
    min-height: 0;
    padding: 14px 16px 16px;
    gap: 6px;
  }

  .property-card-modern[data-listing-card-css="282"] h2 {
    display: -webkit-box;
    min-height: 2.64em;
    max-height: 2.64em;
    margin-bottom: 5px;
    overflow: hidden;
    line-height: 1.32;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .property-card-modern[data-listing-card-css="282"] .card-location,
  .property-card-modern[data-listing-card-css="282"] .card-address {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .property-card-modern[data-listing-card-css="282"] .compact-listing-summary {
    min-height: 38px;
    align-content: center;
  }

  .property-card-modern[data-listing-card-css="282"] .provider-mini {
    min-height: 42px;
    align-content: center;
  }

  .property-card-modern[data-listing-card-css="282"] .card-actions-user {
    margin-top: auto;
  }

  .property-card-modern[data-listing-card-css="282"] .card-actions-user > *,
  .property-card-modern[data-listing-card-css="282"] .card-actions-user form,
  .property-card-modern[data-listing-card-css="282"] .card-actions-user button {
    min-width: 0;
  }

  .detail-hero {
    grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.75fr);
    gap: 24px;
  }

  .detail-title-card,
  .detail-contact-card,
  .detail-gallery-section,
  .detail-info-grid,
  .detail-provider-card,
  .detail-bottom-actions {
    border-radius: 22px;
  }

  .detail-title-card {
    padding: 22px;
  }

  .detail-highlight-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .detail-info-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .detail-info-grid .full-width {
    grid-column: 1 / -1;
  }

  .detail-bottom-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
  }

  .detail-bottom-actions form {
    margin: 0;
  }

  .detail-gallery-section .gallery-thumbs {
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  }
}

@media (min-width: 1500px) {
  .container {
    width: min(1500px, calc(100% - 64px));
  }

  .property-results-grid,
  .latest-cards,
  .favorites-grid,
  .provider-listings-grid,
  .similar-listings-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
  }
}

@media (prefers-reduced-motion: reduce) and (min-width: 1024px) {
  .property-card-modern[data-listing-card-css="282"] {
    transition: none;
  }

  .property-card-modern[data-listing-card-css="282"]:hover,
  .property-card-modern[data-listing-card-css="282"]:focus-within {
    transform: none;
  }
}

/* Darna_improved296: responsive Syria hero image used only in the upper
   home-page hero. Full-page backgrounds, content, cards and footer remain
   intentionally untouched. */

.hero-home,
.ramadan-season .hero-home {
  min-height: clamp(330px, 28vw, 400px);
  background:
    linear-gradient(
      270deg,
      rgba(255, 255, 255, .94) 0%,
      rgba(255, 255, 255, .78) 36%,
      rgba(255, 255, 255, .28) 72%,
      rgba(255, 255, 255, .10) 100%
    ),
    url("/static/img/darna_top_background_desktop.png")
      center center / cover no-repeat;
}

html[data-theme="dark"] .hero-home,
html[data-theme="dark"] .ramadan-season .hero-home {
  background:
    linear-gradient(
      270deg,
      rgba(7, 18, 16, .92) 0%,
      rgba(7, 18, 16, .76) 38%,
      rgba(7, 18, 16, .30) 74%,
      rgba(7, 18, 16, .12) 100%
    ),
    url("/static/img/darna_top_background_desktop.png")
      center center / cover no-repeat;
}

.hero-home .hero-copy {
  position: relative;
  z-index: 1;
  max-width: 650px;
}

@media (max-width: 640px) {
  .hero-home,
  .ramadan-season .hero-home {
    min-height: clamp(230px, 63vw, 290px);
    padding: 26px 18px 76px;
    background:
      linear-gradient(
        180deg,
        rgba(255, 255, 255, .74) 0%,
        rgba(255, 255, 255, .34) 54%,
        rgba(255, 255, 255, .18) 100%
      ),
      url("/static/img/darna_top_background_mobile.png")
        center center / cover no-repeat;
  }

  html[data-theme="dark"] .hero-home,
  html[data-theme="dark"] .ramadan-season .hero-home {
    background:
      linear-gradient(
        180deg,
        rgba(7, 18, 16, .78) 0%,
        rgba(7, 18, 16, .42) 56%,
        rgba(7, 18, 16, .24) 100%
      ),
      url("/static/img/darna_top_background_mobile.png")
        center center / cover no-repeat;
  }

  .hero-home .hero-copy {
    max-width: 100%;
  }
}

/* Darna_improved296: compact public listing previews on desktop only.
   The complete property data stays in the markup and remains available on the
   detail page; this layer only removes secondary information from result cards.
   Mobile and tablet layouts, JavaScript and backend data flow are untouched. */

@media (min-width: 1024px) {
  .property-card-modern[data-desktop-compact-card="296"] {
    cursor: pointer;
  }

  .property-card-modern[data-desktop-compact-card="296"] .compact-card-topline,
  .property-card-modern[data-desktop-compact-card="296"] .card-address,
  .property-card-modern[data-desktop-compact-card="296"] .price-context-row,
  .property-card-modern[data-desktop-compact-card="296"] .converted-price-line,
  .property-card-modern[data-desktop-compact-card="296"] .provider-mini,
  .property-card-modern[data-desktop-compact-card="296"] .card-actions-user,
  .property-card-modern[data-desktop-compact-card="296"] .card-phone-reveal,
  .property-card-modern[data-desktop-compact-card="296"] .card-contact-panel,
  .property-card-modern[data-desktop-compact-card="296"] .phone-available-badge,
  .property-card-modern[data-desktop-compact-card="296"] .card-badge.verified {
    display: none;
  }

  .property-card-modern[data-desktop-compact-card="296"] .card-badges {
    top: 9px;
    inset-inline-start: 9px;
    gap: 5px;
    max-width: calc(100% - 58px);
  }

  .property-card-modern[data-desktop-compact-card="296"] .card-badge {
    min-height: 25px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 10.5px;
    line-height: 1.1;
  }

  .property-card-modern[data-desktop-compact-card="296"] .mobile-classified-media-actions {
    position: absolute;
    top: 9px;
    left: 9px;
    right: auto;
    z-index: 6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 34px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 5px 16px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(8px);
  }

  .property-card-modern[data-desktop-compact-card="296"] .mobile-classified-media-actions:empty {
    display: none;
  }

  .property-card-modern[data-desktop-compact-card="296"] .mobile-classified-favorite-form {
    display: inline-flex;
    margin: 0;
  }

  .property-card-modern[data-desktop-compact-card="296"] .mobile-classified-favorite {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #344054;
    box-shadow: none;
  }

  .property-card-modern[data-desktop-compact-card="296"] .mobile-classified-favorite .ui-icon {
    width: 20px;
    height: 20px;
    stroke-width: 2.25;
  }

  .property-card-modern[data-desktop-compact-card="296"] .mobile-classified-favorite.fav-on {
    color: #ef4444;
  }

  .property-card-modern[data-desktop-compact-card="296"] .mobile-classified-favorite-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .property-card-modern[data-desktop-compact-card="296"] .card-content {
    flex: 1 1 auto;
    min-height: 0;
    padding: 10px 12px 12px;
    gap: 4px;
  }

  .property-card-modern[data-desktop-compact-card="296"] h2 {
    display: -webkit-box;
    min-height: 2.48em;
    max-height: 2.48em;
    margin: 0;
    overflow: hidden;
    font-size: 15.5px;
    font-weight: 850;
    line-height: 1.24;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .property-card-modern[data-desktop-compact-card="296"] .card-location {
    display: block;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: #667085;
    font-size: 12.5px;
    font-weight: 750;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .property-card-modern[data-desktop-compact-card="296"] .listing-price-panel {
    display: block;
    min-width: 0;
    margin: 3px 0 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: hidden;
  }

  .property-card-modern[data-desktop-compact-card="296"] .listing-price-panel::before {
    display: none;
  }

  .property-card-modern[data-desktop-compact-card="296"] .card-price-main.structured-price {
    display: flex;
    flex-wrap: nowrap;
    align-items: baseline;
    justify-content: flex-start;
    min-width: 0;
    gap: 4px;
    color: var(--brand-dark);
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .property-card-modern[data-desktop-compact-card="296"] .card-price-main .price-number {
    color: inherit;
    font-size: 20px;
    font-weight: 950;
    line-height: 1.1;
  }

  .property-card-modern[data-desktop-compact-card="296"] .card-price-main .price-unit,
  .property-card-modern[data-desktop-compact-card="296"] .card-price-main .price-currency {
    min-width: 0;
    color: inherit;
    font-size: 12.5px;
    font-weight: 850;
  }

  .property-card-modern[data-desktop-compact-card="296"] .compact-listing-summary {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    min-height: 0;
    margin: 4px 0 0;
    gap: 5px;
    overflow: hidden;
  }

  .property-card-modern[data-desktop-compact-card="296"] .summary-chip {
    min-width: 0;
    max-width: 50%;
    padding: 4px 7px;
    border-radius: 7px;
    font-size: 11.5px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .property-card-modern[data-desktop-compact-card="296"] .summary-chip b {
    font-weight: 800;
  }

  html[data-theme="dark"] .property-card-modern[data-desktop-compact-card="296"] .card-location {
    color: #aeb8c4;
  }

  html[data-theme="dark"] .property-card-modern[data-desktop-compact-card="296"] .card-price-main.structured-price {
    color: var(--darna-dark-accent-light);
  }
}

/* Darna_improved337: compact, balanced "Darna advantages" card.
   Scope is intentionally limited to the home trust disclosure. Content,
   accordion behavior, RTL direction and theme switching remain unchanged. */

.home-trust-bottom {
  margin-block-start: 14px !important;
}

.home-trust-bottom .home-trust-disclosure {
  border: 1px solid rgba(15, 111, 86, .16) !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, .94) !important;
  box-shadow: 0 10px 24px rgba(15, 47, 42, .06) !important;
}

.home-trust-disclosure > [data-darna-accordion-header] {
  min-block-size: 64px !important;
  padding: 11px 14px !important;
  gap: 10px !important;
}

.home-trust-disclosure > [data-darna-accordion-header] > .darna-accordion-copy {
  gap: 3px !important;
}

.home-trust-disclosure > [data-darna-accordion-header] > .darna-accordion-copy strong {
  font-size: clamp(1rem, 2vw, 1.1rem) !important;
  line-height: 1.28 !important;
}

.home-trust-disclosure > [data-darna-accordion-header] > .darna-accordion-copy small {
  font-size: clamp(.8rem, 1.6vw, .9rem) !important;
  line-height: 1.42 !important;
}

.home-trust-disclosure > [data-darna-accordion-header] > [data-darna-accordion-toggle] {
  inline-size: 34px !important;
  block-size: 34px !important;
  min-inline-size: 34px !important;
  min-block-size: 34px !important;
  max-inline-size: 34px !important;
  max-block-size: 34px !important;
  flex-basis: 34px !important;
  padding-block-end: 1px !important;
  font-size: 1.35rem !important;
  border-width: 1px !important;
  box-shadow: 0 7px 16px rgba(33, 185, 141, .18) !important;
}

.home-trust-disclosure > .hero-trust-row {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  grid-auto-rows: 1fr !important;
  align-items: stretch !important;
  gap: 10px !important;
  padding: 12px !important;
  border-block-start: 1px solid rgba(15, 111, 86, .12) !important;
  background: rgba(248, 251, 250, .9) !important;
}

.home-trust-disclosure > .hero-trust-row > div {
  min-inline-size: 0 !important;
  min-block-size: 104px !important;
  block-size: 100% !important;
  box-sizing: border-box !important;
  padding: 13px !important;
  border: 1px solid rgba(15, 111, 86, .11) !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, .96) !important;
  box-shadow: 0 5px 14px rgba(15, 47, 42, .045) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
}

.home-trust-disclosure > .hero-trust-row > div > strong {
  margin: 0 0 5px !important;
  color: #173d35 !important;
  font-size: 15px !important;
  font-weight: 950 !important;
  line-height: 1.35 !important;
}

.home-trust-disclosure > .hero-trust-row > div > span {
  margin: 0 !important;
  color: #62736e !important;
  font-size: 12.5px !important;
  font-weight: 750 !important;
  line-height: 1.55 !important;
}

html[data-theme="dark"] .home-trust-bottom .home-trust-disclosure {
  border-color: rgba(70, 202, 163, .2) !important;
  background: linear-gradient(145deg, rgba(12, 29, 34, .98), rgba(8, 22, 28, .98)) !important;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .2) !important;
}

html[data-theme="dark"] .home-trust-disclosure > .hero-trust-row {
  border-block-start-color: rgba(70, 202, 163, .14) !important;
  background: rgba(8, 22, 28, .72) !important;
}

html[data-theme="dark"] .home-trust-disclosure > .hero-trust-row > div {
  border-color: rgba(70, 202, 163, .14) !important;
  background: rgba(20, 43, 47, .82) !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .13) !important;
}

html[data-theme="dark"] .home-trust-disclosure > .hero-trust-row > div > strong {
  color: #dff8ef !important;
}

html[data-theme="dark"] .home-trust-disclosure > .hero-trust-row > div > span {
  color: #a9c1bb !important;
}

@media (max-width: 900px) {
  .home-trust-disclosure > .hero-trust-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .home-trust-bottom {
    margin-block-start: 8px !important;
  }

  .home-trust-bottom .home-trust-disclosure {
    border-radius: 14px !important;
  }

  .home-trust-disclosure > [data-darna-accordion-header] {
    min-block-size: 58px !important;
    padding: 9px 11px !important;
    gap: 8px !important;
  }

  .home-trust-disclosure > [data-darna-accordion-header] > [data-darna-accordion-toggle] {
    inline-size: 32px !important;
    block-size: 32px !important;
    min-inline-size: 32px !important;
    min-block-size: 32px !important;
    max-inline-size: 32px !important;
    max-block-size: 32px !important;
    flex-basis: 32px !important;
    font-size: 1.2rem !important;
  }

  .home-trust-disclosure > .hero-trust-row {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 7px !important;
    padding: 8px !important;
  }

  .home-trust-disclosure > .hero-trust-row > div {
    min-block-size: 0 !important;
    padding: 10px 11px !important;
    border-radius: 10px !important;
  }

  .home-trust-disclosure > .hero-trust-row > div > strong {
    margin-block-end: 3px !important;
    font-size: 14px !important;
  }

  .home-trust-disclosure > .hero-trust-row > div > span {
    font-size: 12px !important;
    line-height: 1.48 !important;
  }
}

/* Darna_improved338: make accordion plus/minus controls 20% smaller only on phones.
   The complete accordion header remains the interactive target, so the visible control
   can be more compact without reducing reliable touch access. Desktop, RTL, themes,
   content and accordion behavior remain unchanged. */

@media (max-width: 640px) {
  /* Shared mobile accordion control: 44px -> 35.2px and 2rem -> 1.6rem. */
  [data-darna-accordion-header] > [data-darna-accordion-toggle] {
    inline-size: 35.2px !important;
    block-size: 35.2px !important;
    min-inline-size: 35.2px !important;
    min-block-size: 35.2px !important;
    max-inline-size: 35.2px !important;
    max-block-size: 35.2px !important;
    flex-basis: 35.2px !important;
    padding-block-end: 1.6px !important;
    border-width: .8px !important;
    font-size: 1.6rem !important;
    box-shadow: 0 9.6px 20.8px rgba(33, 185, 141, .24) !important;
  }

  /* The Darna-advantages card already used a smaller 32px mobile control.
     Preserve that hierarchy and reduce its visible control by the same 20%. */
  .home-trust-disclosure > [data-darna-accordion-header] > [data-darna-accordion-toggle] {
    inline-size: 25.6px !important;
    block-size: 25.6px !important;
    min-inline-size: 25.6px !important;
    min-block-size: 25.6px !important;
    max-inline-size: 25.6px !important;
    max-block-size: 25.6px !important;
    flex-basis: 25.6px !important;
    padding-block-end: .8px !important;
    border-width: .8px !important;
    font-size: .96rem !important;
    box-shadow: 0 5.6px 12.8px rgba(33, 185, 141, .18) !important;
  }
}

/* Darna_improved339: balance the upper home hero luminance without changing
   the image assets, hero structure or interactions. The bright sun is reduced
   locally with a broad soft gradient; desktop/mobile and light/dark use
   separate positions so the right-side architecture remains visible. */

.hero-home,
.ramadan-season .hero-home {
  background:
    radial-gradient(
      ellipse 54% 132% at 0% 3%,
      rgba(7, 24, 27, .12) 0%,
      rgba(7, 24, 27, .08) 26%,
      rgba(7, 24, 27, .03) 48%,
      rgba(7, 24, 27, 0) 72%
    ),
    linear-gradient(
      270deg,
      rgba(255, 255, 255, .36) 0%,
      rgba(255, 255, 255, .20) 34%,
      rgba(255, 255, 255, .06) 68%,
      rgba(255, 255, 255, 0) 100%
    ),
    url("/static/img/darna_top_background_desktop.png")
      center 48% / cover no-repeat;
}

html[data-theme="dark"] .hero-home,
html[data-theme="dark"] .ramadan-season .hero-home {
  background:
    radial-gradient(
      ellipse 58% 138% at 0% 2%,
      rgba(4, 17, 21, .18) 0%,
      rgba(4, 17, 21, .10) 28%,
      rgba(4, 17, 21, .04) 50%,
      rgba(4, 17, 21, 0) 74%
    ),
    linear-gradient(
      270deg,
      rgba(7, 18, 16, .48) 0%,
      rgba(7, 18, 16, .30) 36%,
      rgba(7, 18, 16, .06) 70%,
      rgba(7, 18, 16, 0) 100%
    ),
    url("/static/img/darna_top_background_desktop.png")
      center 48% / cover no-repeat;
}

@media (max-width: 640px) {
  .hero-home,
  .ramadan-season .hero-home {
    background:
      radial-gradient(
        ellipse 76% 92% at 6% 0%,
        rgba(7, 24, 27, .10) 0%,
        rgba(7, 24, 27, .06) 34%,
        rgba(7, 24, 27, .02) 56%,
        rgba(7, 24, 27, 0) 78%
      ),
      linear-gradient(
        180deg,
        rgba(255, 255, 255, .24) 0%,
        rgba(255, 255, 255, .08) 54%,
        rgba(255, 255, 255, .02) 100%
      ),
      url("/static/img/darna_top_background_mobile.png")
        48% center / cover no-repeat;
  }

  html[data-theme="dark"] .hero-home,
  html[data-theme="dark"] .ramadan-season .hero-home {
    background:
      radial-gradient(
        ellipse 82% 98% at 5% 0%,
        rgba(4, 17, 21, .16) 0%,
        rgba(4, 17, 21, .08) 34%,
        rgba(4, 17, 21, .03) 58%,
        rgba(4, 17, 21, 0) 80%
      ),
      linear-gradient(
        180deg,
        rgba(7, 18, 16, .32) 0%,
        rgba(7, 18, 16, .12) 56%,
        rgba(7, 18, 16, .04) 100%
      ),
      url("/static/img/darna_top_background_mobile.png")
        48% center / cover no-repeat;
  }
}

/* Darna_improved340: precise image-preview remove control and compact Arabic status badges.
   Visual-only: upload, sorting, primary-image and moderation behavior remain unchanged. */

/* Keep the existing button box and position, but draw the X independently from
   font metrics so it remains optically centered across browsers and zoom levels. */
.upload-preview-remove {
  display: grid;
  place-items: center;
  padding: 0;
  line-height: 0;
  font-size: 0;
  isolation: isolate;
}

.upload-preview-remove::before,
.upload-preview-remove::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  inline-size: 12px;
  block-size: 2px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: 50% 50%;
  pointer-events: none;
}

.upload-preview-remove::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.upload-preview-remove::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Informational only: smaller than action controls and kept fully inside the image. */
.upload-image-status-badge {
  inset-block-start: 0.45rem;
  inset-inline-start: 0.45rem;
  min-block-size: 1.35rem;
  max-inline-size: calc(100% - 4.25rem);
  padding: 0.12rem 0.42rem;
  border-width: 1px;
  font-size: 0.66rem;
  line-height: 1.15;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 6px 14px rgba(2, 6, 23, 0.2);
  backdrop-filter: blur(6px);
}

/* A primary badge uses the same logical corner, so place status directly below it. */
.upload-preview-card.is-primary .upload-image-status-badge,
.existing-image-card.is-primary .upload-image-status-badge {
  inset-block-start: 2.3rem;
}

html[data-theme="dark"] .upload-image-status-badge {
  border-color: rgba(216, 255, 241, 0.18);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.28);
}

@media (max-width: 620px) {
  .upload-preview-remove::before,
  .upload-preview-remove::after {
    inline-size: 11px;
    block-size: 2px;
  }

  .upload-image-status-badge {
    inset-block-start: 0.4rem;
    inset-inline-start: 0.4rem;
    min-block-size: 1.2rem;
    max-inline-size: calc(100% - 4rem);
    padding: 0.08rem 0.34rem;
    font-size: 0.6rem;
    line-height: 1.1;
    box-shadow: 0 4px 10px rgba(2, 6, 23, 0.18);
  }

  .upload-preview-card.is-primary .upload-image-status-badge,
  .existing-image-card.is-primary .upload-image-status-badge {
    inset-block-start: 2.15rem;
  }
}

/* Darna_improved336: subtle dark-header brand polish.
   Visual-only refinement: no dimensions, positions, markup or theme logic change. */

html[data-theme="dark"] .brand-logo {
  content:url("/static/img/darna_logo_header_default_dark.png");
  opacity:1;
  filter:none;
}

html[data-theme="dark"] .ramadan-season .brand-logo {
  content:url("/static/img/darna_logo_header_ramadan_dark.png");
}

html[data-theme="dark"] .header-theme-toggle {
  border-color:rgba(125,226,191,.46);
  background:linear-gradient(145deg,#1e5147,#163d36);
  color:#b7e6ae;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 7px 17px rgba(0,0,0,.24),
    0 0 0 1px rgba(36,196,142,.06);
}

html[data-theme="dark"] .header-theme-toggle::before {
  content:"☀";
  color:#b7e6ae;
  font-family:Arial,Tahoma,sans-serif;
  font-size:21px;
  font-weight:700;
  line-height:1;
  text-shadow:0 0 7px rgba(125,226,191,.28);
}

html[data-theme="dark"] .header-theme-toggle:hover,
html[data-theme="dark"] .header-theme-toggle:focus-visible {
  border-color:rgba(125,226,191,.62);
  background:linear-gradient(145deg,#235b4f,#19483e);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 8px 19px rgba(0,0,0,.26),
    0 0 0 1px rgba(36,196,142,.10);
}

/* Darna_improved296: permanent dark-mode Darna-green palette lock.
   This final layer intentionally owns all decorative accents in dark mode.
   Orange remains a light-mode brand option only and must never be introduced
   into a dark-theme selector. Semantic warnings stay yellow and errors red. */

html[data-theme="dark"] {
  --darna-dark-accent:#24c48e;
  --darna-dark-accent-strong:#00a870;
  --darna-dark-accent-light:#7de2bf;
  --darna-dark-accent-soft:rgba(36,196,142,.16);
  --darna-night-accent:#24c48e;
  --darna-night-accent-strong:#00a870;
  --darna-night-accent-soft:rgba(36,196,142,.17);
  --brand:#24c48e;
  --brand-dark:#7de2bf;
  --brand-soft:rgba(36,196,142,.16);
  --darna-dark-warning:#facc15;
  --darna-dark-warning-soft:rgba(63,63,10,.52);
}

html[data-theme="dark"] body {
  background:
    radial-gradient(circle at 12% -8%,rgba(36,196,142,.12),transparent 34%),
    radial-gradient(circle at 88% 10%,rgba(125,226,191,.09),transparent 30%),
    linear-gradient(180deg,var(--darna-dark-bg) 0%,#0f172a 48%,var(--darna-dark-bg) 100%)!important;
}

html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
  caret-color:var(--darna-dark-accent)!important;
}

html[data-theme="dark"] input:focus,
html[data-theme="dark"] select:focus,
html[data-theme="dark"] textarea:focus,
html[data-theme="dark"] .button:focus-visible,
html[data-theme="dark"] button:focus-visible,
html[data-theme="dark"] a:focus-visible,
html[data-theme="dark"] [data-darna-accordion-header]:focus-visible {
  border-color:var(--darna-dark-accent)!important;
  outline-color:rgba(36,196,142,.26)!important;
}

html[data-theme="dark"] .button,
html[data-theme="dark"] button[type="submit"]:not(.mobile-classified-favorite),
html[data-theme="dark"] .primary-button,
html[data-theme="dark"] .search-button,
html[data-theme="dark"] .tab.active,
html[data-theme="dark"] .listing-tabs .tab.active {
  background:linear-gradient(135deg,var(--darna-dark-accent-strong),var(--darna-dark-accent))!important;
  border-color:rgba(36,196,142,.76)!important;
  color:#061b14!important;
  box-shadow:0 14px 30px rgba(36,196,142,.22)!important;
}

html[data-theme="dark"] .button:hover,
html[data-theme="dark"] button[type="submit"]:not(.mobile-classified-favorite):hover,
html[data-theme="dark"] .primary-button:hover,
html[data-theme="dark"] .search-button:hover {
  background:linear-gradient(135deg,#00875f,#20b983)!important;
  border-color:rgba(125,226,191,.82)!important;
}

html[data-theme="dark"] a:not(.button):not(.nav-link):not(.lang-link):not(.card-title-detail-link),
html[data-theme="dark"] .price-context-label,
html[data-theme="dark"] .price-display-mode,
html[data-theme="dark"] .detail-count-badge,
html[data-theme="dark"] .sort-order-badge,
html[data-theme="dark"] .listing-kind-badge {
  color:var(--darna-dark-accent-light)!important;
}

html[data-theme="dark"] .price-panel,
html[data-theme="dark"] .listing-price-panel,
html[data-theme="dark"] .detail-price-panel,
html[data-theme="dark"] .structured-price,
html[data-theme="dark"] .result-filter-chip,
html[data-theme="dark"] .price-display-mode {
  background:linear-gradient(135deg,rgba(36,196,142,.16),rgba(125,226,191,.07))!important;
  border-color:rgba(36,196,142,.38)!important;
}

html[data-theme="dark"] .upload-preview-card.is-primary,
html[data-theme="dark"] .admin-image-review-card.is-primary,
html[data-theme="dark"] .preview-image-button.is-primary,
html[data-theme="dark"] .provider-primary-control,
html[data-theme="dark"] .admin-image-workflow-state,
html[data-theme="dark"] .wizard-draft-panel,
html[data-theme="dark"] .admin-email-card,
html[data-theme="dark"] .report-reason-card.important-phone,
html[data-theme="dark"] .compact-choice-chip.is-all-choice.is-selected {
  border-color:rgba(36,196,142,.58)!important;
  background:rgba(36,196,142,.12)!important;
  box-shadow:0 0 0 2px rgba(36,196,142,.08)!important;
}

html[data-theme="dark"] .upload-preview-order,
html[data-theme="dark"] .provider-primary-note,
html[data-theme="dark"] .preview-primary-badge,
html[data-theme="dark"] .admin-mode-badge.listing-mode {
  background:rgba(36,196,142,.18)!important;
  border-color:rgba(36,196,142,.38)!important;
  color:#b8f3dc!important;
}

html[data-theme="dark"] .warning,
html[data-theme="dark"] .flash.warning,
html[data-theme="dark"] .pending,
html[data-theme="dark"] [data-form-area-gate].area-unit-is-locked,
html[data-theme="dark"] .search-panel[data-current-property-type="land"] [data-land-area-card] {
  background:var(--darna-dark-warning-soft)!important;
  border-color:rgba(250,204,21,.42)!important;
  color:#fef9c3!important;
}

html[data-theme="dark"] .image-file-removed-note {
  background:rgba(127,29,29,.48)!important;
  border-color:rgba(248,113,113,.54)!important;
  color:#fee2e2!important;
}

/* Darna_improved296: semantic favorite control exception.
   Favorite hearts remain neutral/red instead of inheriting the global green
   submit-button treatment; this does not reintroduce orange into dark mode. */
html[data-theme="dark"] .property-card-modern .mobile-classified-favorite {
  background:rgba(8,18,28,.84);
  border-color:rgba(125,226,191,.34);
  color:#eef2f7;
  box-shadow:0 5px 16px rgba(0,0,0,.32);
}

html[data-theme="dark"] .property-card-modern .mobile-classified-favorite:hover {
  background:rgba(36,196,142,.18);
  border-color:rgba(125,226,191,.58);
}

html[data-theme="dark"] .property-card-modern .mobile-classified-favorite.fav-on {
  background:#f8fafc;
  border-color:rgba(248,250,252,.82);
  color:#ef4444;
}

/* Darna_improved354: keep the theme icon clean and make the light hero image
   feel proportional without changing palette, logo artwork or production
   infrastructure. */

.header-theme-toggle::before {
  content:"\263E"!important;
}

.header-theme-toggle[data-theme-state="dark"]::before,
html[data-theme="dark"] .header-theme-toggle::before {
  content:"\2600"!important;
}

html:not([data-theme="dark"]) .hero-home,
html:not([data-theme="dark"]) .ramadan-season .hero-home {
  min-height:auto;
  aspect-ratio:3 / 2;
  background:url("/static/img/darna_top_background_light.png") center center / cover no-repeat!important;
}

@media (max-width: 640px) {
  html:not([data-theme="dark"]) .hero-home,
  html:not([data-theme="dark"]) .ramadan-season .hero-home {
    min-height:clamp(300px, 82vw, 430px);
    aspect-ratio:auto;
    background:url("/static/img/darna_top_background_light.png") center center / cover no-repeat!important;
  }
}

.mobile-bottom-nav {
  display: none;
}

.featured-latest-section,
.notification-list {
  margin-top: 18px;
}

.notification-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  padding: 14px;
}

.notification-card p {
  margin: 6px 0 0;
  color: var(--muted);
}

@media (max-width: 760px) {
  body {
    padding-bottom: calc(104px + env(safe-area-inset-bottom)) !important;
  }

  .mobile-bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1500;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: end;
    gap: 2px;
    direction: rtl;
    min-height: 72px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(9, 112, 82, .16);
    background: color-mix(in srgb, var(--card) 92%, var(--brand-soft));
    box-shadow: 0 -14px 34px rgba(14, 36, 31, .14);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }

  .mobile-bottom-nav-item {
    position: relative;
    display: inline-flex;
    min-width: 44px;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    border-radius: 8px;
    color: var(--muted);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-bottom-nav-item:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent);
    outline-offset: 2px;
  }

  .mobile-bottom-nav-icon {
    width: 23px;
    height: 23px;
    fill: currentColor;
  }

  .mobile-bottom-nav-item span {
    font-size: .72rem;
    font-weight: 900;
    line-height: 1.1;
    white-space: nowrap;
  }

  .mobile-bottom-nav-item.is-active {
    color: var(--brand);
    background: color-mix(in srgb, var(--brand-soft) 78%, transparent);
  }

  .mobile-bottom-nav-add {
    width: 58px;
    height: 58px;
    min-height: 58px;
    margin-inline: auto;
    transform: translateY(-16px);
    border: 3px solid color-mix(in srgb, var(--card) 88%, white);
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(145deg, var(--brand), var(--brand-dark));
    box-shadow: 0 14px 28px rgba(0, 168, 112, .28);
  }

  .mobile-bottom-nav-add.is-active {
    color: #fff;
    background: linear-gradient(145deg, var(--brand), var(--brand-dark));
  }

  .mobile-bottom-nav-plus-mark {
    font-size: 2.1rem !important;
    font-weight: 900 !important;
    line-height: .8 !important;
  }

  .scroll-jump-controls {
    bottom: calc(92px + env(safe-area-inset-bottom)) !important;
  }
}

@media (min-width: 761px) {
  .mobile-bottom-nav {
    display: none !important;
  }
}

html[data-theme="dark"] .mobile-bottom-nav {
  border-top-color: rgba(36, 196, 142, .24);
  background: color-mix(in srgb, var(--card) 88%, #031f19);
  box-shadow: 0 -18px 42px rgba(0, 0, 0, .42);
}

html[data-theme="dark"] .mobile-bottom-nav-item {
  color: color-mix(in srgb, var(--muted) 84%, #d7fff0);
}

html[data-theme="dark"] .mobile-bottom-nav-item.is-active {
  color: var(--brand);
  background: rgba(36, 196, 142, .12);
}

html[data-theme="dark"] .mobile-bottom-nav-add {
  border-color: color-mix(in srgb, var(--card) 82%, #06281f);
  color: #051510;
  box-shadow: 0 16px 34px rgba(36, 196, 142, .22);
}

.property-category-section {
  overflow: hidden;
}

.property-category-grid {
  gap: 10px;
}

.property-category-card {
  min-height: 76px;
}

.property-category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 42px;
  block-size: 42px;
  border-radius: 8px;
  color: var(--brand);
  background: color-mix(in srgb, var(--brand-soft) 86%, #fff);
  flex: 0 0 auto;
}

.property-category-icon .ui-icon {
  inline-size: 22px;
  block-size: 22px;
}

.property-category-text {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.property-category-text strong,
.property-category-text .meta {
  overflow-wrap: anywhere;
}

html[data-theme="dark"] .property-category-icon {
  background: rgba(36, 196, 142, .12);
  color: var(--brand);
}

@media (max-width: 760px) {
  .property-category-grid {
    grid-template-columns: 1fr;
  }

  .property-category-card {
    min-height: 60px;
    padding: 10px 12px;
    border-radius: 8px;
  }

  .property-category-icon {
    inline-size: 38px;
    block-size: 38px;
  }
}

/* Darna 357: load the first home hero image through small WebP variants.
   PNG assets stay as fallbacks, so the hero crop and design remain unchanged. */

html:not([data-theme="dark"]) .hero-home,
html:not([data-theme="dark"]) .ramadan-season .hero-home {
  background-image: image-set(
    url("/static/img/darna_top_background_light.webp") type("image/webp"),
    url("/static/img/darna_top_background_light.png") type("image/png")
  ) !important;
  background-position: center center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}

html[data-theme="dark"] .hero-home,
html[data-theme="dark"] .ramadan-season .hero-home {
  background:
    radial-gradient(
      ellipse 58% 138% at 0% 2%,
      rgba(4, 17, 21, .18) 0%,
      rgba(4, 17, 21, .10) 28%,
      rgba(4, 17, 21, .04) 50%,
      rgba(4, 17, 21, 0) 74%
    ),
    linear-gradient(
      270deg,
      rgba(7, 18, 16, .48) 0%,
      rgba(7, 18, 16, .30) 36%,
      rgba(7, 18, 16, .06) 70%,
      rgba(7, 18, 16, 0) 100%
    ),
    image-set(
      url("/static/img/darna_top_background_desktop.webp") type("image/webp"),
      url("/static/img/darna_top_background_desktop.png") type("image/png")
    ) center 48% / cover no-repeat !important;
}

@media (max-width: 640px) {
  html:not([data-theme="dark"]) .hero-home,
  html:not([data-theme="dark"]) .ramadan-season .hero-home {
    background-image: image-set(
      url("/static/img/darna_top_background_light_mobile.webp") type("image/webp"),
      url("/static/img/darna_top_background_light.png") type("image/png")
    ) !important;
    background-position: center center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
  }

  html[data-theme="dark"] .hero-home,
  html[data-theme="dark"] .ramadan-season .hero-home {
    background:
      radial-gradient(
        ellipse 82% 98% at 5% 0%,
        rgba(4, 17, 21, .16) 0%,
        rgba(4, 17, 21, .08) 34%,
        rgba(4, 17, 21, .03) 58%,
        rgba(4, 17, 21, 0) 80%
      ),
      linear-gradient(
        180deg,
        rgba(7, 18, 16, .32) 0%,
        rgba(7, 18, 16, .12) 56%,
        rgba(7, 18, 16, .04) 100%
      ),
      image-set(
        url("/static/img/darna_top_background_mobile.webp") type("image/webp"),
        url("/static/img/darna_top_background_mobile.png") type("image/png")
      ) 48% center / cover no-repeat !important;
  }
}

/* Darna 358: profile editing, top quick search, and image-review activation. */
.search-panel {
  margin-top: 0;
}

.profile-edit-page {
  max-width: 980px;
  margin-inline: auto;
}

.profile-edit-title-row {
  align-items: center;
}

.profile-edit-form {
  display: grid;
  gap: 18px;
}

.profile-edit-photo-card,
.provider-profile-identity {
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile-edit-photo-card {
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, .10);
  border-radius: 18px;
  background: rgba(255, 255, 255, .72);
}

.profile-edit-photo-preview,
.provider-profile-avatar {
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(145deg, var(--darna-green, #128a5c), #047857);
  box-shadow: 0 14px 34px rgba(5, 150, 105, .20);
}

.provider-profile-avatar {
  width: 68px;
  height: 68px;
  flex-basis: 68px;
  border-radius: 22px;
}

.profile-edit-photo-preview img,
.provider-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-edit-photo-preview span,
.provider-profile-avatar span {
  font-size: 2rem;
  font-weight: 900;
}

.profile-edit-grid {
  align-items: end;
}

.profile-edit-actions,
.provider-self-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-image-activate-listing-form {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(15, 23, 42, .10);
}

.admin-image-activate-listing-form span {
  color: var(--muted);
  font-size: .9rem;
}

html[data-theme="dark"] .profile-edit-photo-card {
  border-color: rgba(148, 163, 184, .20);
  background: rgba(15, 23, 42, .76);
}

html[data-theme="dark"] .admin-image-activate-listing-form {
  border-top-color: rgba(148, 163, 184, .22);
}

@media (max-width: 640px) {
  .profile-edit-title-row,
  .profile-edit-photo-card,
  .provider-profile-identity,
  .admin-image-activate-listing-form {
    align-items: stretch;
    flex-direction: column;
  }

  .profile-edit-actions .button,
  .profile-edit-actions button,
  .admin-image-activate-listing-form .button {
    width: 100%;
  }
}

.add-start-page {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(18px, 4vw, 34px) 0;
}

.add-start-card {
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
  text-decoration: none;
  color: #fff;
  padding: clamp(22px, 6vw, 42px);
  border: 1px solid color-mix(in srgb, var(--brand) 76%, #fff);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, .2), transparent 28%),
    linear-gradient(145deg, var(--brand), var(--brand-dark));
  box-shadow: 0 18px 42px rgba(0, 168, 112, .24);
}

.add-start-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 50px rgba(0, 168, 112, .3);
}

.add-start-card:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand) 54%, #fff);
  outline-offset: 3px;
}

.add-start-card .section-eyebrow,
.add-start-card p {
  color: rgba(255, 255, 255, .86);
}

.add-start-card h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.55rem, 4vw, 2.25rem);
}

.add-start-card p {
  max-width: 44rem;
  margin: 0;
  font-weight: 800;
  line-height: 1.8;
}

.add-start-plus-badge {
  display: inline-grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, .62);
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font-size: 2.2rem;
  font-weight: 950;
  line-height: 1;
}

.add-start-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font-weight: 950;
}

@media (max-width: 760px) {
  .add-start-page {
    padding-top: 14px;
  }

  .mobile-bottom-nav-add {
    color: var(--brand);
    background: color-mix(in srgb, var(--card) 94%, var(--brand-soft));
    box-shadow: 0 14px 28px rgba(0, 168, 112, .2);
  }

  .mobile-bottom-nav-add.is-active {
    color: var(--brand);
    background: color-mix(in srgb, var(--card) 90%, var(--brand-soft));
  }

  .mobile-bottom-nav-add .mobile-bottom-nav-plus-mark {
    color: var(--brand);
  }
}

html[data-theme="dark"] .mobile-bottom-nav-add {
  color: var(--brand);
  background: color-mix(in srgb, var(--card) 82%, #063025);
}

html[data-theme="dark"] .mobile-bottom-nav-add.is-active,
html[data-theme="dark"] .mobile-bottom-nav-add .mobile-bottom-nav-plus-mark {
  color: var(--brand);
}
