/*
Theme Name: Oliveira Imóveis
Theme URI: https://oliveiraimoveis.com.br
Author: ImobHub
Author URI: https://imobhub.com.br
Description: Tema moderno para corretor de imóveis. Design clean e sofisticado com foco em conversão.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: oliveira-imoveis
Tags: real-estate, one-column, custom-logo, custom-colors
*/

/* ============================================
   CSS VARIABLES & RESET
   ============================================ */
:root {
  --color-primary: #1B1B18;
  --color-accent: #8B6914;
  --color-light: #F8F6F1;
  --color-white: #FFFFFF;
  --color-muted: #9A9890;
  --color-border: #e8e4dc;
  --color-border-light: #f0ece4;
  --font-body: 'DM Sans', sans-serif;
  --font-heading: 'Playfair Display', serif;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-pill: 20px;
  --shadow-card: 0 8px 40px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
  --shadow-hover: 0 20px 60px rgba(0,0,0,0.08);
  --transition: 0.3s cubic-bezier(0.23,1,0.32,1);
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-primary);
  background: var(--color-white);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(139, 105, 20, 0.2);
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

a {
  text-decoration: none;
  color: inherit;
}

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

input, select, textarea, button {
  font-family: var(--font-body);
}

input:focus, select:focus, textarea:focus {
  outline: none;
}

button {
  cursor: pointer;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.fade-up { animation: fadeUp 0.65s cubic-bezier(0.23,1,0.32,1) both; }
.fade-in { animation: fadeIn 0.5s ease both; }
.scale-in { animation: scaleIn 0.4s cubic-bezier(0.23,1,0.32,1) both; }
.slide-down { animation: slideDown 0.35s ease both; }
.d1 { animation-delay: .08s; }
.d2 { animation-delay: .16s; }
.d3 { animation-delay: .24s; }
.d4 { animation-delay: .32s; }
.d5 { animation-delay: .4s; }
.d6 { animation-delay: .48s; }

/* ============================================
   NAVBAR
   ============================================ */
.site-navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid #eee8e0;
  padding: 0 clamp(20px, 5vw, 80px);
}

.navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.navbar-brand {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--color-primary);
}

.navbar-brand em {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 400;
  margin-left: 4px;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.navbar-links a {
  font-size: 13px;
  color: var(--color-muted);
  font-weight: 500;
  transition: color 0.2s;
  letter-spacing: 0.01em;
}

.navbar-links a:hover,
.navbar-links a.active {
  color: var(--color-primary);
}

.navbar-creci {
  font-size: 12px;
  color: var(--color-accent);
  font-weight: 500;
  padding: 6px 14px;
  border: 1px solid rgba(139, 105, 20, 0.27);
  border-radius: var(--radius-pill);
}

/* Mobile hamburger */
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  color: var(--color-primary);
}

.navbar-toggle svg {
  width: 24px;
  height: 24px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  padding: clamp(60px, 10vw, 120px) clamp(20px, 5vw, 80px) clamp(60px, 8vw, 100px);
  background: linear-gradient(165deg, var(--color-light) 0%, var(--color-white) 50%, rgba(248,246,241,0.4) 100%);
  overflow: hidden;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  border: 1px solid rgba(139, 105, 20, 0.067);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -200px;
  left: -100px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(139, 105, 20, 0.02);
  pointer-events: none;
}

.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: rgba(139, 105, 20, 0.067);
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.04em;
}

.hero-badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-accent);
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: clamp(14px, 1.5vw, 16px);
  color: var(--color-muted);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ============================================
   FILTER BAR
   ============================================ */
.filter-section {
  padding: 0 clamp(20px, 5vw, 80px);
  position: relative;
  z-index: 10;
}

.filter-bar {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border-light);
  max-width: 900px;
  margin: -34px auto 0;
  position: relative;
  z-index: 10;
}

.filter-main {
  display: flex;
  gap: 10px;
  align-items: center;
}

.filter-search-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-light);
}

.filter-search-wrap svg {
  flex-shrink: 0;
  color: var(--color-muted);
}

.filter-search-wrap input {
  border: none;
  background: none;
  flex: 1;
  font-size: 13.5px;
  color: var(--color-primary);
}

.filter-toggle-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
}

.filter-toggle-btn.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.filter-submit-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: opacity 0.2s;
}

