/*
Theme Name: INMOTEIDE
Theme URI: https://inmoteide.com/
Author: INMOTEIDE
Author URI: https://inmoteide.com/
Description: Diseñado exclusivamente con amor y bits para INMOTEIDE.com. Tema inmobiliario para venta de pisos, casas y terrenos en Tenerife, orientado a SEO, conversión y usabilidad.
Version: 2.6.1
Text Domain: inmoteide
*/

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #222;
    background-color: #f5f5f5;
}

p {
    margin-bottom: 1rem;
}

a { color: #0077cc; text-decoration: none; }
a:hover { text-decoration: underline; }

header.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.site-branding-text {
    display: flex;
    flex-direction: column;
}

.site-title-link {
    font-weight: 700;
    font-size: 1.1rem;
    color: #111;
}

.site-description {
    font-size: 0.8rem;
    margin: 0;
    color: #555;
}

.custom-logo {
    height: auto;
    max-height: 50px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1rem;
}

.main-nav a {
    font-weight: 500;
    color: #333;
}

.main-nav .menu-search-form {
    margin-left: 0.75rem;
}

.main-nav .menu-search-form input[type="search"] {
    font-size: 0.85rem;
    padding: 0.2rem 0.4rem;
    border-radius: 999px;
    border: 1px solid #ccc;
}

.header-call-btn {
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.hero {
    background: linear-gradient(135deg, #004d7a, #008793);
    color: #fff;
    padding: 3.5rem 1rem 3rem;
}

.hero-inner {
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.3fr);
    gap: 2.5rem;
}

.hero h1 {
    font-size: 2.3rem;
    margin-top: 0;
    margin-bottom: 1rem;
}

.hero p.lead {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.7rem 1.3rem;
    border-radius: 999px;
    font-weight: 600;
}

.btn-primary {
    background: #ffcc33;
    color: #333;
}

.btn-secondary {
    background: #ffffff22;
    border: 1px solid #ffffff66;
    color: #fff;
}

.hero-widget {
    --hero-widget-bg: #ffffff;
    --hero-widget-text: #222222;
    --hero-widget-radius: 12px;
    --hero-widget-padding: 24px;
    background: var(--hero-widget-bg);
    color: var(--hero-widget-text);
    border-radius: var(--hero-widget-radius);
    padding: var(--hero-widget-padding);
}

.hero-widget h2 {
    font-size: 1.1rem;
    margin-top: 0;
    color: var(--hero-widget-text);
}

.hero-widget-description {
    font-size: 0.9rem;
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--hero-widget-text);
}

.hero-widget label {
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.25rem;
    color: var(--hero-widget-text);
}

.hero-widget input,
.hero-widget select {
    width: 100%;
    padding: 0.45rem 0.55rem;
    margin-bottom: 0.65rem;
    border: 1px solid #d0d0d0;
    border-radius: 0.35rem;
    color: #222222;
    background: #ffffff;
    box-sizing: border-box;
}

.hero-widget-submit {
    border: none;
    width: 100%;
    margin-top: 0.4rem;
}


.hero-inner.inmoteide-hero-single-column {
    grid-template-columns: minmax(0, 1fr);
    max-width: 900px;
}

.inmoteide-page-hero-note {
    font-size: 0.9rem;
    max-width: 34rem;
}


.section {
    max-width: 1140px;
    margin: 0 auto;
    padding: 2.5rem 1rem;
    background: #f5f5f5;
}

.section.alt {
    background: #ffffff;
}

.section h2 {
    font-size: 1.6rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
}

.card {
    background: #ffffff;
    border-radius: 0.75rem;
    padding: 1.25rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.card h3 {
    margin-top: 0;
    font-size: 1.1rem;
}

.card p {
    font-size: 0.95rem;
}

.property-meta {
    font-size: 0.9rem;
    color: #555;
    margin-top: 0.5rem;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.property-tag {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    background: #eee;
    margin-right: 0.25rem;
}



/* ===== Ficha de propiedad: hero con slider ===== */
.single-property-hero {
  max-width: 1140px;
  margin: 0 auto;
  padding: 2rem 1rem 0;
}

.single-property-hero-inner {
  border-radius: 0.75rem;
  overflow: hidden;
}

/* Ajuste de cabecera debajo del hero */
.single-property-header {
  max-width: 1140px;
  margin: 0 auto;
  padding: 1rem 1rem 1.5rem;
}

.single-property-header {
    max-width: 1140px;
    margin: 0 auto;
    padding: 2.5rem 1rem 1.5rem;
}

.single-property-body {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1rem 2.5rem;
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
    gap: 2rem;
}

.single-property-meta {
    font-size: 0.95rem;
    margin: 0.5rem 0 1rem;
}

.single-property-meta span {
    display: inline-block;
    margin-right: 0.75rem;
}

.single-property-sidebar {
    background: #ffffff;
    border-radius: 0.75rem;
    padding: 1.25rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.single-property-sidebar h3 {
    margin-top: 0;
}

.single-property-cta {
    margin-top: 1rem;
}

.filter-form {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1rem 1.5rem;
}

.filter-form form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem 1rem;
    align-items: end;
}

.filter-form label {
    font-size: 0.85rem;
    display: block;
    margin-bottom: 0.2rem;
}

.filter-form input,
.filter-form select {
    width: 100%;
    padding: 0.4rem 0.55rem;
    border-radius: 0.35rem;
    border: 1px solid #d0d0d0;
    font-size: 0.9rem;
}

/* Layout con barra lateral */
.content-with-sidebar {
    max-width: 1140px;
    margin: 0 auto;
    padding: 2.5rem 1rem;
    display: grid;
    grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr);
    gap: 2rem;
}

.content-with-sidebar.sidebar-left {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr);
}

.content-with-sidebar .content-main {
    min-width: 0;
}

.site-sidebar {
    font-size: 0.9rem;
}

.site-sidebar.sidebar-sticky {
    position: sticky;
    top: 90px;
}

/* Caja SEO en posts */
.seo-summary-box {
    margin-bottom: 1.5rem;
    background: #ffffff;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    border-left: 4px solid #ffcc33;
    box-shadow: 0 3px 8px rgba(0,0,0,0.04);
}

.seo-summary-box h2 {
    font-size: 1rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.seo-summary-box p {
    margin: 0;
    font-size: 0.95rem;
}

/* En móvil podemos priorizar la barra lateral */
@media (max-width: 900px) {
    .content-with-sidebar {
        grid-template-columns: 1fr;
    }
    .content-with-sidebar.sidebar-first-mobile {
        display: flex;
        flex-direction: column-reverse;
    }
}

/* Footer */
footer.site-footer {
    background: #111111;
    color: #ccc;
    margin-top: 2rem;
}

.footer-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 1.75rem 1rem;
    font-size: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: space-between;
}

.footer-inner a {
    color: #eee;
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 200;
}

.whatsapp-float a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: #25D366;
    color: #fff;
    padding: 0.6rem 0.9rem;
    border-radius: 999px;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.whatsapp-float span.icon {
    font-size: 1.2rem;
}

/* Botón flotante de menú (opcional) */
.menu-float {
    position: fixed;
    left: 1.25rem;
    bottom: 1.25rem;
    z-index: 200;
}

.menu-float button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: #004d7a;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }
    .single-property-body {
        grid-template-columns: 1fr;
    }
    .whatsapp-float a span.text {
        display: none;
    }
}


