/* Site-specific overrides — loaded after the template's style.css */

.navbar .nav-item .nav-link {
  margin-right: 27px;
}

/* A button that reads as an inline link (used for "Resend code"). */
.btn-link-plain {
  padding: 0;
  border: none;
  background: none;
  color: #09c398;
  text-decoration: underline;
  cursor: pointer;
}

/* The account dropdown in the header top bar. The template stacks the top bar (z-index 2) under
   the navbar (999), which hid the open menu; lift the bar above it. */
.header-top {
  z-index: 1001;
}
.header-top-divider {
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.25);
}
.header-top-user {
  position: relative;
  display: inline-block;
}
.header-top-user .header-top-link {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.header-top-user-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.header-top-user .header-top-user-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #09c398;
}
.header-top-user .header-top-user-icon i {
  margin: 0;
  color: #fff;
  font-size: 13px;
}
.header-top-user-name {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.header-top-user .header-top-user-caret {
  margin: 0;
  color: #fff;
  font-size: 14px;
}
/* The hero photo is a daytime Addis Ababa skyline, so the template's heavy 70% black scrim is
   softened to a gentle top-to-bottom gradient that keeps the city visible while preserving
   contrast for the white headline and search box. */
.hero-single::before {
  background: linear-gradient(
    180deg,
    rgba(10, 16, 26, 0.5) 0%,
    rgba(10, 16, 26, 0.55) 50%,
    rgba(10, 16, 26, 0.66) 100%
  );
}

.property-listing .listing-item {
  margin-bottom: 0;
}

/* Threads and X brand icons: the bundled Font Awesome predates both, so they are drawn as
   masks that take the link's colour and size like any other icon. */
.fab.fa-threads::before,
.fab.fa-x-twitter::before {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  background-color: currentColor;
  -webkit-mask: var(--brand-icon) center / contain no-repeat;
  mask: var(--brand-icon) center / contain no-repeat;
}

.fab.fa-x-twitter::before {
  --brand-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z'/%3E%3C/svg%3E");
}

.fab.fa-threads::before {
  --brand-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12.186 24h-.007c-3.581-.024-6.334-1.205-8.184-3.509C2.35 18.44 1.5 15.586 1.472 12.01v-.017c.03-3.579.879-6.43 2.525-8.482C5.845 1.205 8.6.024 12.18 0h.014c2.746.02 5.043.725 6.826 2.098 1.677 1.29 2.858 3.13 3.509 5.467l-2.04.569c-1.104-3.96-3.898-5.984-8.304-6.015-2.91.022-5.11.936-6.54 2.717C4.307 6.504 3.616 8.914 3.589 12c.027 3.086.718 5.496 2.057 7.164 1.43 1.783 3.631 2.698 6.54 2.717 2.623-.02 4.358-.631 5.8-2.045 1.647-1.613 1.618-3.593 1.09-4.798-.31-.71-.873-1.3-1.634-1.75-.192 1.352-.622 2.446-1.284 3.272-.886 1.102-2.14 1.704-3.73 1.79-1.202.065-2.361-.218-3.259-.801-1.063-.689-1.685-1.74-1.752-2.964-.065-1.19.408-2.285 1.33-3.082.88-.76 2.119-1.207 3.583-1.291a13.853 13.853 0 0 1 3.02.142c-.126-.742-.375-1.332-.75-1.757-.513-.586-1.308-.883-2.359-.89h-.029c-.844 0-1.992.232-2.721 1.32L7.734 7.847c.98-1.454 2.568-2.256 4.478-2.256h.044c3.194.02 5.097 1.975 5.287 5.388.108.046.216.094.321.142 1.49.7 2.58 1.761 3.154 3.07.797 1.82.871 4.79-1.548 7.158-1.85 1.81-4.094 2.628-7.277 2.65Zm1.003-11.69c-.242 0-.487.007-.739.021-1.836.103-2.98.946-2.916 2.143.067 1.256 1.452 1.839 2.784 1.767 1.224-.065 2.818-.543 3.086-3.71a10.5 10.5 0 0 0-2.215-.221z'/%3E%3C/svg%3E");
}

/* React carousel (replaces Owl Carousel) */
.rc-carousel {
  position: relative;
}
.rc-viewport {
  overflow: hidden;
}
.rc-track {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
}
.rc-slide {
  box-sizing: border-box;
}
.rc-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}
.rc-nav button {
  pointer-events: auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: #09c398;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  font-size: 18px;
  transition: background 0.3s, color 0.3s;
}
.rc-nav button:hover {
  background: #09c398;
  color: #fff;
}
.rc-prev {
  margin-left: -8px;
}
.rc-next {
  margin-right: -8px;
}
.rc-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}
.rc-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(9, 195, 152, 0.35);
  cursor: pointer;
  transition: width 0.3s, background 0.3s;
}
.rc-dot.active {
  width: 28px;
  border-radius: 6px;
  background: #09c398;
}

/* Video modal (replaces Magnific Popup iframe) */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.video-modal-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(0, 0, 0, 0.8);
  cursor: pointer;
}
.video-modal-inner {
  position: relative;
  width: 100%;
  max-width: 900px;
}
.video-modal-frame {
  position: relative;
  padding-top: 56.25%;
}
.video-modal-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 8px;
}
.video-modal-close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: #0a2a3a;
  cursor: pointer;
  font-size: 18px;
}

/* Card action icons and the Advanced toggle are now <button>s; the template styled the old
   <a>/<div>, so restore their appearance here. */
.listing-btns button {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  padding: 0;
  text-align: center;
  color: #09c398;
  border: none;
  border-radius: 10px;
  background: rgba(18, 197, 156, 0.1);
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}
.listing-btns button:hover {
  background: #09c398;
  color: #fff;
}
button.advanced-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 16px;
  border: 1px solid rgba(9, 195, 152, 0.4);
  border-radius: 12px;
  background: rgba(9, 195, 152, 0.08);
  color: #09c398;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s ease;
}
button.advanced-search:hover,
button.advanced-search[aria-expanded='true'] {
  background: #09c398;
  color: #fff;
  border-color: #09c398;
  box-shadow: 0 10px 24px rgba(9, 195, 152, 0.28);
}
button.advanced-search .adv-caret {
  font-size: 13px;
  transition: transform 0.3s ease;
}
button.advanced-search[aria-expanded='true'] .adv-caret {
  transform: rotate(180deg);
}

/* Restore vertical spacing between listing cards (kept flush below the last row via gutters). */
.property-listing .row {
  --bs-gutter-y: 1.5rem;
}

