/* Digozi Property Plugin default button style - increased specificity */

.dpp-shortcode-container {
  width: 100%;
}

button.dpp-button,
a.dpp-button,
.dpp-properties-filters button.dpp-button,
.dpp-enquiry-form button.dpp-button,
.dpp-subscribe-form button.dpp-button,
.dpp-unsubscribe-form button.dpp-button,
.dpp-property-details-area a.dpp-button {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.75em 0em;
  border: 1px solid var(--dpp-brand-color);
  color: var(--dpp-brand-color);
  border-radius: 0;
  text-decoration: none;
  font-weight: 400;
  background: none;
  /*transition: background 0.2s, color 0.2s;*/
  margin-top: 1em;
}

button.dpp-button:not([disabled]),
a.dpp-button:not([disabled]),
.dpp-properties-filters button.dpp-button:not([disabled]),
.dpp-enquiry-form button.dpp-button:not([disabled]),
.dpp-subscribe-form button.dpp-button:not([disabled]),
.dpp-unsubscribe-form button.dpp-button:not([disabled]),
.dpp-property-details-area a.dpp-button:not([disabled]) {
  cursor: pointer;
}

button.dpp-button:not([disabled]):hover,
a.dpp-button:not([disabled]):hover,
.dpp-properties-filters button.dpp-button:not([disabled]):hover,
.dpp-enquiry-form button.dpp-button:not([disabled]):hover,
.dpp-subscribe-form button.dpp-button:not([disabled]):hover,
.dpp-unsubscribe-form button.dpp-button:not([disabled]):hover,
.dpp-property-details-area a.dpp-button:not([disabled]):hover,
button.dpp-button:not([disabled]):focus,
a.dpp-button:not([disabled]):focus,
.dpp-properties-filters button.dpp-button:not([disabled]):focus,
.dpp-enquiry-form button.dpp-button:not([disabled]):focus,
.dpp-subscribe-form button.dpp-button:not([disabled]):focus,
.dpp-unsubscribe-form button.dpp-button:not([disabled]):focus,
.dpp-property-details-area a.dpp-button:not([disabled]):focus {
  /*background: var(--dpp-brand-color);*/
  color: color-mix(in srgb, var(--dpp-brand-color) 85%, white);
  background: none;
  text-decoration: none;
}

/* Highly specific button styles for all plugin contexts */

/* Harmonize input/select/button heights for all plugin forms */
.dpp-enquiry-form input[type="text"],
.dpp-enquiry-form input[type="email"],
.dpp-enquiry-form select,
.dpp-enquiry-form textarea,
.dpp-enquiry-form button,
.dpp-enquiry-form button.dpp-button,
.dpp-subscribe-form input[type="text"],
.dpp-subscribe-form input[type="email"],
.dpp-subscribe-form select,
.dpp-subscribe-form button,
.dpp-subscribe-form button.dpp-button,
.dpp-unsubscribe-form input[type="text"],
.dpp-unsubscribe-form input[type="email"],
.dpp-unsubscribe-form select,
.dpp-unsubscribe-form button,
.dpp-unsubscribe-form button.dpp-button,
.dpp-properties-filters input[type="text"],
.dpp-properties-filters input[type="email"],
.dpp-properties-filters select,
.dpp-properties-filters button,
.dpp-properties-filters button.dpp-button {
  margin: 0px;
  min-width: 0px;
  font-size: 1em;
  line-height: 1.3;
  /** Does not work for select in safari */
  padding: 0.8em 1em;
  height: auto;
  box-sizing: border-box;
}

