/*
Theme Name: Letty Propiedades
Theme URI: https://lettypropiedades.cl
Author: Letty Propiedades
Description: Tema para corredora de propiedades en Puerto Montt. Diseño minimalista azul marino / verde lima, con catálogo de propiedades editable y cotización directa por WhatsApp. Adaptación a WordPress del sitio original construido en Next.js.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: letty-propiedades
*/

/* ─────────────────────────────────────────────
   PALETA DE MARCA
   ───────────────────────────────────────────── */
:root {
  --color-dark: #103a7d;        /* azul marino (principal) */
  --color-dark-mid: #0c2f63;
  --color-navy-deep: #081f44;
  --color-lime: #b8c40d;        /* verde lima (acento) */
  --color-lime-deep: #7e8a08;
  --color-light: #ffffff;
  --color-surface: #f5f6f0;
  --color-border: #e7e8e2;
  --color-text-pri: #111111;
  --color-text-sec: #888884;
  --color-wsp: #25d366;
  --max-container: 1240px;
  --shadow-float: 0 4px 24px rgba(0, 0, 0, 0.08);
}

/* ─────────────────────────────────────────────
   BASE
   ───────────────────────────────────────────── */
* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--color-light);
  color: var(--color-text-pri);
  font-family: 'Raleway', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: clip;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
  cursor: pointer;
}
h1, h2, h3, h4 {
  margin: 0;
  font-weight: 500;
}
p {
  margin: 0;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Helpers tipográficos del diseño original */
.container-x {
  margin: 0 auto;
  width: 100%;
  max-width: var(--max-container);
  padding-left: 20px;
  padding-right: 20px;
}
@media (min-width: 768px) {
  .container-x {
    padding-left: 32px;
    padding-right: 32px;
  }
}
.eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-sec);
  font-weight: 500;
}
.heading {
  letter-spacing: -0.03em;
  line-height: 1.15;
  font-weight: 500;
}
.accent-bar::after {
  content: '';
  display: block;
  margin-top: 12px;
  height: 3px;
  width: 40px;
  border-radius: 9999px;
  background: var(--color-lime);
}
.hairline {
  box-shadow: inset 0 0 0 0.5px var(--color-border);
}
.hairline-dark {
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.16);
}

/* Botones */
.btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  background: var(--color-dark);
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  border: 0;
  transition: opacity 0.2s;
}
.btn-dark:hover { opacity: 0.9; }
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-pri);
  background: #fff;
  box-shadow: inset 0 0 0 0.5px var(--color-border);
  transition: box-shadow 0.2s;
}
.btn-outline:hover { box-shadow: inset 0 0 0 1px var(--color-text-pri); }

.icon {
  width: 18px;
  height: 18px;
  stroke-width: 1.5;
  flex-shrink: 0;
}

/* Texturas / patrones */
.grid-pattern {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.5) 0.5px, transparent 0.5px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.5) 0.5px, transparent 0.5px);
  background-size: 48px 48px;
  opacity: 0.05;
}
.texture {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  opacity: 0.06;
}

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Animación reveal */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
}
.reveal.is-visible {
  animation: fade-up 0.6s ease forwards;
}
@keyframes progress-fill {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* ─────────────────────────────────────────────
   NAVBAR
   ───────────────────────────────────────────── */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: #fff;
  box-shadow: inset 0 0 0 0.5px var(--color-border);
}
.nav {
  display: flex;
  height: 72px;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 768px) { .nav { height: 80px; } }
