/* PROPERTY SOFT */

/* Root Variables */
:root {
  --propertysoft-accent: #385f59;
  --propertysoft-accent-dark: #203d38;
  --propertysoft-accent-rgb: 56, 95, 89;
  --propertysoft-accent-dark-rgb: 32, 61, 56;
  --brand-primary-color: var(--propertysoft-accent);
  --brand-secondary-color: var(--propertysoft-accent);
  --bde-brand-primary-color: var(--propertysoft-accent);
}

/* OTHER CLASSES */

.blockquote {
  background: #efefef;
  padding: 40px;
  border-radius: 10px;
}

.bde-faq__questionX {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.bde-faq__icon--inactive,
.bde-faq__icon--active {
  order: -1; /* Move icon to the left */
  margin-right: 30px;
  display: flex;
  align-items: center;
}

.bde-faq__title {
  flex: 1;
}

.bde-faq__icon--inactive svg,
.bde-faq__icon--active svg {
  width: 1em;
  height: 1em;
}

.faq-page {
  line-height: 2.5rem;
}

.faq-page h2 {
  font-size: 26px !important;
}

.country-selector a {
  padding: 0 !important;
}

/* FOTORAMA OVERRIDES */

/* PROPERTY SEARCH PAGE */

#search-parameters {
  padding: 10px 0 !important;
  display: block;
}
.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding: 1px;
  align-items: stretch;
}

.property-card {
  width: 100% !important;
  height: 100%;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.property-card a {
  text-decoration: none;
}

.property-link {
  display: block;
  height: 100%;
}

.property-main-pic {
  width: 100%;
  height: 250px !important;
  object-fit: cover;
  border-radius: 5px;
  transition: transform 0.4s ease;
}

.property-main-pic:hover {
  transform: scale(1.05) rotate(-1deg);
}

.property-card .price {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: var(--brand-primary-color);
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 17px;
  font-weight: 500;
  color: #fff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.property-content {
  padding: 10px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.property-title {
  font-size: 16px !important;
  font-weight: 520;
  margin-bottom: 10px;
  color: #333;
  line-height: 1.2;
  min-height: calc(1.2em * 2);
  overflow: hidden;
}

.property-description {
  font-size: 13px;
  color: #666;
  margin-bottom: 15px;
  flex-grow: 1;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.4em * 3);
}

.property-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #e0e0e0;
  padding-top: 15px;
}

.property-detail-item {
  display: flex;
  align-items: center;
}

.property-detail-item img {
  object-fit: none !important;
  width: auto !important;
  height: auto !important;
  margin-right: 5px;
}

.property-detail-item span {
  font-size: 14px;
  color: #666;
}

.property-ref {
  font-size: 14px;
}

.prop-view-btn {
  background: var(--brand-primary-color);
  border: none;
  padding: 6px 15px;
  font-size: 12px;
  border-radius: 5px;
  color: white;
}

.property-count {
  margin-left: 25px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 10px 20px;
  width: 100%;
}

.pagination a {
  margin: 5px;
  text-decoration: none;
  color: #0073aa;
  border: 1px solid #ccc;
  padding: 5px 10px;
}

.pagination a:hover {
  text-decoration: underline;
  background: var(--brand-primary-color);
  color: white !important;
}

.pagination .current {
  background-color: var(--brand-primary-color);
  color: white;
  font-weight: 600;
  padding: 12px 10px;
  width: 35px !important;
  height: 50px !important;
  text-align: center !important;
}

/* PROPERTY DETAILS PAGE */
.fotorama__img,
.fotorama__nav--thumbs {
  border-radius: 12px !important;
}

.fotorama__nav-wrap {
  margin-top: 5px;
}

/* SEARCH FORM */