/* Grid/list view toggle is now <button>s (in-page toggle); the template styled the old <a>s. */
.property-sort-list-grid button {
  width: 35px;
  height: 35px;
  line-height: 33px;
  padding: 0;
  border-radius: 6px;
  text-align: center;
  border: 1px solid #ced4da;
  background: transparent;
  color: #0e2e50;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}
.property-sort-list-grid button.active {
  border-color: #09c398;
  color: #09c398;
}
.property-sort-list-grid button + button {
  margin-left: 6px;
}
/* Responsive listing results toolbar (heading, Save Search, view toggle, sort) across all pages. */
.property-sort {
  flex-wrap: wrap;
  gap: 12px 16px;
}
.property-sort-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  flex: 1 1 auto;
  min-width: 0;
}
.property-sort h5 {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
}
.property-sort-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.property-sort-list-grid {
  display: flex;
  flex-shrink: 0;
}
.property-sort-box {
  flex: 0 0 210px;
  width: 210px;
  max-width: 100%;
}
.property-sort .nice-select {
  float: none;
  height: 42px;
  line-height: 40px;
  padding-left: 14px;
  padding-right: 32px;
  font-size: 14.5px;
}
.property-sort .nice-select .current {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 991.98px) {
  .property-sort {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 14px;
  }
  .property-sort-heading,
  .property-sort-controls {
    width: 100%;
  }
  .property-sort-box {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
  }
}

@media (max-width: 767.98px) {
  .property-sort h5 {
    font-size: 15px;
  }
  .property-sort .nice-select {
    height: 38px;
    line-height: 36px;
    font-size: 14px;
  }
  .property-sort-list-grid button {
    width: 38px;
    height: 38px;
    line-height: 36px;
  }
}

@media (max-width: 420px) {
  .property-sort h5 {
    flex: 1 0 100%;
  }
}

/* Advanced panel hugs its sliders instead of a fixed 254px min-height. */
.advanced-search-menu {
  min-height: auto;
  padding-bottom: 24px;
}
.advanced-search-menu .price-range-slider {
  margin-bottom: 0;
}

/* Add Property: uploaded image previews. */
.add-property-form label.property-img-upload {
  display: block;
  margin: 0;
}
.property-img-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}
.property-img-preview li {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
}
.property-img-preview li.is-cover {
  border-color: #09c398;
}
.property-img-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.property-img-cover-badge,
.property-img-make-cover {
  position: absolute;
  left: 6px;
  bottom: 6px;
  padding: 2px 8px;
  border: 0;
  border-radius: 4px;
  font-size: 12px;
  color: #fff;
  background: rgba(14, 46, 80, 0.75);
}
.property-img-cover-badge {
  background: #09c398;
}
.property-img-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(220, 53, 69, 0.9);
  line-height: 26px;
  padding: 0;
}

/* Spam-trap field: off-screen, never seen by people. */
.form-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Messages: inquiry inbox. */
.lead-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #e6f9f4;
  color: #09c398;
  font-weight: 700;
  font-size: 16px;
}
.profile-message-inbox .lead-list-item {
  position: relative;
  display: block;
  width: 100%;
  padding: 30px;
  border: 0;
  background: transparent;
  text-align: left;
  color: inherit;
}
.profile-message-inbox ul li.message-unread .message-by-content h5 {
  font-weight: 800;
}
.profile-message-inbox ul li.message-unread .message-by-content h5::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 6px;
  border-radius: 50%;
  background: #09c398;
  vertical-align: middle;
}
.profile-message-inbox ul li.message-unread .message-by p {
  color: #0e2e50;
}
.lead-detail-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}
.lead-detail-header h5 {
  margin: 0 0 4px;
}
.lead-detail-header p {
  margin: 0;
  color: #888;
  font-size: 14px;
}
.lead-detail-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 25px;
}
.lead-detail-meta li {
  margin-bottom: 8px;
}
.lead-detail-meta li i {
  width: 22px;
  color: #09c398;
}
.lead-detail .message-item .message-description {
  margin-left: 0;
}
.lead-detail .message-item .message-description::before {
  display: none;
}
.lead-detail .message-description p {
  white-space: pre-line;
}
.lead-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.theme-btn.theme-btn-outline {
  background: transparent;
  color: #0e2e50;
  box-shadow: inset 0 0 0 2px #09c398;
}
.theme-btn.theme-btn-outline:hover {
  color: #fff;
}
.lead-detail-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  color: #888;
}
.lead-detail-empty i {
  font-size: 40px;
  margin-bottom: 12px;
  color: #c8d0da;
}
@media (max-width: 991px) {
  .profile-message-inbox ul {
    width: 100%;
  }
  .profile-message .profile-message-inbox {
    max-width: none;
  }
  .profile-message .message-content {
    padding-left: 0;
    padding-bottom: 0;
  }
}

/* ===================================================================
   Mobile navigation (below Bootstrap's lg breakpoint): header account
   button, slide-in menu (.mnav) and bottom tab bar (.mobile-tabbar).
   =================================================================== */
.mobile-account-btn,
.mnav,
.mobile-tabbar {
  display: none;
}