.filter-submit-btn:hover {
  opacity: 0.85;
}

.filter-advanced {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border-light);
}

.filter-select {
  appearance: none;
  padding: 11px 14px;
  padding-right: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  font-size: 13px;
  color: var(--color-primary);
  background: var(--color-white);
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%239A9890' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  min-width: 140px;
  transition: border-color 0.2s;
  width: 100%;
}

.filter-select:focus {
  border-color: var(--color-accent);
}

/* ============================================
   PROPERTIES GRID
   ============================================ */
.properties-section {
  padding: 48px clamp(20px, 5vw, 80px) 80px;
}

.properties-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.properties-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.properties-header h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

/* Property Card */
.prop-card {
  border-radius: 16px;
  overflow: hidden;
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  transition: transform var(--transition), box-shadow 0.3s ease;
  display: block;
}

.prop-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.prop-card-img {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.prop-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.23,1,0.32,1);
}

.prop-card:hover .prop-card-img img {
  transform: scale(1.05);
}

.prop-card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
}

.badge-transaction {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  background: var(--color-primary);
  color: var(--color-white);
  letter-spacing: 0.03em;
}

.badge-type {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(8px);
  color: var(--color-primary);
}

.prop-card-body {
  padding: 18px 20px 20px;
}

.prop-card-location {
  font-size: 11px;
  color: var(--color-muted);
  font-weight: 500;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.prop-card-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  line-height: 1.3;
}

.prop-card-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-accent);
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.prop-card-price .suffix {
  font-size: 12px;
  font-weight: 400;
  color: var(--color-muted);
}

.prop-card-specs {
  display: flex;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border-light);
}

.prop-card-spec {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--color-muted);
}

.prop-card-spec svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  padding: 64px clamp(20px, 5vw, 80px);
  background: var(--color-light);
}

.cta-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.cta-inner h2 {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 500;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
  line-height: 1.2;
}

.cta-inner p {
  font-size: 14px;
  color: var(--color-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 12px;
  border: none;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 14px;
  font-weight: 600;
  transition: opacity 0.2s;
}

.btn-primary:hover {
  opacity: 0.88;
  color: var(--color-white);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 12px;
  border: none;
  background: #25D366;
  color: white;
  font-size: 14px;
  font-weight: 600;
  transition: opacity 0.2s;
}

.btn-whatsapp:hover {
  opacity: 0.9;
  color: white;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 60px clamp(20px, 5vw, 80px) 32px;
  overflow: hidden;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}

.footer-brand em {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 400;
  margin-left: 5px;
}

.footer-desc {
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
  max-width: 360px;
}

.footer-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.4);
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  list-style: none;
}

.footer-contact-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-contact-list svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
}

.footer-nav-list a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s;
}

.footer-nav-list a:hover {
  color: rgba(255, 255, 255, 0.9);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
}

.footer-bottom em {
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--color-accent);
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 100;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.45);
}

.whatsapp-float svg {
  width: 26px;
  height: 26px;
  fill: white;
}

/* ============================================
   SINGLE PROPERTY PAGE
   ============================================ */
.property-detail {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px clamp(20px, 5vw, 80px) 80px;
  overflow: hidden;
}

.property-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--color-muted);
}

.property-breadcrumb a {
  transition: color 0.2s;
}

.property-breadcrumb a:hover {
  color: var(--color-primary);
}

.property-breadcrumb .current {
  color: var(--color-primary);
  font-weight: 500;
}

/* Gallery */
.property-gallery {
  margin-bottom: 40px;
}

.property-gallery-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: clamp(320px, 50vw, 500px);
  margin-bottom: 12px;
  background: #f5f3ee;
}

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

.property-gallery-main::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.15) 0%, transparent 40%);
  pointer-events: none;
}

.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.87);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  z-index: 5;
  transition: transform 0.15s;
}

.gallery-nav-btn:active {
  transform: translateY(-50%) scale(0.92);
}

.gallery-nav-btn.prev { left: 16px; }
.gallery-nav-btn.next { right: 16px; }

.gallery-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.gallery-thumb {
  width: 88px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  opacity: 0.5;
  border: 2px solid transparent;
  cursor: pointer;
  transition: opacity 0.2s, border-color 0.2s;
}