/* General Styles */
.search-form-home {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.buttons-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

/* Grid Containers */
.grid-container,
.advanced-grid-container {
  display: grid;
  gap: 10px;
  width: 100%;
}

/* Grid Item */
.grid-item {
  width: 100%;
}

/* Desktop */
@media (min-width: 1025px) {
  .grid-container {
    grid-template-columns: repeat(5, 1fr);
  }
  .advanced-grid-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablets */
@media (min-width: 768px) and (max-width: 1024px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .advanced-grid-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobiles */
@media (max-width: 767px) {
  .grid-container,
  .advanced-grid-container {
    grid-template-columns: 1fr;
  }
}

/* Input Group Styles */
.input-group {
  position: relative;
  width: 100%;
}

.input-group-text {
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  font-size: 1rem;
  pointer-events: none;
}

.prop-min-max {
  width: 100%;
  padding: 10px 10px 10px 10px;
  border: 1px solid #ced4da;
  border-radius: 5px;
  box-sizing: border-box;
}

/* Buttons */
.btn-search,
.btn-reset,
.btn-adv-search {
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  border: none;
  width: 100%;
}

.btn-search {
  background-color: var(--brand-secondary-color);
  color: white;
}

.btn-reset {
  background-color: transparent;
  color: black;
  text-decoration: underline;
  width: auto;
}
/* Home Only */
.page-id-2 .btn-reset {
  color: white !important;
}

.btn-adv-search {
  background-color: transparent;
  color: black;
  display: flex;
  align-items: center;
  width: auto;
}

.btn-adv-search .icon {
  width: 18px;
  height: 18px;
  background-size: contain !important;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2232%22%20height%3D%2232%22%20viewBox%3D%220%200%2016%2016%22%3E%3Cpath%20fill%3D%22currentColor%22%20fill-rule%3D%22evenodd%22%20d%3D%22M11.5%202a1.5%201.5%200%201%200%200%203a1.5%201.5%200%200%200%200-3M9.05%203a2.5%202.5%200%200%201%204.9%200H16v1h-2.05a2.5%202.5%200%200%201-4.9%200H0V3zM4.5%207a1.5%201.5%200%201%200%200%203a1.5%201.5%200%200%200%200-3M2.05%208a2.5%202.5%200%200%201%204.9%200H16v1H6.95a2.5%202.5%200%200%201-4.9%200H0V8zm9.45%204a1.5%201.5%200%201%200%200%203a1.5%201.5%200%200%200%200-3m-2.45%201a2.5%202.5%200%200%201%204.9%200H16v1h-2.05a2.5%202.5%200%200%201-4.9%200H0v-1z%22%2F%3E%3C%2Fsvg%3E")
    no-repeat center;
  margin-right: 8px;
}

/* Advanced Fields */
#advanced-fields {
  margin-top: 10px;
}

.prop-ref-input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ced4da;
  border-radius: 5px;
}

* Tom Select Adjustments */

/* Adjust Tom Select input */
.tomselect-control {
  min-height: 40px;
  border-radius: 5px;
  border: 1px solid #ced4da;
}

.tomselect-control .item {
  background-color: #e9ecef;
  color: #495057;
  border-radius: 4px;
  margin-right: 5px;
}

.tomselect-control .item[data-value]:hover,
.tomselect-control .item[data-value]:focus {
  background-color: #ced4da;
}

.tomselect-control .item .remove {
  color: #6c757d;
  margin-left: 5px;
}

.tomselect-control .item .remove:hover {
  color: #dc3545;
}

.tomselect-control .placeholder {
  color: #6c757d;
}

.tomselect-dropdown {
  border-radius: 0 0 5px 5px;
  border: 1px solid #ced4da;
  border-top: none;
}

.tomselect-dropdown .option {
  padding: 10px;
}

.tomselect-dropdown .option:hover {
  background-color: #e9ecef;
  color: #495057;
}
/* Custom TS Styles */
.ts-control {
  line-height: 25px !important;
  font-size: 16px !important;
  font-family: var(--bde-body-font-family) !important;
}

.ts-control input {
  font-size: 16px !important;
  font-family: var(--bde-body-font-family) !important;
}

.ts-dropdown {
  font-size: 17px !important;
  font-family: var(--bde-body-font-family) !important;
}

/* PropertySoft Search Form Refresh */
.propertysoft-inline-search-form,
.propertysoft-search-form {
  width: 100% !important;
}

.propertysoft-search-form {
  margin: 0;
  padding: 0;
  font-family: inherit !important;
}

.propertysoft-search-form .form-row {
  display: grid;
  gap: 16px;
  margin: 0 0 16px;
}

.propertysoft-search-form .row-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.propertysoft-search-form .grid-item {
  min-width: 0;
}

.propertysoft-search-form input,
.propertysoft-search-form select,
.propertysoft-search-form button,
.propertysoft-search-form .ts-control,
.propertysoft-search-form .ts-control input,
.propertysoft-search-form .ts-dropdown input,
.propertysoft-search-form .ts-dropdown {
  font-family: inherit !important;
}

.propertysoft-search-form .ts-wrapper,
.propertysoft-search-form .prop-ref-input {
  width: 100% !important;
}

.propertysoft-search-form .prop-ref-input,
.propertysoft-search-form .ts-control,
.propertysoft-search-form select {
  min-height: 56px;
  border: 1px solid #d4dce6 !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  color: #16202a !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06) !important;
}

.propertysoft-search-form .prop-ref-input {
  padding: 0 18px !important;
}

.propertysoft-search-form .prop-ref-input::placeholder {
  color: #6b7280;
  opacity: 1;
}

.propertysoft-search-form .ts-control {
  display: flex !important;
  align-items: center !important;
  gap: 8px;
  padding: 11px 14px !important;
  line-height: 1.4 !important;
}

.propertysoft-search-form .ts-wrapper.multi .ts-control > div {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 2px 6px 2px 0 !important;
  padding: 6px 10px !important;
  border: 1px solid #cfe0ff !important;
  border-radius: 999px !important;
  background: #eef5ff !important;
  color: #184a78 !important;
}

.propertysoft-search-form .ts-wrapper.multi .ts-control > div .remove {
  border-left: none !important;
  color: #4f6f93 !important;
  padding-left: 0 !important;
}

.propertysoft-search-form .ts-wrapper.focus .ts-control,
.propertysoft-search-form .prop-ref-input:focus {
  border-color: #0f766e !important;
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12) !important;
  outline: none !important;
}

