/* Listing cards - Nabek Hills / Aryaf style */
.hp-listing--view-block {
  background-color: #FFFDF8 !important;
  border: 1px solid #E6D8BF !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  box-shadow: 0 8px 24px rgba(62, 49, 32, 0.08) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Hover effect */
.hp-listing--view-block:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(62, 49, 32, 0.13) !important;
}

/* Image area */
.hp-listing--view-block .hp-listing__image {
  background-color: #F4EBDD !important;
  padding: 0 !important;
}

/* Make images fill the card more elegantly */
.hp-listing--view-block .hp-listing__image img {
  width: 100% !important;
  height: 260px !important;
  object-fit: cover !important;
  display: block !important;
}

/* Card content */
.hp-listing--view-block .hp-listing__content {
  background-color: #FFFDF8 !important;
  padding: 22px 24px !important;
  text-align: right !important;
}

/* Listing title */
.hp-listing--view-block .hp-listing__title {
  color: #2F261B !important;
  font-size: 21px !important;
  font-weight: 600 !important;
  line-height: 1.5 !important;
}

/* Listing title link */
.hp-listing--view-block .hp-listing__title a {
  color: #2F261B !important;
  text-decoration: none !important;
}

/* Date / meta */
.hp-listing--view-block .hp-listing__created-date,
.hp-listing--view-block .hp-listing__details,
.hp-listing--view-block .hp-listing__attribute {
  color: #9A8360 !important;
  font-size: 12px !important;
  letter-spacing: 0.3px;
}

/* Bottom area */
.hp-listing--view-block .hp-listing__footer {
  background-color: #FFFDF8 !important;
  border-top: 1px solid #EDE2D0 !important;
}





------------------------





/* =====================================
   Responsive header fix - Nabek Hills
   Fix overlap between Add Listing, menu toggle, and logo
===================================== */

/* General header cleanup */
.site-header,
.header-navbar,
.hp-header,
.hp-menu--site-header {
  position: relative;
}

/* Medium screens + narrow desktop windows */
@media (max-width: 1200px) {

  /* Reduce logo size */
  .custom-logo,
  .site-logo img,
  .custom-logo-link img {
    max-width: 220px !important;
    height: auto !important;
  }

  /* Add space between Add Listing and hamburger */
  .menu-toggle,
  .header-navbar__toggle,
  .site-header .toggle,
  .site-header button {
    margin-right: 14px !important;
    margin-left: 0 !important;
  }

  .hp-menu__item--submit-listing,
  .hp-menu__item--submit-listing a,
  .button--primary,
  a[href*="add-listing"],
  a[href*="submit-listing"] {
    margin-right: 10px !important;
    padding: 9px 12px !important;
    font-size: 14px !important;
  }
}

/* Tablets and small desktops */
@media (max-width: 992px) {

  .custom-logo,
  .site-logo img,
  .custom-logo-link img {
    max-width: 190px !important;
  }

  .menu-toggle,
  .header-navbar__toggle,
  .site-header .toggle,
  .site-header button {
    margin-right: 16px !important;
  }

  .hp-menu__item--submit-listing a,
  .button--primary,
  a[href*="add-listing"],
  a[href*="submit-listing"] {
    padding: 8px 11px !important;
    font-size: 13px !important;
  }
}

/* Mobile */
@media (max-width: 767px) {

  .custom-logo,
  .site-logo img,
  .custom-logo-link img {
    max-width: 170px !important;
  }

  .menu-toggle,
  .header-navbar__toggle,
  .site-header .toggle,
  .site-header button {
    margin-right: 16px !important;
  }

  .hp-menu__item--submit-listing a,
  .button--primary,
  a[href*="add-listing"],
  a[href*="submit-listing"] {
    padding: 8px 10px !important;
    font-size: 13px !important;
    min-width: auto !important;
  }
}




-------------------------



/* Space between username and user icon */
.hp-menu__item--user-account > a,
.hp-menu__item--user-login > a,
.hp-menu__item--user-register > a,
.header-navbar__menu .hp-menu__item a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
}