.gallery-thumb:hover,
.gallery-thumb.active {
  opacity: 1;
}

.gallery-thumb.active {
  border-color: var(--color-accent);
}

/* Property Content Grid */
.property-content {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 40px;
  align-items: start;
}

.property-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.property-title {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 8px;
}

.property-address {
  font-size: 14px;
  color: var(--color-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
}

.property-price {
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 700;
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  color: var(--color-accent);
  margin-bottom: 28px;
}

.property-price .suffix {
  font-size: 16px;
  font-weight: 400;
  color: var(--color-muted);
}

/* Stats grid */
.property-stats {
  display: grid;
  gap: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  margin-bottom: 32px;
}

.property-stat {
  padding: 20px 24px;
  text-align: center;
  background: var(--color-light);
  border-right: 1px solid var(--color-border);
}

.property-stat:last-child {
  border-right: none;
}

.property-stat .icon {
  color: var(--color-accent);
  margin-bottom: 8px;
  display: flex;
  justify-content: center;
}

.property-stat .value {
  font-size: 22px;
  font-weight: 700;
  font-family: var(--font-heading);
  margin-bottom: 2px;
}

.property-stat .label {
  font-size: 11px;
  color: var(--color-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Description */
.property-description h2,
.property-features h2 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.property-description p {
  font-size: 14.5px;
  line-height: 1.75;
  color: #555550;
  margin-bottom: 32px;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--color-light);
  font-size: 13.5px;
  font-weight: 450;
  color: #444440;
}

.feature-item svg {
  color: var(--color-accent);
  flex-shrink: 0;
}

/* Contact Sidebar */
.property-sidebar {
  position: sticky;
  top: 88px;
}

.sidebar-card {
  border-radius: var(--radius-lg);
  padding: 28px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: 0 12px 48px rgba(0,0,0,0.05);
}

.sidebar-card h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.sidebar-card > p {
  font-size: 13px;
  color: var(--color-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

.sidebar-form input,
.sidebar-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  font-size: 13px;
  background: var(--color-light);
  transition: border-color 0.2s;
  margin-bottom: 10px;
}

.sidebar-form input:focus,
.sidebar-form textarea:focus {
  border-color: var(--color-accent);
}

.sidebar-form textarea {
  resize: vertical;
  line-height: 1.5;
  min-height: 80px;
}

.sidebar-form button[type="submit"] {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: none;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: opacity 0.2s;
  margin-top: 4px;
}

.sidebar-form button[type="submit"]:hover {
  opacity: 0.88;
}

.sidebar-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: var(--color-muted);
}

.sidebar-divider::before,
.sidebar-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.sidebar-divider span {
  font-size: 11px;
  font-weight: 500;
}

/* Agent card */
.agent-card {
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-top: 14px;
  background: var(--color-light);
  border: 1px solid var(--color-border-light);
  display: flex;
  align-items: center;
  gap: 14px;
}

.agent-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-heading);
  font-style: italic;
  flex-shrink: 0;
}

.agent-card .agent-name {
  font-size: 14px;
  font-weight: 600;
}

.agent-card .agent-meta {
  font-size: 12px;
  color: var(--color-muted);
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-hero {
  padding: clamp(60px, 8vw, 100px) clamp(20px, 5vw, 80px) clamp(40px, 6vw, 60px);
  background: linear-gradient(165deg, var(--color-light) 0%, var(--color-white) 100%);
  text-align: center;
}

.about-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.about-hero p {
  font-size: clamp(14px, 1.5vw, 16px);
  color: var(--color-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

.about-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 60px clamp(20px, 5vw, 80px) 80px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 60px;
}

.about-grid.reverse {
  direction: rtl;
}

.about-grid.reverse > * {
  direction: ltr;
}

.about-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--color-light);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.2;
}

.about-text p {
  font-size: 14.5px;
  line-height: 1.75;
  color: #555550;
  margin-bottom: 16px;
}

/* Stats row */
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.about-stat-item {
  text-align: center;
  padding: 32px 20px;
  border-radius: var(--radius-md);
  background: var(--color-light);
  border: 1px solid var(--color-border-light);
}

.about-stat-item .number {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 4px;
}