.propertysoft-search-form .ts-dropdown {
  margin-top: 8px;
  border: 1px solid #d4dce6 !important;
  border-radius: 16px !important;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18) !important;
  overflow: hidden;
}

.propertysoft-search-form .ts-dropdown .option,
.propertysoft-search-form .ts-dropdown .create {
  padding: 12px 14px !important;
}

.propertysoft-search-form .ts-dropdown .active {
  background: #eef6ff !important;
  color: #0d4b82 !important;
}

.propertysoft-search-actions {
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  gap: 12px;
}

.propertysoft-search-actions .btn-search {
  flex: 1 1 0;
  min-height: 56px;
  padding: 0 18px;
  border: none !important;
  border-radius: 14px !important;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.propertysoft-search-submit {
  background: #0f766e !important;
  color: #ffffff !important;
}

.propertysoft-search-submit:hover {
  background: #0b5e58 !important;
}

.propertysoft-search-advanced {
  background: #111827 !important;
  color: #ffffff !important;
}

.propertysoft-search-advanced:hover {
  background: #1f2937 !important;
}

.propertysoft-search-footer {
  justify-content: end;
}

.propertysoft-search-footer .btn-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #0f172a;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.propertysoft-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 6px 0 18px;
}

.propertysoft-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid #cfe3e6;
  border-radius: 999px;
  background: #eff7f8;
  color: #14333a;
  font-size: 14px;
  line-height: 1.2;
}

