/* FILTERS */
.filter-section.types {
    display: flex;
    justify-content: space-around;
    align-items: center;  
        overflow: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overflow-x: auto;
}

.elementor-kit-7 button.filter-type-btn {
  all: unset;
  cursor: pointer;
  transition: 0.3s ease;
  border-bottom: 1px solid transparent;
  padding: 10px;
}

.elementor-kit-7 button.filter-type-btn svg path {
  /*transition: 0.3s ease;*/
}

.elementor-kit-7 button.filter-type-btn.active svg path,
.elementor-kit-7 button.filter-type-btn:hover svg path {
  fill: #080E0E;
  opacity: 1;
}

.elementor-kit-7 button.filter-type-btn.active,
.elementor-kit-7 button.filter-type-btn:hover {
  border-bottom: 1px solid #080E0E;
}

.filter-section.locations {
  overflow: hidden;
  width: 100%;
  margin-top: 20px;
    display: flex;
  overflow-x: auto;
  gap: 1rem;
  padding: 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; /* para suavidad en iOS */
}

.filter-locations-content {
  display: flex;
  width: max-content;
}

.elementor-kit-7 button.filter-location-btn {
  background-color: transparent;
  color: #7A7A7A;
  border-color: #7A7A7A;
  font-size: 12px;
}

.elementor-kit-7 button.filter-location-btn:hover,
.elementor-kit-7 button.filter-location-btn.active {
  background-color: black;
  color: white;
} 

/* LOOP */
.opalestate-property-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr; /* Default: mobile (1 column) */
  grid-gap: 33px;
}

@media (min-width: 768px) {
  .opalestate-property-grid {
    grid-template-columns: repeat(2, 1fr); /* Tablet: 2 columns */
  }
}

@media (min-width: 1024px) {
  .opalestate-property-grid {
    grid-template-columns: repeat(4, 1fr); /* Desktop: 3 columns */
  }
}

.opalestate-property {
  border-radius: 32px;
  font-family: 'Poppins';
  position: relative;
  background-color: white;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.opalestate-property:hover {
    box-shadow: 5px 0 30px rgba(150, 150, 150, 0.4);  
    transform: translateY(-4px);
}


.opalestate-property-header {
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-color: white;
    border-radius: 32px;
    min-height: 258px;
    position: relative;
    cursor: pointer;
}

.opalestate-property-status {
  background-image: url(../img/bg_status.png);
  position: absolute;
  top: 0;
  right: -10px;
  font-size: 14px;
  line-height: 1.1em;
  text-transform: uppercase;
  color: white;
  text-align: center;
  width: 97px;
  height: 42px;
  background-repeat: no-repeat;
  padding-top: 10px;
}

.opalestate-property-sale {
  background-color:#D62626;
  position: absolute;
  top: 40px;
  right: 0px;
  padding: 5px 10px;
  font-size: 11px;
  line-height: 1.1em;
  text-transform: uppercase;
  color: white;
  text-align: center;
  border-radius: 16px;
}

.opalestate-property-body {
  padding: 20px;
  cursor: pointer;
}

.opalestate-property-title {
  font-family: 'Montserrat';
  font-size: 18px;
  font-weight: 600;
  color: #888582;
  margin-bottom: 5px;
}

.osp-sku {
  font-family: 'Montserrat';
  font-size: 10px;
  font-weight: 600;
  color: #9A9A9A;
  margin-bottom: 15px;
}


.osp-price {
  font-family: 'Montserrat';
  font-size: 16px;
  font-weight: 600;
  color: black;
  margin-bottom: 0px;
}

.osp-price-sale {
  font-family: 'Montserrat';
  font-size: 14px;
  font-weight: 600;
  color: #D62626;
  margin-bottom: 0px;
  text-decoration: line-through;
}

.osp-link {
  float: right;
  padding: 10px;
  border: 1px solid #e0deda;
  background-color: white!important;
  color: black!important;
  font-weight: 500;
  cursor: pointer;
}

.osp-link:hover,
a:hover .osp-link {
  background-color:#D62626!important;
  color: white!important;
  border-color:#D62626;
}

.osp-link:hover path,
a:hover .osp-link path {
  stroke: white!important;
}

a:hover .elementor-animation-float {
    transform: translateY(-8px);
}

.osp-error {
  display: flex;
  height: 258px;
  justify-content: center;
  align-items: center;
  background-color:#D62626;
  border-radius: 32px;
  color: white;
  text-transform: uppercase;
  font-weight: bolder;
  font-size: 24px;
  text-align: center;
}

.osp-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* FINDER CSS */
/* Main layout */
.property-listing-wrapper {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    background: #fefaf6;
}

.filter-sidebar {
    max-width: 280px;
    background: #F2ECE2;
    padding: 30px;
    border-radius: 1.5rem;
    width: fit-content;
}

.filters-content {
    background-image: url('https://www.inmobanyeres.com/wp-content/uploads/2025/07/logo-sidebar.png');
    background-repeat: no-repeat;
    background-position: top center;
    background-size: auto;
}

.filter-sidebar h2 {
    font-size: 21px;
    margin-bottom: 1rem;
    font-family: 'Poppins';
    color: #000;
}

.filter-sidebar label {
    font-size: 15px;
    margin-bottom: 0.5rem;
    font-family: 'Poppins';
    color: #000;
    opacity: 0.6;
    width: 100%;
}

.filter-sidebar select {
    margin-bottom: 1rem;
    font-family: 'Poppins';
    font-size: 15px;
    color: #7A7A7A;
    background-color: #FCF8F1;
    border-radius: 16px;
    appearance: none;
    -webkit-appearance: none; /* Safari/Chrome */
    -moz-appearance: none;    /* Firefox */
    width: 100%;
    padding: 10px 40px 10px 12px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='10' viewBox='0 0 16 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.10712 8.39877L1 1.6012L8.10712 8.39877ZM8.10712 8.39877L15.2142 1.6012L8.10712 8.39877Z' fill='%237A7A7A'/%3E%3Cpath d='M1 1.6012L8.10712 8.39877L15.2142 1.6012' stroke='%23080E0E' stroke-width='1.33259' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

.filter-sidebar input[type="checkbox"] {
    margin-right: 0.5rem;
}

/* Botón visible solo en móvil */
.filters-toggle {
  display: none;
  width: 100%;
  background: #d62828;
  color: white;
  padding: 0.8rem;
  font-weight: bold;
  border: none;
  cursor: pointer;
}

.filters-toggle:hover {
  background-color:#D62626;
}

/* Contenido desplegable */
.filters-content {
  max-height: none;
  overflow: visible;
}

/* Responsive: mostrar botón solo en móvil */
@media (max-width: 992px) {
  #property-filters-container {
    flex-direction: column;
  }
  
  .filter-sidebar {
    max-width: 100%;
  }

  .filters-toggle {
    display: block;
  }

  .filters-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  .filter-sidebar.open .filters-content {
    max-height: 1000px;
  }
}

/* Properties grid */
.property-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex: 1;
}