@media (max-width: 991px) {
  .mobile-menu-right {
    gap: 12px;
  }
  .mobile-account-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #09c398;
    color: #fff;
    font-size: 12px;
  }
  /* The icon is drawn small, but the touch area stays a comfortable 44px. */
  .mobile-account-btn::after {
    content: "";
    position: absolute;
    inset: -8px;
  }
  .mobile-account-btn.is-guest {
    background: #e8faf5;
    color: #09c398;
  }
  .mobile-account-dot {
    position: absolute;
    top: -1px;
    right: -1px;
    width: 9px;
    height: 9px;
    border: 1.5px solid #fff;
    border-radius: 50%;
    background: #ff4d4f;
  }

  /* ---- Slide-in menu ---- */
  .mnav {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1100;
    visibility: hidden;
    transition: visibility 0s linear 0.3s;
  }
  .mnav.is-open {
    visibility: visible;
    transition: visibility 0s;
  }
  .mnav-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(9, 20, 34, 0.55);
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  .mnav.is-open .mnav-backdrop {
    opacity: 1;
  }
  .mnav-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    width: min(320px, 86vw);
    background: #fff;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  }
  .mnav.is-open .mnav-panel {
    transform: none;
  }
  .mnav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 10px;
  }
  .mnav-head img {
    height: 30px;
  }
  .mnav-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: #f1f4f7;
    color: #0e2e50;
    font-size: 18px;
  }
  .mnav-body {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 4px 0 14px;
  }
  .mnav-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 4px 14px 12px;
    padding: 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0e2e50, #164a7c);
    color: #fff;
  }
  .mnav-user:hover {
    color: #fff;
  }
  .mnav-user-avatar {
    display: inline-flex;
    flex: 0 0 46px;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #09c398;
    font-weight: 700;
    font-size: 17px;
  }
  .mnav-user-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }
  .mnav-user-text strong {
    overflow: hidden;
    font-size: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .mnav-user-text small {
    opacity: 0.8;
    font-size: 13px;
  }
  .mnav-auth {
    margin: 4px 14px 12px;
    padding: 14px;
    border-radius: 14px;
    background: #f3f8fb;
  }
  .mnav-auth p {
    margin-bottom: 12px;
    color: #5b6b7c;
    font-size: 14px;
  }
  .mnav-auth-buttons {
    display: flex;
    gap: 8px;
  }
  .mnav-auth-buttons .theme-btn {
    flex: 1;
    padding: 10px;
  }
  .mnav-list {
    margin: 0;
    padding: 0 8px;
    list-style: none;
  }
  .mnav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 0;
    border-radius: 10px;
    background: none;
    color: #0e2e50;
    font-size: 16px;
    font-weight: 500;
    text-align: left;
  }
  .mnav-link i {
    width: 20px;
    color: #09c398;
    font-size: 17px;
    text-align: center;
  }
  .mnav-link:hover,
  .mnav-link:focus-visible {
    background: #f3f8fb;
    color: #0e2e50;
  }
  .mnav-link.active {
    background: #e8faf5;
    font-weight: 700;
  }
  .mnav-link.active::before {
    content: "";
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 0;
    width: 4px;
    border-radius: 4px;
    background: #09c398;
  }
  .mnav-logout,
  .mnav-logout i {
    color: #e5484d;
  }
  .mnav-badge {
    margin-left: auto;
    padding: 2px 8px;
    border-radius: 20px;
    background: #ff4d4f;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
  }
  .mnav .mnav-add {
    display: block;
    margin: 12px 16px 4px;
    font-weight: 700;
  }
  .mnav-section-title {
    margin: 18px 22px 6px;
    color: #8a97a6;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
  }
  .mnav-foot {
    padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid #eef1f4;
  }
  .mnav-call {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #0e2e50;
    font-weight: 600;
  }
  .mnav-call > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e8faf5;
    color: #09c398;
  }
  .mnav-social {
    display: flex;
    gap: 6px;
    margin-top: 8px;
  }
  .mnav-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #0e2e50;
    font-size: 17px;
  }

  /* ---- Bottom tab bar ---- */
  .mobile-tabbar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1050;
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    height: calc(64px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid #e6eaef;
    background: #fff;
    box-shadow: 0 -6px 18px rgba(14, 46, 80, 0.08);
  }
  .mobile-tab {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 0;
    border: 0;
    background: none;
    color: #8a97a6;
    font-size: 11.5px;
    line-height: 1.2;
  }
  .mobile-tab i {
    font-size: 19px;
  }
  .mobile-tab.active,
  .mobile-tab:hover {
    color: #09c398;
  }
  .mobile-tab.active {
    font-weight: 700;
  }
  .mobile-tab-icon {
    position: relative;
  }
  .mobile-tab-badge {
    position: absolute;
    top: -6px;
    left: 12px;
    min-width: 18px;
    padding: 1px 5px;
    border-radius: 10px;
    background: #ff4d4f;
    color: #fff;
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
    text-align: center;
  }
  .mobile-tab-add-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-top: -26px;
    border: 4px solid #fff;
    border-radius: 50%;
    background: #09c398;
    box-shadow: 0 6px 16px rgba(9, 195, 152, 0.45);
  }
  .mobile-tab-add-icon i {
    color: #fff;
    font-size: 20px;
  }
  .mobile-tab-add.active .mobile-tab-add-icon {
    background: #0e2e50;
    box-shadow: 0 6px 16px rgba(14, 46, 80, 0.4);
  }

  /* Keep page content and the scroll-to-top button clear of the tab bar. */
  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
  }
  #scroll-top {
    bottom: calc(80px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 991px) and (prefers-reduced-motion: reduce) {
  .mnav,
  .mnav-backdrop,
  .mnav-panel {
    transition: none;
  }
}

/* Favorites: a saved listing shows a filled heart. */
.listing-btns .favorite-btn.is-saved {
  background: #ffe8ea;
  color: #e5484d;
}
.listing-btns .favorite-btn.is-saved:hover {
  background: #e5484d;
  color: #fff;
}
.property-single-meta-option .favorite-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: rgba(18, 197, 156, 0.12);
  color: #09c398;
  font-size: 17px;
}
.property-single-meta-option .favorite-btn:hover {
  background: #09c398;
  color: #fff;
}
.property-single-meta-option .favorite-btn.is-saved {
  background: #ffe8ea;
  color: #e5484d;
}
.favorite-btn:disabled {
  opacity: 0.6;
}

/* Saved searches: "Save Search" on listing results and the Saved Searches table. */
.save-search {
  position: relative;
  margin-left: auto;
  margin-right: 0;
}
.save-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid #09c398;
  border-radius: 10px;
  background: #fff;
  color: #09c398;
  font-weight: 500;
  white-space: nowrap;
}
.save-search-btn:hover:not(:disabled) {
  background: #09c398;
  color: #fff;
}
.save-search-btn.is-saved {
  border-color: #09c398;
  background: #e8faf5;
  color: #0e2e50;
  opacity: 1;
}
.save-search-note {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 5;
  width: max-content;
  max-width: 280px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #0e2e50;
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
}
.save-search-note a {
  color: #09c398;
  text-decoration: underline;
}
.save-search-note.is-error {
  background: #e5484d;
}
.saved-search-table td {
  vertical-align: middle;
}
.saved-search-name {
  min-width: 220px;
}
.saved-search-name a {
  display: block;
  color: #0e2e50;
  font-weight: 600;
}
.saved-search-name a:hover {
  color: #09c398;
}
.saved-search-name small {
  display: block;
  color: #8a97a6;
}
.saved-search-help {
  margin: 10px 0 0;
  color: #8a97a6;
  font-size: 14px;
}
@media (max-width: 767.98px) {
  .save-search {
    order: 1;
    margin: 0 0 0 auto;
    flex-shrink: 0;
  }
  .save-search-btn {
    padding: 7px 12px;
    font-size: 13.5px;
  }
}
@media (max-width: 420px) {
  .save-search {
    order: 1;
    margin: 0;
    width: 100%;
  }
  .save-search-btn {
    width: 100%;
    justify-content: center;
  }
  .save-search-note {
    position: static;
    width: 100%;
    max-width: none;
    margin-top: 8px;
  }
}

/* ===================================================================
   Desktop header (lg and up): account dropdown panel, Favorites and
   Messages shortcuts, compact sticky navbar with account chip, active
   underline, and a tighter layout for laptop widths.
   =================================================================== */
.header-top-user .header-top-user-icon,
.nav-account .header-top-user-icon {
  position: relative;
}
.account-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  border: 2px solid #0e2e50;
  border-radius: 50%;
  background: #ff4d4f;
}