.nav-logo img { height: 48px; width: auto; transition: transform 0.2s; }
@media (min-width: 768px) { .nav-logo img { height: 56px; } }
.nav-logo:hover img { transform: scale(1.03); }
.nav-links {
  display: none;
  align-items: center;
  gap: 32px;
}
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 0.6; }
.nav-toggle {
  background: none;
  border: 0;
  color: var(--color-text-pri);
  display: inline-flex;
}
@media (min-width: 768px) { .nav-toggle { display: none; } }
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: #fff;
  display: none;
}
.nav-drawer.open { display: block; }
.nav-drawer-top {
  display: flex;
  height: 72px;
  align-items: center;
  justify-content: space-between;
}
.nav-drawer-links {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.nav-drawer-links a {
  font-size: 24px;
  font-weight: 300;
  letter-spacing: -0.03em;
}

/* ─────────────────────────────────────────────
   HERO
   ───────────────────────────────────────────── */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-dark);
  min-height: 100svh;
}
@media (min-width: 768px) { .hero { min-height: 88vh; } }
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,31,68,.62) 0%, rgba(16,58,125,.45) 45%, rgba(8,31,68,.96) 100%);
}
.hero-inner {
  position: relative;
  z-index: 10;
  padding-top: 96px;
  padding-bottom: 112px;
  animation: fade-up 0.7s ease both;
}
@media (min-width: 768px) { .hero-inner { padding-top: 80px; } }
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-lime);
  margin-bottom: 24px;
}
.hero-eyebrow .eyebrow { color: var(--color-lime); }
.hero h1 {
  letter-spacing: -0.03em;
  line-height: 1.15;
  font-size: 2rem;
  color: #fff;
  max-width: 42rem;
}
.hero h1 .muted { color: rgba(255, 255, 255, 0.4); }
@media (min-width: 640px) { .hero h1 { font-size: 3rem; } }
@media (min-width: 768px) { .hero h1 { font-size: 3.4rem; } }
.hero p {
  margin-top: 24px;
  max-width: 60ch;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}
@media (min-width: 768px) { .hero p { font-size: 15px; } }

/* ─────────────────────────────────────────────
   SEARCH BAR
   ───────────────────────────────────────────── */
.searchbar {
  position: relative;
  z-index: 20;
  margin-top: -48px;
}
@media (min-width: 768px) { .searchbar { margin-top: -40px; } }
.searchbar-box {
  margin: 0 auto;
  max-width: 56rem;
  border-radius: 16px;
  background: #fff;
  padding: 8px;
  box-shadow: var(--shadow-float), inset 0 0 0 0.5px var(--color-border);
}
.searchbar-tabs {
  display: flex;
  gap: 4px;
  padding: 6px;
}
.searchbar-tab {
  border: 0;
  background: none;
  border-radius: 9999px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-sec);
  transition: all 0.2s;
}
.searchbar-tab:hover { color: var(--color-text-pri); }
.searchbar-tab.active { background: var(--color-dark); color: #fff; }
.searchbar-fields {
  display: grid;
  grid-template-columns: 1fr;
  border-radius: 12px;
  box-shadow: inset 0 0 0 0.5px var(--color-border);
}
@media (min-width: 768px) {
  .searchbar-fields { grid-template-columns: 1fr 1fr 1fr auto; }
  .searchbar-field { border-left: 1px solid var(--color-border); }
  .searchbar-field:first-child { border-left: 0; }
}
.searchbar-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 16px;
  text-align: left;
}
.searchbar-field .eyebrow { font-size: 10px; }
.searchbar-field-control {
  display: flex;
  align-items: center;
  gap: 8px;
}
.searchbar-field .icon { width: 16px; height: 16px; color: var(--color-text-sec); }
.searchbar-field select,
.searchbar-field input {
  width: 100%;
  border: 0;
  background: transparent;
  font-size: 14px;
  color: var(--color-text-pri);
  outline: none;
  font-family: inherit;
}
.searchbar-field select { cursor: pointer; }
.searchbar-submit { display: flex; padding: 8px; }
.searchbar-submit .btn-dark { width: 100%; height: 100%; }
@media (min-width: 768px) { .searchbar-submit .btn-dark { padding-left: 24px; padding-right: 24px; } }
.searchbar-quick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  padding: 12px 16px;
  font-size: 11px;
  color: var(--color-text-sec);
}

