/* PROPERTY SOFT */

/* Root Variables */
:root {
  --brand-primary-color: #066180;
  --brand-secondary-color: #1eb2ff;
}

/* 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;
}

.property-card {
  width: 100% !important;
  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-main-pic {
  width: 100%;
  height: 250px !important;
  object-fit: fill;
  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: bold;
  margin-bottom: 10px;
  color: #333;
  min-height: 2em;
}

.property-description {
  font-size: 13px;
  color: #666;
  margin-bottom: 15px;
  flex-grow: 1;
}

.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: bold;
  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;
}

/* 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: bold;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 4px;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
