:root {
  --wp-primary: #2b3990;
  --wp-primary-dark: #202c78;
  --wp-accent: #e50913;
  --wp-ink: #1f2a44;
  --wp-muted: #747d91;
  --wp-line: #e7eaf1;
  --wp-surface: #ffffff;
  --wp-canvas: #f7f8fc;
  --wp-radius: 14px;
  --wp-shadow: 0 10px 30px rgba(31, 42, 68, .08);
}

body {
  background: var(--wp-canvas);
  color: #4d566b;
}

.wrapper { background: var(--wp-canvas); overflow-x: clip; }

.header-new {
  box-shadow: 0 4px 18px rgba(102, 5, 12, .18);
}

.site-header-spacer {
  display: block;
  height: var(--wp-header-height, 58px);
  width: 100%;
}

.header-new .search-wrapper input {
  border-radius: 9px !important;
  box-shadow: 0 2px 8px rgba(46, 5, 9, .08);
  min-height: 38px;
}

.btn:not(.close),
.btn-thm,
.btn-header,
.wp-btn,
.post-img-btn {
  align-items: center;
  border-radius: 10px !important;
  display: inline-flex;
  font-weight: 700;
  gap: 7px;
  justify-content: center;
  letter-spacing: .1px;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease, transform .2s ease !important;
}

.btn:not(.close):hover,
.btn-thm:hover,
.btn-header:hover,
.wp-btn:hover,
.post-img-btn:hover {
  box-shadow: 0 8px 18px rgba(31, 42, 68, .16);
  transform: translateY(-2px);
}

.btn:not(.close):focus-visible,
.btn-thm:focus-visible,
.btn-header:focus-visible,
.wp-btn:focus-visible,
.post-img-btn:focus-visible {
  box-shadow: 0 0 0 4px rgba(43, 57, 144, .16) !important;
  outline: none;
}