/* Force spacing on the user icon itself */
.hp-menu__item--user-account i,
.hp-menu__item--user-account svg,
.hp-menu__item--user-account .hp-icon,
.hp-menu__item--user-login i,
.hp-menu__item--user-login svg,
.hp-menu__item--user-login .hp-icon,
.header-navbar__menu i,
.header-navbar__menu svg,
.header-navbar__menu .hp-icon {
  margin-left: 8px !important;
  margin-right: 8px !important;
}





---------------------




/* Force WhatsApp phone link to look like a green button */
.hp-listing__attributes--secondary a[href*="wa.me"],
.hp-listing__attributes--secondary a[href*="whatsapp"],
.aryaf-whatsapp-button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;

  width: 100% !important;
  box-sizing: border-box !important;

  background: #25D366 !important;
  color: #ffffff !important;

  padding: 14px 18px !important;
  border-radius: 10px !important;

  text-decoration: none !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  line-height: 1.4 !important;

  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.18) !important;
  border: none !important;
}

/* Hover */
.hp-listing__attributes--secondary a[href*="wa.me"]:hover,
.hp-listing__attributes--secondary a[href*="whatsapp"]:hover,
.aryaf-whatsapp-button:hover {
  background: #1fb85a !important;
  color: #ffffff !important;
}

/* Keep phone number direction correct */
.hp-listing__attributes--secondary a[href*="wa.me"],
.aryaf-whatsapp-number {
  direction: ltr !important;
  unicode-bidi: isolate !important;
}





------------------------





/* Nabek Hills share box */
.nh-share-box {
  margin-top: 16px !important;
  padding: 16px !important;
  background: #ffffff !important;
  border: 1px solid #eadcc1 !important;
  border-radius: 10px !important;
  box-shadow: 0 6px 18px rgba(47, 38, 27, 0.08) !important;
  text-align: center !important;
  direction: rtl !important;
}

.nh-share-title {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #2f3b22 !important;
  margin-bottom: 12px !important;
}

.nh-share-buttons {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
}

.nh-share-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 11px 12px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  border: none !important;
  cursor: pointer !important;
  line-height: 1.4 !important;
}

.nh-share-whatsapp {
  background: #25D366 !important;
  color: #ffffff !important;
}

.nh-share-facebook {
  background: #3F5A2A !important;
  color: #ffffff !important;
}

.nh-share-x {
  background: #2F261B !important;
  color: #ffffff !important;
}

.nh-share-copy {
  background: #B89A58 !important;
  color: #ffffff !important;
}

.nh-share-btn:hover {
  opacity: 0.88 !important;
  color: #ffffff !important;
}

/* Mobile */
@media (max-width: 767px) {
  .nh-share-buttons {
    grid-template-columns: 1fr !important;
  }
}





------------------------





/* Nabek Hills Map Browser */
.nh-map-browser {
  background: #FAF6ED;
  border: 1px solid #E6D8BF;
  border-radius: 18px;
  padding: 18px;
  margin: 24px 0;
  direction: rtl;
}

.nh-map-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.nh-map-toolbar h2 {
  margin: 0 0 6px;
  color: #2F261B;
  font-size: 26px;
}

.nh-map-toolbar p {
  margin: 0 0 8px;
  color: #7A6B55;
}

.nh-map-count {
  color: #B89A58;
  font-weight: 700;
  font-size: 14px;
}

.nh-map-main-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
}

.nh-map-main-filters label,
.nh-map-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #FFFDF8;
  color: #2F261B;
  border: 1px solid #E6D8BF;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 14px;
  cursor: pointer;
}