.opalestate-results-count {
    font-size: 14px;
    font-family: 'Poppins';
    color: #4F3526;
}

.opalestate-filter-form {
    width: fit-content;
}

.opalestate-filter-form select {
    font-family: 'Poppins';
    font-size: 12px;
    color: #888582;
    background-color: #F2ECE2;
    border-radius: 32px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    padding: 3px 36px 3px 36px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='10' viewBox='0 0 16 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.10712 8.39877L1 1.6012L8.10712 8.39877ZM8.10712 8.39877L15.2142 1.6012L8.10712 8.39877Z' fill='%237A7A7A'/%3E%3Cpath d='M1 1.6012L8.10712 8.39877L15.2142 1.6012' stroke='%23080E0E' stroke-width='1.33259' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    border-width: 0;
    text-align: center;
}

.property-card {
    display: flex;
    background: #fff;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.card-img {
    width: 40%;
    height: auto;
    flex-shrink: 0;
}

.card-img .opalestate-property-header,
.card-img .osp-error {
    height: 100%;
}  

.card-img .osp-error {
   padding: 20px;
}  


.card-content {
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.property-meta {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 0.2rem;
}

.card-content .opalestate-property-title {
    font-size: 32px;
    font-weight: 500;
    line-height: 40px;
    color: #888582;
    font-family: 'Poppins';
}

.property-location {
    font-size: 18px;
    color: #888582;
    font-weight: 600;
    font-family: 'Montserrat';
    display: flex;
    margin-bottom: 0.5rem;
}
.property-location svg {
    margin-right: 10px;
}

.property-desc {
    font-size: 14px;
    font-weight: 300;
    color: #807E7B;
    margin-bottom: 20px;
    font-family: 'Poppins';
}

.card-content .osp-price {
    font-size: 40px;
    margin-right: 20px;
}

.card-content .osp-price-sale {
    font-size: 16px;
}

@media(min-width:1150px){
    .card-content .osp-footer > div {
        display: flex;
        align-items: center;
    }
}

.card-content .osp-footer {
    border-bottom: 1px solid #E5E3DD;
    padding-bottom: 30px;
    margin-bottom: 30px;
}

.osp-amenties .term-item {
    width: auto;
}

.view-btn {
    display: inline-block;
    align-self: flex-start;
    background: #e63b2e;
    color: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.2s;
}

.view-btn:hover {
    background: #c43228;
}

.property-pagination ul {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    padding-left: 0;
    margin-top: 60px;
    justify-content: center;
}

.property-pagination li a,
.property-pagination li span {
    background: transparent;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid#D62626;
    color:#D62626;
    width: 42px;
    height: 42px;
    display: flex;
    justify-content: center;
}

.property-pagination .current {
    background:#D62626;
    color: #fff;
    border-color: #red;
}

@media (max-width: 768px) {
  .property-card {
    flex-direction: column;
    width: 100%;
  }

  .card-img {
    width: 100%;
  }

  .card-img .osp-error {
    min-height: 258px;
  }
}

/* MINI FORM */
.property-mini-form {
  display: flex;
  align-items: center;
  background: #f8f4ee;
  border-radius: 999px;
  padding: 5px;
  gap: 1.5rem;
  max-width: 100%;
  flex-wrap: wrap;
  width: fit-content;
  margin: 0 auto;
}

.property-mini-form label {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  color: #5e625e;
  position: relative;
  padding: 0rem 1.5rem;
}

.property-mini-form label::after {
  content: "";
  position: absolute;
  right: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background-color: #d8c1b3;
}

.property-mini-form label:last-of-type::after {
  content: none;
}

.property-mini-form select {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  font-weight: 700;
  font-size: 1.1rem;
  color: #0f1020;
  padding: 0.3rem 0;
  margin-top: 0.2rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='10' viewBox='0 0 16 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.10712 8.39877L1 1.6012L8.10712 8.39877ZM8.10712 8.39877L15.2142 1.6012L8.10712 8.39877Z' fill='%237A7A7A'/%3E%3Cpath d='M1 1.6012L8.10712 8.39877L15.2142 1.6012' stroke='%23080E0E' stroke-width='1.33259' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.2rem center;
  background-size: 14px;
  padding-right: 1.5rem;
}

.property-mini-form .search-btn {
  background-color: #D62626;
  font-family: 'Poppins';
  color: white;
  font-weight: bold;
  padding: 1.5rem 3rem;
  font-size: 1rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.property-mini-form .search-btn:hover {
  background-color: #000;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .property-mini-form {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    border-radius: 1rem;
    padding: 0;
    width: 100%;
  }

  .property-mini-form label {
      padding: 20px 20px 0px 20px;
      border-bottom: 2px solid black;
      width: 100%;
  }

  .property-mini-form label::after {
    content: none;
  }

  .property-mini-form .search-btn {
    text-align: center;
    margin: 20px;
    width: auto;
  }
}

/* Galería */
.galeria-woo .imagen-principal {
    border-radius: 32px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    max-width: 550px;
    max-height: 550px;
    margin-bottom: 15px;
    position: relative;
}

.galeria-woo .imagen-principal img {
    width: 100%;
    max-width: 550px;
    max-height: 550px;
    display: block;
    opacity: 0;
    overflow: hidden;
}

.galeria-woo .imagen-principal .tools {
    position: absolute;
    bottom: 10px;
    right: 20px;
    display: flex;
}

.galeria-woo .imagen-principal .tools img {
    opacity: 1;
}

.galeria-woo .miniaturas {
    display: grid;
    gap: 15px;
    flex-wrap: wrap;
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 575px){
  .galeria-woo .miniaturas {
    grid-template-columns: repeat(2, 1fr);
  }
}

.galeria-woo .miniatura {
    position: relative;
    width: auto;
    height: 117px;
    display: flex;
    border-radius: 32px;
    overflow: hidden;
    align-items: center;
    justify-content: center;
}

.galeria-woo .miniatura img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 32px;
    transition: transform 0.3s;
    cursor: pointer;
}

.galeria-woo .miniatura:hover img {
    transform: scale(1.05);
}

.galeria-woo .miniatura-con-mas .overlay-mas {
    position: absolute;
    background: #FCF8F1;
    background-image: url('../img/extra_images.png');
    background-repeat: no-repeat;
    background-size: auto;
    background-position: 15px center;
    color: #7A7A7A;
    font-size: 14px;
    border-radius: 32px;
    padding: 5px 20px 5px 40px;
}

.elementor-swiper-button {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    z-index: 999 !important;
}

.elementor-swiper-button-prev,
.elementor-swiper-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.elementor-swiper-button-prev {
    left: 10px;
}

.elementor-swiper-button-next {
    right: 10px;
}

.custom-file-list h3 {
    color: #00000099;
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 600;
    line-height: 32px;
}

.custom-file-list ul {
    list-style: none;
    padding-left: 0;
}

.custom-file-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.custom-file-list li a {
    display: flex;
    align-items: center;
    text-decoration: underline;
}

.custom-file-list .file-name {
    padding-left: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    color: #838383;
}