.btn-primary,
.btn-thm,
.btn-header {
  background: var(--wp-primary) !important;
  border-color: transparent !important;
  color: #fff !important;
}
.btn-primary:hover,
.btn-thm:hover,
.btn-header:hover { background: var(--wp-primary-dark) !important; }
.btn-success { background: #269755 !important; border-color: transparent !important; color: #fff !important; }
.btn-danger { background: #c5222c !important; border-color: transparent !important; color: #fff !important; }
.btn-secondary { background: #556074 !important; border-color: transparent !important; color: #fff !important; }
.btn-outline-secondary { background: #fff !important; border-color: #dce1e9 !important; color: #4f586d !important; }
.btn-outline-secondary:hover { background: #f4f6fa !important; color: var(--wp-primary) !important; }
.btn.is-loading { cursor: wait; opacity: .72; pointer-events: none; }

.wp-swal-popup {
  border: 1px solid var(--wp-line) !important;
  border-radius: 18px !important;
  box-shadow: 0 24px 70px rgba(31, 42, 68, .2) !important;
  padding-bottom: 22px !important;
}
.swal2-popup .swal2-title { color: var(--wp-ink); font-size: 23px; }
.swal2-popup .swal2-html-container { color: #626c80; font-size: 14px; line-height: 1.6; }
.swal2-popup .swal2-styled { border-radius: 10px !important; font-weight: 700 !important; padding: 10px 20px !important; }

.wp-location-modal .modal-dialog { max-width: 820px; }
.wp-location-modal .modal-content {
  border: 0;
  border-radius: 20px;
  box-shadow: 0 28px 80px rgba(22, 30, 52, .24);
  overflow: hidden;
}
.wp-location-modal .modal-header {
  align-items: center;
  background: linear-gradient(135deg, #fafbff, #fff);
  border-bottom: 1px solid var(--wp-line);
  padding: 18px 22px;
}
.wp-location-modal-title { align-items: center; display: flex; gap: 12px; }
.wp-location-modal-title > span {
  align-items: center;
  background: rgba(229, 9, 19, .1);
  border-radius: 12px;
  color: var(--wp-accent);
  display: inline-flex;
  flex: 0 0 42px;
  font-size: 18px;
  height: 42px;
  justify-content: center;
}
.wp-location-modal-title h5 { color: var(--wp-ink); font-size: 18px; font-weight: 800; margin: 0; }
.wp-location-modal-title p { color: var(--wp-muted); font-size: 12px; margin: 2px 0 0; }
.wp-modal-close {
  align-items: center;
  background: #f0f2f7 !important;
  border-radius: 50%;
  color: #4e586c;
  display: inline-flex;
  height: 36px;
  justify-content: center;
  margin: 0 !important;
  opacity: 1;
  padding: 0 !important;
  text-shadow: none;
  width: 36px;
}
.wp-modal-close:hover { background: #e50913 !important; color: #fff; }
.wp-location-modal .modal-body { padding: 20px 22px 22px; }
.wp-location-search { margin-bottom: 14px; position: relative; }
.wp-location-search label { color: var(--wp-ink); font-size: 12px; font-weight: 800; margin-bottom: 7px; }
.wp-location-search-input { position: relative; }
.wp-location-search-input > i { color: #8991a2; left: 15px; position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.wp-location-search-input .form-control { font-size: 14px; height: 48px; padding-left: 42px; }
#mapLocationResults {
  border: 1px solid var(--wp-line);
  border-radius: 11px;
  box-shadow: 0 12px 30px rgba(31,42,68,.14);
  left: 0;
  max-height: 220px;
  overflow-y: auto;
  position: absolute;
  top: calc(100% + 5px);
  width: 100%;
  z-index: 1051;
}
#mapLocationResults .list-group-item { border: 0; border-bottom: 1px solid #edf0f5; color: #4f586d; font-size: 13px; padding: 11px 14px; }
#mapLocationResults .list-group-item:hover { background: #f4f6fc; color: var(--wp-primary); }
.wp-location-map-shell { border: 1px solid #dfe3eb; border-radius: 15px; overflow: hidden; position: relative; }
#mapSearchMap { height: 400px; width: 100%; }
.wp-location-map-tip {
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 20px;
  bottom: 12px;
  box-shadow: 0 5px 15px rgba(31,42,68,.13);
  color: #4f586d;
  font-size: 11px;
  font-weight: 700;
  left: 12px;
  padding: 7px 11px;
  position: absolute;
  z-index: 2;
}
.wp-location-modal-footer { align-items: center; display: flex; justify-content: space-between; margin-top: 15px; }
.wp-location-modal-footer small { color: var(--wp-muted); font-size: 11px; }
.wp-location-modal-footer .btn { min-height: 43px; padding: 9px 16px; }

.post-editor-card {
  background: #fff;
  border: 1px solid var(--wp-line);
  border-radius: 20px !important;
  box-shadow: 0 18px 50px rgba(31, 42, 68, .1) !important;
  overflow: hidden;
  padding: 0 !important;
}
.post-editor-heading {
  align-items: center;
  background: linear-gradient(135deg, #f7f8ff 0%, #fff 62%, #fff7f7 100%);
  border-bottom: 1px solid var(--wp-line);
  display: flex;
  justify-content: space-between;
  padding: 23px 26px;
}
.post-editor-kicker {
  color: var(--wp-accent);
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.25px;
  margin-bottom: 4px;
  text-transform: uppercase;
}
.post-editor-heading h1 { color: var(--wp-ink); font-size: 25px; font-weight: 800; line-height: 1.25; margin: 0; padding: 0 !important; }
.post-editor-heading p { color: var(--wp-muted); font-size: 12px; margin: 4px 0 0; }
.post-editor-step {
  background: #fff;
  border: 1px solid #e1e5ed;
  border-radius: 20px;
  color: #596276;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  padding: 8px 12px;
}
.post-editor-step i { color: #269755; margin-right: 4px; }
#postCreateForm { padding: 24px; }
.post-media-panel {
  background: #f8f9fc;
  border: 1px solid #e7eaf1;
  border-radius: 16px;
  padding: 18px;
}
.post-panel-heading,
.post-form-section-title { align-items: center; display: flex; gap: 10px; }
.post-panel-heading { margin-bottom: 14px; }
.post-panel-heading > span,
.post-form-section-title > i {
  align-items: center;
  background: rgba(43,57,144,.09);
  border-radius: 10px;
  color: var(--wp-primary);
  display: inline-flex;
  flex: 0 0 36px;
  height: 36px;
  justify-content: center;
}
.post-panel-heading h2,
.post-form-section-title h2 { color: var(--wp-ink); font-size: 15px; font-weight: 800; margin: 0; }
.post-panel-heading p,
.post-form-section-title p { color: var(--wp-muted); font-size: 11px; line-height: 1.4; margin: 2px 0 0; }
.upload-box {
  align-items: center;
  background: #fff;
  border: 2px dashed #cdd3df;
  border-radius: 14px;
  color: var(--wp-muted);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 175px;
  overflow: hidden;
  padding: 22px 15px;
  position: relative;
  text-align: center;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.upload-box:hover { background: #f6f7ff; border-color: var(--wp-primary); transform: translateY(-2px); }
.upload-box > i { color: var(--wp-primary); font-size: 34px; margin-bottom: 9px; }
.upload-box strong { color: var(--wp-ink); font-size: 14px; margin-bottom: 3px; }
.upload-box span { font-size: 10px; line-height: 1.45; }
.upload-box .file-input { cursor: pointer; height: 100%; inset: 0; opacity: 0; position: absolute; width: 100%; z-index: 2; }
#uploadedPreview { margin-left: -6px; margin-right: -6px; }
#uploadedPreview .image-thumb { padding-left: 6px; padding-right: 6px; }
.image-thumb .card {
  background: #fff;
  border: 2px solid transparent;
  border-radius: 13px;
  box-shadow: 0 6px 16px rgba(31,42,68,.09);
  overflow: hidden;
  position: relative;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.image-thumb .card-img-top { aspect-ratio: 4 / 3; background: #eef1f5; height: auto; object-fit: cover !important; width: 100%; }
.image-thumb.main-image .card { border-color: #efb31d; box-shadow: 0 8px 20px rgba(239,179,29,.2); transform: translateY(-2px); }
.primary-image-badge {
  align-items: center;
  background: #efb31d;
  border-radius: 0 0 9px 0;
  color: #fff;
  display: none;
  font-size: 9px;
  font-weight: 800;
  gap: 4px;
  left: 0;
  padding: 5px 7px;
  position: absolute;
  text-transform: uppercase;
  top: 0;
  z-index: 2;
}
.image-thumb.main-image .primary-image-badge { display: inline-flex; }
.post-img-actions { display: flex; gap: 5px; }
.post-img-btn { border: 0; font-size: 9px; min-height: 31px; padding: 5px 7px; }
.post-img-btn.set-main { background: #eef1f7; color: #505a6e; flex: 1; }
.post-img-btn.remove-image { background: #fff0f1; color: #c5222c; flex: 0 0 31px; padding: 0; }
.image-thumb.main-image .post-img-btn.set-main { background: #fff7db; color: #9a6b00; }
.post-form-panel { padding-left: 24px; }
.post-form-section-title { border-top: 1px solid #edf0f4; margin: 7px 0 16px; padding-top: 18px; }
.post-form-panel .row > .col-lg-12:first-child .post-form-section-title { border-top: 0; margin-top: 0; padding-top: 0; }
.post-form-panel label { color: #3c4558; font-size: 12px; font-weight: 800; margin-bottom: 6px; }
.post-form-panel .form-group { margin-bottom: 15px; }
.post-form-panel .form-control {
  background: #fbfcfe;
  border: 1px solid #dce1e9;
  border-radius: 10px;
  color: #343d50;
  font-size: 13px;
  min-height: 45px;
  padding: 10px 13px;
}
.post-form-panel textarea.form-control { min-height: 120px; resize: vertical; }
.post-form-panel .form-control[readonly] { background: #f0f7f2; color: #39704a; }
.service-row { gap: 8px; }
.service-row .btn { flex: 0 0 44px; margin-left: 0 !important; padding: 0; }
#createPostMap { border: 1px solid #dce1e9; box-shadow: 0 8px 22px rgba(31,42,68,.08); }
.post-editor-actions {
  align-items: center;
  border-top: 1px solid #e7eaf1;
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 20px;
}
#postCreateForm .post-editor-actions .btn { float: none !important; min-height: 46px; min-width: 130px; padding: 10px 18px; }
#postCreateForm .post-editor-actions .btn.btn2,
#postCreateForm .post-editor-actions .btn.btn2:hover,
#postCreateForm .post-editor-actions .btn.btn2:focus,
#postCreateForm .post-editor-actions .btn.btn2:active {
  background: var(--wp-primary) !important;
  border-color: transparent !important;
  color: #fff !important;
}
#postCreateForm .post-editor-actions .btn.btn1,
#postCreateForm .post-editor-actions .btn.btn1:hover,
#postCreateForm .post-editor-actions .btn.btn1:focus {
  background: #fff !important;
  border-color: #d6dce6 !important;
  color: #4f586d !important;
}

.login-dropdown {
  border: 1px solid var(--wp-line);
  border-radius: 12px;
  overflow: hidden;
}

.header-new .header-row { gap: 14px; }
.header-action-button {
  align-items: center;
  background: var(--wp-primary);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 9px;
  color: #fff;
  display: inline-flex;
  font-size: 11px;
  font-weight: 700;
  gap: 6px;
  height: 38px;
  max-width: 170px;
  padding: 0 12px;
  transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}
.header-action-button:hover { background: var(--wp-primary-dark); box-shadow: 0 6px 14px rgba(20,29,91,.2); color: #fff; transform: translateY(-1px); }
.header-action-button.is-location span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-icon-action {
  align-items: center;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 10px;
  color: #fff;
  display: inline-flex;
  flex: 0 0 38px;
  font-size: 16px;
  height: 38px;
  justify-content: center;
  position: relative;
  transition: background .2s ease, transform .2s ease;
}
.header-icon-action:hover { background: #fff; color: var(--wp-accent); transform: translateY(-1px); }
.header-icon-action .badge { right: -6px; top: -7px; }
.header-account {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 9px;
  gap: 7px;
  height: 40px;
  padding: 4px 10px 4px 5px;
}
.header-account .user-avatar { border: 2px solid rgba(255,255,255,.8); height: 30px; object-fit: cover; width: 30px; }
.header-account-name { color: #fff; font-size: 11px; font-weight: 700; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.header-search-form { position: relative; width: 100%; }
.header-search-leading { color: #7b8496; font-size: 13px; left: 14px; position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.header-new .search-wrapper input {
  background: #fff;
  border: 1px solid rgba(255,255,255,.4) !important;
  border-radius: 10px !important;
  color: #30394d;
  font-size: 13px;
  height: 40px;
  padding: 8px 76px 8px 38px !important;
}
.header-new .search-wrapper input::placeholder { color: #8a92a2; }
.header-search-submit,
.header-search-clear {
  align-items: center;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  height: 30px;
  justify-content: center;
  position: absolute;
  top: 5px;
}
.header-search-submit { background: var(--wp-primary); border-radius: 8px; color: #fff; right: 5px; width: 34px; }
.header-search-submit:hover { background: var(--wp-primary-dark); }
.header-search-clear { background: transparent; color: #8b93a2; right: 42px; width: 28px; }
.header-search-clear:hover { color: var(--wp-accent); }
#suggestions.header-search-suggestions { border: 1px solid #cfd5ea; border-radius: 13px; box-shadow: 0 18px 45px rgba(31,42,68,.17); margin-top: 7px; max-height: min(70vh, 520px); overflow-x: hidden; overflow-y: auto; padding: 7px; }
#suggestions .search-suggestion-heading { color: #8a92a2; font-size: 9px; font-weight: 800; letter-spacing: 1px; padding: 10px 10px 6px; text-transform: uppercase; }
#suggestions a.search-suggestion-item { align-items: center; border: 0; border-radius: 9px; color: #394256; display: flex; font-size: 12px; gap: 10px; min-height: 48px; padding: 7px 9px; }
#suggestions a.search-suggestion-item::before { display: none; }
#suggestions .search-suggestion-icon { align-items:center; background:#f0f2f8; border-radius:8px; color:var(--wp-primary); display:inline-flex; flex:0 0 32px; height:32px; justify-content:center; }
#suggestions .search-suggestion-copy { display:flex; flex:1; flex-direction:column; line-height:1.3; min-width:0; }
#suggestions .search-suggestion-copy strong { color:#242d43; font-size:12px; font-weight:700; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#suggestions .search-suggestion-copy small { align-items:center; color:#8a92a2; display:flex; font-size:9px; gap:7px; margin-top:2px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#suggestions .search-suggestion-thumb { background:#eef0f4; border-radius:7px; flex:0 0 38px; height:38px; object-fit:cover; width:38px; }
#suggestions .search-suggestion-rating { color:#64704f; font-weight:700; }
#suggestions .search-suggestion-rating i { color:#efb31d; margin-right:2px; }
#suggestions .search-suggestion-arrow { color:#a3aaba; flex:0 0 auto; }
#suggestions .search-suggestion-selected { align-items:center; background:#f2f4ff; border-radius:9px; color:var(--wp-primary); display:flex; gap:9px; margin:1px 1px 4px; padding:9px 11px; }
#suggestions .search-suggestion-selected > i { align-items:center; background:var(--wp-primary); border-radius:50%; color:#fff; display:flex; height:24px; justify-content:center; width:24px; }
#suggestions .search-suggestion-selected span { display:flex; flex-direction:column; }
#suggestions .search-suggestion-selected strong { font-size:12px; }
#suggestions .search-suggestion-selected small { color:#7e869b; font-size:9px; }
#suggestions a.search-suggestion-item:hover,
#suggestions a.search-suggestion-item.is-keyboard-active { background: #f4f6fb; color: var(--wp-primary); }
#suggestions .search-suggestion-empty { color: #8a92a2; font-size: 12px; padding: 14px; text-align: center; }

.category-nav-shell {
  display: block;
  padding: 8px 0 0;
  position: relative;
  width: 100%;
  z-index: 2;
}

.inner-category-section {
  padding-top: 0 !important;
}

.inner-category-section > .category-nav-shell {
  padding-top: 0;
}

.category-scroll {
  background: rgba(255, 255, 255, .96);
  border: 1px solid var(--wp-line);
  border-radius: 14px;
  box-shadow: 0 7px 22px rgba(31, 42, 68, .06);
  gap: 8px;
  margin: 0 0 12px !important;
  padding: 10px 18px !important;
  position: relative;
  scroll-margin-top: calc(var(--wp-header-height, 58px) + 8px);
  visibility: visible;
  z-index: 2;
}

.category-scroll-label {
  align-items: center;
  color: var(--wp-ink);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 800;
  gap: 6px;
  padding-right: 5px;
}
.category-scroll-label i { color: var(--wp-accent); }

.category-scroll .scroller-item {
  background: #f8f9fc;
  border: 1px solid #e0e4ec;
  border-radius: 22px;
  color: #515a6e;
  font-size: 13px;
  font-weight: 600;
  margin: 0;
  padding: 6px 13px;
  transition: all .22s ease;
}

.category-scroll .scroller-item:hover,
.category-scroll .scroller-item.is-active {
  background: var(--wp-primary);
  border-color: var(--wp-primary);
  box-shadow: 0 5px 12px rgba(43, 57, 144, .2);
  color: #fff;
  transform: translateY(-1px);
}

.home-results-heading {
  align-items: flex-end;
  display: flex;
  justify-content: space-between;
  margin: 14px 2px 12px;
}
.home-results-kicker {
  color: var(--wp-accent);
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  margin-bottom: 3px;
  text-transform: uppercase;
}
.home-results-heading h1 {
  color: var(--wp-ink);
  display: flex;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 800;
  gap: 5px;
  line-height: 1.25;
  margin: 0;
  padding: 0 !important;
}

.home-results-location {
  color: #4d566b;
  font-size: 13px;
  font-weight: 700;
}
.home-results-count {
  background: #fff;
  border: 1px solid var(--wp-line);
  border-radius: 20px;
  color: var(--wp-muted);
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 12px;
}

.home-listings-section { padding: 0 0 34px !important; }
.home-listings-section > .container-fluid { padding-left: 20px; padding-right: 20px; }
.boxes-row { gap: 15px; margin-top: 0 !important; }

.boxes-row > .box,
.featured-slider > .box {
  background: var(--wp-surface);
  border: 1px solid var(--wp-line);
  border-radius: var(--wp-radius) !important;
  box-shadow: 0 7px 22px rgba(31, 42, 68, .07) !important;
  overflow: hidden;
  padding-bottom: 0 !important;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease !important;
}

.boxes-row > .box:hover,
.featured-slider > .box:hover {
  border-color: rgba(43, 57, 144, .25);
  box-shadow: 0 15px 35px rgba(31, 42, 68, .13) !important;
  transform: translateY(-4px) !important;
}

.boxes-row .our_agent,
.featured-slider .our_agent { background: transparent; height: 100%; }
.boxes-row .our_agent .thumb,
.featured-slider .our_agent .thumb { background: linear-gradient(145deg, #eef0f5, #f8f9fb); overflow: hidden; position: relative; }
.boxes-row .our_agent .thumb > a > img,
.featured-slider .our_agent .thumb > a > img {
  aspect-ratio: 4 / 5;
  object-fit: contain;
  transition: transform .35s ease;
  width: 100%;
}
.boxes-row > .box:hover .thumb > a > img,
.featured-slider > .box:hover .thumb > a > img { transform: scale(1.035); }
.boxes-row .our_agent .thumb .overylay .social_icon,
.featured-slider .our_agent .thumb .overylay .social_icon {
  align-items: center;
  backdrop-filter: blur(8px);
  background: rgba(201, 30, 42, .94);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  bottom: 16px;
  box-shadow: 0 10px 24px rgba(171, 23, 34, .28);
  display: flex;
  gap: 5px;
  justify-content: center;
  left: 50%;
  margin: 0;
  padding: 6px 8px;
  right: auto;
  transform: translateX(-50%);
  width: auto;
}
.boxes-row .our_agent .thumb .overylay .social_icon li,
.featured-slider .our_agent .thumb .overylay .social_icon li { margin: 0 !important; }
.boxes-row .our_agent .thumb .overylay .social_icon a,
.featured-slider .our_agent .thumb .overylay .social_icon a {
  align-items: center;
  border-radius: 50%;
  display: flex;
  height: 31px;
  justify-content: center;
  transition: background-color .2s ease, transform .2s ease;
  width: 31px;
}
.boxes-row .our_agent .thumb .overylay .social_icon a:hover,
.featured-slider .our_agent .thumb .overylay .social_icon a:hover {
  background: rgba(255, 255, 255, .18);
  transform: translateY(-1px);
}
.boxes-row .our_agent .thumb .overylay .social_icon i,
.featured-slider .our_agent .thumb .overylay .social_icon i { font-size: 15px; }
.boxes-row .details,
.featured-slider .details { padding: 14px 15px 8px; }
.boxes-row .details h4,
.featured-slider .details h4 {
  color: var(--wp-ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  min-height: 43px;
  padding: 0 !important;
}
.card-rating {
  align-items: center;
  background: #fff8e8;
  border: 1px solid #f8e4b2;
  border-radius: 999px;
  color: var(--wp-ink);
  display: inline-flex;
  font-size: 11px;
  gap: 5px;
  min-height: 28px;
  padding: 4px 9px;
}
.card-rating i { color: #eeb323; font-size: 13px; }
.card-rating strong { font-size: 12px; font-weight: 800; }
.card-rating span { color: var(--wp-muted); }
.card-contact-icons {
  align-items: center;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: 8px;
  margin-top: 8px;
  vertical-align: middle;
}
.card-contact-icon {
  align-items: center;
  background: #f3f5fb;
  border: 1px solid #e2e6f0;
  border-radius: 999px;
  color: var(--wp-primary);
  display: inline-flex;
  font-size: 12px;
  height: 28px;
  justify-content: center;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
  width: 28px;
}
.card-contact-icon:hover,
.card-contact-icon:focus {
  background: var(--wp-accent);
  border-color: var(--wp-accent);
  box-shadow: 0 7px 16px rgba(229, 9, 19, .22);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
}
.card-contact-icon.is-whatsapp:hover,
.card-contact-icon.is-whatsapp:focus {
  background: #25d366;
  border-color: #25d366;
  box-shadow: 0 7px 16px rgba(37, 211, 102, .24);
}
.boxes-row .card-meta-footer,
.featured-slider .card-meta-footer {
  align-items: center;
  border-top: 1px solid var(--wp-line);
  display: flex;
  gap: 10px;
  justify-content: space-between;
  min-height: 54px;
  padding: 9px 15px !important;
}
.card-owner {
  align-items: center;
  color: #4e586d;
  display: flex;
  font-size: 11px;
  font-weight: 700;
  gap: 7px;
  min-width: 0;
}
.card-owner img {
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(31, 42, 68, .16);
  flex: 0 0 31px;
  height: 31px;
  object-fit: cover;
  width: 31px;
}
.card-owner span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card-distance {
  align-items: center;
  color: var(--wp-muted);
  display: flex;
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 700;
  gap: 5px;
  white-space: nowrap;
}
.card-distance i {
  color: var(--wp-accent);
  font-size: 13px;
}

.similar-services-section {
  background: linear-gradient(180deg, #f7f8fb 0%, #fff 100%);
  border-top: 1px solid var(--wp-line);
  padding: 34px 0 46px;
}
.similar-services-section > .container-fluid { padding-left: 20px; padding-right: 20px; }
.similar-services-heading { margin: 0 auto 20px; text-align: center; }
.similar-services-heading span {
  color: var(--wp-accent);
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  margin-bottom: 4px;
  text-transform: uppercase;
}
.similar-services-heading h2 {
  color: var(--wp-ink);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 800;
  margin: 0;
}
.similar-services-empty {
  align-items: center;
  color: var(--wp-muted);
  display: flex;
  flex: 1 1 100%;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  min-height: 150px;
  text-align: center;
}
.similar-services-empty i { color: var(--wp-accent); font-size: 22px; }
.similar-services-empty p { margin: 0; }

@media (max-width: 767px) {
  .similar-services-section { padding: 26px 0 34px; }
  .similar-services-section > .container-fluid { padding-left: 12px; padding-right: 12px; }
  .similar-services-heading { margin-bottom: 15px; }
}

.form-control {
  border-color: #dfe3eb;
  border-radius: 9px;
}
.form-control:focus {
  border-color: var(--wp-primary);
  box-shadow: 0 0 0 3px rgba(43, 57, 144, .1);
}

.post-detail-card {
  background: #fff;
  border: 1px solid var(--wp-line);
  box-shadow: var(--wp-shadow) !important;
  padding: 22px !important;
}

.post-detail-content { padding-left: 20px; }
.post-detail-eyebrow {
  color: var(--wp-accent);
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.15px;
  margin-bottom: 5px;
  text-transform: uppercase;
}
.post-detail-actions {
  float: right;
  margin: 0 0 12px 15px;
}
.post-detail-actions ul { display: flex; gap: 8px; }
.post-detail-actions ul li { margin: 0 !important; }
.post-detail-actions .post-detail-action {
  align-items: center;
  background: #c91d28;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px;
  box-shadow: 0 6px 14px rgba(201, 29, 40, .18);
  color: #fff;
  display: inline-flex;
  height: 40px;
  justify-content: center;
  transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
  width: 40px;
}
.post-detail-actions .post-detail-action:hover {
  background: #a9131d;
  box-shadow: 0 9px 19px rgba(201, 29, 40, .26);
  color: #fff;
  transform: translateY(-2px);
}
.post-detail-actions .post-detail-action span { color: inherit; }
.post-detail-actions .post-detail-action span.text-danger { color: #ffd2d5 !important; }
.post-detail-location {
  align-items: flex-start;
  color: var(--wp-accent) !important;
  display: flex;
  font-size: 13px;
  font-weight: 600;
  gap: 7px;
  margin: 2px 80px 8px 0;
}
.post-detail-location i { font-size: 17px !important; margin-top: 1px; }
.post-detail-title {
  color: var(--wp-ink);
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 800 !important;
  letter-spacing: -.5px;
  line-height: 1.2;
  margin: 0 0 10px;
  padding: 0 !important;
}
.post-rating-summary {
  background: #f8f9fc;
  border: 1px solid #e7eaf1;
  border-radius: 11px;
  display: inline-flex;
  margin: 2px 0 7px;
  padding: 8px 12px;
}
.post-rating-summary .mbp_pagination_comments,
.post-rating-summary .total_review { margin: 0 !important; }
.post-rating-summary .total_review { align-items: center; display: flex !important; gap: 8px; }
.post-rating-score { color: var(--wp-ink); font-size: 15px; }
.post-rating-summary .review_star_list { display: flex; padding-left: 0 !important; }
.post-rating-summary .review_star_list li { margin-right: 2px !important; }
.post-rating-summary .review_star_list i { color: #efb31d; font-size: 13px; }
.post-rating-copy { border-left: 1px solid #dfe3eb; color: var(--wp-muted); font-size: 11px; padding-left: 8px; }
.post-detail-description {
  color: #525b6f;
  font-size: 14px;
  line-height: 1.75;
  margin: 14px 0 18px;
  padding: 0 !important;
  text-align: left !important;
}

.post-services {
  background: linear-gradient(135deg, #f8f9ff 0%, #fff 100%);
  border: 1px solid #e1e5f3;
  border-radius: 14px;
  margin: 17px 0 20px;
  padding: 17px;
}
.post-services-kicker {
  color: var(--wp-accent);
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  margin-bottom: 3px;
  text-transform: uppercase;
}
.post-services-title {
  color: var(--wp-ink);
  font-size: 16px;
  font-weight: 800;
  margin: 0;
}
.post-services-subtitle {
  color: var(--wp-muted);
  font-size: 12px;
  margin: 3px 0 13px;
}
.post-services-list {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.post-service-item {
  align-items: center;
  background: #fff;
  border: 1px solid #e5e8f0;
  border-radius: 10px;
  color: #3f485c;
  display: flex;
  font-size: 13px;
  font-weight: 600;
  gap: 9px;
  min-height: 42px;
  padding: 9px 11px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.post-service-item:hover {
  border-color: rgba(43,57,144,.35);
  box-shadow: 0 7px 16px rgba(31,42,68,.08);
  transform: translateY(-1px);
}
.post-service-icon {
  align-items: center;
  background: #eaf7ee;
  border-radius: 50%;
  color: #278443;
  display: inline-flex;
  flex: 0 0 24px;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.post-connect {
  margin-top: 18px;
}

.post-section-card,
.post-reviews-section,
.review-compose-card {
  background: #fff;
  border: 1px solid var(--wp-line);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(31, 42, 68, .07);
  margin-top: 18px;
  padding: 18px;
}

.post-section-heading {
  align-items: center;
  display: flex;
  gap: 11px;
  margin-bottom: 15px;
}

.post-section-heading-icon {
  align-items: center;
  background: rgba(229, 9, 19, .09);
  border-radius: 11px;
  color: var(--wp-accent);
  display: inline-flex;
  flex: 0 0 38px;
  height: 38px;
  justify-content: center;
}

.post-section-heading h2,
.review-compose-card h2 {
  color: var(--wp-ink);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0;
}

.post-section-heading p,
.review-compose-intro {
  color: var(--wp-muted);
  font-size: 12px;
  margin: 2px 0 0;
}

.post-connect-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.post-connect-action {
  align-items: center;
  background: #f8f9fc;
  border: 1px solid #e5e8f0;
  border-radius: 12px;
  color: #343b4c;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  gap: 8px;
  min-height: 48px;
  padding: 7px 13px 7px 8px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.post-connect-action img { height: 34px; width: 34px; }
.post-connect-icon {
  align-items: center;
  background: #eef0ff;
  border-radius: 50%;
  color: var(--wp-primary);
  display: inline-flex;
  flex: 0 0 34px;
  font-size: 16px;
  height: 34px;
  justify-content: center;
  width: 34px;
}
.post-connect-action:hover {
  border-color: rgba(229, 9, 19, .3);
  box-shadow: 0 7px 18px rgba(31, 42, 68, .09);
  color: var(--wp-accent);
  transform: translateY(-2px);
}

.post-location-card #mapPreviewCard {
  border: 1px solid #e1e5ec;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
}

.post-map-button {
  background: #fff;
  border: 0;
  border-radius: 24px;
  box-shadow: 0 8px 25px rgba(31, 42, 68, .18);
  color: var(--wp-ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  left: 50%;
  padding: 11px 19px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.post-map-button:hover { background: var(--wp-accent); color: #fff; transform: translate(-50%, -50%) scale(1.04); }

.post-reviews-heading { margin-bottom: 12px; }
.post-review-card {
  background: #f8f9fc;
  border: 1px solid #e7eaf1;
  border-radius: 13px;
  margin-top: 10px;
  padding: 14px;
}
.post-review-card .media-body { width: 100%; }
.post-review-topline { align-items: center; display: flex; justify-content: space-between; gap: 12px; }
.post-review-author { align-items: center; display: flex; gap: 10px; }
.post-review-avatar {
  align-items: center;
  background: linear-gradient(135deg, var(--wp-primary), #4f61c3);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  flex: 0 0 38px;
  font-size: 14px;
  font-weight: 800;
  height: 38px;
  justify-content: center;
}
.post-review-author h3 { color: var(--wp-ink); font-size: 14px; font-weight: 800; margin: 0; }
.post-review-author time { color: var(--wp-muted); font-size: 11px; }
.post-review-stars { display: flex; flex-wrap: nowrap; }
.post-review-stars li { margin-right: 2px !important; }
.post-review-stars i { color: #efb31d; font-size: 13px; }
.post-review-card p { color: #4e576a; font-size: 13px; line-height: 1.65; margin: 12px 0 0; }
.post-review-empty { background: #f8f9fc; border-radius: 12px; color: var(--wp-muted); font-size: 13px; padding: 18px; text-align: center; }

.review-compose-card { background: linear-gradient(145deg, #fff 0%, #fafbff 100%); margin-bottom: 20px; }
.review-compose-card .mbp_comment_form { padding: 0 !important; }
.review-compose-intro { margin-bottom: 17px; }
.review-compose-card .comments_form { margin-top: 0 !important; }
.review-compose-card .form-control {
  background: #fff;
  border: 1px solid #dfe3eb;
  border-radius: 11px;
  box-shadow: none;
  min-height: 48px;
  padding: 12px 14px;
}
.review-compose-card textarea.form-control { min-height: 125px; }
.review-compose-card .form-control:focus { border-color: rgba(43, 57, 144, .6); box-shadow: 0 0 0 3px rgba(43, 57, 144, .09); }
.review-compose-card .btn-thm { border-radius: 10px; min-height: 44px; padding: 10px 19px; }

@media (max-width: 991px) {
  .post-detail-content { padding-left: 15px; padding-top: 8px; }
  .post-detail-card { padding: 16px !important; }
}

@media (max-width: 767px) {
  body { font-size: 15px; }
  .inner-category-section > .container,
  .inner-category-section > .container-fluid { padding-left: 12px; padding-right: 12px; }
  .site-header-spacer { height: var(--wp-header-height, 96px); }
  .category-nav-shell { padding-top: 6px; }
  .category-scroll { border-radius: 11px; margin: 0 0 10px !important; padding: 8px 12px !important; }
  .category-scroll-label { display: none; }
  .category-scroll .scroller-item { font-size: 12px; padding: 5px 11px; }
  .home-results-heading { align-items: flex-start; margin: 12px 1px 10px; }
  .home-results-heading h1 { font-size: 13px; }
  .home-results-location { display: block; flex-basis: 100%; font-size: 12px; line-height: 1.35; }
  .home-results-count { font-size: 11px; padding: 5px 9px; }
  .boxes-row { gap: 12px; }
  .boxes-row > .box { margin-bottom: 5px; }
  .boxes-row .our_agent .thumb > a > img { aspect-ratio: 4 / 5; }
  .post-detail-card { border-radius: 14px !important; margin-top: 4px; padding: 12px !important; }
  .post-detail-content { padding: 14px 12px 2px; }
  .post-detail-actions { margin-left: 0; margin-right: 0; }
  .post-detail-actions .post-detail-action { height: 38px; width: 38px; }
  .post-detail-location { line-height: 1.55; margin-right: 68px; }
  .post-detail-title { font-size: 24px; }
  .post-services { padding: 14px; }
  .post-services-list { grid-template-columns: 1fr; }
  .post-service-item { min-height: 40px; }
  .post-section-card,
  .post-reviews-section,
  .review-compose-card { border-radius: 13px; padding: 14px; }
  .post-connect-action { flex: 1 1 calc(50% - 6px); justify-content: flex-start; }
  .post-review-topline { align-items: flex-start; flex-direction: column; }
  .post-review-stars { padding-left: 48px; }
  .wp-location-modal .modal-dialog { margin: 10px; }
  .wp-location-modal .modal-content { border-radius: 15px; }
  .wp-location-modal .modal-header { padding: 14px; }
  .wp-location-modal-title > span { flex-basis: 36px; height: 36px; }
  .wp-location-modal-title h5 { font-size: 16px; }
  .wp-location-modal-title p { display: none; }
  .wp-location-modal .modal-body { padding: 14px; }
  #mapSearchMap { height: 330px; }
  .wp-location-modal-footer { align-items: stretch; flex-direction: column; gap: 10px; }
  .wp-location-modal-footer small { text-align: center; }
  .wp-location-modal-footer .btn { width: 100%; }
  .share-popup { max-width: calc(100vw - 30px); right: 0; width: 275px; }
  .post-editor-card { border-radius: 14px !important; }
  .post-editor-heading { align-items: flex-start; padding: 18px 16px; }
  .post-editor-heading h1 { font-size: 21px; }
  .post-editor-step { display: none; }
  #postCreateForm { padding: 14px; }
  .post-media-panel { margin: 0 0 20px; padding: 14px; }
  .post-form-panel { padding-left: 15px; }
  .upload-box { min-height: 145px; }
  .post-form-section-title { margin-top: 4px; }
  .post-editor-actions { gap: 10px; }
  #postCreateForm .post-editor-actions .btn { flex: 1; min-width: 0; padding-left: 10px; padding-right: 10px; }
  .home-listings-section { padding-bottom: 22px !important; }
  .home-listings-section > .container-fluid { padding-left: 12px; padding-right: 12px; }
}

/* ════════════════════════════════════════════════════════════════
   HOME PAGE: SECTION HEADERS
   ════════════════════════════════════════════════════════════════ */
.home-section {
  margin-top: 26px;
}
.home-section:first-child {
  margin-top: 0;
}

.home-section-header {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.home-section-title-group {
  align-items: center;
  display: flex;
  gap: 10px;
}

.home-section-icon {
  align-items: center;
  background: linear-gradient(135deg, #fff3cd, #ffe08a);
  border-radius: 10px;
  color: #c8860a;
  display: inline-flex;
  flex: 0 0 34px;
  font-size: 14px;
  height: 34px;
  justify-content: center;
}

.home-section-icon--blue {
  background: linear-gradient(135deg, #e8ecff, #d0d7ff);
  color: var(--wp-primary);
}

.home-section-title {
  color: var(--wp-ink);
  font-size: clamp(15px, 1.8vw, 18px);
  font-weight: 800;
  margin: 0;
}

.home-section-subtitle {
  background: #f0f3ff;
  border-radius: 20px;
  color: var(--wp-muted);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
}

.featured-slider-controls {
  display: flex;
  gap: 8px;
}

.featured-slider-btn {
  align-items: center;
  background: #fff;
  border: 1px solid #dfe3eb;
  border-radius: 8px;
  color: var(--wp-primary);
  cursor: pointer;
  display: inline-flex;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.featured-slider-btn:hover {
  background: var(--wp-primary);
  border-color: var(--wp-primary);
  color: #fff;
}

.featured-slider {
  display: grid;
  gap: 16px;
  grid-auto-columns: calc((100% - 64px) / 5);
  grid-auto-flow: column;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 18px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.featured-slider > .box {
  margin: 0;
  scroll-snap-align: start;
  width: auto;
}

.featured-slider .card-meta-footer {
  min-height: 44px;
  padding: 7px 12px !important;
}

.featured-slider .card-owner img {
  flex-basis: 26px;
  height: 26px;
  width: 26px;
}

.featured-slider .card-owner span {
  max-width: 92px;
}

.featured-slider .card-distance {
  font-size: 9px;
}

@media (max-width: 1399px) {
  .featured-slider {
    grid-auto-columns: calc((100% - 48px) / 4);
  }
}

@media (max-width: 991px) {
  .featured-slider {
    grid-auto-columns: calc((100% - 32px) / 3);
  }
}

/* ── Featured card ───────────────────────────────────────────── */
.home-listing-card--featured {
  border-color: rgba(200, 134, 10, .3) !important;
  box-shadow: 0 7px 24px rgba(200, 134, 10, .12) !important;
}
.home-listing-card--featured:hover {
  border-color: rgba(200, 134, 10, .55) !important;
  box-shadow: 0 16px 38px rgba(200, 134, 10, .2) !important;
}

.featured-card-badge {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border-radius: 0 0 9px 0;
  box-shadow: 0 3px 9px rgba(217, 119, 6, .35);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  left: 0;
  letter-spacing: .5px;
  padding: 4px 10px;
  pointer-events: none;
  position: absolute;
  top: 0;
  z-index: 2;
}
.featured-card-badge i {
  font-size: 9px;
  margin-right: 3px;
}

.home-offer-banner {
  align-items: center;
  background: #111b3f;
  border-radius: 12px;
  box-shadow: 0 14px 35px rgba(31,42,68,.12);
  color: #fff;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin: 6px 0 10px;
  min-height: 150px;
  overflow: hidden;
  padding: 22px 24px;
  position: relative;
  width: 100%;
}

.home-offer-banner:before {
  background: #e50913;
  content: "";
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 6px;
}

.home-offer-copy {
  max-width: 620px;
  position: relative;
  z-index: 1;
}

.home-offer-copy span {
  color: #ffbd45;
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .9px;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.home-offer-copy h3 {
  color: var(--offer-text-color, #fff);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 6px;
}

.home-offer-copy p {
  color: var(--offer-muted-color, rgba(255,255,255,.78));
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 14px;
}

.home-offer-action {
  background: #fff;
  border-radius: 8px;
  color: var(--wp-primary);
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  padding: 10px 14px;
}

.home-offer-banner img {
  border-radius: 10px;
  flex: 0 0 220px;
  height: 118px;
  object-fit: cover;
  position: relative;
  width: 220px;
  z-index: 1;
}

.home-offer-banner--image-left {
  flex-direction: row-reverse;
}

.home-offer-banner--background_image {
  background-position: center;
  background-size: cover;
  min-height: 190px;
}

.home-offer-banner--background_image img {
  display: none;
}

.home-offer-banner--background_image .home-offer-copy {
  max-width: 760px;
}

.home-offer-banner--compact_card {
  background: #fff;
  border: 1px solid #e3e7ef;
  color: #1f2a44;
  min-height: 118px;
  padding: 18px 20px;
}

.home-offer-banner--compact_card:before {
  background: #2b3990;
}

.home-offer-banner--compact_card .home-offer-copy span {
  color: #e50913;
}

.home-offer-banner--compact_card .home-offer-copy h3 {
  color: var(--offer-text-color, #1f2a44);
  font-size: 20px;
}

.home-offer-banner--compact_card .home-offer-copy p {
  color: var(--offer-muted-color, #737c92);
}

.home-offer-banner--compact_card .home-offer-action {
  background: #2b3990;
  color: #fff;
}

.home-offer-banner--compact_card img {
  flex-basis: 150px;
  height: 90px;
  width: 150px;
}

/* ── No-location banner ──────────────────────────────────────── */
.home-offer-banner--full_width_promo {
  justify-content: center;
  min-height: 220px;
  text-align: center;
}

.home-offer-banner--full_width_promo:before {
  background: #ffbd45;
}

.home-offer-banner--full_width_promo .home-offer-copy {
  max-width: 820px;
}

.home-offer-banner--full_width_promo img {
  display: none;
}

.home-offer-banner--minimal_text {
  background: #fff;
  border: 1px dashed #cdd3df;
  box-shadow: none;
  color: #1f2a44;
  min-height: auto;
  padding: 16px 18px;
}

.home-offer-banner--minimal_text:before {
  background: #ffbd45;
}

.home-offer-banner--minimal_text .home-offer-copy span {
  color: #e50913;
}

.home-offer-banner--minimal_text .home-offer-copy h3 {
  color: var(--offer-text-color, #1f2a44);
  font-size: 19px;
}

.home-offer-banner--minimal_text .home-offer-copy p {
  color: var(--offer-muted-color, #606a7e);
}

.home-offer-banner--minimal_text .home-offer-action {
  background: #2b3990;
  color: #fff;
}

.home-no-location-banner {
  align-items: center;
  background: #fff8e6;
  border: 1px solid #f5cf75;
  border-radius: 10px;
  color: #7a5c0a;
  display: flex;
  font-size: 13px;
  font-weight: 600;
  gap: 10px;
  margin-bottom: 14px;
  padding: 11px 16px;
}
.home-no-location-banner i {
  color: #d97706;
  flex: 0 0 auto;
  font-size: 17px;
}
.home-no-location-banner a {
  color: var(--wp-primary);
  font-weight: 700;
  text-decoration: underline;
}

.home-location-action {
  background: #2b3990;
  border: 1px solid #2b3990;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  padding: 9px 12px;
  text-decoration: none;
}

.home-location-action:hover,
.home-location-action:focus {
  background: #1f2a73;
  color: #fff;
  text-decoration: none;
}

.home-location-action.is-light {
  background: #fff;
  color: #2b3990;
}

/* ── Empty state ─────────────────────────────────────────────── */
.home-empty-state {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 240px;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}
.home-empty-icon {
  align-items: center;
  background: #f0f3ff;
  border-radius: 50%;
  color: var(--wp-primary);
  display: flex;
  font-size: 30px;
  height: 68px;
  justify-content: center;
  width: 68px;
}
.home-empty-state h3 {
  color: var(--wp-ink);
  font-size: 20px;
  font-weight: 800;
  margin: 0;
}
.home-empty-state p {
  color: var(--wp-muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  max-width: 400px;
}

/* ── Distance: no-location / pending states ──────────────────── */
.distance-value--none { color: #b5bac5 !important; font-style: italic; }
.distance-value--pending { color: #b5bac5 !important; }

/* ── Card footer tighter on mobile ──────────────────────────── */
@media (max-width: 767px) {
  .home-section { margin-top: 20px; }
  .home-section-title { font-size: 15px; }
  .home-section-subtitle { display: none; }
  .home-section-icon { flex: 0 0 30px; font-size: 12px; height: 30px; }
  .featured-slider-controls { display: none; }
  .featured-slider {
    gap: 10px;
    grid-auto-columns: calc((100% - 20px) / 3);
    padding: 0 1px 14px;
  }
  .featured-slider .home-listing-card--featured {
    border-radius: 12px;
    min-width: 0;
  }
  .featured-slider .our_agent .thumb > a > img {
    aspect-ratio: 1 / 1;
  }
  .featured-slider .details {
    padding: 8px 8px 6px;
  }
  .featured-slider .details h4 {
    font-size: 11px;
    line-height: 1.25;
    min-height: 28px;
  }
  .featured-slider .card-rating,
  .featured-slider .card-meta-footer,
  .featured-slider .overylay {
    display: none !important;
  }
  .featured-slider .card-contact-icons {
    display: flex;
    justify-content: center;
    margin: 7px 0 0;
  }
  .featured-slider .card-contact-icon {
    height: 24px;
    width: 24px;
  }
  .featured-card-badge {
    align-items: center;
    border-radius: 999px;
    bottom: 6px;
    display: inline-flex;
    font-size: 0;
    height: 22px;
    justify-content: center;
    left: auto;
    padding: 0;
    right: 6px;
    top: auto;
    width: 22px;
  }
  .featured-card-badge i { font-size: 11px; margin: 0; }
  .home-offer-banner {
    align-items: flex-start;
    border-radius: 10px;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
  }
  .home-offer-copy h3 { font-size: 18px; }
  .home-offer-banner img {
    flex: auto;
    height: 120px;
    width: 100%;
  }
  .home-offer-banner--image-left {
    flex-direction: column;
  }
  .home-offer-banner--compact_card img {
    height: 110px;
    width: 100%;
  }
  .home-no-location-banner {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .home-no-location-banner span {
    flex: 1 1 180px;
  }
  .home-location-action {
    justify-content: center;
  }
  .home-empty-state { min-height: 180px; padding: 28px 16px; }
  .home-empty-icon { font-size: 24px; height: 56px; width: 56px; }
  .home-empty-state h3 { font-size: 17px; }
  .home-empty-state p { font-size: 13px; }
}

/* ════════════════════════════════════════════════════════════════
   MOBILE LOCATION CHIP (header top-row)
   ════════════════════════════════════════════════════════════════ */
.mobile-location-chip {
  align-items: center;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 20px;
  color: #fff;
  display: none;          /* hidden on desktop */
  font-size: 11px;
  font-weight: 700;
  gap: 5px;
  justify-content: flex-start;
  max-width: 100%;
  overflow: hidden;
  padding: 7px 10px 7px 8px;
  text-decoration: none;
  transition: background .2s;
  white-space: nowrap;
  width: 100%;
}
.mobile-location-chip:hover,
.mobile-location-chip:focus {
  background: rgba(255,255,255,.28);
  color: #fff;
  text-decoration: none;
}
.mobile-location-chip > i.fa-map-marker {
  color: #ffd54f;
  flex: 0 0 auto;
  font-size: 13px;
}
.mobile-location-chip > span {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mobile-location-caret {
  flex: 0 0 auto;
  font-size: 9px;
  opacity: .7;
}

/* Show on mobile, hide on desktop */
@media (max-width: 991px) {
  .mobile-location-chip { display: flex; }
}
@media (min-width: 992px) {
  .mobile-location-chip { display: none !important; }
}

/* Mobile header rows */
@media (max-width: 991px) {
  .top-row {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: space-between;
  }
  .top-row .login {
    flex: 0 0 36px;
    font-size: 0;
    width: 36px;
  }
  .top-row .login svg {
    height: 19px;
    width: 19px;
  }
  .top-row .login-dropdown {
    font-size: 13px;
  }
}

/* ════════════════════════════════════════════════════════════════
   ADMIN: PROFILE IMAGE UPLOAD
   ════════════════════════════════════════════════════════════════ */
.admin-avatar-row {
  align-items: center;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.admin-avatar-preview-wrap {
  flex: 0 0 auto;
}

.admin-avatar-preview {
  border: 3px solid #e8ebf1;
  border-radius: 50%;
  display: block;
  height: 90px;
  object-fit: cover;
  transition: border-color .2s;
  width: 90px;
}
.admin-avatar-preview:hover {
  border-color: var(--wp-primary, #2b3990);
}

.admin-avatar-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-avatar-remove {
  align-items: center;
  color: #b40710;
  cursor: pointer;
  display: flex;
  font-size: 13px;
  font-weight: 600;
  gap: 6px;
}
.admin-avatar-remove input[type="checkbox"] {
  accent-color: #e50913;
  height: 16px;
  width: 16px;
}

@media (max-width: 767px) {
  .admin-avatar-row { gap: 14px; }
  .admin-avatar-preview { height: 72px; width: 72px; }
}