.nh-map-category-panel {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

.nh-map-filter-group {
  background: #FFFDF8;
  border: 1px solid #E6D8BF;
  border-radius: 14px;
  padding: 14px;
}

.nh-map-filter-group strong {
  display: block;
  color: #2F261B;
  margin-bottom: 10px;
}

.nh-map-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nh-map-canvas {
  width: 100%;
  height: 620px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #D8C7A6;
  background: #EDE2D0;
}

.nh-map-pin {
  display: block;
  width: 22px;
  height: 22px;
  border: 3px solid #ffffff;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 4px 12px rgba(47, 38, 27, 0.35);
}

.nh-map-popup {
  min-width: 190px;
  text-align: right;
}

.nh-map-popup-image {
  width: 100%;
  height: 95px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 8px;
}

.nh-map-popup strong {
  display: block;
  color: #2F261B;
  margin-bottom: 4px;
}

.nh-map-popup span,
.nh-map-popup small {
  display: block;
  color: #7A6B55;
  margin-bottom: 4px;
}

.nh-map-popup a {
  display: block;
  margin-top: 8px;
  background: #38a300;
  color: #ffffff !important;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 700;
}

.nh-map-legend {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 12px;
  color: #2F261B;
  font-size: 14px;
}

.nh-legend-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-left: 6px;
}

.nh-legend-rent {
  background: #38a300;
}

.nh-legend-sale {
  background: #B89A58;
}

@media (max-width: 900px) {
  .nh-map-toolbar {
    flex-direction: column;
  }

  .nh-map-category-panel {
    grid-template-columns: 1fr;
  }

  .nh-map-canvas {
    height: 520px;
  }
}

@media (max-width: 600px) {
  .nh-map-browser {
    padding: 12px;
    border-radius: 14px;
  }

  .nh-map-toolbar h2 {
    font-size: 22px;
  }

  .nh-map-canvas {
    height: 480px;
  }
}





-----------------------





/* Nabek Hills Map Fullscreen Button */
.nh-map-fullscreen-toggle {
  background: #3F5A2A !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 11px 16px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  box-shadow: 0 6px 16px rgba(47, 38, 27, 0.16) !important;
}

.nh-map-fullscreen-toggle:hover {
  background: #2F4320 !important;
  color: #ffffff !important;
}

/* Prevent page scrolling while map is fullscreen */
body.nh-map-fullscreen-active {
  overflow: hidden !important;
}

/* Fullscreen map mode */
.nh-map-browser.nh-map-is-fullscreen {
  position: fixed !important;
  inset: 0 !important;
  z-index: 999999 !important;
  width: 100vw !important;
  max-width: none !important;
  height: 100vh !important;
  margin: 0 !important;
  padding: 12px !important;
  border: none !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  background: #FAF6ED !important;
  box-sizing: border-box !important;
}

/* Toolbar inside fullscreen */
.nh-map-browser.nh-map-is-fullscreen .nh-map-toolbar {
  margin-bottom: 8px !important;
  align-items: center !important;
}

.nh-map-browser.nh-map-is-fullscreen .nh-map-toolbar h2 {
  font-size: 20px !important;
  margin-bottom: 4px !important;
}

.nh-map-browser.nh-map-is-fullscreen .nh-map-toolbar p {
  display: none !important;
}

.nh-map-browser.nh-map-is-fullscreen .nh-map-count {
  font-size: 13px !important;
}

/* Keep filters visible but compact */
.nh-map-browser.nh-map-is-fullscreen .nh-map-category-panel {
  max-height: 125px !important;
  overflow-y: auto !important;
  margin-bottom: 8px !important;
}

.nh-map-browser.nh-map-is-fullscreen .nh-map-filter-group {
  padding: 10px !important;
}

.nh-map-browser.nh-map-is-fullscreen .nh-map-main-filters label,
.nh-map-browser.nh-map-is-fullscreen .nh-map-filter-chip {
  padding: 7px 10px !important;
  font-size: 13px !important;
}

/* Fullscreen map height */
.nh-map-browser.nh-map-is-fullscreen .nh-map-canvas {
  height: calc(100vh - 210px) !important;
  min-height: 0 !important;
  border-radius: 12px !important;
}

/* Hide legend in fullscreen to save space */
.nh-map-browser.nh-map-is-fullscreen .nh-map-legend {
  display: none !important;
}

