* {
  box-sizing: border-box;
}

:root {
  --brextom-orange: #ff8d1e;
  --brextom-black: #000000;
  --brextom-white: #ffffff;
  --brextom-light: #f5f5f5;
  --brextom-border: #e9e9e9;
  --brextom-text-soft: #666666;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Montserrat", sans-serif;
  background: var(--brextom-white);
  color: var(--brextom-black);
}

img {
  max-width: 100%;
  display: block;
}

.comprar-page {
  width: 100%;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* HERO */

.comprar-hero {
  padding: 56px 0 28px;
  background: var(--brextom-white);
}

.comprar-kicker {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--brextom-orange);
}

.comprar-title {
  margin: 0 0 12px;
  font-size: 46px;
  line-height: 1.05;
  font-weight: 700;
  color: var(--brextom-black);
}

.comprar-subtitle {
  margin: 0;
  max-width: 700px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--brextom-text-soft);
}

/* SEARCH */

.search-section {
  padding: 0 0 36px;
  background: var(--brextom-white);
}

.search-box {
  background: var(--brextom-light);
  border-radius: 28px;
  padding: 28px;
}

.search-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.search-field {
  display: flex;
  flex-direction: column;
}

.search-field label {
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--brextom-black);
}

.search-field input,
.search-field select {
  width: 100%;
  height: 56px;
  border: 1px solid var(--brextom-border);
  border-radius: 14px;
  background: var(--brextom-white);
  padding: 0 16px;
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  color: var(--brextom-black);
  outline: none;
}

.search-field input::placeholder {
  color: #999999;
}

.search-field input:focus,
.search-field select:focus {
  border-color: var(--brextom-orange);
}

.search-actions {
  margin-top: 28px;
  display: flex;
  justify-content: flex-start;
}

.search-button {
  height: 56px;
  padding: 0 30px;
  border: none;
  border-radius: 999px;
  background: var(--brextom-orange);
  color: var(--brextom-white);
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.search-box .search-button{
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.search-button:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

/* RESULTS */

.results-section {
  padding: 10px 0 60px;
}

.hero{
  position:relative;
  padding:56px 0 36px;
  background:
    linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)),
    url("https://images.unsplash.com/photo-1505691938895-1758d7feb511?auto=format&fit=crop&w=1600&q=80")
    center/cover no-repeat;
  color:#fff;
}
.hero-subtitle{
  margin:0 0 10px;
  font-size:14px;
  font-weight:700;
  color:var(--brextom-orange);
}
.hero-title{
  margin:0 0 10px;
  font-size:46px;
  line-height:1.05;
  font-weight:700;
  color:#fff;
}
.hero-text{
  margin:0 0 18px;
  max-width:700px;
  font-size:18px;
  line-height:1.6;
  color:#fff;
  opacity:.95;
}
.hero .search-box{
  background:rgba(255,255,255,0.92);
  box-shadow:0 6px 22px rgba(0,0,0,0.12);
  backdrop-filter:saturate(160%) blur(2px);
}

.results-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.results-title {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 700;
  color: var(--brextom-black);
}

.results-count {
  margin: 0;
  font-size: 15px;
  color: var(--brextom-text-soft);
}

/* GRID PROPERTIES */

.properties-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.property-card-link{
  display:block;
  text-decoration:none;
  color:inherit;
  cursor:pointer;
}
.property-card-link:hover{
  text-decoration:none;
}
.property-card-link:focus-visible{
  outline:none;
}
.property-card-link:focus-visible .property-card{
  outline:2px solid var(--brextom-orange);
  outline-offset:4px;
}

.property-card {
  background: var(--brextom-white);
  border: 1px solid var(--brextom-border);
  border-radius: 22px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor:pointer;
}

.property-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.property-image-wrap {
  position: relative;
}

.property-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.property-body {
  padding: 12px 20px 20px;
}

