/*
Theme Name: ReddRabbit Properties
Theme URI: https://www.reddrabbit.co.uk
Author: ReddRabbit Properties
Author URI: https://www.reddrabbit.co.uk
Description: A custom WordPress theme for ReddRabbit Properties - North Liverpool's fast property sale specialists.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: reddrabbit
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
*/

/* ============================================
   CSS VARIABLES & DESIGN TOKENS
   ============================================ */
:root {
  --background: #faf8f6;
  --foreground: #232830;
  --card: #ffffff;
  --card-foreground: #232830;
  --primary: #a13218;
  --primary-foreground: #ffffff;
  --secondary: #e8e6e4;
  --secondary-foreground: #232830;
  --muted: #efede9;
  --muted-foreground: #6b6f78;
  --accent: #e8f5f0;
  --accent-foreground: #2a6b4f;
  --destructive: #e53e3e;
  --border: #e2e0dd;
  --input: #d6d3cf;
  --ring: #a13218;
  --radius: 0.75rem;
  --content-max: 1200px;
  --section-y: 3.5rem;
  --section-y-md: 5rem;
  --card-shadow: 0 0 0 1px rgba(0,0,0,.04), 0 2px 6px rgba(0,0,0,.03), 0 8px 24px rgba(0,0,0,.04);
  --card-shadow-lg: 0 0 0 1px rgba(0,0,0,.04), 0 4px 12px rgba(0,0,0,.04), 0 20px 40px rgba(0,0,0,.06);
  --card-shadow-hover: 0 0 0 1px rgba(0,0,0,.04), 0 4px 12px rgba(0,0,0,.06), 0 20px 40px rgba(0,0,0,.08);
  --input-focus-ring: 0 0 0 3px rgba(161, 50, 24, 0.15);
  --ease-out: cubic-bezier(0.2, 0, 0, 1);
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid var(--border); }

body {
  font-family: 'Public Sans', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--foreground);
  background-color: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Public Sans', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--foreground);
  text-wrap: balance;
}

h1 { font-size: 2.25rem; line-height: 1.1; }
h2 { font-size: 1.875rem; line-height: 1.15; }
h3 { font-size: 1.25rem; line-height: 1.25; }
h4 { font-size: 1.125rem; line-height: 1.3; }
p { text-wrap: pretty; }

@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }
  h3 { font-size: 1.5rem; }
}
@media (min-width: 1024px) {
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.5rem; }
}

/* ============================================
   LAYOUT
   ============================================ */
.container-content {
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  max-width: var(--content-max);
}
@media (min-width: 768px) {
  .container-content { padding-left: 2rem; padding-right: 2rem; }
}

.section-padding {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}
@media (min-width: 768px) {
  .section-padding { padding-top: var(--section-y-md); padding-bottom: var(--section-y-md); }
}

.section-alt { background: rgba(232, 230, 228, 0.4); }

.section-header { text-align: center; margin-bottom: 2.5rem; }
@media (min-width: 768px) { .section-header { margin-bottom: 3.5rem; } }
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p { color: var(--muted-foreground); font-size: 1.125rem; max-width: 42rem; margin: 0 auto; }

/* ============================================
   CARDS
   ============================================ */
.card-surface {
  background: var(--card);
  box-shadow: var(--card-shadow);
  border-radius: 16px;
  transition: box-shadow 0.2s var(--ease-out);
}
.card-surface:hover { box-shadow: var(--card-shadow-hover); }

.card-surface-lg {
  background: var(--card);
  box-shadow: var(--card-shadow-lg);
  border-radius: 16px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  text-decoration: none;
  font-family: inherit;
  font-size: 0.875rem;
}
.btn:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0 1.25rem;
  height: 2.5rem;
  border-radius: var(--radius);
}
.btn-primary:hover { background: rgba(161, 50, 24, 0.9); transform: scale(1.02); }
.btn-primary:active { transform: scale(0.98); }