/* ─────────────────────────────────────────────
   STATS
   ───────────────────────────────────────────── */
.stats {
  position: relative;
  margin-top: 64px;
  overflow: hidden;
  background: var(--color-surface);
}
@media (min-width: 768px) { .stats { margin-top: 80px; } }
.stats-grid {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 32px 0;
}
@media (min-width: 768px) { .stat { padding: 40px 0; } }
.stat:nth-child(even) {
  border-left: 1px solid var(--color-border);
  padding-left: 24px;
}
@media (min-width: 768px) {
  .stat:not(:first-child) { border-left: 1px solid var(--color-border); padding-left: 40px; }
}
.stat-value {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--color-text-pri);
}
@media (min-width: 768px) { .stat-value { font-size: 22px; } }
.stat-label { font-size: 10px; line-height: 1.3; }

/* ─────────────────────────────────────────────
   SECTIONS (titles)
   ───────────────────────────────────────────── */
.section { padding: 64px 0; }
@media (min-width: 768px) { .section { padding: 96px 0; } }
.section-head {
  margin-bottom: 40px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.section-head h2 {
  margin-top: 8px;
  font-size: 24px;
  color: var(--color-text-pri);
}
@media (min-width: 768px) { .section-head h2 { font-size: 30px; } }
.link-all {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
}
.link-all .icon { width: 16px; height: 16px; transition: transform 0.2s; }
.link-all:hover .icon { transform: translateX(4px); }

/* ─────────────────────────────────────────────
   PROPERTY CARDS
   ───────────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 640px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards-grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: inset 0 0 0 0.5px var(--color-border);
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: inset 0 0 0 0.5px var(--color-border), var(--shadow-float); }
.card-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-dark);
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease-out;
}
.card:hover .card-media img { transform: scale(1.04); }
.card-badges {
  position: absolute;
  left: 12px;
  top: 12px;
  display: flex;
  gap: 8px;
  z-index: 2;
}
.badge {
  border-radius: 9999px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.badge-sale { background: var(--color-dark); color: #fff; }
.badge-rent { background: #1d3a2a; color: #fff; }
.badge-new { background: #fff; color: var(--color-text-pri); }
.watermark {
  position: absolute;
  z-index: 2;
  width: auto;
  opacity: 0.8;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.5));
}
.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}
.card-body h3 { font-size: 15px; letter-spacing: -0.03em; color: var(--color-text-pri); }
.card-addr {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--color-text-sec);
}
.card-addr .icon { width: 12px; height: 12px; }
.card-specs {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
}
.spec {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--color-text-sec);
}
.spec .icon { width: 14px; height: 14px; }
.card-foot {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--color-border);
  padding-top: 16px;
}
.card-price { font-size: 14px; font-weight: 500; color: var(--color-text-pri); }
.btn-quote {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
  background: var(--color-dark);
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 500;
  color: #fff;
  transition: opacity 0.2s;
}
.btn-quote:hover { opacity: 0.9; }
.btn-quote .icon { width: 14px; height: 14px; }

/* ─────────────────────────────────────────────
   TYPE FILTER
   ───────────────────────────────────────────── */
.typefilter {
  position: relative;
  overflow: hidden;
  background: var(--color-surface);
  padding: 64px 0;
}
@media (min-width: 768px) { .typefilter { padding: 96px 0; } }
.typefilter .inner { position: relative; z-index: 10; }
.type-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 768px) { .type-grid { grid-template-columns: repeat(4, 1fr); } }
.type-card {
  display: flex;
  height: 100%;
  flex-direction: column;
  gap: 16px;
  border-radius: 12px;
  background: #fff;
  padding: 24px;
  box-shadow: inset 0 0 0 0.5px var(--color-border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.type-card:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 0.5px var(--color-border), var(--shadow-float);
}
.type-card .icon { width: 22px; height: 22px; color: var(--color-text-pri); }
.type-card .label { font-size: 14px; font-weight: 500; color: var(--color-text-pri); }
.type-card .count { margin-top: 2px; font-size: 11px; color: var(--color-text-sec); }

/* ─────────────────────────────────────────────
   BROKER CARD
   ───────────────────────────────────────────── */
.broker-sep {
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.broker-sep .line { height: 1px; flex: 1; background: var(--color-border); }
.broker-sep .eyebrow { white-space: nowrap; }
.broker-card {
  margin: 0 auto;
  display: flex;
  max-width: 56rem;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  border-radius: 16px;
  background: #fff;
  padding: 28px;
  box-shadow: inset 0 0 0 0.5px var(--color-border);
}
@media (min-width: 768px) {
  .broker-card { flex-direction: row; justify-content: space-between; padding: 36px; }
}
.broker-id { display: flex; align-items: center; gap: 20px; }
.broker-avatar {
  display: flex;
  height: 64px;
  width: 64px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: var(--color-dark);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: #fff;
}
.broker-id h3 { font-size: 18px; color: var(--color-text-pri); }
.broker-role { font-size: 13px; color: var(--color-text-sec); }
.broker-cert {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--color-text-sec);
}
.broker-cert .icon { width: 14px; height: 14px; }
.broker-portal {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 9999px;
  background: var(--color-surface);
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-pri);
  box-shadow: inset 0 0 0 0.5px var(--color-border);
  transition: color 0.2s;
}
.broker-portal:hover { color: var(--color-lime-deep); }
.broker-portal .icon { width: 14px; height: 14px; color: var(--color-lime-deep); }
.broker-actions {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 12px;
}
@media (min-width: 640px) { .broker-actions { flex-direction: row; } }
@media (min-width: 768px) { .broker-actions { width: auto; } }