.property-ref{
  margin:12px 0 0;
  font-size:12px;
  font-weight:600;
  color:var(--brextom-text-soft);
  letter-spacing:.3px;
}

.property-price-top{
  padding:14px 20px 6px;
}

.property-price {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1;
  font-weight: 700;
  color: var(--brextom-orange);
}

.property-title {
  margin: 0 0 8px;
  font-size: 21px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--brextom-black);
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
  max-height:2.5em;
}

.property-zone {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--brextom-text-soft);
}

.property-meta {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px 16px;
  margin:8px 0 0;
  font-size:15px;
  color:var(--brextom-black);
}
.meta-item{
  display:flex;
  align-items:center;
  gap:8px;
}
.meta-icon{
  width:18px;
  height:18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:var(--brextom-black);
}
.meta-icon svg{
  width:18px;
  height:18px;
}

.property-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: transparent;
  color: var(--brextom-black);
  border: 1px solid var(--brextom-border);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.property-link:hover {
  opacity: 1;
  background: var(--brextom-black);
  color: var(--brextom-white);
  border-color: var(--brextom-black);
  transform: translateY(-1px);
}

.property-card-link:hover .property-link{
  opacity: 1;
  background: var(--brextom-black);
  color: var(--brextom-white);
  border-color: var(--brextom-black);
}

/* RESPONSIVE */

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

  .properties-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Forzar 1 columna de cards en pantallas medianas/pequeñas */
@media (max-width: 980px) {
  .properties-grid {
    grid-template-columns: 1fr;
  }
  .properties-header{
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
  }
  .properties-title{
    align-items:center;
    text-align:center;
    width:100%;
    margin-top:10px;
  }
  .properties-title h2{
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .properties-controls{
    width:100%;
  }
  .properties-controls #orden{
    width:100%;
    max-width:100%;
  }
}

@media (min-width: 981px) {
  .properties-header{
    flex-direction:row;
    align-items:flex-end;
    justify-content:space-between;
    gap:20px;
    margin-top:18px;
  }
  .properties-title{
    align-items:flex-start;
    text-align:left;
    width:auto;
    margin-top:0;
  }
  .properties-controls{
    width:auto;
    flex-direction:row;
    align-items:center;
    gap:12px;
  }
  .properties-controls #orden{
    width:auto;
    max-width:none;
    height:44px;
  }
}

.pagination{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin-top:26px;
  padding-bottom:34px;
}
.pagination-numbers{
  display:flex;
  align-items:center;
  gap:10px;
}
.pagination-button{
  appearance:none;
  border:1px solid var(--brextom-border);
  background:var(--brextom-white);
  color:var(--brextom-black);
  font-family:"Montserrat",sans-serif;
  font-weight:700;
  font-size:14px;
  height:44px;
  min-width:44px;
  padding:0 16px;
  border-radius:999px;
  cursor:pointer;
  transition:color .2s ease,border-color .2s ease,background .2s ease,transform .2s ease;
}
.pagination-button:hover:not(:disabled):not(.is-active){
  color:var(--brextom-orange);
  border-color:var(--brextom-orange);
  transform:translateY(-1px);
}
.pagination-button.is-active{
  background:var(--brextom-orange);
  border-color:var(--brextom-orange);
  color:var(--brextom-white);
}
.pagination-button:disabled{
  opacity:.5;
  cursor:default;
  transform:none;
}
.pagination-ellipsis{
  padding:0 8px;
  color:var(--brextom-text-soft);
  user-select:none;
}