/* ===== Mini slider en tarjetas de propiedades destacadas ===== */

.inmoteide-card-slider {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  margin-bottom: 0.25rem;
}

.inmoteide-card-slider-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.inmoteide-card-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.inmoteide-card-slide.is-active {
  opacity: 1;
  position: relative;
}

.inmoteide-card-slide img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0.75rem;
}

/* Flechas */
.inmoteide-card-slider-prev,
.inmoteide-card-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(15, 23, 42, 0.6);
  color: #f9fafb;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.inmoteide-card-slider-prev {
  left: 0.5rem;
}

.inmoteide-card-slider-next {
  right: 0.5rem;
}

.inmoteide-card-slider-prev:hover,
.inmoteide-card-slider-next:hover {
  background: rgba(15, 23, 42, 0.85);
}

/* En móvil podemos hacer las flechas un poco más pequeñas */
@media (max-width: 640px) {
  .inmoteide-card-slider-prev,
  .inmoteide-card-slider-next {
    width: 1.7rem;
    height: 1.7rem;
    font-size: 1.1rem;
  }
}


/* ===== Referencia, precio e iconos en propiedades ===== */

.prop-ref {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #4b5563;
  margin-bottom: 0.25rem;
}

.prop-ref-single {
  margin-bottom: 0.5rem;
}