/* ─────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────── */
.site-footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}
.footer-grid {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 56px 0;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(4, 1fr); padding: 64px 0; } }
.footer-brand { grid-column: auto; }
@media (min-width: 640px) { .footer-brand { grid-column: span 2; } }
@media (min-width: 1024px) { .footer-brand { grid-column: span 1; } }
.footer-brand img { height: 48px; width: auto; }
.footer-brand p {
  margin-top: 16px;
  max-width: 20rem;
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-text-sec);
}
.footer-social { margin-top: 20px; display: flex; align-items: center; gap: 12px; }
.footer-social a {
  display: flex;
  height: 36px;
  width: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--color-text-pri);
  box-shadow: inset 0 0 0 0.5px var(--color-border);
  transition: color 0.2s;
}
.footer-social a:hover { color: var(--color-lime-deep); }
.footer-col h4 { margin-bottom: 16px; }
.footer-col li { margin-bottom: 10px; }
.footer-col a, .footer-col li { font-size: 13px; color: var(--color-text-sec); transition: color 0.2s; }
.footer-col a:hover { color: var(--color-text-pri); }
.footer-contact li { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 12px; }
.footer-contact .icon { width: 16px; height: 16px; color: var(--color-text-pri); margin-top: 2px; }
.footer-bottom {
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--color-border);
}
.footer-bottom .inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 20px 0;
  font-size: 11px;
  color: var(--color-text-sec);
}
@media (min-width: 640px) { .footer-bottom .inner { flex-direction: row; } }

/* ─────────────────────────────────────────────
   STICKY BROKER (mobile)
   ───────────────────────────────────────────── */