.site-footer{
  background:#000;
  color:#fff;
}
.footer-main{
  padding:52px 0;
}
.footer-inner{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  align-items:center;
  justify-items:center;
  gap:34px;
}
.footer-cta{
  display:flex;
  flex-direction:column;
  gap:16px;
  align-items:center;
}
.footer-cta .cta-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:58px;
  padding:0 28px;
  border-radius:999px;
  border:2px solid #fff;
  background:transparent;
  color:#fff;
  font-family:"Montserrat",sans-serif;
  font-weight:700;
  font-size:16px;
  text-decoration:none;
  transition:opacity .2s ease,transform .2s ease,background .2s ease,color .2s ease;
}
.footer-cta .cta-button:hover{
  opacity:.92;
  transform:translateY(-1px);
}
.footer-logo{
  display:flex;
  align-items:center;
  justify-content:center;
}
.footer-logo img{
  width:220px;
  height:auto;
}
.footer-contact{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  text-align:center;
}
.footer-contact .contact-kicker{
  margin:0;
  font-size:14px;
  font-weight:700;
  opacity:.85;
}
.footer-contact .contact-address{
  margin:0;
  font-size:16px;
  font-weight:800;
  text-decoration:underline;
}
.footer-contact .contact-phone{
  margin:4px 0;
  font-size:28px;
  font-weight:800;
}
.footer-contact .contact-email{
  margin:6px 0 0;
  font-size:15px;
  font-weight:600;
  opacity:.95;
}
.footer-contact a{
  color:#fff;
  text-decoration:none;
}
.footer-contact a[href^="tel:"]{
  text-decoration:none;
}
.footer-legal{
  background:#f4f4f4;
  color:#000;
  font-size:13px;
}
.footer-legal .legal-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 0;
}
.footer-legal .legal-left{
  color:#666;
}
.footer-legal .legal-links{
  display:flex;
  align-items:center;
  gap:22px;
}
.footer-legal .legal-links a{
  color:#000;
  text-decoration:none;
}
.footer-legal .legal-links a:hover{
  color:var(--brextom-orange);
}

@media (max-width: 980px){
  .footer-inner{
    grid-template-columns:1fr;
    text-align:center;
  }
  .footer-cta{
    align-items:center;
  }
  .footer-cta .cta-button{
    width:100%;
  }
  .footer-contact{
    align-items:center;
    text-align:center;
  }
  .footer-contact .contact-phone{
    font-size:34px;
  }
}
@media (max-width: 767px){
  .footer-main{
    padding:40px 0;
  }
  .footer-logo img{
    width:200px;
  }
  .footer-legal .legal-inner{
    flex-direction:column;
    align-items:flex-start;
    gap:8px;
  }
}
@media (max-width: 767px) {
  .pagination{
    justify-content:space-between;
    flex-wrap:nowrap;
    gap:8px;
    padding:0 10px 18px;
  }
  .pagination-numbers{
    flex:1 1 auto;
    min-width:0;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    justify-content:center;
    gap:6px;
  }
  .pagination-button{
    height:36px;
    min-width:34px;
    padding:0 10px;
    font-size:12px;
    flex:0 0 auto;
  }
  .pagination-ellipsis{
    display:inline-flex;
    align-items:center;
    height:36px;
    padding:0 6px;
    flex:0 0 auto;
  }
  .hero{
    padding:42px 0 28px;
    background-position:center;
  }
  .search-box{
    padding:14px;
    border-radius:18px;
  }
  .search-field label{
    margin-bottom:6px;
    font-size:13px;
  }
  .search-field input,
  .search-field select{
    height:48px;
    font-size:14px;
    border-radius:12px;
  }
  .search-grid{
    grid-template-columns: 1fr;
    gap:12px;
  }
  .search-actions{
    margin-top:18px;
  }
  .search-box .search-button{
    margin-top:18px;
  }
  .results-header {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 16px;
    margin-bottom: 20px;
  }
  .results-title {
    font-size: 22px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .properties-header{
    flex-direction:column;
    align-items:flex-start;
    margin-top:18px;
    gap:10px;
  }
  .properties-title h2{
    font-size:22px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .properties-controls{
    width:100%;
    flex-direction:column;
    align-items:stretch;
    gap:8px;
  }
  .properties-order-label{
    font-size:13px;
  }
  .properties-controls #orden{
    width:100%;
    max-width:100%;
    height:42px;
  }
  .property-meta{
    gap:8px 12px;
    font-size:14px;
  }
  .meta-icon{
    width:16px;
    height:16px;
  }
  .meta-icon svg{
    width:16px;
    height:16px;
  }
  .properties-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .property-image {
    height: 220px;
  }
  .property-price {
    font-size: 26px;
  }
  .property-title {
    font-size: 19px;
  }
}

/* móviles anchos / phablets: mantener 2 columnas para reducir scroll */
@media (min-width: 540px) and (max-width: 767px){
  .search-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* FICHA INMUEBLE */

.property-detail-section {
  padding: 48px 0 70px;
}

.back-link-wrap {
  margin-bottom: 24px;
}

.back-link{

display:inline-block;
margin-bottom:20px;

font-size:14px;
text-decoration:none;

color:#000;

}

.back-link:hover{

color:#ff8d1e;

}

.property-detail-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: start;
}

.property-detail-main {
  min-width: 0;
}

.property-detail-image {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 24px;
}

.property-detail-side {
  background: var(--brextom-light);
  border-radius: 24px;
  padding: 28px;
}

.property-detail-ref{
  margin:0 0 6px;
  font-size:12px;
  font-weight:600;
  color:var(--brextom-text-soft);
  letter-spacing:.3px;
}

.property-detail-price {
  margin: 6px 0 12px;
  font-size: 32px;
  line-height: 1.05;
  font-weight: 700;
  color: var(--brextom-orange);
}

.property-detail-title {
  margin: 0 0 6px;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--brextom-black);
}