/* Precio tipo "badge" con banda azul y texto amarillo */
.prop-precio-badge {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: #1d4ed8; /* azul corporativo */
  color: #facc15; /* amarillo corporativo */
  font-weight: 700;
  font-size: 0.95rem;
}

.prop-precio-single {
  margin-bottom: 0.75rem;
}

/* Fila de iconos de datos (hab, baños, m2) */
.prop-datos-iconos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0.5rem 0 0.5rem;
}

.prop-datos-iconos .dato {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.9rem;
  color: #111827;
}

.icono-dato {
  font-size: 0.95rem;
  line-height: 1;
}

.prop-datos-iconos .dato strong {
  font-weight: 700;
}

.prop-datos-iconos .dato .label {
  font-size: 0.8rem;
  color: #6b7280;
}


/* ===========================
   Ajustes fáciles de tamaño de tarjetas destacadas
   =========================== */
:root {
  --inmoteide-card-height-desktop: 336px; /* altura en pantallas grandes */
  --inmoteide-card-height-mobile: 260px;  /* altura en móviles */
}

/* Tarjetas de propiedades destacadas en portada (modo full-image) */
.property-card-home {
  padding: 0;
  border-radius: 0.75rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.property-card-fullimage-media {
  position: relative;
}

/* Imagen más alta que ancha para destacar */
.property-card-fullimage-media .inmoteide-card-slide img {
  width: 100%;
  height: var(--inmoteide-card-height-desktop, 260px);
  object-fit: cover;
}

/* Altura específica para móviles */
@media (max-width: 768px) {
  .property-card-fullimage-media .inmoteide-card-slide img {
    height: var(--inmoteide-card-height-mobile, 220px);
  }
}

/* Capa general de overlay */
.property-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.75rem 0.9rem;
  
}

/* Texto superior: ref + título + zona */
.property-card-overlay-top {
  text-shadow: 0 3px 8px rgba(0,0,0,0.95);
}

.prop-ref-overlay {
  font-size: 0.75rem;
  margin: 0 0 0.15rem;
  color: #e5e7eb;
}

.property-title-overlay {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

.prop-zona-overlay {
  font-size: 0.8rem;
  color: #dbeafe;
}

/* Bloque intermedio: mini descripción + enlace */
.property-card-overlay-middle {
  margin-top: auto;
  margin-bottom: 0.5rem;
  max-height: 3.3em;
  overflow: hidden;
}

.property-card-excerpt-overlay {
  margin: 0;
  font-size: 0.8rem;
  color: #f9fafb;
  font-weight: 700;
  text-shadow: 0 3px 7px rgba(0,0,0,0.95);
}

.property-card-link-overlay {
  margin: 0.15rem 0 0;
}

.property-card-link-overlay a {
  pointer-events: auto;
  font-size: 0.8rem;
  font-weight: 600;
  color: #facc15;
  text-decoration: none;
}

.property-card-link-overlay a:hover {
  text-decoration: underline;
}

/* Bloque inferior: precio + iconos de características */
.property-card-overlay-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.5rem;
}

.prop-precio-overlay-full {
  pointer-events: auto;
  box-shadow: 0 4px 10px rgba(0,0,0,0.35);
}

.prop-datos-overlay-full {
  display: flex;
  gap: 0.35rem;
  pointer-events: auto;
}

.prop-datos-overlay-full .dato {
  background: rgba(0, 0, 0, 0.5);
  padding: 0.18rem 0.4rem;
  border-radius: 999px;
  color: #f9fafb;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.prop-datos-overlay-full .label {
  color: #e5e7eb;
}