.propertysoft-chip-remove {
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .propertysoft-search-form .row-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .propertysoft-search-actions {
    grid-column: span 2;
  }
}

@media (max-width: 680px) {
  .propertysoft-search-form .row-4 {
    grid-template-columns: 1fr;
  }

  .propertysoft-search-actions {
    grid-column: auto;
    flex-direction: column;
  }
}

/* Hide search input for single selects (Bedrooms and Bathrooms) */
.tomselect-single .ts-dropdown .ts-dropdown-input {
  display: none;
}

/* New Development Badge and Styling */
.property-card.new-development {
  border: 1px solid #f0c040;
  box-shadow: 0 4px 8px rgba(240, 192, 64, 0.2);
}

.new-development-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #f0c040;
  color: #333;
  font-weight: 600;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 4px;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.property-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.recommended-badge {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  left: auto !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  z-index: 3;
  pointer-events: none;
  box-shadow: 0 4px 6px rgba(0,0,0,.1), 0 1px 3px rgba(0,0,0,.08);
}

/* PropertySoft Search/Results Modern Refresh */
.propertysoft-inline-search-form,
.propertysoft-search-form,
.property-grid,
#search-parameters,
.pagination {
  font-family: inherit !important;
}

.propertysoft-search-form {
  display: grid !important;
  gap: 14px !important;
  width: 100% !important;
  margin: 0 0 22px !important;
  padding: 18px !important;
  border: 1px solid #ddd8cf !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 18px 44px rgba(34, 40, 39, 0.11) !important;
}

.propertysoft-search-form .form-row {
  display: grid !important;
  gap: 12px !important;
  margin: 0 !important;
}

.propertysoft-search-form .row-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.propertysoft-search-form .grid-item {
  min-width: 0 !important;
}

.propertysoft-search-form input,
.propertysoft-search-form select,
.propertysoft-search-form button,
.propertysoft-search-form .ts-control,
.propertysoft-search-form .ts-control input,
.propertysoft-search-form .ts-dropdown {
  font-family: inherit !important;
}

.propertysoft-search-form .ts-wrapper,
.propertysoft-search-form .prop-ref-input {
  width: 100% !important;
}

.propertysoft-search-form .prop-ref-input,
.propertysoft-search-form .ts-control,
.propertysoft-search-form select {
  min-height: 54px !important;
  border: 1px solid #ddd8cf !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #222827 !important;
  box-shadow: none !important;
}

.propertysoft-search-form .prop-ref-input,
.propertysoft-search-form .ts-control,
.propertysoft-search-form .ts-control input,
.propertysoft-search-form .ts-dropdown input {
  font-size: 16px !important;
}

.propertysoft-search-form .prop-ref-input {
  padding: 0 14px !important;
}

.propertysoft-search-form .prop-ref-input::placeholder {
  color: #66716f !important;
  opacity: 1 !important;
}

.propertysoft-search-form .ts-control {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 10px 14px !important;
  line-height: 1.35 !important;
}

.propertysoft-search-form .ts-wrapper.multi .ts-control > div {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin: 2px 6px 2px 0 !important;
  padding: 6px 10px !important;
  border: 1px solid rgba(var(--propertysoft-accent-rgb), 0.18) !important;
  border-radius: 999px !important;
  background: rgba(var(--propertysoft-accent-rgb), 0.07) !important;
  color: var(--propertysoft-accent-dark) !important;
}

.propertysoft-search-form .ts-wrapper.multi .ts-control > div .remove {
  border-left: 0 !important;
  color: var(--propertysoft-accent-dark) !important;
  padding-left: 0 !important;
}