.property-detail-zone {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--brextom-text-soft);
}

.property-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.property-detail-pill {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--brextom-white);
  border: 1px solid var(--brextom-border);
  font-size: 14px;
  font-weight: 600;
}

.property-detail-description {
  margin-top: 34px;
  max-width: 900px;
}

.property-detail-description h2 {
  margin: 0 0 14px;
  font-size: 28px;
  line-height: 1.15;
}

.property-detail-description p {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  color: var(--brextom-text-soft);
}

.property-details{
  margin-top:24px;
  padding:20px;
  border:1px solid var(--brextom-border);
  border-radius:18px;
  background:var(--brextom-white);
}
.property-details h2{
  margin:0 0 14px;
  font-size:22px;
  line-height:1.2;
}
.property-details-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px 22px;
}
.property-details-item{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  padding:10px 0;
  border-bottom:1px solid var(--brextom-border);
}
.property-details-item:nth-last-child(-n+2){
  border-bottom:none;
}
.property-details-label{
  font-size:13px;
  font-weight:700;
  color:var(--brextom-text-soft);
}
.property-details-value{
  font-size:14px;
  font-weight:800;
  color:var(--brextom-black);
  text-align:right;
}
@media (max-width: 767px){
  .property-details-grid{
    grid-template-columns:1fr;
  }
  .property-details-item:nth-last-child(-n+2){
    border-bottom:1px solid var(--brextom-border);
  }
  .property-details-item:last-child{
    border-bottom:none;
  }
}