/* Badges comerciales en esquina superior derecha de la imagen */
.property-badges-topright {
  position: absolute;
  top: 0.05rem;    /* muy pegado arriba */
  right: 0.05rem;  /* muy pegado a la derecha */
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
  z-index: 2;
}

.property-badge {
  background: rgba(250, 204, 21, 0.95);
  color: #111827;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
}


/* ===== Ficha de propiedad: tabla de características ===== */
.single-property-specs-card {
  margin-bottom: 1.5rem;
}

.single-property-specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.single-property-specs-table th {
  text-align: left;
  padding: 0.35rem 0.5rem 0.35rem 0;
  font-weight: 600;
  color: #374151;
  width: 40%;
}

.single-property-specs-table td {
  padding: 0.35rem 0.2rem;
  color: #111827;
}

/* ===== Sidebar: agente y contacto ===== */
.single-property-agent-card p {
  margin: 0.15rem 0;
}

/* ===== Sidebar: calculadora hipoteca ===== */
.single-property-mortgage-card .mortgage-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.single-property-mortgage-card label {
  font-size: 0.85rem;
}

.single-property-mortgage-card input[type="number"] {
  width: 100%;
  max-width: 100%;
  padding: 0.35rem 0.5rem;
  border-radius: 0.375rem;
  border: 1px solid #d1d5db;
  font-size: 0.9rem;
}

/* ===== Sidebar: mapa ===== */
.single-property-map-card .single-property-map-embed {
  position: relative;
  padding-bottom: 60%;
  height: 0;
  overflow: hidden;
  border-radius: 0.5rem;
}

.single-property-map-card .single-property-map-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


.single-property-mortgage-card .mortgage-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}


.single-property-mortgage-card .mortgage-calc-btn {
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.45rem 0.75rem;
  border-radius: 0.375rem;
  border: none;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}

.single-property-mortgage-card .mortgage-calc-btn:hover {
  opacity: 0.9;
}


/* Slider con tira de miniaturas en la ficha de propiedad */
.inmoteide-card-thumbs {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.1rem;
}

.inmoteide-card-thumb {
  border: none;
  padding: 0;
  background: transparent;
  border-radius: 0.35rem;
  overflow: hidden;
  flex: 0 0 auto;
  opacity: 0.7;
  cursor: pointer;
}

.inmoteide-card-thumb img {
  display: block;
  width: 64px;
  height: 48px;
  object-fit: cover;
}

.inmoteide-card-thumb.is-active {
  opacity: 1;
  outline: 2px solid #facc15;
}


@media (max-width: 768px) {
  .single-property-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .single-property-body > .single-property-sidebar {
    margin-top: 1.5rem;
  }
}


/* Rejilla de 3 propiedades por fila en desktop */
.property-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

/* En tablet: 2 por fila */
@media (max-width: 1024px) {
  .property-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* En móvil: 1 por fila */
@media (max-width: 640px) {
  .property-grid {
    grid-template-columns: 1fr;
  }
}

/* Limitar altura del slider para que no se dispare */
.inmoteide-card-slider {
  aspect-ratio: 4 / 3;
}

/* Asegurar recorte correcto */
.inmoteide-card-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Fila superior de la ficha: slider (izquierda) + caja (derecha) */
.single-property-body {
  max-width: 1140px;
  margin: 0 auto;
  padding: 1.5rem 1rem 2.5rem;
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

/* Columna izquierda (slider + contenido) */
.single-property-body > div {
  flex: 0 0 75%;
  margin-top: 0;
}

/* Columna derecha (sidebar) */
.single-property-body > .single-property-sidebar {
  flex: 0 0 25%;
  margin-top: 0;
}

/* Slider sin margen superior extra, casi pegado a la barra de chips */
.single-property-hero {
  margin-top: 0;
  padding: 0;
  margin-bottom: 0.25rem;
}

/* Barra de datos clave justo bajo el slider */
.single-property-keyfacts-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 0.2rem;
}

/* Píldoras de datos clave */
.single-property-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.85rem;
  background: #f3f4f6;
}

/* Caja principal con título + contenido */
.single-property-mainbox {
  margin-top: 0;
}

.single-property-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.single-property-maincontent p {
  margin: 0 0 0.75rem;
}