.propertysoft-search-form .ts-wrapper.propertysoft-mobile-placeholder:not(.has-items) .ts-control::before {
  content: attr(data-placeholder) !important;
  display: block !important;
  max-width: 100% !important;
  overflow: hidden !important;
  color: #66716f !important;
  font-size: 16px !important;
  font-weight: 450 !important;
  line-height: 1.35 !important;
  opacity: 1 !important;
  pointer-events: none !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.propertysoft-search-form .ts-wrapper.focus .ts-control,
.propertysoft-search-form .prop-ref-input:focus {
  border-color: var(--propertysoft-accent) !important;
  box-shadow: 0 0 0 4px rgba(var(--propertysoft-accent-rgb), 0.14) !important;
  outline: none !important;
}

.propertysoft-search-form .ts-dropdown {
  margin-top: 8px !important;
  border: 1px solid #ddd8cf !important;
  border-radius: 10px !important;
  box-shadow: 0 24px 60px rgba(34, 40, 39, 0.18) !important;
  overflow: hidden !important;
}

.propertysoft-search-form .ts-dropdown .ts-dropdown-content {
  max-height: min(320px, 46vh) !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch !important;
}

.propertysoft-search-form .ts-dropdown .option,
.propertysoft-search-form .ts-dropdown .create {
  padding: 12px 14px !important;
}

.propertysoft-search-form .ts-dropdown .active {
  background: rgba(var(--propertysoft-accent-rgb), 0.08) !important;
  color: var(--propertysoft-accent-dark) !important;
}

.propertysoft-search-actions {
  display: flex !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  gap: 10px !important;
}

.propertysoft-search-actions .btn-search {
  flex: 1 1 0 !important;
  min-height: 54px !important;
  padding: 0 16px !important;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  box-shadow: none !important;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease !important;
}

.propertysoft-search-actions .btn-search:hover {
  transform: translateY(-1px) !important;
}

.propertysoft-search-submit {
  background: var(--propertysoft-accent) !important;
  color: #ffffff !important;
}

.propertysoft-search-submit:hover {
  background: var(--propertysoft-accent-dark) !important;
}

.propertysoft-search-advanced {
  border-color: rgba(var(--propertysoft-accent-rgb), 0.22) !important;
  background: rgba(var(--propertysoft-accent-rgb), 0.07) !important;
  color: var(--propertysoft-accent-dark) !important;
}

.propertysoft-search-advanced:hover {
  background: rgba(var(--propertysoft-accent-rgb), 0.13) !important;
}

body .propertysoft-search-form .propertysoft-search-actions #btn-main-search.propertysoft-search-submit.btn-search {
  background: var(--propertysoft-accent) !important;
  border-color: var(--propertysoft-accent) !important;
  color: #ffffff !important;
}

body .propertysoft-search-form .propertysoft-search-actions #btn-main-search.propertysoft-search-submit.btn-search:hover {
  background: var(--propertysoft-accent-dark) !important;
  border-color: var(--propertysoft-accent-dark) !important;
}

body .propertysoft-search-form .propertysoft-search-actions button.propertysoft-search-advanced.btn-search {
  background: rgba(var(--propertysoft-accent-rgb), 0.07) !important;
  border-color: rgba(var(--propertysoft-accent-rgb), 0.22) !important;
  color: var(--propertysoft-accent-dark) !important;
}

body .propertysoft-search-form .propertysoft-search-actions button.propertysoft-search-advanced.btn-search:hover {
  background: rgba(var(--propertysoft-accent-rgb), 0.13) !important;
  border-color: rgba(var(--propertysoft-accent-rgb), 0.32) !important;
}

.propertysoft-search-footer {
  display: flex !important;
  justify-content: flex-end !important;
}

.propertysoft-search-footer .btn-reset {
  color: #66716f !important;
  font-weight: 500 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}

.propertysoft-filter-chips {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 9px !important;
  margin: 0 0 24px !important;
}

.propertysoft-filter-chip {
  min-height: 36px !important;
  padding: 7px 11px !important;
  border: 1px solid rgba(var(--propertysoft-accent-rgb), 0.18) !important;
  border-radius: 999px !important;
  background: rgba(var(--propertysoft-accent-rgb), 0.07) !important;
  color: var(--propertysoft-accent-dark) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

#search-parameters {
  display: block !important;
  margin: 0 0 16px !important;
  padding: 0 !important;
  color: #66716f !important;
  font-size: 1rem !important;
}