.dpp-enquiry-form input[type="text"],
.dpp-enquiry-form input[type="email"],
.dpp-enquiry-form select,
.dpp-enquiry-form textarea,
.dpp-subscribe-form input[type="text"],
.dpp-subscribe-form input[type="email"],
.dpp-subscribe-form select,
.dpp-unsubscribe-form input[type="text"],
.dpp-unsubscribe-form input[type="email"],
.dpp-unsubscribe-form select,
.dpp-properties-filters input[type="text"],
.dpp-properties-filters input[type="email"],
.dpp-properties-filters select {
  border: 1px solid #d0d4d9;
  border-radius: 0px;;
  background: #fff;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.dpp-enquiry-form input[type="text"]:focus,
.dpp-enquiry-form input[type="email"]:focus,
.dpp-enquiry-form select:focus,
.dpp-enquiry-form textarea:focus,
.dpp-subscribe-form input[type="text"]:focus,
.dpp-subscribe-form input[type="email"]:focus,
.dpp-subscribe-form select:focus,
.dpp-unsubscribe-form input[type="text"]:focus,
.dpp-unsubscribe-form input[type="email"]:focus,
.dpp-unsubscribe-form select:focus,
.dpp-properties-filters input[type="text"]:focus,
.dpp-properties-filters input[type="email"]:focus,
.dpp-properties-filters select:focus {
  border-color: var(--dpp-brand-color, #ff5722);
}

/* Subscribe Form Specific */

.dpp-subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 0.7em;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Force hide the p tag inserted by wp_nonce_field

The wp_nonce_field function in WordPress can sometimes output an extra <p> tag, which is a feature, not a bug. This is because WordPress automatically adds <p> tags to the content via the wpautop filter. To prevent this, you can remove the wpautop filter. 

*/
.dpp-subscribe-form > p {
  display: none;
}

.dpp-subscribe-form .dpp-subscribe-inputs {
  display: flex;
  flex-direction: row;
  gap: 0.7em;
  width: 100%;
  align-items: flex-start; /* Prevents vertical stretching */
}

.dpp-subscribe-form .dpp-subscribe-inputs input[type="text"],
.dpp-subscribe-form .dpp-subscribe-inputs input[type="email"] {
  flex: 1 1 100%;
}

.dpp-subscribe-form button {
  /* width: 100%;
  padding: 0.7em 1.5em;
  font-size: 1.1em;
  border-radius: 0; */
}
@media (max-width: 600px) {
  .dpp-subscribe-form .dpp-subscribe-inputs {
      flex-direction: column;
      gap: 0.7em;
  }
  .dpp-subscribe-form input,
  .dpp-subscribe-form button {
      width: 100% !important;
      min-width: 0;
      flex: 1 1 100%;
  }
}

/* Enquiry Form Specific */

.dpp-enquiry-form {
  display: flex;
  flex-direction: column;
  gap: 1em;
  width: 100%;
  margin: 0;
  box-sizing: border-box;
}
/* .dpp-enquiry-form input,
.dpp-enquiry-form select,
.dpp-enquiry-form textarea {
  width: 100%;
  max-width: 100%;
}
.dpp-enquiry-form button {
  width: 100%;
  padding: 0.9em 0;
  font-size: 1.1em;
  border-radius: 0;
} */
@media (max-width: 600px) {
  .dpp-enquiry-form {
      gap: 0.7em;
  }
  .dpp-enquiry-form button {
      font-size: 1em;
  }
}

.dpp-enquiry-form .dpp-enquiry-subscribe {
  margin: 0;
  text-align: left;
}

.dpp-enquiry-form .dpp-enquiry-subscribe label {
  display: inline-block;
  font-size: 1em;
  margin: 0;
  cursor: pointer;
}

.dpp-enquiry-form .dpp-enquiry-subscribe input[type="checkbox"] {
  /*margin-right: 0.4em;*/
  width: auto;
} 

/* Pagination */

.dpp-properties-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3em;
  justify-content: center;
  align-items: center;
  margin: 2em 0 1em 0;
  font-size: 0.97em;
}
.dpp-properties-pagination .dpp-properties-pagination-count-text {
  text-align:center;
  margin-bottom:0.5em;
  font-size:0.97em;
}
.dpp-properties-pagination a, .dpp-properties-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.7em;
  height: 1.7em;
  padding: 0 0.45em;
  border-radius: 0;
  background: none;
  border: none;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
}
.dpp-properties-pagination a:hover, .dpp-properties-pagination a:focus {
  background: var(--dpp-brand-color, #ff5722);
  color: #fff;
  outline: none;
}
.dpp-properties-pagination .current {
  background: transparent;
  color: var(--dpp-brand-color, #ff5722);
  border: 1.5px solid var(--dpp-brand-color, #ff5722);
  font-weight: 700;
  cursor: default;
  pointer-events: none;
  min-width: 1.7em;
  height: 1.7em;
  padding: 0 0.45em;
}
.dpp-properties-pagination .disabled {
  opacity: 0.4;
  pointer-events: none;
  cursor: default;
}
.dpp-properties-pagination .ellipsis {
  padding: 0 0.5em;
  color: #aaa;
  background: none;
  cursor: default;
}
@media (max-width: 600px) {
  .dpp-properties-pagination {
      font-size: 0.93em;
      gap: 0.13em;
  }
  .dpp-properties-pagination a, .dpp-properties-pagination span, .dpp-properties-pagination .current {
      min-width: 1.3em;
      height: 1.3em;
      padding: 0 0.25em;
  }
}

/* Property Grid CSS Grid Layout */
.dpp-properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5em;
  align-items: start;
  justify-items: stretch;
} 

.dpp-property-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
  overflow: hidden;
  position: relative;
  padding-bottom: 1em;
}

.dpp-property-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  position: relative;
  flex: 0 0 auto;
  /*flex-shrink: 0;*/
}