.btn-hero {
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0 2.5rem;
  height: 3.5rem;
  font-size: 1rem;
  border-radius: var(--radius);
  box-shadow: 0 10px 15px -3px rgba(161, 50, 24, 0.2);
}
.btn-hero:hover { background: rgba(161, 50, 24, 0.9); transform: scale(1.02); }
.btn-hero:active { transform: scale(0.98); }

.btn-outline {
  background: var(--background);
  color: var(--foreground);
  border: 1px solid var(--input);
  padding: 0 1.25rem;
  height: 2.5rem;
  border-radius: var(--radius);
}
.btn-outline:hover { background: var(--secondary); }

.btn-cta-dark {
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0 2.5rem;
  height: 3.5rem;
  font-size: 1rem;
  border-radius: var(--radius);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.2);
}
.btn-cta-dark:hover { background: rgba(161, 50, 24, 0.9); transform: scale(1.02); }

.btn-sm { height: 2.25rem; padding: 0 1rem; font-size: 0.875rem; border-radius: var(--radius); }
.btn-lg { height: 3rem; padding: 0 2rem; font-size: 1rem; border-radius: var(--radius); }
.btn-xl { height: 3.5rem; padding: 0 2.5rem; font-size: 1rem; border-radius: var(--radius); }
.btn-full { width: 100%; }

/* ============================================
   FORMS
   ============================================ */
.form-card {
  max-width: 32rem;
  margin: 0 auto;
  background: var(--card);
  box-shadow: var(--card-shadow-lg);
  border-radius: 16px;
  padding: 2rem;
}
@media (min-width: 768px) { .form-card { padding: 2.5rem; } }
.form-card > * + * { margin-top: 1.25rem; }

.form-field { display: flex; flex-direction: column; gap: 0.375rem; }
.form-label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--foreground); }

.form-input {
  width: 100%;
  height: 3rem;
  padding: 0 1rem;
  border-radius: var(--radius);
  background: var(--background);
  border: 1px solid var(--input);
  font-size: 0.875rem;
  font-family: inherit;
  transition: box-shadow 0.2s, border-color 0.2s;
  outline: none;
  color: var(--foreground);
}
.form-input:focus {
  box-shadow: var(--input-focus-ring);
  border-color: var(--ring);
}
.form-input::placeholder { color: rgba(107, 111, 120, 0.6); }

.form-input-lg { height: 3.5rem; font-size: 1rem; font-weight: 500; }
.form-input-lg::placeholder { color: rgba(107, 111, 120, 0.6); }

.form-select {
  width: 100%;
  height: 3rem;
  padding: 0 2.5rem 0 1rem;
  border-radius: var(--radius);
  background: var(--background);
  border: 1px solid var(--input);
  font-size: 0.875rem;
  font-family: inherit;
  transition: box-shadow 0.2s, border-color 0.2s;
  outline: none;
  color: var(--foreground);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}
.form-select:focus {
  box-shadow: var(--input-focus-ring);
  border-color: var(--ring);
}

.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  background: var(--background);
  border: 1px solid var(--input);
  font-size: 0.875rem;
  font-family: inherit;
  resize: none;
  transition: box-shadow 0.2s, border-color 0.2s;
  outline: none;
  color: var(--foreground);
}
.form-textarea:focus {
  box-shadow: var(--input-focus-ring);
  border-color: var(--ring);
}
.form-textarea::placeholder { color: rgba(107, 111, 120, 0.6); }

.form-trust { font-size: 0.75rem; color: var(--muted-foreground); text-align: center; padding-top: 0.25rem; }

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 246, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
@media (min-width: 768px) { .header-inner { height: 80px; } }

.header-logo img { height: 2.5rem; width: auto; border-radius: 0.5rem; }
@media (min-width: 768px) { .header-logo img { height: 3rem; } }