.property-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px !important;
  align-items: stretch !important;
  width: 100% !important;
  padding: 0 !important;
}

.property-link.propertysoft-card-link,
.property-link {
  display: block !important;
  height: 100% !important;
  color: inherit !important;
  text-decoration: none !important;
}

.propertysoft-recommended-properties {
  display: grid !important;
  gap: 24px !important;
  width: 100% !important;
}

.propertysoft-recommended-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.propertysoft-recommended-item {
  display: block !important;
  height: 100% !important;
}

.propertysoft-recommended-item[hidden] {
  display: none !important;
}

.propertysoft-load-more-wrap {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
}

.propertysoft-load-more-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 46px !important;
  padding: 0 22px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--propertysoft-accent) !important;
  color: #ffffff !important;
  font: inherit !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  cursor: pointer !important;
  transition: transform 180ms ease, background-color 180ms ease, opacity 180ms ease !important;
}

.propertysoft-load-more-btn:hover {
  background: var(--propertysoft-accent-dark) !important;
  transform: translateY(-1px) !important;
}

.propertysoft-load-more-btn:active {
  transform: translateY(0) scale(0.99) !important;
}

.propertysoft-load-more-count {
  color: #66716f !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
}

.property-card.propertysoft-property-card,
.property-card {
  position: relative !important;
  display: grid !important;
  grid-template-rows: auto 1fr !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
  border: 1px solid #ddd8cf !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  box-shadow: 0 12px 30px rgba(34, 40, 39, 0.07) !important;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease !important;
  user-select: text !important;
}

.property-card.propertysoft-property-card:hover,
.property-card:hover {
  transform: translateY(-3px) !important;
  border-color: rgba(var(--propertysoft-accent-rgb), 0.28) !important;
  box-shadow: 0 22px 46px rgba(34, 40, 39, 0.13) !important;
}

.property-card-media {
  position: relative !important;
  overflow: hidden !important;
  aspect-ratio: 16 / 11 !important;
  background: #f5f2ec !important;
  user-select: none !important;
}

.property-image-link {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  color: inherit !important;
  text-decoration: none !important;
}

.property-main-pic {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  object-fit: cover !important;
  border-radius: 0 !important;
  transition: transform 360ms ease !important;
}

.property-card:hover .property-main-pic {
  transform: scale(1.035) !important;
}

.property-card .price {
  position: absolute !important;
  right: auto !important;
  bottom: 12px !important;
  left: 12px !important;
  top: auto !important;
  padding: 8px 11px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  color: var(--propertysoft-accent-dark) !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  font-variant-numeric: tabular-nums !important;
  line-height: 1 !important;
  box-shadow: 0 10px 24px rgba(34, 40, 39, 0.16) !important;
}

.property-photo-count {
  position: absolute !important;
  right: 12px !important;
  bottom: 12px !important;
  padding: 7px 10px !important;
  border-radius: 999px !important;
  background: rgba(34, 40, 39, 0.72) !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
}