.property-final-cta{
  width:100%;
  height:clamp(360px, 60vh, 520px);
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:48px 20px;
  margin:34px 0 60px;
  border-radius:24px;
  color:#fff;
  background-image:var(--property-hero-bg);
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  position:relative;
  overflow:hidden;
}
.property-final-cta::before{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.55);
}
.property-final-cta-inner{
  position:relative;
  z-index:1;
  max-width:760px;
  padding:0 10px;
}
.property-final-cta-inner h2{
  margin:0 0 12px;
  font-size:42px;
  line-height:1.05;
  font-weight:800;
}
.property-final-cta-inner p{
  margin:0 0 22px;
  font-size:18px;
  line-height:1.6;
  opacity:.92;
}
.property-final-cta-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:54px;
  padding:0 26px;
  border-radius:999px;
  background:var(--brextom-orange);
  color:#fff;
  text-decoration:none;
  font-size:15px;
  font-weight:800;
  box-shadow:0 10px 26px rgba(0,0,0,0.24);
  transition:opacity .2s ease,transform .2s ease;
}
.property-final-cta-button:hover{
  opacity:.95;
  transform:translateY(-1px);
}
@media (max-width: 767px){
  .property-final-cta{
    height:clamp(340px, 56vh, 460px);
    padding:40px 16px;
    margin:24px 0 44px;
    border-radius:18px;
  }
  .property-final-cta-inner h2{
    font-size:30px;
  }
  .property-final-cta-inner p{
    font-size:16px;
  }
  .property-final-cta-button{
    width:100%;
    max-width:360px;
  }
}

.features{
  margin-top:24px;
  padding:20px;
  border:1px solid var(--brextom-border);
  border-radius:18px;
  background:var(--brextom-white);
}
.features h3{
  margin:0 0 12px;
  font-size:20px;
  line-height:1.2;
}
.features-list{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:10px 16px;
}
.features-item{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:15px;
  color:var(--brextom-black);
}
.features-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:20px;
  height:20px;
  color:var(--brextom-orange);
}
@media (max-width: 767px){
  .features-list{
    grid-template-columns:1fr;
  }
}
.property-contact-box {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--brextom-border);
}

.property-contact-title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
}

.property-contact-text {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--brextom-text-soft);
}

.property-whatsapp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  width: 100%;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--brextom-orange);
  color: var(--brextom-white);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
}

.property-whatsapp-button:hover {
  opacity: 0.92;
}

.whatsapp-alt-text{
  margin:10px 0 0;
  font-size:13px;
  line-height:1.4;
  color:var(--brextom-text-soft);
  text-align:center;
}
.whatsapp-alt-text a{
  color:inherit;
  font-weight:800;
  text-decoration:underline;
}
.whatsapp-alt-text-on-image{
  text-align:center;
  color:rgba(255,255,255,0.85);
}
.whatsapp-alt-text-on-image a{
  color:rgba(255,255,255,0.92);
}

.whatsapp-float{
  position:fixed;
  right:18px;
  bottom:calc(18px + env(safe-area-inset-bottom));
  width:62px;
  height:62px;
  border-radius:999px;
  background:#25d366;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 10px 26px rgba(0,0,0,0.18);
  z-index:2500;
  text-decoration:none;
}
.whatsapp-float svg{
  width:46px;
  height:46px;
  fill:currentColor;
}
.whatsapp-float:hover{
  opacity:.95;
  transform:translateY(-1px);
}
@media (max-width: 767px){
  .whatsapp-float{
    right:14px;
    width:58px;
    height:58px;
    bottom:calc(64px + env(safe-area-inset-bottom));
  }
  .whatsapp-float svg{
    width:44px;
    height:44px;
  }
}

@media (max-width: 980px) {
  .property-detail-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .property-detail-image {
    height: 420px;
  }
}