/* Dropdown panel */
.account-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 1000;
  width: 290px;
  overflow: hidden;
  border-radius: 0 0 14px 14px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(14, 46, 80, 0.25);
  text-align: left;
  animation: account-panel-in 0.18s ease-out;
}
@keyframes account-panel-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.account-panel-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 15px;
  background: linear-gradient(135deg, #0e2e50, #164a7c);
  color: #fff;
}
.account-panel-head strong {
  display: block;
  overflow: hidden;
  max-width: 190px;
  font-size: 15px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-panel-head small {
  opacity: 0.8;
  font-size: 12.5px;
  line-height: 1.25;
}
.account-panel-avatar {
  display: inline-flex;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #09c398;
  font-size: 14px;
  font-weight: 700;
}
.account-panel-list {
  margin: 0;
  padding: 6px 7px;
  list-style: none;
}
.account-panel-list a,
.account-panel-list button {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 7.5px 11px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: #0e2e50;
  font-size: 14.5px;
  line-height: 1.35;
  text-align: left;
}
.account-panel-list a:hover,
.account-panel-list a:focus-visible,
.account-panel-list button:hover,
.account-panel-list button:focus-visible {
  background: #f1f5f8;
  color: #0e2e50;
}
.account-panel-list i {
  width: 18px;
  color: #09c398;
  text-align: center;
}
.account-panel-divider {
  height: 1px;
  margin: 4px 4px;
  background: #eef1f4;
}
.account-panel-list .account-panel-logout,
.account-panel-list .account-panel-logout i {
  color: #e5484d;
}
.account-panel-badge {
  margin-left: auto;
  padding: 1px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}
.account-panel-badge.is-alert {
  background: #ff4d4f;
  color: #fff;
}
.account-panel-badge.is-count {
  background: #e8faf5;
  color: #09c398;
}

/* Shortcuts, navbar account chip and the Add button's two labels */
.header-shortcuts {
  display: flex;
  gap: 12px;
}
.header-shortcut {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #f1f5f8;
  color: #0e2e50;
  font-size: 17px;
  transition: background 0.2s, color 0.2s;
}
.header-shortcut:hover {
  background: #e8faf5;
  color: #09c398;
}
.header-shortcut-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border: 2px solid #fff;
  border-radius: 10px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}
.header-shortcut-badge.is-alert {
  background: #ff4d4f;
}
.header-shortcut-badge.is-count {
  background: #09c398;
}
.nav-account {
  position: relative;
}
.nav-account-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 5px;
  border: 0;
  border-radius: 24px;
  background: #f1f5f8;
  color: #0e2e50;
  font-size: 15px;
  font-weight: 600;
}
.nav-account-toggle:hover {
  background: #e8faf5;
}
.nav-account .header-top-user-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #09c398;
  color: #fff;
  font-size: 12px;
}
.nav-account .account-dot {
  border-color: #f1f5f8;
}
.nav-account .header-top-user-caret {
  font-size: 12px;
}
.navbar .header-btn .theme-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.nav-label-short,
.header-btn-short {
  display: none;
}

@media (min-width: 992px) {
  /* The account chip only appears once the top bar (and its account menu) has scrolled away. */
  .navbar:not(.fixed-top) .nav-account {
    display: none;
  }

  /* Compact sticky navbar: 90px tall at the top of the page, about 70px once pinned. */
  .navbar .nav-item .nav-link,
  .navbar-brand img {
    transition: padding 0.25s ease, width 0.25s ease;
  }
  .navbar.fixed-top .nav-item .nav-link {
    padding-top: 22px;
    padding-bottom: 22px;
  }
  .navbar.fixed-top .navbar-brand img {
    width: 160px;
  }
  .navbar.fixed-top .header-btn .theme-btn {
    padding: 10px 16px;
  }

  /* Current page: green underline. Hover: a lighter one slides in. */
  .navbar .nav-item .nav-link::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 20px;
    left: 0;
    height: 3px;
    border-radius: 3px;
    background: #09c398;
    opacity: 0.45;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease, bottom 0.25s ease;
  }
  .navbar .nav-item .nav-link:hover::after,
  .navbar .nav-item .nav-link:focus-visible::after {
    transform: scaleX(1);
  }
  .navbar .nav-item .nav-link.active {
    font-weight: 600;
  }
  .navbar .nav-item .nav-link.active::after {
    opacity: 1;
    transform: scaleX(1);
  }
  .navbar.fixed-top .nav-item .nav-link::after {
    bottom: 13px;
  }
}

/* Laptop widths: the template hid "Add Property" here; keep everything visible but tighter. */
@media (min-width: 992px) and (max-width: 1199px) {
  .navbar .header-btn {
    display: block;
  }
  .navbar .header-btn .theme-btn {
    padding: 10px 14px;
  }
  .header-btn-long,
  .nav-label-long {
    display: none;
  }
  .header-btn-short,
  .nav-label-short {
    display: inline;
  }
  .navbar .nav-item .nav-link {
    margin-right: 18px;
    font-size: 16px;
  }
  .navbar-brand img,
  .navbar.fixed-top .navbar-brand img {
    width: 150px;
  }
  .header-nav-right {
    gap: 10px;
    margin-left: 18px;
  }
  .header-shortcuts {
    gap: 10px;
  }
  .header-shortcut {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }
  .nav-account .header-top-user-name,
  .nav-account .header-top-user-caret {
    display: none;
  }
  .nav-account-toggle {
    padding: 5px;
  }
}

/* Header search: 🔍 button and the keyword bar that drops down under the navbar. */
.header-shortcut.header-search-btn {
  border: 0;
}
.header-shortcut.header-search-btn.is-open {
  background: #09c398;
  color: #fff;
}
.header-search {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  z-index: 998;
  padding: 18px 0 16px;
  border-top: 1px solid #eef1f4;
  background: #fff;
  box-shadow: 0 14px 30px rgba(14, 46, 80, 0.15);
  animation: account-panel-in 0.18s ease-out;
}
.header-search-form {
  display: flex;
  gap: 12px;
}
.header-search-input {
  position: relative;
  flex: 1;
}
.header-search-input i {
  position: absolute;
  top: 50%;
  left: 18px;
  color: #09c398;
  transform: translateY(-50%);
}
.header-search-input .form-control {
  height: 54px;
  padding-left: 46px;
  border: 2px solid #09c398;
  border-radius: 12px;
  box-shadow: none;
  font-size: 16px;
}
.header-search-form .theme-btn {
  padding: 0 26px;
  border-radius: 12px;
}
.header-search-form .theme-btn:disabled {
  opacity: 0.6;
}
.header-search-popular {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: #5b6b7c;
  font-size: 14px;
}
.header-search-popular button {
  padding: 5px 14px;
  border: 0;
  border-radius: 20px;
  background: #f1f5f8;
  color: #0e2e50;
  font-size: 14px;
}
.header-search-popular button:hover {
  background: #e8faf5;
  color: #09c398;
}
.mobile-search-btn {
  display: none;
}
@media (max-width: 991px) {
  .mobile-search-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: none;
    color: #0e2e50;
    font-size: 19px;
  }
  .mobile-search-btn::after {
    content: "";
    position: absolute;
    inset: -8px;
  }
  .mobile-search-btn.is-open {
    color: #09c398;
  }
  .header-search {
    padding: 14px 0;
  }
  .header-search-input .form-control {
    height: 48px;
    font-size: 15px;
  }
  .header-search-form .theme-btn {
    padding: 0 16px;
  }
}
@media (min-width: 992px) and (max-width: 1199px) {
  .header-shortcut.header-search-btn {
    width: 38px;
    height: 38px;
  }
}