.recommended-badge,
.new-development-badge {
  top: 12px !important;
  right: auto !important;
  left: 12px !important;
  padding: 7px 10px !important;
  border-radius: 999px !important;
  background: rgba(var(--propertysoft-accent-dark-rgb), 0.88) !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

.property-content {
  display: grid !important;
  gap: 13px !important;
  padding: 16px !important;
}

.property-location {
  margin: 0 !important;
  color: var(--propertysoft-accent) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  line-height: 1.2 !important;
  text-transform: uppercase !important;
}

.property-title {
  min-height: 0 !important;
  margin: 0 !important;
  color: #222827 !important;
  font-size: 19px !important;
  font-weight: 520 !important;
  letter-spacing: 0 !important;
  line-height: 1.18 !important;
  text-transform: none !important;
}

.property-title-link {
  color: inherit !important;
  text-decoration: none !important;
}

.property-title-link:hover {
  color: var(--propertysoft-accent) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}

.property-description {
  display: -webkit-box !important;
  min-height: 42px !important;
  margin: 0 !important;
  overflow: hidden !important;
  color: #66716f !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
}

.property-details {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 7px !important;
  align-items: stretch !important;
  padding: 0 !important;
  border-top: 0 !important;
}

.property-detail-item {
  display: grid !important;
  gap: 3px !important;
  min-width: 0 !important;
  min-height: 50px !important;
  padding: 8px !important;
  border-radius: 8px !important;
  background: #f5f2ec !important;
}

.property-detail-item img {
  display: none !important;
}

.property-detail-item strong {
  color: var(--propertysoft-accent-dark) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
}

.property-detail-item span {
  color: #66716f !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  letter-spacing: 0.07em !important;
  line-height: 1.1 !important;
  text-transform: uppercase !important;
}

.property-footer {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 12px !important;
  margin-top: auto !important;
}

.property-ref {
  margin: 0 !important;
  color: #66716f !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

.prop-view-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 38px !important;
  padding: 0 13px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--propertysoft-accent) !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  user-select: none !important;
}

body .propertysoft-pagination.pagination,
.pagination {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  margin: 34px 0 0 !important;
  padding: 0 !important;
}

body .propertysoft-pagination a.page-link[data-propertysoft-page-link],
body .propertysoft-pagination span.page-link,
body .propertysoft-pagination .page-link.current,
.pagination a,
.pagination span,
.pagination .current {
  display: inline-grid !important;
  place-items: center !important;
  min-width: 42px !important;
  width: auto !important;
  height: 42px !important;
  margin: 0 !important;
  padding: 0 12px !important;
  border: 1px solid #ddd8cf !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #66716f !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  opacity: 1 !important;
  text-indent: 0 !important;
  text-decoration: none !important;
  visibility: visible !important;
  white-space: nowrap !important;
}

body .propertysoft-pagination a.page-link[data-propertysoft-page-link]:hover,
body .propertysoft-pagination .page-link.current,
.pagination a:hover,
.pagination .current {
  border-color: var(--propertysoft-accent) !important;
  background: var(--propertysoft-accent) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

.propertysoft-search-form .propertysoft-search-mode-tabs {
  display: inline-grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 4px !important;
  width: min(100%, 420px) !important;
  padding: 4px !important;
  border: 1px solid #ddd8cf !important;
  border-radius: 10px !important;
  background: #f5f2ec !important;
}

.propertysoft-search-form .propertysoft-search-mode-tab {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 42px !important;
  padding: 0 14px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #66716f !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  cursor: pointer !important;
}

.propertysoft-search-form .propertysoft-search-mode-tab.is-active {
  background: #ffffff !important;
  color: var(--propertysoft-accent-dark) !important;
  box-shadow: 0 8px 20px rgba(34, 40, 39, 0.08) !important;
}

.propertysoft-search-form .propertysoft-search-panel {
  display: none !important;
}

.propertysoft-search-form .propertysoft-search-panel.is-active {
  display: grid !important;
  gap: 12px !important;
}

.propertysoft-search-form .propertysoft-ai-search-box {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 190px) !important;
  gap: 10px !important;
  align-items: stretch !important;
}

.propertysoft-search-form .propertysoft-ai-search-input {
  width: 100% !important;
  min-height: 56px !important;
  padding: 0 16px !important;
  border: 1px solid #ddd8cf !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #222827 !important;
  font-family: inherit !important;
  font-size: 16px !important;
  line-height: 1.2 !important;
  box-shadow: none !important;
}

.propertysoft-search-form .propertysoft-ai-search-input:focus {
  border-color: var(--propertysoft-accent) !important;
  box-shadow: 0 0 0 4px rgba(var(--propertysoft-accent-rgb), 0.14) !important;
  outline: none !important;
}