@media (max-width: 767px) {
  .property-detail-section {
    padding: 34px 0 56px;
  }

  html,
  body{
    overflow-x:hidden;
  }

  .property-detail-grid{
    display:flex;
    flex-direction:column;
    gap:24px;
  }
  .property-detail-side{
    display:contents;
  }
  .property-detail-side-info{
    order:1;
    background:var(--brextom-light);
    border-radius:18px;
    padding:22px;
  }
  .property-detail-main{
    order:2;
  }
  .property-detail-side-contact{
    order:3;
    background:var(--brextom-light);
    border-radius:18px;
    padding:22px;
    display:none;
  }
  .property-detail-side-contact .property-contact-box{
    margin-top:0;
    padding-top:0;
    border-top:0;
  }

  .property-detail-main,
  .property-gallery,
  .property-main-image-wrap,
  .property-thumbs-wrap,
  .property-thumbs,
  .property-thumbs-inner,
  .property-detail-description,
  .property-map-section,
  .property-map-wrap{
    max-width:100%;
    overflow-x:hidden;
  }

  .property-detail-image{
    width:100%;
    max-width:100%;
    display:block;
  }

  .property-thumbs{
    max-width:100%;
  }

  .property-map{
    width:100%;
    max-width:100%;
    display:block;
  }

  .property-detail-image {
    height: 280px;
    border-radius: 18px;
  }

  .property-detail-price {
    font-size: 28px;
  }

  .property-detail-title {
    font-size: 26px;
  }

  .property-detail-description h2 {
    font-size: 24px;
  }
}

@media (max-width: 768px){
  .property-detail-side-contact{
    display:none;
  }
}
/* GALERÍA FICHA */

.property-gallery {
  width: 100%;
}

.property-thumbs-wrap{
  margin-top:14px;
  display:flex;
  align-items:center;
  gap:8px;
}
.property-thumbs{
  overflow:hidden;
  flex:1;
}
.property-thumbs-inner{
  display:flex;
  gap:12px;
}

.property-thumb {
  width: 92px;
  height: 72px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 14px;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
  flex:0 0 auto;
}

.property-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-thumb.is-active {
  border-color: var(--brextom-orange);
}

.property-thumb:hover {
  opacity: 0.9;
}
.thumbs-arrow{
  width:36px;
  height:36px;
  border:none;
  border-radius:50%;
  background:rgba(0,0,0,0.6);
  color:#fff;
  font-size:22px;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.thumbs-arrow:disabled{
  opacity:.4;
  cursor:default;
}
/* CONTENEDOR IMAGEN PRINCIPAL */

.property-main-image-wrap{
  position:relative;
}

/* FLECHAS */

.gallery-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:44px;
  height:44px;
  border-radius:50%;
  border:none;
  background:rgba(0,0,0,0.6);
  color:#fff;
  font-size:28px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:2;
}

.gallery-prev{
  left:12px;
}

.gallery-next{
  right:12px;
}

.gallery-arrow:hover{
  background:rgba(0,0,0,0.8);
}
/* BLOQUE CARACTERÍSTICAS */

.property-features{

  display:grid;
  grid-template-columns:1fr;
  gap:12px;
  margin-top:20px;

}

.feature-item{

  display:flex;
  align-items:center;
  gap:10px;

  font-size:15px;
  font-weight:500;

}

.feature-icon{

  width:22px;
  height:22px;

  display:flex;
  align-items:center;
  justify-content:center;

}

.feature-icon svg{

  width:20px;
  height:20px;

  stroke:#000;

}
/* MAPA FICHA */

.property-map-section {
  margin-top: 36px;
}

.property-map-section h2 {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.15;
}

.property-map-text {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--brextom-text-soft);
}

.property-map-wrap {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--brextom-border);
}

.property-map {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}