/* Compare: ⇄ selected state, floating tray, and the comparison page. */
.listing-btns .compare-btn.is-added {
  background: #09c398;
  color: #fff;
}
.property-single-meta-option .compare-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: rgba(18, 197, 156, 0.12);
  color: #09c398;
  font-size: 17px;
}
.property-single-meta-option .compare-btn:hover,
.property-single-meta-option .compare-btn.is-added {
  background: #09c398;
  color: #fff;
}
.compare-tray {
  position: fixed;
  right: 24px;
  bottom: 90px;
  z-index: 1040;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.compare-tray-notice {
  max-width: 280px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #0e2e50;
  color: #fff;
  font-size: 14px;
  box-shadow: 0 10px 24px rgba(14, 46, 80, 0.25);
}
.compare-tray-bar {
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 30px;
  background: #0e2e50;
  box-shadow: 0 10px 24px rgba(14, 46, 80, 0.3);
}
.compare-tray-open {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 8px 12px 18px;
  color: #fff;
  font-weight: 600;
}
.compare-tray-open:hover {
  color: #09c398;
}
.compare-tray-count {
  padding: 1px 8px;
  border-radius: 12px;
  background: #09c398;
  color: #fff;
  font-size: 13px;
}
.compare-tray-clear {
  width: 40px;
  height: 46px;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  background: none;
  color: rgba(255, 255, 255, 0.75);
}
.compare-tray-clear:hover {
  color: #fff;
}
@media (max-width: 991px) {
  .compare-tray {
    right: 12px;
    bottom: calc(76px + env(safe-area-inset-bottom));
  }
}
.compare-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  color: #5b6b7c;
}
.compare-clear-btn {
  border: 0;
  background: none;
  color: #e5484d;
  font-weight: 500;
}
.compare-img img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}
button.compare-remove-btn {
  padding: 0;
  border: 0;
}
.compare-title h4 {
  font-size: 18px;
  line-height: 1.35;
}
.compare-title h4 a {
  color: #0e2e50;
}
.compare-title h4 a:hover {
  color: #09c398;
}
.compare-add-more {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.compare-add-more-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: calc(100% - 24px);
  height: 170px;
  border: 2px dashed #c8d0da;
  border-radius: 10px;
  color: #5b6b7c;
}
.compare-add-more-link i {
  font-size: 22px;
  color: #09c398;
}
.compare-add-more-link:hover {
  border-color: #09c398;
  color: #0e2e50;
}
.compare-add-more-link small {
  color: #8a97a6;
}
.compare-empty-icon {
  margin-bottom: 14px;
  font-size: 40px;
  color: #c8d0da;
}
@media (max-width: 991px) {
  .compare-wrapper .compare-item {
    margin-bottom: 30px;
  }
  .compare-mobile-label {
    float: left;
    margin-left: 16px;
    color: #5b6b7c;
  }
  .compare-wrapper ul li .compare-value {
    float: right;
    margin-right: 16px;
  }
  .compare-wrapper ul li::after {
    content: "";
    display: block;
    clear: both;
  }
}

/* Keep the desktop navbar on one line however many shortcuts it shows (search, compare,
   favorites, messages, account chip): links never wrap, and the pinned bar keeps the same labels
   as at the top of the page ("20/80 Houses", "Add Property") but sits a little tighter. */
@media (min-width: 992px) {
  .navbar .nav-item .nav-link,
  .navbar .header-btn .theme-btn {
    white-space: nowrap;
  }
}
@media (min-width: 1200px) {
  .navbar.fixed-top .nav-item .nav-link {
    margin-right: 20px;
  }
  .navbar.fixed-top .header-nav-right {
    gap: 12px;
    margin-left: 20px;
  }
}
@media (min-width: 1200px) {
  .navbar:not(.fixed-top) .navbar-brand img {
    width: 170px;
  }
  .navbar:not(.fixed-top) .nav-item .nav-link {
    margin-right: 18px;
  }
  .navbar:not(.fixed-top) .header-nav-right {
    gap: 10px;
    margin-left: 20px;
  }
}
@media (min-width: 1400px) {
  .navbar.fixed-top .nav-item .nav-link {
    margin-right: 18px;
  }
  .navbar.fixed-top .header-nav-right {
    gap: 12px;
    margin-left: 22px;
  }
}

.nav-account .header-top-user-name {
  max-width: 100px;
}

/* Footer ad slot: a sponsored listing card, or an "advertise here" card. */
.footer-ad .listing-item {
  margin-bottom: 0;
}
/* The footer styles its paragraphs for the dark background; give the card's back its own look. */
.footer-widget-box.footer-ad .listing-item p {
  color: #757f95;
  padding-right: 0;
}
.footer-ad-placeholder {
  padding: 30px 22px;
  text-align: center;
}
.footer-ad-placeholder-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: #e8faf5;
  color: #09c398;
  font-size: 22px;
}
.footer-ad-placeholder h4 {
  margin-bottom: 8px;
  color: #0e2e50;
  font-size: 18px;
}
.footer-ad-placeholder p {
  margin-bottom: 18px;
  color: #5b6b7c;
  font-size: 14px;
}
.footer-ad-loading {
  min-height: 380px;
  opacity: 0.4;
}

/* Inner pages: the first section after the page hero (breadcrumb banner) starts 50px below it
   instead of the template's 120px. The home page has no breadcrumb, so it is unaffected. */
.site-breadcrumb + .py-120,
.site-breadcrumb + .pt-120 {
  padding-top: 50px;
}

/* Long drop-downs (Location on Add Property): a fixed-height list that scrolls, with long
   site names wrapping instead of being cut off. */
.nice-select.nice-select-scroll .list {
  max-height: 280px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.nice-select.nice-select-scroll .option {
  white-space: normal;
  line-height: 1.4;
  padding-top: 9px;
  padding-bottom: 9px;
}

/* App download buttons under the home page search. */
.app-download {
  margin-top: 60px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 18px;
}
.app-download-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 200px;
  padding: 10px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: #09c398;
  color: #fff;
  box-shadow: 0 3px 24px rgb(0 0 0 / 12%);
  text-align: left;
  line-height: 1.15;
  transition: transform 0.2s ease, background 0.2s ease;
}
a.app-badge:hover,
a.app-badge:focus-visible {
  color: #fff;
  background: #0e2e50;
  transform: translateY(-2px);
}
.app-badge i {
  font-size: 32px;
}
.app-badge-text small {
  display: block;
  font-size: 12px;
  opacity: 0.85;
}
.app-badge-text strong {
  display: block;
  font-size: 20px;
  font-weight: 600;
}
.app-badge-soon {
  cursor: default;
}
/* Phones: keep the two buttons side by side, sharing the width equally. */
@media (max-width: 575px) {
  .app-download-badges {
    flex-wrap: nowrap;
    width: 100%;
    gap: 10px;
  }
  .app-badge {
    flex: 1 1 0;
    min-width: 0;
    max-width: 200px;
    justify-content: center;
    gap: 8px;
    padding: 9px 10px;
  }
  .app-badge i {
    font-size: 24px;
  }
  .app-badge-text small {
    font-size: 10px;
  }
  .app-badge-text strong {
    font-size: 15px;
    white-space: nowrap;
  }
}