/* INMOTEIDE ajuste: reducir espacio visual bajo el slider en ficha */
.card.single-property-mainbox {
  padding-top: 0.35rem;
}


.single-property-print {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.print-property-btn,
.pdf-property-btn,
.share-property-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  border-radius: 999px;
  cursor: pointer;
}

.print-property-btn .print-icon,
.pdf-property-btn .pdf-icon {
  font-size: 2rem;
  line-height: 1;
  display: inline-block;
}

@media print {
  .main-nav,
  .whatsapp-float,
  #cookie-law-info-bar,
  #cookie-law-info-again,
  #wpadminbar {
    display: none !important;
  }

  .site-header {
    border-bottom: 1px solid #ddd;
    margin-bottom: 1rem;
  }

  .single-property-body {
    max-width: 100% !important;
    padding: 0 !important;
  }

  .single-property-print {
    display: none !important;
  }
}


/* Ajuste visual específico para exportar a PDF */
.single-property-body.pdf-export {
  transform: scale(0.9);
  transform-origin: top left;
  font-size: 0.9rem;
}


/* Iconos de imprimir / PDF / compartir más grandes en móvil */
@media (max-width: 640px) {
  .single-property-print {
    gap: 0.75rem;
  }

  .print-property-btn,
  .pdf-property-btn,
  .share-property-btn {
    width: 3.2rem;
    height: 3.2rem;
  }

  .print-property-btn .print-icon,
  .pdf-property-btn .pdf-icon,
  .share-property-btn .share-icon {
    font-size: 2.3rem;
  }
}


/* ===========================
   LISTADO DE PROPIEDADES
   =========================== */

.property-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

