/*
Theme Name:  Hello Elementor Child
Template:    hello-elementor
Description: Child theme for Hola Houses – holahouses.es
Version:     1.0.0
*/

/* ── Design tokens ──────────────────────────────────────────── */
:root {
  --hh-primary: #0F243E;
  --hh-accent:  #C8A15A;
  --hh-bg:      #F2F2F2;
  --hh-surface: #ffffff;
  --hh-text:    #333333;
  --hh-muted:   #6B7280;
  --hh-border:  #E5E7EB;
  --hh-radius:  8px;
  --hh-shadow:  0 2px 12px rgba(0,0,0,.08);
  --hh-shadow-hover: 0 6px 24px rgba(0,0,0,.14);
}

/* ── Base ───────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

body {
  background: var(--hh-bg);
  color: var(--hh-text);
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
}

a { color: var(--hh-primary); }
a:hover { color: var(--hh-accent); }

/* ── Header / Nav ───────────────────────────────────────────── */
.site-header {
  background: var(--hh-primary);
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.site-header .site-title a,
.site-header .site-navigation a {
  color: #fff;
}

.site-header .site-navigation a:hover,
.site-header .site-navigation .current-menu-item > a {
  color: var(--hh-accent);
}

/* ── Archive layout ─────────────────────────────────────────── */
.hh-archive-wrap {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

@media (max-width: 768px) {
  .hh-archive-wrap { grid-template-columns: 1fr; }
}

/* ── Filter sidebar ─────────────────────────────────────────── */
.hh-filters {
  background: var(--hh-surface);
  border-radius: var(--hh-radius);
  box-shadow: var(--hh-shadow);
  padding: 24px;
  height: fit-content;
  position: sticky;
  top: 90px;
}

.hh-filters h3 {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--hh-muted);
  margin: 0 0 16px;
}

.hh-filters details { margin-bottom: 20px; }

.hh-filters summary {
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  color: var(--hh-primary);
  padding: 4px 0;
  list-style: none;
}

.hh-filters summary::-webkit-details-marker { display: none; }
.hh-filters summary::before { content: '\25B8 '; }
.hh-filters details[open] summary::before { content: '\25BE '; }

.hh-filter-group { padding: 10px 0 0; }

.hh-filter-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .875rem;
  padding: 4px 0;
  cursor: pointer;
}

.hh-filter-group input[type=checkbox] {
  accent-color: var(--hh-accent);
  width: 15px;
  height: 15px;
}

.hh-filter-btn {
  display: block;
  width: 100%;
  background: var(--hh-accent);
  color: #fff;
  border: none;
  border-radius: var(--hh-radius);
  padding: 10px;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  margin-top: 8px;
  text-align: center;
  text-decoration: none;
  transition: background .2s;
}

.hh-filter-btn:hover { background: #b08840; color: #fff; }

.hh-filter-reset {
  display: block;
  text-align: center;
  font-size: .8rem;
  color: var(--hh-muted);
  margin-top: 10px;
  text-decoration: underline;
}

/* ── Cards grid ─────────────────────────────────────────────── */
.hh-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.hh-card {
  background: var(--hh-surface);
  border-radius: var(--hh-radius);
  box-shadow: var(--hh-shadow);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
}

.hh-card:hover {
  box-shadow: var(--hh-shadow-hover);
  transform: translateY(-3px);
}

.hh-card-thumb {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
}

.hh-card-thumb-placeholder {
  width: 100%;
  aspect-ratio: 16/10;
  background: #e8edf2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hh-muted);
  font-size: 2rem;
}

.hh-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hh-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--hh-primary);
  margin: 0;
  line-height: 1.3;
}

.hh-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: .8rem;
  color: var(--hh-muted);
}

.hh-card-meta span {
  background: var(--hh-bg);
  border-radius: 4px;
  padding: 2px 8px;
}

.hh-card-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--hh-accent);
  margin-top: auto;
}

.hh-card-link {
  display: block;
  text-align: center;
  background: var(--hh-primary);
  color: #fff;
  border-radius: 0 0 var(--hh-radius) var(--hh-radius);
  padding: 10px;
  font-weight: 600;
  font-size: .875rem;
  text-decoration: none;
  transition: background .2s;
}

.hh-card-link:hover { background: var(--hh-accent); color: #fff; }

/* ── Badge ──────────────────────────────────────────────────── */
.hh-badge {
  display: inline-block;
  background: var(--hh-accent);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
}

.hh-badge-official { background: var(--hh-primary); }
.hh-badge-available { background: #16a34a; }
.hh-badge-reserved  { background: #d97706; }
.hh-badge-sold      { background: #9ca3af; }

/* ── Single post ────────────────────────────────────────────── */
.hh-single {
  max-width: 960px;
  margin: 40px auto;
  padding: 0 20px;
}

.hh-specs-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--hh-surface);
  border-radius: var(--hh-radius);
  box-shadow: var(--hh-shadow);
  padding: 20px 24px;
  margin-bottom: 32px;
}

.hh-spec {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 80px;
}

.hh-spec-label {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--hh-muted);
}

.hh-spec-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--hh-primary);
}