.sticky-broker {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 90;
  border-top: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
}
@media (min-width: 768px) { .sticky-broker { display: none; } }
.sticky-broker .inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
}
.sticky-broker .avatar {
  display: flex;
  height: 40px;
  width: 40px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: var(--color-dark);
  font-size: 12px;
  font-weight: 500;
  color: #fff;
}
.sticky-broker .meta { min-width: 0; flex: 1; }
.sticky-broker .name { font-size: 13px; font-weight: 500; color: var(--color-text-pri); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-broker .role { font-size: 10px; color: var(--color-text-sec); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-broker .call {
  display: flex; height: 40px; width: 40px; align-items: center; justify-content: center;
  border-radius: 8px; box-shadow: inset 0 0 0 0.5px var(--color-border); color: var(--color-text-pri);
}
.sticky-broker .quote {
  display: flex; height: 40px; align-items: center; gap: 6px;
  border-radius: 8px; background: var(--color-dark); padding: 0 16px;
  font-size: 13px; font-weight: 500; color: #fff;
}
body.has-sticky-broker { padding-bottom: 64px; }
@media (min-width: 768px) { body.has-sticky-broker { padding-bottom: 0; } }

/* ─────────────────────────────────────────────
   ARCHIVE / EXPLORER
   ───────────────────────────────────────────── */
.archive-head { background: var(--color-surface); }
.archive-head .inner { padding: 48px 0; }
@media (min-width: 768px) { .archive-head .inner { padding: 64px 0; } }
.archive-head h1 { margin-top: 8px; font-size: 30px; color: var(--color-text-pri); }
@media (min-width: 768px) { .archive-head h1 { font-size: 36px; } }
.archive-head p { margin-top: 12px; max-width: 36rem; font-size: 14px; color: var(--color-text-sec); }
.main-offset { padding-top: 72px; }
@media (min-width: 768px) { .main-offset { padding-top: 80px; } }
.chips { margin-bottom: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chip {
  border: 0;
  border-radius: 9999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-sec);
  background: #fff;
  box-shadow: inset 0 0 0 0.5px var(--color-border);
  transition: all 0.2s;
}
.chip:hover { color: var(--color-text-pri); }
.chip.active { background: var(--color-dark); color: #fff; box-shadow: none; }
.result-count { margin-bottom: 24px; font-size: 13px; color: var(--color-text-sec); }
.empty { padding: 64px 0; text-align: center; }
.empty p { font-size: 14px; color: var(--color-text-sec); }

/* ─────────────────────────────────────────────
   SINGLE PROPERTY
   ───────────────────────────────────────────── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--color-text-sec);
  transition: color 0.2s;
}
.back-link:hover { color: var(--color-text-pri); }
.back-link .icon { width: 16px; height: 16px; }
.single-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 1024px) {
  .single-grid { grid-template-columns: minmax(0, 1fr) 360px; }
}
.single-main { min-width: 0; }
.single-tags { margin-bottom: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.tag-type {
  border-radius: 9999px; background: var(--color-dark); padding: 4px 12px;
  font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em; color: #fff;
}
.tag-new {
  border-radius: 9999px; padding: 4px 12px;
  font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--color-text-pri); box-shadow: inset 0 0 0 0.5px var(--color-border);
}
.single-main h1 { font-size: 24px; color: var(--color-text-pri); }
@media (min-width: 768px) { .single-main h1 { font-size: 36px; } }
.single-addr { margin-top: 12px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--color-text-sec); }
.single-addr .icon { width: 16px; height: 16px; }
.specs-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 640px) { .specs-grid { grid-template-columns: repeat(4, 1fr); } }
.spec-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border-radius: 12px;
  background: var(--color-surface);
  padding: 20px 12px;
  text-align: center;
}
.spec-block .icon { width: 20px; height: 20px; color: var(--color-text-pri); }
.spec-block .v { font-size: 14px; font-weight: 500; color: var(--color-text-pri); }
.spec-block .l { font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--color-text-sec); }
.single-block { margin-top: 40px; }
.single-block h2 { font-size: 18px; color: var(--color-text-pri); }
.single-block .desc { margin-top: 12px; font-size: 15px; line-height: 1.8; color: rgba(17,17,17,0.8); }
.features { margin-top: 16px; display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
.features li { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(17,17,17,0.85); }
.features .check {
  display: flex; height: 20px; width: 20px; align-items: center; justify-content: center;
  border-radius: 9999px; background: var(--color-surface); flex-shrink: 0;
}
.features .check .icon { width: 12px; height: 12px; stroke-width: 2; color: var(--color-text-pri); }
.map-wrap { margin-top: 16px; overflow: hidden; border-radius: 16px; box-shadow: inset 0 0 0 0.5px var(--color-border); }
.map-wrap iframe { height: 280px; width: 100%; border: 0; filter: grayscale(0.3); display: block; }

/* Sidebar */
.broker-sidebar {
  border-radius: 16px;
  background: #fff;
  padding: 24px;
  box-shadow: inset 0 0 0 0.5px var(--color-border);
}
@media (min-width: 1024px) { .broker-sidebar { position: sticky; top: 96px; } }
.sidebar-price { display: flex; flex-direction: column; gap: 4px; }
.sidebar-price .p { font-size: 24px; font-weight: 500; letter-spacing: -0.03em; color: var(--color-text-pri); }
.sidebar-price .m { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--color-text-sec); }
.sidebar-divider { margin: 20px 0; height: 1px; background: var(--color-border); }
.sidebar-broker { display: flex; align-items: center; gap: 12px; }
.sidebar-broker .avatar {
  display: flex; height: 48px; width: 48px; flex-shrink: 0; align-items: center; justify-content: center;
  border-radius: 9999px; background: var(--color-dark); font-size: 14px; font-weight: 500; color: #fff;
}
.sidebar-broker .name { font-size: 14px; font-weight: 500; color: var(--color-text-pri); }
.sidebar-broker .role { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--color-text-sec); }
.sidebar-broker .role .icon { width: 12px; height: 12px; }
.sidebar-note { margin-top: 16px; text-align: center; font-size: 11px; color: var(--color-text-sec); }

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 12px; }
.contact-form .title { font-size: 13px; font-weight: 500; color: var(--color-text-pri); }
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: #fff;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--color-text-pri);
  outline: none;
  box-shadow: inset 0 0 0 0.5px var(--color-border);
  font-family: inherit;
  transition: box-shadow 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus { box-shadow: inset 0 0 0 2px rgba(16,58,125,0.2); }