/* Mortgage calculator: Calculate and Clear share one row. */
.property-single-agent-form .mortgage-actions {
  display: flex;
  gap: 10px;
}
.property-single-agent-form .mortgage-actions .theme-btn {
  flex: 1 1 0;
  justify-content: center;
}
.property-single-agent-form .mortgage-actions .theme-btn-outline {
  flex: 0 0 auto;
  width: auto;
  padding-left: 22px;
  padding-right: 22px;
}

/* Similar Properties on a listing page: cards stacked down the sidebar. */
.property-similar-list .listing-item {
  box-shadow: none;
  border: 2px solid rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
}
.property-similar-list .listing-item:last-child {
  margin-bottom: 0;
}
.property-similar-list .listing-feature-list {
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 6px 16px;
}
.property-similar-list .listing-feature-list li {
  white-space: nowrap;
}

/* Listing photos fill the gallery frame (cropped to one shape) whatever size they were uploaded at. */
.property-single-slider .rc-slide img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* Nearby Places on a listing page: full-width lists of places by kind, nearest first. */
.nearby-places {
  margin-top: 30px;
}
.nearby-group {
  height: 100%;
  border: 1px solid #edf0f4;
  border-radius: 12px;
  padding: 18px 20px;
}
.nearby-group h5 {
  font-size: 17px;
  margin-bottom: 12px;
  color: #0e2e50;
}
.nearby-group h5 i {
  color: #09c398;
  margin-right: 6px;
}
.nearby-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nearby-group li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px dashed #edf0f4;
}
.nearby-group li:first-child {
  border-top: none;
}
.nearby-group li a {
  color: #4b5a6a;
  overflow-wrap: anywhere;
}
.nearby-group li a:hover {
  color: #09c398;
}
.nearby-distance {
  flex: 0 0 auto;
  text-align: right;
  font-weight: 600;
  color: #0e2e50;
  font-size: 14px;
}
.nearby-distance small {
  display: block;
  font-weight: 400;
  color: #8a96a3;
  font-size: 12px;
}
.nearby-message {
  color: #5b6b7c;
  padding: 6px 0;
}
.nearby-message i {
  color: #09c398;
  margin-right: 4px;
}
.nearby-credit {
  margin: 18px 0 0;
  font-size: 12px;
  color: #8a96a3;
}
.nearby-credit a {
  color: #8a96a3;
  text-decoration: underline;
}
.property-single-map .contact-map iframe {
  border-radius: 10px;
  height: 380px;
}
@media (max-width: 575px) {
  .property-single-map .contact-map iframe {
    height: 300px;
  }
}

/* Mortgage calculator: a field that needs fixing is outlined red with a note under it. */
.property-single-agent-form .form-control.is-invalid {
  border-color: #e5484d;
  background-image: none;
  box-shadow: 0 0 0 3px rgb(229 72 77 / 12%);
}
.property-single-agent-form .form-control.is-invalid:focus {
  border-color: #e5484d;
}
.mortgage-field-error {
  color: #d93036;
  font-size: 13px;
  margin-top: 6px;
  padding-left: 4px;
}
/* "Open … in Google Maps" link under the listing's map. */
.nearby-open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: #09c398;
  font-weight: 500;
}
.nearby-open:hover {
  color: #0e2e50;
}
.nearby-group li .nearby-name {
  color: #4b5a6a;
  overflow-wrap: anywhere;
}
.nearby-empty {
  margin: 0;
  color: #8a96a3;
  font-size: 14px;
}

/* Footer: the social icons under the logo wrap onto a second row in narrow columns instead of
   running off the left edge. */
.footer-widget-box.about-us div.footer-social,
.footer-widget-box.about-us ul.footer-social {
  justify-content: flex-start;
}
.footer-widget-box.about-us ul.footer-social {
  flex-wrap: wrap;
  gap: 10px;
  padding-left: 0;
}

/* Cloudflare Turnstile on sign-in forms. */
.turnstile-box {
  min-height: 65px;
  width: 100%;
}
.turnstile-status,
.turnstile-error {
  margin: 6px 0 0;
  font-size: 13px;
}
.turnstile-status {
  color: #6c7a89;
}
.turnstile-error {
  color: #d93036;
}

/* Login / Register: responsive card */
.auth-page .login-form .login-header img {
  max-width: 100%;
}
@media (max-width: 767.98px) {
  .auth-page.py-120 {
    padding-top: 60px;
    padding-bottom: 60px;
  }
  .auth-page .login-form {
    padding: 28px 24px;
  }
  .auth-page .login-form .login-header {
    margin-bottom: 22px;
  }
  .auth-page .login-form .login-header img {
    width: 170px;
  }
  .auth-page .login-form .login-header p {
    font-size: 17px;
  }
}
@media (max-width: 575.98px) {
  .auth-page.py-120 {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .auth-page .login-form {
    padding: 24px 16px;
  }
  .auth-page .login-form::before {
    top: 24px;
    bottom: 24px;
  }
  .auth-page .login-form .login-header img {
    width: 150px;
  }
  .auth-page .login-form .login-header p {
    font-size: 16px;
  }
  /* Stops iOS zooming into the field on focus. */
  .auth-page .login-form .form-group .form-control {
    font-size: 16px;
  }
}

/* ── My Properties: a table on wide screens, one card per listing on phones ───────────────── */
.my-listings {
  width: 100%;
  border-collapse: collapse;
}
.my-listings th {
  padding: 12px;
  border-bottom: 1px solid #e6ebf1;
  color: #757f95;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.my-listings td {
  padding: 18px 12px;
  border-bottom: 1px solid #eef1f5;
  vertical-align: middle;
}
.my-listings tbody tr:last-child td {
  border-bottom: 0;
}
.my-listings-empty td {
  padding: 32px 12px;
  color: #757f95;
  text-align: center;
}
.my-listing-rejected td:first-child {
  box-shadow: inset 3px 0 0 #e5484d;
}

/* Property: photo, title, address and price */
.my-listing-link {
  display: flex;
  align-items: center;
  gap: 14px;
  color: inherit;
}
.my-listing-photo {
  flex: 0 0 auto;
  width: 104px;
  height: 76px;
  overflow: hidden;
  border-radius: 10px;
  background: #eaf7f4;
}
.my-listing-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.my-listing-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.my-listing-title {
  color: #0e2e50;
  font-family: 'K2D', sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  transition: color 0.2s ease;
}
.my-listing-link:hover .my-listing-title,
.my-listing-link:focus-visible .my-listing-title {
  color: #09c398;
}
.my-listing-address {
  color: #757f95;
  font-size: 14px;
}
.my-listing-price {
  color: #09c398;
  font-weight: 700;
}
.my-listing-reason {
  max-width: 560px;
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fdeeee;
  color: #a8262c;
  font-size: 14px;
  line-height: 1.5;
}

/* Type */
.my-listing-type {
  white-space: nowrap;
}
.my-listing-category {
  display: block;
  color: #0e2e50;
  font-weight: 600;
}
.my-listing-location {
  display: block;
  color: #757f95;
  font-size: 14px;
}

/* Status pills */
.my-listing-status {
  white-space: nowrap;
}
.my-listing-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}
.my-listing-pill + .my-listing-pill {
  margin-top: 6px;
}
.my-listing-pill-live {
  background: #eaf7f4;
  color: #067a5f;
}
.my-listing-pill-pending {
  background: #fff4dc;
  color: #8a5a00;
}
.my-listing-pill-rejected {
  background: #fdeeee;
  color: #a8262c;
}
.my-listing-pill-deal {
  border: 1px solid #e3e8ef;
  color: #0e2e50;
  font-weight: 500;
}