.about-stat-item .label {
  font-size: 13px;
  color: var(--color-muted);
  font-weight: 500;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-hero {
  padding: clamp(60px, 8vw, 100px) clamp(20px, 5vw, 80px) clamp(40px, 6vw, 60px);
  background: linear-gradient(165deg, var(--color-light) 0%, var(--color-white) 100%);
  text-align: center;
}

.contact-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.contact-hero p {
  font-size: clamp(14px, 1.5vw, 16px);
  color: var(--color-muted);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

.contact-content {
  max-width: 1080px;
  margin: 0 auto;
  padding: 60px clamp(20px, 5vw, 80px) 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info h2 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  list-style: none;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--color-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  flex-shrink: 0;
}

.contact-info-item .info-label {
  font-size: 12px;
  color: var(--color-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.contact-info-item .info-value {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-primary);
}

.contact-form-wrap h2 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  font-size: 14px;
  background: var(--color-light);
  transition: border-color 0.2s;
  color: var(--color-primary);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--color-accent);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.contact-form .btn-primary {
  align-self: flex-start;
  padding: 14px 40px;
}

/* Form success */
.form-success {
  text-align: center;
  padding: 40px 20px;
}

.form-success .icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #eefbf3;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: #2D8C4E;
}

.form-success h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-success p {
  font-size: 14px;
  color: var(--color-muted);
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--color-muted);
}

.empty-state .icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.3;
}

.empty-state .title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.empty-state .desc {
  font-size: 14px;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.pagination a,
.pagination span {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-muted);
  border: 1px solid var(--color-border);
  transition: all 0.2s;
}

.pagination a:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.pagination .current {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

/* ============================================
   FULLSCREEN LIGHTBOX
   ============================================ */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% - 160px);
  height: calc(100% - 80px);
  padding: 40px 0;
}

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.18);
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  user-select: none;
}

@media (max-width: 768px) {
  .lightbox-img-wrap {
    width: 100%;
    padding: 60px 12px;
  }

  .lightbox-nav {
    width: 42px;
    height: 42px;
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }
}

/* ============================================
   WORDPRESS SPECIFIC OVERRIDES
   ============================================ */