.hh-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.hh-gallery-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--hh-radius);
  cursor: pointer;
}

.hh-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--hh-primary);
  margin: 32px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--hh-accent);
}

.hh-pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--hh-primary);
  color: #fff;
  border-radius: var(--hh-radius);
  padding: 10px 20px;
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  transition: background .2s;
}

.hh-pdf-btn:hover { background: var(--hh-accent); color: #fff; }

.hh-video-wrap {
  position: relative;
  padding-top: 56.25%;
  margin: 24px 0;
}

.hh-video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border-radius: var(--hh-radius);
  border: none;
}

/* ── CTA box ────────────────────────────────────────────────── */
.hh-cta-box {
  background: linear-gradient(135deg, var(--hh-primary) 0%, #1a3a5c 100%);
  color: #fff;
  border-radius: var(--hh-radius);
  padding: 32px;
  margin: 40px 0;
  text-align: center;
}

.hh-cta-box h3 {
  color: #fff;
  font-size: 1.3rem;
  margin: 0 0 20px;
}

/* ── Pagination ─────────────────────────────────────────────── */
.hh-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.hh-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--hh-radius);
  background: var(--hh-surface);
  box-shadow: var(--hh-shadow);
  font-weight: 600;
  font-size: .9rem;
  color: var(--hh-primary);
  text-decoration: none;
  transition: background .2s, color .2s;
}

.hh-pagination .page-numbers:hover,
.hh-pagination .page-numbers.current {
  background: var(--hh-accent);
  color: #fff;
}

/* ── No results ─────────────────────────────────────────────── */
.hh-no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--hh-muted);
}

.hh-no-results p { font-size: 1rem; margin: 8px 0 0; }

/* ── Splash page ────────────────────────────────────────────── */
.hh-splash {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--hh-primary) 0%, #0e2540 100%);
  text-align: center;
  padding: 40px 20px;
}

.hh-splash-logo {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: .06em;
  margin-bottom: 12px;
}

.hh-splash-sub {
  color: rgba(255,255,255,.7);
  font-size: clamp(.9rem, 2vw, 1.1rem);
  margin-bottom: 48px;
  line-height: 1.6;
}

.hh-lang-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.hh-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 2px solid rgba(255,255,255,.3);
  border-radius: 50px;
  padding: 14px 32px;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, border-color .2s;
  backdrop-filter: blur(4px);
}

.hh-lang-btn:hover {
  background: var(--hh-accent);
  border-color: var(--hh-accent);
  color: #fff;
}

/* ── Idealista outbound link ────────────────────────────────── */
.hh-idealista-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #e85010;
  color: #fff;
  border-radius: var(--hh-radius);
  padding: 8px 16px;
  font-size: .8rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity .2s;
}

.hh-idealista-btn:hover { opacity: .85; color: #fff; }

/* ── Responsive tweaks ──────────────────────────────────────── */
@media (max-width: 480px) {
  .hh-specs-bar { flex-direction: column; align-items: flex-start; }
  .hh-cta-box   { padding: 24px 16px; }
  .hh-filters   { position: static; }
}

/* ── Hero section background ────────────────────────────────── */
/* Overrides Elementor lazy-load "background-image: none !important" */
.hh-hero,
.elementor-element-a4b71025,
.elementor-element-602fe06e,
.elementor-element-6c2941df {
  background-image: url('https://holahouses.es/wp-content/uploads/2026/05/hero-holahouses.png') !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  position: relative;
}

.hh-hero::before,
.elementor-element-a4b71025::before,
.elementor-element-602fe06e::before,
.elementor-element-6c2941df::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 36, 62, 0.55);
  z-index: 0;
}

.hh-hero > .elementor-container,
.elementor-element-a4b71025 > .elementor-container,
.elementor-element-602fe06e > .elementor-container,
.elementor-element-6c2941df > .elementor-container {
  position: relative;
  z-index: 1;
}
/* ── Card image equalisation ────────────────────────────────── */
/* Force all three pillar card images to same height            */
.elementor-element-543f5867 img,
.elementor-element-1538fd62 img,
.elementor-element-d6745e79 img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Make each card column a flex column so text aligns at top    */
.elementor-element-c8e28e89 > .elementor-column-wrap,
.elementor-element-d0634e9f > .elementor-column-wrap,
.elementor-element-e3f2bd4b > .elementor-column-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.elementor-element-c8e28e89 .elementor-widget-wrap,
.elementor-element-d0634e9f .elementor-widget-wrap,
.elementor-element-e3f2bd4b .elementor-widget-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Card section columns stretch to equal height */
.elementor-element-af1e69f7 > .elementor-container {
  align-items: stretch;
}

.elementor-element-af1e69f7 .elementor-column {
  display: flex;
  flex-direction: column;
}