.header-nav { display: none; align-items: center; gap: 0; }
@media (min-width: 1024px) { .header-nav { display: flex; } }
.header-nav a {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 0.2s;
  border-right: 1px solid rgba(161, 50, 24, 0.2);
}
.header-nav a:last-child { border-right: none; }
.header-nav a:hover, .header-nav a.active { color: var(--primary); }

.header-cta { display: none; }
@media (min-width: 1024px) { .header-cta { display: flex; } }

.mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--foreground);
}
.mobile-toggle:hover { background: var(--secondary); }
@media (min-width: 1024px) { .mobile-toggle { display: none; } }

.mobile-menu {
  display: none;
  background: var(--background);
  border-top: 1px solid var(--border);
  padding: 1rem;
}
.mobile-menu.is-open { display: block; }
@media (min-width: 1024px) { .mobile-menu { display: none !important; } }
.mobile-menu a {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  border-radius: 0.5rem;
  transition: background 0.2s, color 0.2s;
}
.mobile-menu a:hover { background: var(--secondary); color: var(--foreground); }
.mobile-menu a.active { color: var(--primary); background: rgba(161, 50, 24, 0.05); }
.mobile-menu-footer { border-top: 1px solid var(--border); margin-top: 0.5rem; padding-top: 0.75rem; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer { background: var(--foreground); color: rgba(250,248,246,0.8); }
.footer-inner { padding: 2.5rem 0; }
@media (min-width: 768px) { .footer-inner { padding: 3rem 0; } }
.footer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(4, 1fr); gap: 2.5rem; } }

.footer-brand { grid-column: span 2; }
@media (min-width: 768px) { .footer-brand { grid-column: span 1; } }
.footer-brand img { height: 3rem; width: auto; filter: brightness(0) invert(1); opacity: 0.9; margin-bottom: 1rem; }
.footer-brand address { font-style: normal; font-size: 0.75rem; color: rgba(250,248,246,0.5); line-height: 1.6; margin-bottom: 0.75rem; }
.footer-brand address a { color: rgba(250,248,246,0.5); transition: color 0.2s; }
.footer-brand address a:hover { color: rgba(250,248,246,0.7); }
.footer-contact { font-size: 0.75rem; margin-bottom: 1rem; }
.footer-contact p { margin-bottom: 0.25rem; }
.footer-contact a { color: rgba(250,248,246,0.5); transition: color 0.2s; }
.footer-contact a:hover { color: var(--background); }