.propertysoft-search-form .propertysoft-ai-search-input::placeholder {
  color: #66716f !important;
  opacity: 1 !important;
}

.propertysoft-search-form .propertysoft-ai-search-submit {
  min-height: 56px !important;
  border-radius: 8px !important;
}

.propertysoft-search-form .propertysoft-ai-search-hint {
  margin: 0 !important;
  color: #66716f !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
}

.propertysoft-smart-search-feedback,
.propertysoft-smart-search-correction-note {
  width: 100% !important;
  margin: 22px 0 !important;
  padding: 20px !important;
  border: 1px solid #d8d5cc !important;
  border-left: 4px solid var(--propertysoft-accent) !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #222827 !important;
  font-family: inherit !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
  text-align: left !important;
  box-sizing: border-box !important;
}

.propertysoft-smart-search-anchor {
  display: block !important;
  width: 100% !important;
  height: 0 !important;
  scroll-margin-top: 140px !important;
}

.propertysoft-smart-search-feedback h3 {
  margin: 0 0 8px !important;
  color: #222827 !important;
  font-family: inherit !important;
  font-size: 20px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
}

.propertysoft-smart-search-feedback p,
.propertysoft-smart-search-feedback ul,
.propertysoft-smart-search-feedback li {
  margin: 8px 0 !important;
  text-align: left !important;
}

.propertysoft-smart-search-feedback ul {
  padding-left: 20px !important;
  list-style: disc outside !important;
}

.propertysoft-smart-search-feedback .propertysoft-smart-search-manual {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-height: 44px !important;
  margin-top: 10px !important;
  padding: 0 18px !important;
  border: 1px solid var(--propertysoft-accent) !important;
  border-radius: 6px !important;
  background: var(--propertysoft-accent) !important;
  color: #ffffff !important;
  font-family: inherit !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  cursor: pointer !important;
}

.propertysoft-smart-search-feedback .propertysoft-smart-search-manual:hover,
.propertysoft-smart-search-feedback .propertysoft-smart-search-manual:focus-visible {
  border-color: var(--propertysoft-accent-dark) !important;
  background: var(--propertysoft-accent-dark) !important;
  color: #ffffff !important;
}

.propertysoft-smart-search-correction-note {
  padding: 12px 16px !important;
  font-size: 14px !important;
}

@media (max-width: 1120px) {
  .propertysoft-search-form .row-4,
  .property-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .propertysoft-search-actions {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 700px) {
  .propertysoft-search-form {
    padding: 14px !important;
  }

  .propertysoft-search-form .prop-ref-input,
  .propertysoft-search-form select.propertysoft-native-mobile-select,
  .propertysoft-search-form .ts-control,
  .propertysoft-search-form .ts-control input,
  .propertysoft-search-form .ts-dropdown input {
    font-size: 16px !important;
  }

  .propertysoft-search-form select.propertysoft-native-mobile-select {
    display: block !important;
    width: 100% !important;
    min-height: 56px !important;
    padding: 0 14px !important;
    border: 1px solid #d9d4ca !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    color: #18211f !important;
    -webkit-appearance: menulist !important;
    appearance: auto !important;
  }

  .propertysoft-search-form .ts-dropdown .ts-dropdown-content {
    max-height: min(260px, 38vh) !important;
  }

  .propertysoft-search-form .row-4,
  .property-grid {
    grid-template-columns: 1fr !important;
  }

  .propertysoft-search-actions {
    grid-column: auto !important;
    flex-direction: column !important;
  }

  .propertysoft-search-form .propertysoft-search-mode-tabs {
    width: 100% !important;
  }

  .propertysoft-search-form .propertysoft-ai-search-box {
    grid-template-columns: 1fr !important;
  }

  .property-title {
    font-size: 19px !important;
  }
}