@media (max-width: 767px) {
  .property-map {
    height: 320px;
  }

  .property-map-section h2 {
    font-size: 24px;
  }
}
.header-nav a.active{
color:#ff8d1e;
}
.pagination{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin-top:26px;
  padding-bottom:34px;
}
.properties-header{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
  margin-bottom:24px;
}
.properties-title{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.properties-title h2{
  margin:0;
  font-size:28px;
  line-height:1.15;
  font-weight:700;
  color:var(--brextom-black);
}
.properties-title #resultsCount{
  margin:0;
  font-size:15px;
  color:var(--brextom-text-soft);
}
.properties-controls{
  display:flex;
  align-items:center;
  gap:12px;
}
.properties-order-label{
  font-size:14px;
  font-weight:700;
  color:var(--brextom-black);
}
.properties-controls #orden{
  height:44px;
  border:1px solid var(--brextom-border);
  border-radius:14px;
  background:var(--brextom-white);
  padding:0 14px;
  font-family:"Montserrat",sans-serif;
  font-size:14px;
  color:var(--brextom-black);
  outline:none;
}
.properties-controls #orden:focus{
  border-color:var(--brextom-orange);
}
.pagination-button{
  appearance:none;
  border:1px solid var(--brextom-border);
  background:var(--brextom-white);
  color:var(--brextom-black);
  font-family:"Montserrat",sans-serif;
  font-weight:700;
  font-size:14px;
  height:44px;
  min-width:44px;
  padding:0 16px;
  border-radius:999px;
  cursor:pointer;
  transition:color .2s ease,border-color .2s ease,background .2s ease,transform .2s ease;
}
.pagination-button:hover:not(:disabled):not(.is-active){
  color:var(--brextom-orange);
  border-color:var(--brextom-orange);
  transform:translateY(-1px);
}
.pagination-button.is-active{
  background:var(--brextom-orange);
  border-color:var(--brextom-orange);
  color:var(--brextom-white);
}
.pagination-button:disabled{
  opacity:.5;
  cursor:default;
  transform:none;
}
/* (el bloque de header anterior se ha consolidado más abajo) */
/* ========================
HEADER
======================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid #eee;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.header-inner {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  flex-wrap: nowrap;
}

.header-logo img {
  height: 38px;
  width: auto;
}

.header-nav {
  display: flex;
  gap: 28px;
  flex-wrap: nowrap;
}

.header-nav a {
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  color: #000;
  font-size: 15px;
}

.header-nav a:hover {
  color: #ff8d1e;
}

.header-nav a.active {
  color: #ff8d1e;
  font-weight: 600;
}

.header-social a {
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-social svg {
  width: 22px;
  height: 22px;
  color: #000;
}

.header-social svg:hover {
  color: #ff8d1e;
}

/* botón volver */
.back-link {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 14px;
  text-decoration: none;
  color: #000;
  font-weight: 600;
}

.property-page .back-link{
  margin-top:20px;
}

.property-back-bottom{
  margin:18px 0 60px;
  display:flex;
  justify-content:flex-start;
}
.property-back-bottom .back-link{
  margin:0;
}

@media (max-width: 767px){
  .property-page .back-link{
    margin-top:14px;
  }
  .property-back-bottom{
    margin:16px 0 44px;
  }
}

.back-link:hover {
  color: #ff8d1e;
}

/* ========================
MENÚ MÓVIL
======================== */

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: #000;
  border-radius: 999px;
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1100;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 380px;
  height: 100vh;
  background:
    linear-gradient(rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.32)),
    url("images/menu-bg.jpg") center/cover no-repeat;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  z-index: 1200;
  padding: 28px 28px 34px;
  display: flex;
  flex-direction: column;
}

.mobile-menu.is-open {
  transform: translateX(0);
}

.mobile-menu-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-close {
  align-self: flex-end;
  width: 42px;
  height: 42px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.mobile-menu-logo {
  margin-top: 30px;
  margin-bottom: 26px;
}

.mobile-menu-logo img {
  width: 170px;
  height: auto;
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 28px;
}

.mobile-menu-nav a {
  color: #fff;
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
}

.mobile-menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 22px;
  border-radius: 8px;
  background: #ff8d1e;
  color: #fff;
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 700;
  width: max-content;
  margin-top: 8px;
}

.mobile-menu-address {
  margin-top: 22px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

/* ========================
RESPONSIVE HEADER
======================== */

@media (max-width: 900px) {
  .header-nav,
  .header-social {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .header-inner {
    padding: 16px 18px;
  }
  .header-logo img {
    height: 34px;
  }
}

@media (min-width: 901px) {
  .header-nav,
  .header-social {
    display: flex;
  }
  .menu-toggle {
    display: none;
  }
}