/* Mobile fullscreen adjustments */
@media (max-width: 700px) {
  .nh-map-browser.nh-map-is-fullscreen {
    padding: 8px !important;
  }

  .nh-map-browser.nh-map-is-fullscreen .nh-map-toolbar {
    gap: 8px !important;
  }

  .nh-map-browser.nh-map-is-fullscreen .nh-map-toolbar h2 {
    font-size: 18px !important;
  }

  .nh-map-browser.nh-map-is-fullscreen .nh-map-category-panel {
    max-height: 145px !important;
    grid-template-columns: 1fr !important;
  }

  .nh-map-browser.nh-map-is-fullscreen .nh-map-canvas {
    height: calc(100vh - 260px) !important;
  }

  .nh-map-fullscreen-toggle {
    width: 100% !important;
    justify-content: center !important;
  }
}





-----------------------




/* Fix fullscreen map when WordPress admin bar is visible */
body.admin-bar .nh-map-browser.nh-map-is-fullscreen {
  top: 32px !important;
  height: calc(100vh - 32px) !important;
  inset: 32px 0 0 0 !important;
}

/* Recalculate map height under admin bar */
body.admin-bar .nh-map-browser.nh-map-is-fullscreen .nh-map-canvas {
  height: calc(100vh - 242px) !important;
}

/* Mobile admin bar height */
@media (max-width: 782px) {
  body.admin-bar .nh-map-browser.nh-map-is-fullscreen {
    top: 46px !important;
    height: calc(100vh - 46px) !important;
    inset: 46px 0 0 0 !important;
  }

  body.admin-bar .nh-map-browser.nh-map-is-fullscreen .nh-map-canvas {
    height: calc(100vh - 306px) !important;
  }
}





----------------------





/* Nabek Hills listing comments */
.nh-listing-comments {
  margin-top: 50px !important;
  padding: 28px !important;
  background: #FFFDF8 !important;
  border: 1px solid #E6D8BF !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 24px rgba(47, 38, 27, 0.06) !important;
  text-align: right !important;
}

.nh-listing-comments h3 {
  margin: 0 0 8px !important;
  color: #2F261B !important;
  font-size: 24px !important;
}

.nh-comments-note,
.nh-no-comments {
  color: #7A6B55 !important;
  font-size: 14px !important;
  margin-bottom: 18px !important;
}

.nh-comments-list {
  margin-bottom: 28px !important;
}

.nh-listing-comments .comment {
  background: #FAF6ED !important;
  border: 1px solid #E6D8BF !important;
  border-radius: 12px !important;
  padding: 16px !important;
  margin-bottom: 12px !important;
}

.nh-listing-comments .comment-author {
  color: #2F261B !important;
  font-weight: 700 !important;
}

.nh-listing-comments .comment-meta,
.nh-listing-comments .comment-metadata {
  color: #9A8360 !important;
  font-size: 12px !important;
  margin-bottom: 8px !important;
}

.nh-comment-form-title {
  color: #2F261B !important;
  font-size: 20px !important;
  margin-bottom: 14px !important;
}

.nh-listing-comments label {
  display: block !important;
  color: #2F261B !important;
  font-weight: 700 !important;
  margin-bottom: 6px !important;
}

.nh-listing-comments input[type="text"],
.nh-listing-comments input[type="email"],
.nh-listing-comments input[type="url"],
.nh-listing-comments textarea {
  width: 100% !important;
  border: 1px solid #D8C7A6 !important;
  border-radius: 10px !important;
  padding: 12px !important;
  background: #ffffff !important;
  color: #2F261B !important;
  box-sizing: border-box !important;
}

.nh-listing-comments .submit {
  background: #3F5A2A !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 12px 22px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}

.nh-listing-comments .submit:hover {
  background: #2F4320 !important;
  color: #ffffff !important;
}

@media (max-width: 700px) {
  .nh-listing-comments {
    padding: 18px !important;
  }

  .nh-listing-comments h3 {
    font-size: 21px !important;
  }
}

.nh-listing-comments {
  position: relative !important;
  margin-top: 60px !important;
  padding-top: 35px !important;
}

.nh-listing-comments::before {
  content: "" !important;
  display: block !important;
  width: 100% !important;
  height: 1px !important;
  background: #d8c7a6 !important;
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
}