.card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.dpp-swiper .swiper-button-next,
.dpp-swiper .swiper-button-prev {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 24px;
  min-width: 24px;
  max-width: 24px;
  height: 100%;
  margin-top: 0;
  border-radius: 0;
  background: rgba(0,0,0,0.18);
  color: #fff;
  opacity: 0.7;
  transition: opacity 0.2s, background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6em;
  z-index: 2;
  outline: none;
  box-shadow: none;
  background-size: 12px 12px !important;
  background-repeat: no-repeat;
  background-position: center;
}

.dpp-swiper .swiper-button-next {
  background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='12' viewBox='0 0 24 24' width='12' xmlns='http://www.w3.org/2000/svg'><path d='M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6z'/></svg>");
}

.dpp-swiper .swiper-button-prev {
  background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='12' viewBox='0 0 24 24' width='12' xmlns='http://www.w3.org/2000/svg'><path d='M15.41 7.41L10.83 12l4.58 4.59L14 18l-6-6 6-6z'/></svg>");
}

.dpp-swiper .swiper-button-next:after,
.dpp-swiper .swiper-button-prev:after {
  display: none;
}

.dpp-swiper .swiper-button-next:focus,
.dpp-swiper .swiper-button-prev:focus,
.dpp-swiper .swiper-button-next:active,
.dpp-swiper .swiper-button-prev:active {
  outline: none;
  box-shadow: none;
}

.dpp-swiper .swiper-button-next:hover,
.dpp-swiper .swiper-button-prev:hover {
  opacity: 1;
  background: rgba(0,0,0,0.32);
}

.dpp-swiper .swiper-button-next,
.dpp-swiper .swiper-rtl .swiper-button-prev {
  right: 0;
  left: auto;
}

.dpp-swiper .swiper-button-prev,
.dpp-swiper .swiper-rtl .swiper-button-next {
  left: 0;
  right: auto;
}

/* Property Card Details Styles */
.dpp-property-type {
  text-transform: uppercase;
  font-size: 0.95em;
  color: #444;
  margin-bottom: 0.5em;
}
.dpp-property-price-label {
  font-size: 0.85em;
  color: #888;
  margin-top: 0.2em;
  margin-bottom: 0;
  line-height: 1.1;
}
.dpp-property-price {
  color: var(--dpp-brand-color);
  font-size: 1.4em;
  font-weight: 500;
  margin-bottom: 0.5em;
  margin-top: 0;
  line-height: 1.1;
}

.dpp-property-sale-type {
  font-size: 0.95em;
  color: #444;
  margin-bottom: 0.5em;
}
.dpp-unit-number {
  font-size: 0.95em;
  color: #444;
  margin-bottom: 0.5em;
}
.dpp-unit-type {
  font-size: 0.95em;
  color: #444;
  margin-bottom: 0.5em;
}

/* Property Card Layout Styles */
.dpp-property-content.card-body {
  position: relative;
  width: 100%;
  border-radius: 0;
  padding: 0;
}
.dpp-property-title-bar {
  font-size: 1.2em;
  padding: 1.2em 1em 0.8em 1em;
  border-radius: 0;
}
.dpp-property-divider {
  height: 1px;
  background: #e5e8ea;
  width: 100%;
}
.dpp-property-details-area {
  padding: 1em 1em 1.5em 1em;
}

.dpp-property-title {
  font-size: 1.2em;
  font-weight: 400;
  margin: 0;
}

.dpp-featured-badge {
  position: absolute;
  top: -0.5em;
  left: 2em;
  width: 1.2em;
  height: 1.2em;
  background: var(--dpp-brand-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  z-index: 3;
  font-size: 1em;
  padding: 0;
}
.dpp-featured-badge svg {
  display: block;
  width: 1em;
  height: 1em;
  fill: #fff;
  margin: 0;
}

/* Main property image wrapper and image */
.dpp-main-image-wrapper {
  width: 100% !important;
  max-width: 100vw !important;
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
  background: #e5e8ea;
  display: block;
}
.dpp-main-image-wrapper img.dpp-main-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  position: absolute;
  top: 0; left: 0;
  display: block;
}

.dpp-property-details {
  width: 100%;
  box-sizing: border-box;
}

.dpp-property-item-title {
  font-size: var(--wp--preset--font-size--xx-large);
  font-weight: 400;
  margin: 0;
}