/* Tablet: 2 por fila */
@media (max-width: 1024px) {
  .property-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Móvil: 1 por fila */
@media (max-width: 640px) {
  .property-grid {
    grid-template-columns: 1fr;
  }
}

/* Slider en tarjetas y en ficha */
.inmoteide-card-slider {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 0.75rem;
}

/* Imagen dentro del slider */
.inmoteide-card-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* ===========================
   FICHA DE PROPIEDAD (SINGLE PROPIEDAD)
   Layout 3/4 – 1/4 + ajuste bajo slider
   =========================== */

/* 1) Layout 3/4 – 1/4 solo en single-propiedad */
body.single-propiedad .single-property-body {
  max-width: 1140px;
  margin: 0 auto;
  padding: 1.5rem 1rem 2.5rem;
  display: flex;
  align-items: flex-start;
  gap: 2rem; /* espacio HORIZONTAL entre columna izq. y der. */
}

/* COLUMNA IZQUIERDA: [slider] → [chips] → [caja] en columna */
body.single-propiedad .single-property-body > div {
  flex: 0 0 75%;
  margin-top: 0;

  display: flex;
  flex-direction: column;
  gap: 0.25rem;  /* espacio VERTICAL mínimo entre slider / caja */
}

/* COLUMNA DERECHA (sidebar 1/4) */
body.single-propiedad .single-property-sidebar {
  flex: 0 0 25%;
}

/* Reset vertical en la columna izquierda */
body.single-propiedad .single-property-hero,
body.single-propiedad .single-property-hero-inner,
body.single-propiedad .inmoteide-card-slider,
body.single-propiedad .single-property-keyfacts-bar,
body.single-propiedad .card.single-property-mainbox {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Hero: solo respeta padding lateral */
body.single-propiedad .single-property-hero {
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

/* El slider queda “limpio”, solo con su forma */
body.single-propiedad .inmoteide-card-slider {
  border-radius: 0.75rem;
  overflow: hidden;
}

/* Caja principal debajo del slider */
body.single-propiedad .card.single-property-mainbox {
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  padding: 0.4rem 1.5rem 1.5rem !important;
  background: #ffffff;
}

/* Título dentro de la caja */
body.single-propiedad .single-property-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

/* Texto dentro de la caja */
body.single-propiedad .single-property-maincontent {
  font-size: 1rem;
  line-height: 1.6;
}

body.single-propiedad .single-property-maincontent p {
  margin: 0 0 0.75rem;
}

/* Sidebar */
body.single-propiedad .single-property-sidebar {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 1.25rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

body.single-propiedad .single-property-sidebar h3 {
  margin-top: 0;
}

body.single-propiedad .single-property-cta {
  margin-top: 1rem;
}

/* Responsive */
@media (max-width: 960px) {
  body.single-propiedad .single-property-body {
    flex-direction: column;
    gap: 1.25rem;
  }

  body.single-propiedad .single-property-body > div,
  body.single-propiedad .single-property-sidebar {
    flex: 0 0 100%;
  }
}

/* Tamaño base más grande para los 3 iconos (escritorio y móvil) */
.single-property-print {
  display: flex;
  gap: 0.75rem;
}

.print-property-btn,
.pdf-property-btn,
.share-property-btn {
  width: 3rem;
  height: 3rem;
}

.print-property-btn .print-icon,
.pdf-property-btn .pdf-icon,
.share-property-btn .share-icon {
  font-size: 2.2rem;
  line-height: 1;
  display: inline-block;
}

/* Iconos todavía más grandes en móvil */
@media (max-width: 768px) {
  .print-property-btn,
  .pdf-property-btn,
  .share-property-btn {
    width: 3.4rem;
    height: 3.4rem;
  }

  .print-property-btn .print-icon,
  .pdf-property-btn .pdf-icon,
  .share-property-btn .share-icon {
    font-size: 2.5rem;
  }
}

/* Manita al pasar por el icono de compartir */
.single-property-print .share-property-btn,
.single-property-print .share-property-btn .share-icon {
  cursor: pointer !important;
}

/* Ocultar barra de chips bajo el slider en la ficha */
body.single-propiedad .single-property-keyfacts-bar {
  display: none !important;
}

/* ===========================
   BADGES FICHA DE PROPIEDAD
   =========================== */

body.single-propiedad .single-property-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

body.single-propiedad .single-property-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
}

/* Variantes de color */
body.single-propiedad .single-property-badge.badge--rebajado {
  background: #b91c1c;
}

body.single-propiedad .single-property-badge.badge--exclusiva {
  background: #1d4ed8;
}

/* ===========================
   OVERLAY INFERIOR: PRECIO IZQUIERDA + RESTO DERECHA EN FICHA
   =========================== */
body.single-propiedad .inmoteide-card-slider {
  position: relative; /* contenedor de overlays */
}

/* Banda inferior que ocupa casi todo el ancho */
body.single-propiedad .single-property-overlay-bottom {
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.9rem;
  z-index: 6;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  pointer-events: none; /* la info es visual, no bloquea la imagen */
}

/* Bloque izquierdo: precio + referencia */
body.single-propiedad .single-property-overlay-left {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  column-gap: 5%;
  pointer-events: auto;
}

/* El precio reusa el estilo de .prop-precio-badge de portada,
   pero lo hacemos un poco más grande y evitamos salto de línea para el € */
body.single-propiedad .single-property-price-overlay {
  margin-top: 0;
  font-size: 1.3rem;
  padding: 0.45rem 1.3rem;
  white-space: nowrap;
}

/* Referencia: solo texto, en negrita y negro */
body.single-propiedad .single-property-ref {
  font-weight: 700;
  color: #000000;
  white-space: nowrap;
}

/* Bloque derecho: etiquetas + datos (hab, baños, m2) TODO EN UNA LÍNEA */
body.single-propiedad .single-property-overlay-right {
  flex: 0 0 auto;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: flex-end;
  column-gap: 5%;
  text-align: right;
  pointer-events: auto;
}

/* Dentro del bloque derecho:
   - Las etiquetas (badges) van primero
   - Los datos (m2, hab, baños) a continuación */
body.single-propiedad .single-property-datos-overlay {
  margin-top: 0;
  white-space: nowrap;
}

/* Responsive: en móvil acercamos un poco a los bordes */
@media (max-width: 640px) {
  body.single-propiedad .single-property-overlay-bottom {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
  }
}


/* Ajuste badges en overlay: en escritorio una sola línea, en móvil pueden partirse */
body.single-propiedad .single-property-overlay-right .single-property-badges {
  flex-wrap: nowrap;
}

@media (max-width: 640px) {
  body.single-propiedad .single-property-overlay-right .single-property-badges {
    flex-wrap: wrap;
  }
}


/* ===========================
   FORMULARIO FICHA: ESPACIADO COMPACTO
   =========================== */
body.single-propiedad .wpcf7-form label {
  display: block;
  margin-bottom: 0.2rem;
}

body.single-propiedad .wpcf7-form .wpcf7-form-control-wrap {
  display: block;
  margin-bottom: 0.5rem;
}


/* Ajuste extra fuerte: menos espacio vertical entre campos del formulario en la ficha */
body.single-propiedad .wpcf7-form p {
  margin: 0 0 0.2rem !important;
}

body.single-propiedad .wpcf7-form label {
  margin-bottom: 0.1rem !important;
}

body.single-propiedad .wpcf7-form .wpcf7-form-control-wrap {
  margin-bottom: 0.25rem !important;
}

body.single-propiedad .wpcf7-form textarea {
  min-height: 70px !important;
}


.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.section-intro {
    max-width: 52rem;
    color: #4b5563;
}

.intent-grid,
.term-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.intent-card,
.term-card,
.property-card-archive {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.intent-card:hover,
.term-card:hover,
.property-card-archive:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.09);
}

.intent-card .btn-primary {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.archive-intent-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.intent-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: #eef5fb;
    color: #0f3f5f;
    font-weight: 600;
}

.intent-pill.is-active {
    background: #0f4d78;
    color: #fff;
}

.term-card {
    display: block;
    color: inherit;
}

.term-card-link {
    display: inline-block;
    margin-top: 0.5rem;
    font-weight: 600;
}

.property-card-archive-thumb img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0.6rem;
    margin-bottom: 0.9rem;
}

.property-ref-small {
    margin: 0 0 0.4rem;
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 600;
}

.archive-card-price {
    font-size: 1.1rem;
    margin-bottom: 0.65rem;
}

.archive-hero-section,
.taxonomy-hero-section,
.archive-sell-cta,
.home-intent-section {
    border-top: 1px solid #ececec;
}

.archive-filter-form {
    padding-top: 1rem;
}

@media (max-width: 900px) {
    .header-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .main-nav {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .main-nav ul {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .hero-inner,
    .single-property-body {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .archive-intent-nav,
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary,
    .btn-secondary,
    .intent-pill,
    .header-call-btn {
        text-align: center;
    }
}




.home-search-section {
    padding-top: 0;
    padding-bottom: 0;
}

.home-featured-section {
    padding-top: 0.15rem;
}

.home-search-bar-wrap {
    --home-search-bg: #ffffff;
    --home-search-text: #222222;
    --home-search-radius: 12px;
    --home-search-padding: 0px;
    background: var(--home-search-bg);
    color: var(--home-search-text);
    border-radius: var(--home-search-radius);
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    padding: calc(1.25rem + var(--home-search-padding));
}

.home-search-bar-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 1rem;
    align-items: end;
}

.home-search-field label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
    color: var(--home-search-text);
}

.home-search-field input,
.home-search-field select {
    width: 100%;
    padding: 0.75rem 0.8rem;
    border: 1px solid #d0d0d0;
    border-radius: 0.5rem;
    box-sizing: border-box;
}

.home-search-submit-wrap {
    min-width: 0;
}

.home-search-submit {
    width: 100%;
    border: none;
    cursor: pointer;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

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

@media (max-width: 640px) {
    .home-search-bar-form {
        grid-template-columns: 1fr;
    }
}


/* Ajuste compacto en cabecera del archivo de propiedades */
.archive-hero-section {
    padding-top: 0.5rem;
    padding-bottom: 1rem;
}

.archive-hero-section h1 {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.archive-hero-section .section-intro {
    margin-top: 0;
    margin-bottom: 0;
}


/* Visibilidad por dispositivo del buscador inferior de portada */
@media (min-width: 1025px) {
  .inmoteide-hide-desktop {
    display: none !important;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .inmoteide-hide-tablet {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .inmoteide-hide-mobile {
    display: none !important;
  }
}