/* Actions: icon buttons on wide screens, labelled buttons on phones */
.my-listing-actions {
  white-space: nowrap;
  text-align: right;
}
.my-listing-actions > * + * {
  margin-left: 8px;
}
.my-listing-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid #e3e8ef;
  border-radius: 10px;
  background: #fff;
  color: #0e2e50;
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.my-listing-action:hover,
.my-listing-action:focus-visible {
  border-color: #09c398;
  color: #09c398;
}
.my-listing-action-danger:hover,
.my-listing-action-danger:focus-visible {
  border-color: #e5484d;
  background: #fdeeee;
  color: #e5484d;
}
.my-listing-action:disabled {
  cursor: progress;
  opacity: 0.6;
}
.my-listing-action:focus-visible {
  outline: 2px solid #09c398;
  outline-offset: 2px;
}
.my-listing-action-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Phones, tablets and narrow laptops (where the account sidebar takes room): one card per
   listing. Four columns only fit from 1200px. */
@media (max-width: 1199.98px) {
  .my-listings thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .my-listings,
  .my-listings tbody,
  .my-listings tr,
  .my-listings td {
    display: block;
    width: 100%;
  }
  .my-listings td {
    padding: 0;
    border: 0;
  }
  .my-listing {
    margin-bottom: 14px;
    padding: 14px;
    border: 1px solid #e6ebf1;
    border-radius: 12px;
    background: #fff;
  }
  .my-listing-rejected {
    border-left: 3px solid #e5484d;
  }
  .my-listing-rejected td:first-child {
    box-shadow: none;
  }
  .my-listing-link {
    align-items: flex-start;
    gap: 12px;
  }
  .my-listing-photo {
    width: 88px;
    height: 68px;
  }
  .my-listing-title {
    font-size: 15px;
  }
  .my-listing-type {
    display: flex !important;
    flex-wrap: wrap;
    gap: 4px 6px;
    margin-top: 12px;
    font-size: 14px;
    white-space: normal;
  }
  .my-listing-category,
  .my-listing-location {
    display: inline;
    font-size: 14px;
  }
  .my-listing-category::after {
    content: '·';
    margin-left: 6px;
    color: #757f95;
  }
  .my-listing-status {
    display: flex !important;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
  }
  .my-listing-pill + .my-listing-pill {
    margin-top: 0;
  }
  .my-listing-actions {
    display: grid !important;
    grid-auto-columns: 1fr;
    grid-auto-flow: column;
    gap: 8px;
    margin-top: 14px;
    padding-top: 12px !important;
    border-top: 1px solid #eef1f5 !important;
  }
  .my-listing-actions > * + * {
    margin-left: 0;
  }
  .my-listing-action {
    width: 100%;
  }
  .my-listing-action-text {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
  }
  .my-listings-empty td {
    padding: 24px 0;
  }
}

/* Search boxes: long site names (e.g. "Koye Feche (Oromia / Sheger City …)") are cut short with
   "…" instead of widening their column, and wrap inside the open list. */
.search-form .row > [class*="col"] {
  min-width: 0;
}
.search-form .nice-select {
  float: none;
}
.search-form .form-group i {
  top: 50%;
  transform: translateY(-50%);
  line-height: 1;
  pointer-events: none;
}
.search-form .nice-select .current {
  display: block;
  overflow: hidden;
  padding-right: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-form .nice-select .option {
  padding-top: 10px;
  padding-bottom: 10px;
  line-height: 1.4;
  white-space: normal;
}
.search-form .price-range-slider {
  width: 100%;
  padding-inline: 12px;
  box-sizing: border-box;
}
.search-form .price-range-slider .ui-slider {
  width: 100%;
  box-sizing: border-box;
}

/* Search boxes on desktop: an open list grows to fit its longest item (up to 620px), so names
   stay on one line; only the very longest site names wrap. It opens leftward when there's no
   room on the right (NiceSelect adds .list-align-right). Phones keep the field's width. */
@media (min-width: 992px) {
  .search-form .price-range-slider {
    max-width: 340px;
  }
  .search-form .nice-select .list {
    width: max-content;
    min-width: 100%;
    max-width: min(620px, calc(100vw - 48px));
  }
  .search-form .nice-select.list-align-right .list {
    right: 0;
    left: auto;
  }
}

/* Responsive search cards across all pages (home hero + listings filter + advanced panel). */
@media (max-width: 991.98px) {
  .search-form .form-group,
  .search-form .price-range-slider,
  .search-form .nice-select {
    margin-bottom: 0;
  }
  .search-form .advanced-search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-bottom: 0;
    padding: 12px 14px;
    border: 1px solid #ced4da;
    border-radius: 12px;
    background: #f8fafc;
    color: #0e2e50;
    font-size: 15px;
    font-weight: 500;
  }
  .search-form .advanced-search i {
    margin-right: 0;
  }
  .advanced-search-menu {
    position: static;
    top: auto;
    min-height: 0;
    margin-top: 12px;
    padding: 16px 0 4px;
    border: 0;
    border-top: 1px solid #e3e7ee;
    border-radius: 0;
    box-shadow: none;
  }
  .advanced-search-menu::before {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .search-form {
    padding: 16px;
    border-radius: 14px;
  }
  .search-form .nice-select {
    height: 48px;
    line-height: 46px;
    font-size: 14.5px;
  }
  .search-form .theme-btn {
    padding: 11px 16px;
    font-size: 15px;
  }
  .search-clear-btn {
    width: 46px;
  }
}

@media (max-width: 479.98px) {
  .header-search-form {
    flex-wrap: wrap;
  }
  .header-search-input {
    flex: 1 1 100%;
  }
  .header-search-form .theme-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Listing cards: every photo fills the same 4:3 frame (cropped to fit, never stretched or
   letterboxed) whatever size it was uploaded at, and cards side by side in a grid row are the
   same height, with long titles and addresses cut short and the bottom row lined up. */
.listing-img {
  aspect-ratio: 4 / 3;
}
.listing-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.listing-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  /* Always two lines tall (line-height 1.2), so one-line titles don't make a shorter card. */
  min-height: 2.4em;
}
/* The template makes links inline-block, which would stop the title being cut at two lines. */
.listing-title a {
  display: inline;
}
.listing-sub-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row > [class*="col"] > .listing-item {
  display: flex;
  flex-direction: column;
  height: calc(100% - 25px);
}
.property-listing .row > [class*="col"] > .listing-item {
  height: 100%;
}
.row > [class*="col"] > .listing-item > .listing-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.row > [class*="col"] > .listing-item > .listing-content > .listing-bottom {
  margin-top: auto;
}
.row > [class*="col"] > .listing-item > .listing-content > .listing-feature {
  margin-bottom: 15px;
}

/* List view on wide screens: the photo is a fixed 380 × 290 frame beside the details. */
@media all and (min-width: 992px) {
  .listing-list .row > [class*="col"] > .listing-item,
  .row.listing-list > [class*="col"] > .listing-item {
    flex-direction: row;
    height: auto;
  }
  .listing-list .listing-img {
    flex: 0 0 380px;
    aspect-ratio: auto;
    height: 290px;
  }
  .listing-list .listing-img img {
    width: 100%;
    height: 100%;
  }
}

/* Listing search box: Search, and a square ✕ beside it once a search is showing. */
.search-form-actions {
  display: flex;
  align-items: stretch;
  gap: 10px;
}
.search-form-actions .theme-btn {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  white-space: nowrap;
}
.search-clear-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  padding: 0;
  border: 1px solid #e3e7ee;
  border-radius: 12px;
  background: #fff;
  color: #757f95;
  font-size: 18px;
  line-height: 1;
  transition: all 0.3s ease-in-out;
}
.search-clear-btn:hover,
.search-clear-btn:focus-visible {
  border-color: #e5484d;
  background: #fff1f1;
  color: #e5484d;
}