.footer-col h4 { font-size: 0.75rem; font-weight: 600; color: rgba(250,248,246,1); margin-bottom: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul a { font-size: 0.75rem; color: rgba(250,248,246,0.5); transition: color 0.2s; }
.footer-col ul a:hover { color: var(--background); }

.footer-bottom { border-top: 1px solid rgba(250,248,246,0.1); padding: 1rem 0; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; font-size: 11px; color: rgba(250,248,246,0.35); }
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
.footer-bottom-links { display: flex; gap: 1rem; }
.footer-bottom-links a { color: rgba(250,248,246,0.35); transition: color 0.2s; }
.footer-bottom-links a:hover { color: rgba(250,248,246,0.6); }

/* Social Icons */
.social-icons { display: flex; gap: 0.75rem; }
.social-icons a {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(250,248,246,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.social-icons a:hover { background: rgba(161, 50, 24, 0.2); }
.social-icons a svg { width: 1rem; height: 1rem; color: rgba(250,248,246,0.7); }

/* ============================================
   HERO SECTION (Home)
   ============================================ */
.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}
@media (min-width: 768px) { .hero-section { min-height: 600px; } }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
}
.hero-content {
  position: relative;
  z-index: 10;
  padding: 4rem 1.25rem;
  max-width: var(--content-max);
  margin: 0 auto;
  width: 100%;
}
@media (min-width: 768px) { .hero-content { padding: 6rem 2rem; } }
.hero-content .hero-text { max-width: 42rem; }
.hero-content h1 { color: #fff; margin-bottom: 1.25rem; }
.hero-content .hero-subtitle { font-size: 1.125rem; color: rgba(255,255,255,0.8); max-width: 36rem; margin-bottom: 1.5rem; }
.hero-content .hero-trust { font-size: 0.875rem; color: rgba(255,255,255,0.7); margin-top: 1.25rem; }

/* Page hero (subpages) */
.page-hero { position: relative; overflow: hidden; }
.page-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero-overlay { position: absolute; inset: 0; background: rgba(35,40,48,0.6); }
.page-hero-content { position: relative; padding: var(--section-y) 0; text-align: center; }
@media (min-width: 768px) { .page-hero-content { padding: var(--section-y-md) 0; } }
.page-hero-content h1 { color: #fff; margin-bottom: 1rem; }
.page-hero-content .hero-subtitle { font-size: 1.125rem; color: rgba(255,255,255,0.8); max-width: 48rem; margin: 0 auto; }
.page-hero--plain { background: rgba(232,230,228,0.4); }
.page-hero--plain h1 { color: var(--foreground); }
.page-hero--plain .hero-subtitle { color: var(--muted-foreground); }

/* ============================================
   POSTCODE SEARCH
   ============================================ */
.postcode-search { display: flex; flex-direction: column; gap: 0.75rem; width: 100%; max-width: 32rem; }
@media (min-width: 640px) { .postcode-search { flex-direction: row; } }
.postcode-search .search-input-wrap { position: relative; flex: 1; }
.postcode-search .search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  color: var(--muted-foreground);
}
.postcode-search input {
  width: 100%;
  height: 4rem;
  padding-left: 3rem;
  padding-right: 1rem;
  font-size: 1.125rem;
  border-radius: var(--radius);
  background: var(--card);
  color: var(--card-foreground);
  font-weight: 500;
  border: none;
  outline: none;
  box-shadow: var(--card-shadow);
  font-family: inherit;
  text-transform: uppercase;
}
.postcode-search input::placeholder { color: rgba(107,111,120,0.6); text-transform: none; }
.postcode-search input:focus { box-shadow: var(--input-focus-ring), var(--card-shadow); }

/* ============================================
   GRIDS
   ============================================ */
.grid-2 { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
.grid-3 { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-4 { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* ============================================
   COMPARISON TABLE (Differentiation)
   ============================================ */
.comparison-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 0.875rem 1rem; border-radius: 0.5rem; }
.comparison-row:nth-child(even) { background: rgba(232,230,228,0.4); }
.comparison-row .trad { font-size: 0.875rem; color: var(--muted-foreground); }
.comparison-row .rr { font-size: 0.875rem; font-weight: 500; color: var(--foreground); }
.comparison-header { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 0 1rem; margin-bottom: 0.5rem; }
.comparison-header span { font-size: 0.875rem; font-weight: 600; }
.comparison-header .trad-h { color: var(--muted-foreground); }
.comparison-header .rr-h { color: var(--primary); }

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonial-card { padding: 2rem; }
.testimonial-stars { display: flex; gap: 2px; margin-bottom: 1rem; color: var(--primary); }
.testimonial-stars svg { width: 1rem; height: 1rem; fill: var(--primary); }
.testimonial-text { color: var(--foreground); line-height: 1.6; margin-bottom: 1.5rem; }
.testimonial-author { font-size: 0.875rem; font-weight: 600; }
.testimonial-location { font-size: 0.75rem; color: var(--muted-foreground); }

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-item { margin-bottom: 0.5rem; }
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-weight: 600;
  font-size: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--foreground);
  font-family: inherit;
}
.faq-question:hover { text-decoration: none; }
.faq-question svg { width: 1.25rem; height: 1.25rem; color: var(--muted-foreground); transition: transform 0.2s; flex-shrink: 0; margin-left: 1rem; }
.faq-item.is-open .faq-question svg { transform: rotate(180deg); }
.faq-answer { padding: 0 1.5rem 1.25rem; color: var(--muted-foreground); display: none; line-height: 1.6; }
.faq-item.is-open .faq-answer { display: block; }

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner { background: var(--foreground); }
.cta-banner .container-content { text-align: center; }
.cta-banner h2 { color: var(--background); margin-bottom: 0.75rem; }
.cta-banner .cta-subtitle { color: rgba(250,248,246,0.6); font-size: 1.125rem; margin-bottom: 2rem; }

/* ============================================
   ICON BOXES
   ============================================ */
.icon-box { padding: 2rem; text-align: center; }
.icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius);
  background: rgba(161, 50, 24, 0.1);
  color: var(--primary);
  margin-bottom: 1.25rem;
}
.icon-wrap svg { width: 1.5rem; height: 1.5rem; }
.icon-box h3 { margin-bottom: 0.75rem; }
.icon-box p { color: var(--muted-foreground); line-height: 1.6; }