.dpp-property-details .dpp-property-summary {
  font-size: var(--wp--preset--font-size--large);
  font-weight: 400 !important;
}

.dpp-property-meta {
  font-size: 1em;
  color: #666;
  margin-bottom: 0.5em;
}

.dpp-property-metas-boxed {

  /* border: 0;
  border-top: 1px solid color-mix(in srgb, var(--dpp-brand-color) 75%, white); */
  padding-top: 1em;
  padding-bottom: 1em;
  display: flex;
  flex-direction: row;
  gap: 0.2em;
}

.dpp-property-meta-boxed {
  display: flex;
  flex: 0 0 25%;
  max-width: 25%;
  min-width: 25%;
  flex-direction: column;
  gap: 0.2em;
  /*border: 1px solid color-mix(in srgb, var(--dpp-brand-color) 75%, white);*/
  font-size: 1em;
  /*padding: 0.5em;*/
}


/* .dpp-property-meta-boxed.md {
  font-size: var(--wp--preset--font-size--x-large);
}

.dpp-property-meta-boxed.lg {
  font-size: var(--wp--preset--font-size--xx-large);
} */

.dpp-property-meta-boxed-label, .dpp-property-meta-boxed-value {
  font-size: 0.8em;
  font-weight: 400;
  color: color-mix(in srgb, var(--dpp-brand-color) 75%, white);
}


.dpp-property-meta .dpp-property-meta-row {
  display: flex;
  flex-direction: column;
  gap: 0.2em;
  margin-bottom: 0.5em;
}

.dpp-property-meta-row + .dpp-property-meta-row {
  margin-top: 0.5em;
}

.dpp-property-meta .dpp-property-meta-row-label {
  font-size: 0.8em;
  font-weight: 400;
}
.dpp-property-meta .dpp-property-meta-row-value {
  font-size: var(--wp--preset--font-size--large);
  font-weight: 400;
}

.dpp-property-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.5em 2.2em;
  margin: 2em 0 1em 0;
  padding: 0 2em;
}
.dpp-feature-item {
  display: flex;
  flex-direction: row;
  gap: 0.5em;
  align-items: center;
  background: none;
  color: inherit;
  padding: 0.35em 1.6em 0.35em 0.9em;
  font-size: 1em;
  font-weight: 500;
  margin-bottom: 0.2em;
  border: 1px solid #e0f2e9;
}
.dpp-feature-tick {
  margin-right: 0.6em;
}
@media (max-width: 600px) {
  .dpp-property-summary { font-size: 1.08em; }
  .dpp-property-features { gap: 0.4em 0.7em; }
  .dpp-feature-item { min-width: 90px; font-size: 0.97em; padding: 0.32em 1em 0.32em 0.6em; }
}
.dpp-details-image-slider {
  width: 100%;
  margin: 0 auto 0 auto;
  max-width: none;
}
.dpp-details-main-image {
  width: 100%;
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
  background: #e5e8ea;
  max-width: none;
}
#dpp-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  max-width: 100%;
}

/* Thumbnails container and images */

.dpp-thumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  width: 100%;
  justify-content: flex-start;
  align-items: center;
  box-sizing: border-box;
}
.dpp-thumb {
  width: 54px;
  height: 54px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid #eee;
  box-sizing: border-box;
  border-radius: 0;
  background: #fafafa;
  transition: border-color 0.15s;
  display: block;
}
.dpp-thumb:focus,
.dpp-thumb:hover {
  border-color: var(--dpp-brand-color, #ff5722);
}

/* Unit meta fields for property cards */
.dpp-property-unit-count,
.dpp-property-unit-type {
  font-size: 0.95em;
  color: #444;
  margin-bottom: 0.5em;
}
.dpp-property-meta-row-label {
  font-size: 0.8em;
  font-weight: 400;
}
.dpp-property-meta-row-value {
  font-size: var(--wp--preset--font-size--large, 1em);
  font-weight: 400;
}

/* Swiper pagination: top center, active dot white */
.dpp-swiper .swiper-pagination {
  position: absolute !important;
  top: 0.75em;
  left: 50%;
  transform: translateX(-50%);
  width: auto !important;
  z-index: 3;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.dpp-swiper .swiper-pagination-bullet {
  background: rgba(255,255,255,0.5);
  opacity: 1;
  border: 1.5px solid #fff;
  width: 10px;
  height: 10px;
  margin: 0 3px;
  pointer-events: auto;
  transition: background 0.2s, border 0.2s;
}
.dpp-swiper .swiper-pagination-bullet-active {
  background: #fff;
  border: 1.5px solid #fff;
}