/* Paged results: the top of the results stops below the sticky navbar when a new page opens,
   and the cards dim while the next page loads. */
.listing-results-top {
  scroll-margin-top: 110px;
}
.row.is-refreshing > [class*="col"] {
  opacity: 0.45;
  pointer-events: none;
  transition: opacity 0.2s ease-in-out;
}
.pagination {
  flex-wrap: wrap;
  row-gap: 10px;
}
.pagination .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.pagination .page-item.disabled .page-link {
  opacity: 0.35;
  cursor: default;
}
.pagination .page-gap .page-link,
.pagination .page-gap .page-link:hover {
  background: transparent;
  color: #0e2e50;
  cursor: default;
}
@media all and (max-width: 575px) {
  .pagination .page-link {
    margin: 0 4px;
    width: 36px;
    height: 36px;
  }
}

/* Bank-loan sales: the Add Property option, the search checkbox and the listing tags. */
.add-property-form .form-label-text {
  display: block;
  margin-bottom: 5px;
  color: #757f95;
}
.add-property-form .sale-option-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid #e3e7ee;
  border-radius: 12px;
  background: #f7fafc;
}
.add-property-form .sale-option-check .form-check-input {
  float: none;
  flex: 0 0 auto;
  margin: 3px 0 0;
}
.add-property-form .sale-option-check .form-check-label {
  margin: 0;
  color: #0e2e50;
  font-weight: 600;
  cursor: pointer;
}
.sale-option-hint {
  display: block;
  margin-top: 2px;
  color: #757f95;
  font-size: 14px;
  font-weight: 400;
}
.search-bank-loan {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  margin: 0;
  padding-left: 0;
  text-align: left;
}
.search-bank-loan .form-check-input {
  float: none;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 0;
  border-color: #757f95;
  box-shadow: none;
  cursor: pointer;
}
.search-bank-loan .form-check-input:checked {
  background-color: #09c398;
  border-color: #09c398;
}
.search-bank-loan .form-check-label {
  color: #757f95;
  white-space: nowrap;
  cursor: pointer;
}
.advanced-search-menu .search-bank-loan {
  min-height: 0;
  margin: 5px 0 15px;
}
.listing-loan-badge {
  position: absolute;
  left: 30px;
  top: 30px;
  z-index: 1;
  padding: 2px 10px;
  border-radius: 8px;
  background: #0e2e50;
  color: #fff;
  box-shadow: 0 3px 24px rgb(0 0 0 / 10%);
}
.listing-list .listing-loan-badge {
  left: 15px;
  top: 50px;
}
.property-single-meta-left .property-loan-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  margin-top: 6px;
  padding: 2px 10px;
  border-radius: 8px;
  background: #0e2e50;
  color: #fff;
}

/* ===================================================================
   Site-wide responsive polish across all pages (mobile & tablet)
   =================================================================== */

body {
  overflow-x: clip;
}

.listing-feature-list {
  flex-wrap: wrap;
  gap: 6px 12px;
}

.listing-bottom {
  flex-wrap: wrap;
  gap: 10px;
}

.listing-author {
  min-width: 0;
}

.listing-author h5 {
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-profile-search i {
  top: 50%;
  transform: translateY(-50%);
  line-height: 1;
  pointer-events: none;
}

/* Align Compare mobile labels with Bootstrap's lg breakpoint (991.98px) so 992px never doubles up. */
@media (min-width: 992px) {
  .display-mb {
    display: none !important;
  }
}

@media (max-width: 991.98px) {
  .compare-item {
    margin-bottom: 24px;
    border: 1px solid #eef1f5;
    border-radius: 12px;
    overflow: hidden;
  }
  .compare-content {
    min-height: auto;
    padding: 16px 14px;
  }
}

@media (max-width: 767.98px) {
  .py-120 {
    padding-top: 64px;
    padding-bottom: 64px;
  }
  .pt-120 {
    padding-top: 64px;
  }
  .pb-120 {
    padding-bottom: 64px;
  }
  .site-breadcrumb + .py-120,
  .site-breadcrumb + .pt-120 {
    padding-top: 36px;
  }
  .property-single-meta {
    gap: 16px;
  }
  .user-profile-card-header-right {
    width: 100%;
    gap: 12px;
  }
  .user-profile-search,
  .user-profile-card-header .theme-btn {
    width: 100%;
    justify-content: center;
  }
  .profile-message .user-profile-card-header {
    flex-wrap: wrap;
    gap: 12px;
  }
  .profile-message-inbox .lead-list-item {
    padding: 16px;
  }
}

@media (max-width: 575.98px) {
  .py-120 {
    padding-top: 48px;
    padding-bottom: 48px;
  }
  .pt-120 {
    padding-top: 48px;
  }
  .pb-120 {
    padding-bottom: 48px;
  }
}