/* Border-left card variant */
.card-left-border { border-left: 4px solid var(--primary); }

/* Step number */
.step-number {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}

/* How-it-works step card */
.step-card { padding: 1.5rem; position: relative; height: 100%; }
.step-card .step-big { font-size: 2.5rem; font-weight: 700; color: rgba(161, 50, 24, 0.2); font-variant-numeric: tabular-nums; }
.step-card h3 { margin-top: 0.5rem; margin-bottom: 0.5rem; }
.step-card p { font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.6; }

/* ============================================
   PROPERTY CARDS
   ============================================ */
.property-card { display: flex; flex-direction: column; overflow: hidden; }
.property-card .property-image { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--muted); }
.property-card .property-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.property-card:hover .property-image img { transform: scale(1.05); }
.property-card .badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: var(--primary);
  color: var(--primary-foreground);
}
.property-card .badge-secondary { background: var(--secondary); color: var(--secondary-foreground); }
.property-card .badge-destructive { background: var(--destructive); color: #fff; }
.property-card .property-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.property-card .property-price { font-size: 1.25rem; font-weight: 700; color: var(--foreground); margin-bottom: 0.25rem; font-variant-numeric: tabular-nums; }
.property-card .property-title { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; transition: color 0.2s; }
.property-card:hover .property-title { color: var(--primary); }
.property-card .property-meta { display: flex; gap: 1rem; font-size: 0.875rem; color: var(--muted-foreground); margin-bottom: 0.75rem; }
.property-card .property-meta svg { width: 1rem; height: 1rem; }
.property-card .property-location { display: flex; align-items: center; gap: 0.375rem; font-size: 0.875rem; color: var(--muted-foreground); margin-bottom: 1rem; }
.property-card .property-location svg { width: 1rem; height: 1rem; flex-shrink: 0; }
.property-card .property-desc { font-size: 0.875rem; color: var(--muted-foreground); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 1rem; }
.property-card .property-btn { margin-top: auto; }

/* ============================================
   PROSE (Legal pages)
   ============================================ */
.legal-prose { max-width: 72ch; margin: 0 auto; color: var(--muted-foreground); line-height: 1.6; font-size: 0.9375rem; }
.legal-prose h2 { color: var(--foreground); margin-top: 2.5rem; margin-bottom: 1rem; font-size: 1.25rem; }
.legal-prose h3 { color: var(--foreground); margin-top: 1.5rem; margin-bottom: 0.75rem; font-size: 1.0625rem; }
.legal-prose p { margin-bottom: 1rem; }
.legal-prose ul { margin-bottom: 1rem; margin-left: 1.25rem; list-style: disc; }
.legal-prose ul li { margin-bottom: 0.375rem; color: var(--muted-foreground); }
.legal-prose strong { color: var(--foreground); font-weight: 600; }

/* Prose block (content pages) */
.prose-block { max-width: 65ch; margin: 0 auto; color: var(--muted-foreground); line-height: 1.6; font-size: 1.125rem; }
.prose-block > * + * { margin-top: 1.5rem; }
.prose-block h2 { color: var(--foreground); }

/* ============================================
   CHECKLIST
   ============================================ */
.checklist { list-style: none; padding: 0; }
.checklist li { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.checklist .check-icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.25rem;
  border-radius: 50%;
  background: rgba(161, 50, 24, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.checklist .check-icon svg { width: 1rem; height: 1rem; color: var(--primary); }
.checklist li span { font-weight: 500; color: var(--foreground); }

/* ============================================
   FLOATING CTA
   ============================================ */
.floating-cta {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
@media (min-width: 768px) { .floating-cta { bottom: 2rem; right: 2rem; } }
@media (max-width: 639px) {
  .floating-cta { right: auto; left: 50%; transform: translateX(-50%); }
}
.floating-cta .whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  transition: all 0.2s;
  opacity: 0.8;
}
.floating-cta .whatsapp-btn:hover { opacity: 1; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); transform: translateY(-2px); }
.floating-cta .whatsapp-btn svg { width: 1.25rem; height: 1.25rem; fill: #fff; }
.floating-cta .sale-btn {
  border-radius: 9999px;
  box-shadow: 0 10px 15px -3px rgba(161, 50, 24, 0.3);
}
.floating-cta .sale-btn:hover { box-shadow: 0 20px 25px -5px rgba(161, 50, 24, 0.4); transform: translateY(-2px); }

/* ============================================
   COOKIE CONSENT
   ============================================ */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  padding: 1rem;
}
.cookie-inner {
  max-width: 48rem;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 640px) { .cookie-inner { flex-direction: row; align-items: center; } }
.cookie-inner p { font-size: 0.875rem; color: var(--muted-foreground); flex: 1; }
.cookie-inner p a { color: var(--primary); font-weight: 500; }
.cookie-inner p a:hover { text-decoration: underline; }
.cookie-buttons { display: flex; gap: 0.5rem; flex-shrink: 0; }

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-muted { color: var(--muted-foreground); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-3xl { max-width: 48rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.w-full { width: 100%; }
.uppercase { text-transform: uppercase; }
.hidden { display: none; }
.flex { display: flex; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.inline-flex { display: inline-flex; }

/* Link styles */
.link-primary { color: var(--primary); }
.link-primary:hover { text-decoration: underline; }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in { animation: fadeIn 0.5s ease-out both; }
.animate-delay-1 { animation-delay: 0.15s; }
.animate-delay-2 { animation-delay: 0.3s; }
.animate-delay-3 { animation-delay: 0.45s; }

@keyframes searchPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(161, 50, 24, 0.2); }
  50% { box-shadow: 0 0 0 8px rgba(161, 50, 24, 0); }
}
.search-pulse { animation: searchPulse 1.5s ease-in-out infinite; }

/* ============================================
   FILTERS
   ============================================ */
.filter-bar { margin-bottom: 2.5rem; }
.filter-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .filter-grid { grid-template-columns: repeat(3, 1fr); } }

/* Area coverage cards */
.area-card { padding: 1.75rem; text-align: center; }
.area-card:hover .icon-wrap { background: rgba(161,50,24,0.2); }

/* Video embed */
.video-card { overflow: hidden; }
.video-card .video-embed { position: relative; aspect-ratio: 16/9; }
.video-card .video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card .video-title { padding: 1rem; display: flex; align-items: center; gap: 0.5rem; font-size: 1rem; font-weight: 600; }
.video-card .video-title svg { width: 1rem; height: 1rem; color: var(--primary); flex-shrink: 0; }

/* Grid helpers for 2-col layout */
.grid-2-col { display: grid; gap: 1rem; }
@media (min-width: 640px) { .grid-2-col { grid-template-columns: repeat(2, 1fr); } }

/* Property detail page */
.property-detail-grid { display: grid; gap: 2rem; }
@media (min-width: 1024px) { .property-detail-grid { grid-template-columns: 2fr 1fr; gap: 2.5rem; } }

.gallery-main { aspect-ratio: 16/10; border-radius: 1rem; overflow: hidden; background: var(--muted); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 0.5rem; overflow-x: auto; margin-top: 0.75rem; }
.gallery-thumbs button {
  flex-shrink: 0;
  width: 5rem;
  height: 4rem;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  background: none;
}
.gallery-thumbs button.active { border-color: var(--primary); }
.gallery-thumbs button img { width: 100%; height: 100%; object-fit: cover; }

.property-key-info { display: flex; gap: 1.5rem; color: var(--muted-foreground); }
.property-key-info span { display: flex; align-items: center; gap: 0.5rem; }
.property-key-info svg { width: 1.25rem; height: 1.25rem; }

.feature-list { display: grid; gap: 0.5rem; list-style: none; padding: 0; }
@media (min-width: 640px) { .feature-list { grid-template-columns: repeat(2, 1fr); } }
.feature-list li { display: flex; align-items: flex-start; gap: 0.5rem; color: var(--muted-foreground); }
.feature-list li svg { width: 1rem; height: 1rem; color: var(--primary); margin-top: 0.125rem; flex-shrink: 0; }

.sidebar-form { position: sticky; top: 6rem; }

/* Breadcrumb */
.breadcrumb a { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.875rem; color: var(--muted-foreground); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--foreground); }
.breadcrumb svg { width: 1rem; height: 1rem; }

/* ─── Property Grid & Cards ─────────────────────────────────────────────── */
.property-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .property-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .property-grid { grid-template-columns: repeat(3, 1fr); } }