.wp-block-image img {
  border-radius: var(--radius-md);
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

/* Admin bar fix */
body.admin-bar .site-navbar {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .site-navbar {
    top: 46px;
  }
}

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

/* Prevent horizontal overflow globally */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

@media (max-width: 1024px) {
  .property-content {
    grid-template-columns: 1fr;
  }

  .property-sidebar {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-grid.reverse {
    direction: ltr;
  }
}

@media (max-width: 768px) {

  /* ---- Navbar ---- */
  .navbar-links {
    display: none;
  }

  .navbar-toggle {
    display: flex;
  }

  .navbar-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-white);
    padding: 20px clamp(20px, 5vw, 80px);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
    gap: 16px;
  }

  .navbar-links.open .navbar-creci {
    align-self: flex-start;
  }

  /* ---- Hero ---- */
  .hero {
    padding: 48px 20px 56px;
  }

  .hero h1 {
    font-size: 32px;
  }

  /* ---- Filter Bar ---- */
  .filter-section {
    padding: 0 16px;
  }

  .filter-bar {
    padding: 16px;
    border-radius: 14px;
    margin-top: -28px;
  }

  .filter-main {
    flex-wrap: wrap;
    gap: 8px;
  }

  .filter-search-wrap {
    min-width: 100%;
    order: -1;
  }

  .filter-toggle-btn,
  .filter-submit-btn {
    flex: 1;
    justify-content: center;
  }

  .filter-advanced {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .filter-select {
    min-width: 0;
    font-size: 12px;
  }

  /* ---- Properties Grid ---- */
  .properties-section {
    padding: 32px 16px 60px;
  }

  .properties-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .prop-card-img {
    height: 200px;
  }

  /* ---- Property Detail Page ---- */
  .property-detail {
    padding: 20px 16px 60px;
  }

  .property-breadcrumb {
    margin-bottom: 16px;
    font-size: 12px;
  }

  /* Gallery */
  .property-gallery {
    margin-bottom: 28px;
  }

  .property-gallery-main {
    height: clamp(220px, 55vw, 320px);
    border-radius: 12px;
    margin-bottom: 10px;
  }

  .gallery-nav-btn {
    width: 36px;
    height: 36px;
  }

  .gallery-nav-btn.prev { left: 10px; }
  .gallery-nav-btn.next { right: 10px; }

  .gallery-nav-btn svg {
    width: 16px;
    height: 16px;
  }

  .gallery-thumbs {
    gap: 6px;
    padding-bottom: 2px;
    /* Hide scrollbar but allow scroll */
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }

  .gallery-thumbs::-webkit-scrollbar {
    display: none;
  }

  .gallery-thumb {
    width: 68px;
    height: 50px;
    border-radius: 8px;
  }

  /* Property Info */
  .property-title {
    font-size: 22px;
    margin-bottom: 6px;
  }

  .property-address {
    font-size: 13px;
    margin-bottom: 16px;
  }

  .property-price {
    font-size: 26px;
    margin-bottom: 20px;
  }

  .property-price .suffix {
    font-size: 13px;
  }

  /* Stats grid - 2x2 layout */
  .property-stats {
    grid-template-columns: 1fr 1fr;
    margin-bottom: 24px;
  }

  .property-stat {
    padding: 16px 12px;
    border-bottom: 1px solid var(--color-border);
  }

  .property-stat:nth-child(even) {
    border-right: none;
  }

  .property-stat:nth-last-child(-n+2) {
    border-bottom: none;
  }

  .property-stat .value {
    font-size: 18px;
  }

  .property-stat .label {
    font-size: 10px;
  }

  /* Description */
  .property-description {
    margin-bottom: 24px;
  }

  .property-description h2,
  .property-features h2 {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .property-description p {
    font-size: 14px;
    line-height: 1.7;
  }

  /* Features - full width, no cut */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .feature-item {
    padding: 12px 14px;
    font-size: 13px;
    border-radius: 8px;
    word-break: break-word;
  }

  /* Sidebar / Contact form */
  .property-sidebar {
    margin-top: 28px;
  }

  .sidebar-card {
    padding: 20px;
    border-radius: 14px;
  }

  .sidebar-form input,
  .sidebar-form textarea {
    font-size: 14px;
    padding: 12px;
  }

  .agent-card {
    padding: 14px 16px;
    border-radius: 12px;
  }

  /* ---- CTA Section ---- */
  .cta-section {
    padding: 48px 16px;
  }

  .cta-inner h2 {
    font-size: 24px;
  }

  .cta-inner p {
    font-size: 13px;
  }

  .btn-primary,
  .btn-whatsapp {
    padding: 12px 24px;
    font-size: 13px;
    border-radius: 10px;
  }

  /* ---- Footer ---- */
  .site-footer {
    padding: 40px 16px 24px;
    overflow: hidden;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-brand {
    font-size: 18px;
  }

  .footer-desc {
    font-size: 13px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    font-size: 11px;
  }

  /* ---- About Page ---- */
  .about-hero {
    padding: 48px 16px 32px;
  }

  .about-hero h1 {
    font-size: 28px;
  }

  .about-content {
    padding: 40px 16px 60px;
  }

  .about-stats {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 40px;
  }

  .about-stat-item {
    padding: 24px 16px;
  }

  .about-stat-item .number {
    font-size: 28px;
  }

  .about-photo {
    aspect-ratio: 3/2;
  }

  .about-text h2 {
    font-size: 22px;
  }

  /* ---- Contact Page ---- */
  .contact-hero {
    padding: 48px 16px 32px;
  }

  .contact-hero h1 {
    font-size: 28px;
  }

  .contact-content {
    padding: 40px 16px 60px;
    gap: 32px;
  }

  .contact-form .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    font-size: 14px;
    padding: 12px 14px;
  }

  .contact-form .btn-primary {
    width: 100%;
    justify-content: center;
  }

  /* ---- WhatsApp Float ---- */
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
  }

  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }

  /* ---- Empty state ---- */
  .empty-state {
    padding: 60px 16px;
  }

  /* ---- Pagination ---- */
  .pagination {
    margin-top: 32px;
  }
}

/* Small phones */
@media (max-width: 380px) {
  .hero h1 {
    font-size: 26px;
  }

  .filter-advanced {
    grid-template-columns: 1fr;
  }

  .property-stats {
    grid-template-columns: 1fr;
  }

  .property-stat {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }

  .property-stat:last-child {
    border-bottom: none;
  }

  .prop-card-specs {
    flex-wrap: wrap;
    gap: 8px;
  }
}