.contact-form textarea { resize: none; }
.contact-form .error { font-size: 12px; color: #dc2626; }
.contact-form .call-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 12px; color: var(--color-text-sec); transition: color 0.2s;
}
.contact-form .call-link:hover { color: var(--color-text-pri); }
.contact-form .call-link .icon { width: 14px; height: 14px; }
.contact-success { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 0; text-align: center; }
.contact-success .ico {
  display: flex; height: 44px; width: 44px; align-items: center; justify-content: center;
  border-radius: 9999px; background: var(--color-dark); color: #fff;
}
.contact-success .ico .icon { width: 20px; height: 20px; stroke-width: 2; }
.contact-success .t { font-size: 14px; font-weight: 500; color: var(--color-text-pri); }
.contact-success .s { font-size: 12px; color: var(--color-text-sec); }
.contact-success a { color: var(--color-lime-deep); text-decoration: underline; }

/* ─────────────────────────────────────────────
   GALLERY
   ───────────────────────────────────────────── */
.gallery-main {
  position: relative;
  aspect-ratio: 16 / 10;
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
  background: var(--color-dark);
}
.gallery-progress {
  position: absolute;
  inset: 12px 12px auto 12px;
  z-index: 20;
  display: flex;
  gap: 6px;
}
.gallery-progress .bar { height: 3px; flex: 1; overflow: hidden; border-radius: 9999px; background: rgba(255,255,255,0.25); }
.gallery-progress .fill { height: 100%; width: 100%; transform-origin: left; border-radius: 9999px; background: var(--color-lime); transform: scaleX(0); }
.gallery-progress .bar.done .fill { transform: scaleX(1); }
.gallery-progress .bar.current .fill { animation: progress-fill 4500ms linear forwards; }
.gallery-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: zoom-in;
}
.gallery-slide.active { opacity: 1; }
.gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 20;
  display: flex;
  height: 36px;
  width: 36px;
  transform: translateY(-50%);
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: rgba(16,58,125,0.5);
  color: #fff;
  border: 0;
  opacity: 0;
  backdrop-filter: blur(4px);
  transition: opacity 0.2s, background 0.2s;
}
.gallery-main:hover .gallery-nav { opacity: 1; }
.gallery-nav:hover { background: rgba(16,58,125,0.7); }
.gallery-nav.prev { left: 12px; }
.gallery-nav.next { right: 12px; }
.gallery-pause {
  position: absolute; bottom: 12px; left: 12px; z-index: 20;
  display: flex; height: 28px; width: 28px; align-items: center; justify-content: center;
  border-radius: 9999px; background: rgba(16,58,125,0.5); color: #fff; border: 0; backdrop-filter: blur(4px);
}
.gallery-counter {
  position: absolute; bottom: 12px; right: 12px; z-index: 20;
  border-radius: 9999px; background: rgba(16,58,125,0.6); padding: 4px 12px;
  font-size: 11px; font-weight: 500; color: #fff; backdrop-filter: blur(4px);
}
.gallery-thumbs { margin-top: 12px; display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.gallery-thumb {
  position: relative; aspect-ratio: 1; height: 64px; width: 64px; flex-shrink: 0;
  overflow: hidden; border-radius: 8px; background: var(--color-dark); border: 0; opacity: 0.55;
  transition: opacity 0.2s, box-shadow 0.2s; padding: 0;
}
@media (min-width: 768px) { .gallery-thumb { height: 80px; width: 80px; } }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover { opacity: 1; }
.gallery-thumb.active { opacity: 1; box-shadow: 0 0 0 2px var(--color-dark), 0 0 0 4px #fff; }
.gallery-nav .icon, .gallery-pause .icon { width: 18px; height: 18px; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; background: rgba(16,58,125,0.95);
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 78vh; max-width: 92vw; object-fit: contain; }
.lightbox-close { position: absolute; right: 16px; top: 16px; z-index: 10; color: rgba(255,255,255,0.8); background: none; border: 0; }
.lightbox-close:hover { color: #fff; }
.lightbox-nav {
  position: absolute; z-index: 10; display: flex; height: 44px; width: 44px;
  align-items: center; justify-content: center; border-radius: 9999px;
  background: rgba(255,255,255,0.1); color: #fff; border: 0;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.2); }
.lightbox-nav.prev { left: 12px; }
.lightbox-nav.next { right: 12px; }
@media (min-width: 768px) { .lightbox-nav.prev { left: 24px; } .lightbox-nav.next { right: 24px; } }
.lightbox-counter {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  border-radius: 9999px; background: rgba(255,255,255,0.1); padding: 4px 12px; font-size: 12px; color: #fff;
}
.lightbox-close .icon { width: 28px; height: 28px; }
.lightbox-nav .icon { width: 24px; height: 24px; }

/* ─────────────────────────────────────────────
   404
   ───────────────────────────────────────────── */
.notfound {
  display: flex; min-height: 100vh; flex-direction: column; align-items: center; justify-content: center;
  background: var(--color-dark); padding: 24px; text-align: center;
}
.notfound .eyebrow { color: rgba(255,255,255,0.5); }
.notfound h1 { margin-top: 12px; font-size: 30px; color: #fff; }
@media (min-width: 768px) { .notfound h1 { font-size: 36px; } }
.notfound p { margin-top: 12px; max-width: 24rem; font-size: 14px; color: rgba(255,255,255,0.5); }
.notfound a {
  margin-top: 32px; display: inline-flex; align-items: center; gap: 8px;
  border-radius: 8px; background: #fff; padding: 12px 20px; font-size: 14px; font-weight: 500; color: var(--color-dark);
  transition: opacity 0.2s;
}
.notfound a:hover { opacity: 0.9; }
.notfound a .icon { width: 16px; height: 16px; }

/* WP admin bar offset */
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