.property-card {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 1rem; border: 1px solid var(--border);
  background: var(--card); text-decoration: none; color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
}
.property-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); transform: translateY(-2px); }
.property-card__image { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--muted); }
.property-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.property-card:hover .property-card__image img { transform: scale(1.05); }
.property-badge {
  display: inline-block; padding: 0.25rem 0.75rem; border-radius: 9999px;
  font-size: 0.75rem; font-weight: 600; position: absolute; top: 0.75rem; left: 0.75rem; z-index: 1;
}
.property-badge--available { background: var(--primary); color: #fff; }
.property-badge--under-offer { background: var(--secondary); color: var(--foreground); }
.property-badge--sold-stc { background: var(--destructive); color: #fff; }
.property-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem; }
.property-card__price { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.25rem; font-variant-numeric: tabular-nums; }
.property-card__title { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; transition: color 0.2s; }
.property-card:hover .property-card__title { color: var(--primary); }
.property-card__meta { display: flex; gap: 1rem; font-size: 0.875rem; color: var(--muted-foreground); margin-bottom: 0.75rem; }
.property-card__location { font-size: 0.875rem; color: var(--muted-foreground); margin-bottom: 1rem; }
.property-card__desc {
  font-size: 0.875rem; color: var(--muted-foreground);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; margin-bottom: 1rem;
}
.property-card__cta { margin-top: auto; }

/* ─── Property Detail ────────────────────────────────────────────────────── */
.back-link { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.875rem; color: var(--muted-foreground); text-decoration: none; transition: color 0.2s; }
.back-link:hover { color: var(--foreground); }
.property-detail-grid { display: grid; gap: 2rem; }
@media (min-width: 1024px) { .property-detail-grid { grid-template-columns: 2fr 1fr; gap: 2.5rem; } }
.feature-list { display: grid; gap: 0.5rem; list-style: none; padding: 0; color: var(--muted-foreground); }
@media (min-width: 640px) { .feature-list { grid-template-columns: repeat(2, 1fr); } }
.feature-list li { display: flex; align-items: flex-start; gap: 0.5rem; }
.btn-cta-dark { background: var(--background); color: var(--foreground); border: none; font-weight: 600; }
.btn-cta-dark:hover { opacity: 0.9; }
.space-y-4 > * + * { margin-top: 1rem; }


@media (max-width: 1023px) and (min-width: 640px) {
  .property-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (min-width: 1024px) {
  .property-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
.property-grid > * { min-width: 0; }
