/* ═══════════════════════════════════════════════════════════════════════════
   Alianza 58 Bienes Raíces C.A. — Master Stylesheet
   Design: Gray bg (#f5f5f5), black text (#1a1a1a), RED accent (#C0392B)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 1. CSS Custom Properties ─────────────────────────────────────────────── */
:root {
  --primary: #C0392B;
  --primary-dark: #A93226;
  --primary-light: #E74C3C;
  --black: #1a1a1a;
  --gray-900: #2d2d2d;
  --gray-800: #4a4a4a;
  --gray-700: #6b6b6b;
  --gray-600: #888;
  --gray-400: #aaa;
  --gray-200: #e0e0e0;
  --gray-100: #f0f0f0;
  --gray-50: #f9f9f9;
  --white: #fff;
  --green: #25D366;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --max-w: 1280px;
  --header-h: 70px;
  --transition: 0.3s ease;
}

/* ── 2. CSS Reset & Base Typography ───────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--black);
  background-color: #f5f5f5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--black);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  color: var(--gray-800);
}

/* ── 3. Container ────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* ── 4. Header / Navigation ───────────────────────────────────────────────── */
#mainHeader {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: box-shadow var(--transition);
}

#mainHeader.scrolled {
  box-shadow: var(--shadow);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  height: var(--header-h);
}

/* Keep old .header for backward compatibility with other pages */
.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: box-shadow var(--transition);
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  line-height: 1.1;
}

.logo-main {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--black);
  letter-spacing: -0.5px;
}

.logo-sub {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links > li {
  position: relative;
}

.nav-links > li > a {
  color: var(--gray-700);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

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

.nav-links > li > a i {
  font-size: 0.65rem;
  transition: transform var(--transition);
}

/* Dropdown */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  padding: 8px 0;
  z-index: 1001;
  list-style: none;
}

.dropdown:hover > .dropdown-menu {
  display: block;
}

.dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  color: var(--gray-800);
  font-size: 0.9rem;
  font-weight: 400;
  transition: all var(--transition);
  text-decoration: none;
}

.dropdown-menu li a:hover {
  background: var(--gray-50);
  color: var(--primary);
  padding-left: 24px;
}

.dropdown-wide {
  min-width: 320px;
  columns: 2;
  column-gap: 0;
}

.dropdown-wide li a {
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* Nav actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--gray-700);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition);
}

.nav-phone:hover {
  color: var(--primary);
}

.nav-phone i {
  color: var(--primary);
}

.nav-admin {
  padding: 7px 16px;
  background: var(--gray-100);
  color: var(--gray-800);
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition);
}

.nav-admin:hover {
  background: var(--primary);
  color: var(--white);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--black);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--white);
  z-index: 999;
  padding: 100px 30px 30px;
  flex-direction: column;
  gap: 8px;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu a {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--gray-800);
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-200);
  transition: color var(--transition);
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--primary);
}

.mobile-menu-contact {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-menu-contact a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--gray-800);
  border-top: 1px solid var(--gray-200);
}

.btn-whatsapp-mobile {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px !important;
  background: var(--green);
  color: var(--white) !important;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition);
  border-top: none !important;
}

.btn-whatsapp-mobile:hover {
  background: #1da851;
}

.mobile-menu .header-actions-mobile {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ── 5. Hero Section ──────────────────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--gray-900) 0%, var(--black) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 40px 20px;
}

.hero-content h1 {
  font-size: 3rem;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.15;
}

.hero-content p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-search {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  z-index: 2;
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-lg);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-search .search-row select,
.hero-search .search-row input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--black);
  background: var(--gray-50);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.hero-search .search-row select:focus,
.hero-search .search-row input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
  background: var(--white);
}

.hero-search .search-row select::placeholder,
.hero-search .search-row input::placeholder {
  color: var(--gray-400);
}

.btn-search {
  align-self: flex-end;
  padding: 12px 28px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition), transform var(--transition);
}

.btn-search:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.search-quick-links {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--gray-100);
}

.search-quick-links a {
  font-size: 0.85rem;
  color: var(--gray-600);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition);
}

.search-quick-links a:hover {
  color: var(--primary);
}

/* ── 6. Search Bar ────────────────────────────────────────────────────────── */
.search-bar {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-lg);
  width: 100%;
}

.search-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.search-field {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.search-field label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-700);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.search-input,
.search-select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--black);
  background: var(--gray-50);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.search-input:focus,
.search-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
  background: var(--white);
}

.search-input::placeholder {
  color: var(--gray-400);
}

.search-btn {
  align-self: flex-end;
  padding: 10px 28px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition), transform var(--transition);
}

.search-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.search-btn:active {
  transform: translateY(0);
}

/* ── 7. Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(192, 57, 43, 0.3);
}

.btn-secondary {
  background: var(--gray-800);
  color: var(--white);
  border-color: var(--gray-800);
}

.btn-secondary:hover {
  background: var(--gray-900);
  border-color: var(--gray-900);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

.btn-whatsapp:hover {
  background: #1da851;
  border-color: #1da851;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.1rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ── 8. Property Cards ────────────────────────────────────────────────────── */
.prop-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}

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

.prop-card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--gray-200);
}

.prop-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.prop-card-price {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 700;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(192, 57, 43, 0.35);
}

.prop-card-badges {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}

.prop-card-featured {
  background: #f39c12;
  color: var(--white);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

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

.prop-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 6px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prop-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

.prop-card-title a:hover {
  color: var(--primary);
}

.prop-card-location {
  font-size: 0.85rem;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 14px;
}

.prop-card-location svg,
.prop-card-location .icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--gray-400);
}

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

.prop-card-spec {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--gray-700);
}

.prop-card-spec svg,
.prop-card-spec .icon {
  width: 18px;
  height: 18px;
  color: var(--gray-400);
}

/* ── 9. Grid System ───────────────────────────────────────────────────────── */
.grid {
  display: grid;
  gap: 24px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ── 10. Section Styles ───────────────────────────────────────────────────── */
.section {
  padding: 60px 0;
}

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

.view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: gap var(--transition), color var(--transition);
}

.view-all:hover {
  color: var(--primary-dark);
  gap: 10px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 600px;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--black);
  padding-left: 16px;
  border-left: 4px solid var(--primary);
  margin-bottom: 0;
}

/* Properties grid & loading */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 16px;
  color: var(--gray-600);
}

.loading-spinner .spinner {
  width: 42px;
  height: 42px;
}

.loading-spinner.hidden {
  display: none;
}

/* Services section */
.services-section {
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--gray-200);
}

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

.service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: rgba(192, 57, 43, 0.08);
  color: var(--primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.92rem;
  color: var(--gray-700);
  line-height: 1.6;
  margin-bottom: 20px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: gap var(--transition), color var(--transition);
}

.service-link:hover {
  color: var(--primary-dark);
  gap: 10px;
}

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* States section */
.states-section {
  background: var(--white);
}

.states-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.state-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  color: var(--gray-800);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition);
}

.state-card i {
  color: var(--primary);
  font-size: 0.75rem;
}

.state-card:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(192, 57, 43, 0.2);
}

.state-card:hover i {
  color: var(--white);
}

.state-highlight {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  font-weight: 700;
}

.state-highlight i {
  color: var(--white);
}

.state-highlight:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* Map section */
.map-section {
  background: var(--white);
}

/* Why section */
.why-section {
  background: var(--white);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.value-card {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  border: 1px solid var(--gray-200);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.value-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  background: rgba(192, 57, 43, 0.08);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.value-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.value-card p {
  font-size: 0.9rem;
  color: var(--gray-700);
  line-height: 1.6;
}

/* CTA section */
.cta-section {
  background: linear-gradient(135deg, var(--gray-900) 0%, var(--black) 100%);
  padding: 70px 0;
  text-align: center;
}

.cta-section h2 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 14px;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.1rem;
  max-width: 550px;
  margin: 0 auto 28px;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  background: var(--primary);
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-cta:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(192, 57, 43, 0.35);
}

/* ── 11. Stats Section ───────────────────────────────────────────────────── */
.stats-section {
  background: var(--white);
  padding: 50px 0;
}

.stat-card {
  text-align: center;
  padding: 24px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--gray-600);
  font-weight: 500;
}

/* ── 12. Map ──────────────────────────────────────────────────────────────── */
.map-container {
  width: 100%;
  height: 450px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}

.map-container iframe,
.map-container .leaflet-container {
  width: 100%;
  height: 100%;
}

/* ── 13. Forms ────────────────────────────────────────────────────────────── */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--black);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--gray-400);
}

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

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

/* ── 14. Badges ────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-venta {
  background: #e8f5e9;
  color: #2e7d32;
}

.badge-alquiler {
  background: #e3f2fd;
  color: #1565c0;
}

.badge-featured {
  background: #fff3e0;
  color: #e65100;
}

/* ── 15. Gallery ──────────────────────────────────────────────────────────── */
.gallery {
  position: relative;
}

.gallery-main {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--gray-200);
  cursor: zoom-in;
}

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

.gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.gallery-thumb {
  width: 90px;
  height: 68px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  opacity: 0.5;
  border: 2px solid transparent;
  transition: all var(--transition);
  flex-shrink: 0;
}

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

.gallery-thumb:hover,
.gallery-thumb.active {
  opacity: 1;
  border-color: var(--primary);
}

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  transition: background var(--transition);
}

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

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.3rem;
  cursor: pointer;
  transition: background var(--transition);
}

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

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* ── 16. Property Detail ───────────────────────────────────────────────────── */
.prop-detail {
  padding: 30px 0 60px;
}

.prop-detail-hero {
  margin-bottom: 30px;
}

.prop-info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.prop-info-card .prop-price-main {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.prop-info-card .prop-info-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-100);
}

.prop-info-card .prop-info-meta .prop-card-spec {
  padding: 8px 14px;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
}

.prop-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.prop-spec-item {
  text-align: center;
  padding: 18px 12px;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.prop-spec-item .spec-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--black);
}

.prop-spec-item .spec-label {
  font-size: 0.8rem;
  color: var(--gray-600);
  margin-top: 4px;
}

.prop-description {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  line-height: 1.8;
}

.prop-description h3 {
  margin-bottom: 16px;
}

.prop-description p {
  color: var(--gray-700);
}

/* ── 17. Contact Section ──────────────────────────────────────────────────── */
.contact-section {
  padding: 60px 0;
  background: var(--white);
}

.contact-section .section-title {
  margin-bottom: 40px;
}

.contact-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-card {
  padding: 24px;
  background: var(--gray-50);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}

.contact-card + .contact-card {
  margin-top: 16px;
}

.contact-card h4 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.contact-card p,
.contact-card a {
  font-size: 0.95rem;
  color: var(--gray-700);
}

.contact-card .contact-icon {
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 1.2rem;
}

/* ── 18. Footer ───────────────────────────────────────────────────────────── */
.footer {
  background: var(--gray-900);
  color: var(--gray-200);
  padding: 50px 0 0;
}

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

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 18px;
  font-weight: 600;
}

.footer-col p {
  color: var(--gray-400);
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-col a {
  color: var(--gray-400);
  font-size: 0.9rem;
  display: block;
  padding: 5px 0;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--gray-600);
}

.footer-bottom a {
  color: var(--gray-400);
}

.footer-bottom a:hover {
  color: var(--white);
}

.footer-about {
  padding-right: 20px;
}

.footer-logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 14px;
}

.footer-logo:hover {
  color: var(--white);
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 1rem;
  transition: all var(--transition);
  padding: 0;
}

.footer-social a:hover {
  background: var(--primary);
  color: var(--white);
}

/* ── 19. WhatsApp Float Button ───────────────────────────────────────────── */
.whatsapp-float,
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 900;
  color: var(--white);
  font-size: 1.6rem;
  transition: transform var(--transition), box-shadow var(--transition);
  animation: waFloat 3s ease-in-out infinite;
}

.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
  color: var(--white);
}

.wa-float svg {
  width: 30px;
  height: 30px;
  fill: var(--white);
}

@keyframes waFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ── 20. Admin Panel ─────────────────────────────────────────────────────── */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 260px;
  background: var(--gray-900);
  color: var(--white);
  padding: 24px 0;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 800;
  transition: transform 0.3s ease;
}

.admin-sidebar-logo {
  padding: 0 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 16px;
}

.admin-sidebar-logo span {
  font-size: 1.1rem;
  font-weight: 700;
}

.admin-sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: var(--gray-400);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
  border-left: 3px solid transparent;
}

.admin-sidebar-nav a:hover,
.admin-sidebar-nav a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
  border-left-color: var(--primary);
}

.admin-sidebar-nav a svg {
  width: 20px;
  height: 20px;
}

.admin-content {
  margin-left: 260px;
  flex: 1;
  padding: 0;
  min-height: 100vh;
  background: #f5f5f5;
}

.admin-header {
  background: var(--white);
  padding: 16px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.admin-header h1 {
  font-size: 1.3rem;
}

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-body {
  padding: 30px;
}

.admin-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.admin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.admin-card-header h3 {
  font-size: 1.15rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table thead th {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-600);
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.admin-table tbody td {
  padding: 14px 16px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-800);
}

.admin-table tbody tr:hover {
  background: var(--gray-50);
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.admin-stat {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-stat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.admin-stat-icon.red { background: rgba(192, 57, 43, 0.1); color: var(--primary); }
.admin-stat-icon.blue { background: rgba(21, 101, 192, 0.1); color: #1565c0; }
.admin-stat-icon.green { background: rgba(37, 211, 102, 0.1); color: var(--green); }
.admin-stat-icon.orange { background: rgba(243, 156, 18, 0.1); color: #f39c12; }

.admin-stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--black);
  line-height: 1;
}

.admin-stat-label {
  font-size: 0.82rem;
  color: var(--gray-600);
  margin-top: 4px;
}

/* ── 21. Login / Register ─────────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gray-100) 0%, #e8e8e8 100%);
  padding: 20px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.auth-card-logo {
  text-align: center;
  margin-bottom: 28px;
}

.auth-card-logo img {
  height: 50px;
  margin: 0 auto 12px;
}

.auth-card-logo h2 {
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.auth-card-logo p {
  color: var(--gray-600);
  font-size: 0.9rem;
}

.auth-card .form-group:last-of-type {
  margin-bottom: 24px;
}

.auth-card .btn {
  width: 100%;
  padding: 14px;
}

.auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--gray-600);
}

.auth-footer a {
  color: var(--primary);
  font-weight: 600;
}

/* ── 22. Pagination ───────────────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 36px;
}

.page-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-700);
  background: var(--white);
  border: 1px solid var(--gray-200);
  cursor: pointer;
  transition: all var(--transition);
}

.page-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

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

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ── 23. Filters ─────────────────────────────────────────────────────────── */
.filter-sidebar {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.filter-group {
  margin-bottom: 22px;
}

.filter-group h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gray-100);
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--gray-100);
  border-radius: 20px;
  font-size: 0.82rem;
  color: var(--gray-700);
  font-weight: 500;
}

.filter-tag .filter-tag-remove {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gray-400);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  cursor: pointer;
  transition: background var(--transition);
}

.filter-tag .filter-tag-remove:hover {
  background: var(--primary);
}

.filter-clear-all {
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  padding: 6px 0;
}

/* ── 24. Toast Notifications ──────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  top: 90px;
  right: 20px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  min-width: 280px;
  max-width: 420px;
  animation: slideInRight 0.3s ease, fadeOut 0.3s ease 3.7s forwards;
  border-left: 4px solid var(--gray-600);
}

.toast.success { border-left-color: var(--green); }
.toast.error { border-left-color: var(--primary); }
.toast.warning { border-left-color: #f39c12; }
.toast.info { border-left-color: #1565c0; }

.toast-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.toast.success .toast-icon { color: var(--green); }
.toast.error .toast-icon { color: var(--primary); }
.toast.warning .toast-icon { color: #f39c12; }
.toast.info .toast-icon { color: #1565c0; }

.toast-message {
  font-size: 0.9rem;
  color: var(--gray-800);
  flex: 1;
}

.toast-close {
  background: none;
  border: none;
  color: var(--gray-400);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px;
  transition: color var(--transition);
}

.toast-close:hover {
  color: var(--gray-800);
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

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

/* ── 25. Loading States ──────────────────────────────────────────────────── */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.skeleton {
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

.skeleton-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.skeleton-card .skeleton-img {
  width: 100%;
  aspect-ratio: 4 / 3;
}

.skeleton-card .skeleton-body {
  padding: 18px;
}

.skeleton-card .skeleton-title {
  height: 18px;
  width: 80%;
  margin-bottom: 10px;
}

.skeleton-card .skeleton-text {
  height: 14px;
  width: 60%;
  margin-bottom: 16px;
}

.skeleton-card .skeleton-specs {
  display: flex;
  gap: 16px;
}

.skeleton-card .skeleton-spec {
  height: 14px;
  width: 50px;
}

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

/* ── 26. Animations ──────────────────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease forwards;
}

.animate-slide-up {
  animation: slideUp 0.6s ease forwards;
}

.animate-fade-in-up {
  animation: fadeInUp 0.5s ease forwards;
}

/* ── 27. Utility Classes ─────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-primary { color: var(--primary); }
.text-white { color: var(--white); }
.text-muted { color: var(--gray-600); }
.text-sm { font-size: 0.85rem; }
.text-lg { font-size: 1.2rem; }
.text-xl { font-size: 1.5rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mx-auto { margin-left: auto; margin-right: auto; }

.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }

.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.gap-4 { gap: 32px; }

.w-full { width: 100%; }
.rounded { border-radius: var(--radius); }
.overflow-hidden { overflow: hidden; }
.relative { position: relative; }

.bg-white { background: var(--white); }
.bg-gray { background: #f5f5f5; }
.bg-dark { background: var(--gray-900); }

.p-2 { padding: 16px; }
.p-3 { padding: 24px; }
.p-4 { padding: 32px; }
.px-2 { padding-left: 16px; padding-right: 16px; }
.py-2 { padding-top: 16px; padding-bottom: 16px; }

/* ── 28. Image Upload ────────────────────────────────────────────────────── */
.upload-area {
  border: 2px dashed var(--gray-200);
  border-radius: var(--radius);
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--gray-50);
}

.upload-area:hover,
.upload-area.dragover {
  border-color: var(--primary);
  background: rgba(192, 57, 43, 0.03);
}

.upload-area svg {
  width: 48px;
  height: 48px;
  color: var(--gray-400);
  margin-bottom: 12px;
}

.upload-area p {
  color: var(--gray-600);
  font-size: 0.9rem;
}

.upload-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.upload-preview-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--gray-200);
}

.upload-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-preview-item .remove-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--transition);
}

.upload-preview-item:hover .remove-btn {
  opacity: 1;
}

/* ── 29. Properties Page Layout ──────────────────────────────────────────── */
.properties-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
  padding: 30px 0;
}

.properties-count {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-bottom: 20px;
}

.properties-count strong {
  color: var(--black);
}

.properties-sort {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.properties-sort label {
  font-size: 0.85rem;
  color: var(--gray-600);
}

.properties-sort select {
  padding: 8px 12px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  background: var(--white);
  color: var(--gray-800);
  outline: none;
}

/* ── 30. Empty State ─────────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-600);
}

.empty-state svg {
  width: 64px;
  height: 64px;
  color: var(--gray-200);
  margin-bottom: 16px;
}

.empty-state h3 {
  font-size: 1.2rem;
  color: var(--gray-800);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 0.95rem;
  max-width: 400px;
  margin: 0 auto;
}

/* ── 31. Price Range Slider ───────────────────────────────────────────────── */
.range-display {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--gray-700);
  font-weight: 500;
  margin-top: 8px;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: var(--gray-200);
  border-radius: 3px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: var(--primary);
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid var(--white);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: var(--primary);
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid var(--white);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* ── 32. Property Detail Two-Column ───────────────────────────────────────── */
.prop-detail-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 30px;
}

.prop-detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── 33. Checkbox & Radio Styles ──────────────────────────────────────────── */
.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  cursor: pointer;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

.form-check label {
  font-size: 0.9rem;
  color: var(--gray-800);
  cursor: pointer;
}

/* ── 34. Status Tags for Admin ─────────────────────────────────────────────── */
.status {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
}

.status-active { background: #e8f5e9; color: #2e7d32; }
.status-pending { background: #fff3e0; color: #e65100; }
.status-inactive { background: #fce4ec; color: #c62828; }
.status-sold { background: #e3f2fd; color: #1565c0; }

/* ── 35. Breadcrumb ───────────────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  font-size: 0.85rem;
}

.breadcrumb a {
  color: var(--gray-600);
}

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

.breadcrumb .separator {
  color: var(--gray-400);
}

.breadcrumb .current {
  color: var(--gray-800);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Max 1024px (Tablets / Small laptops) ──────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }

  .properties-grid,
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .states-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .prop-detail-layout {
    grid-template-columns: 1fr;
  }

  .prop-info-card {
    position: static;
  }

  .properties-layout {
    grid-template-columns: 240px 1fr;
  }

  .admin-stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-content h1 {
    font-size: 2.4rem;
  }

  .search-row {
    flex-wrap: wrap;
  }

  .search-field {
    min-width: calc(50% - 6px);
  }

  .search-btn {
    width: 100%;
  }

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

  .prop-specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Max 768px (Tablets portrait) ─────────────────────────────────────────── */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }

  .container {
    padding: 0 16px;
  }

  /* Header */
  .header-nav,
  .nav-links {
    display: none;
  }

  .header-actions,
  .nav-actions {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu {
    display: flex;
  }

  /* Grids */
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .properties-grid,
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .states-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Hero */
  .hero {
    min-height: 420px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p,
  .hero-subtitle {
    font-size: 1rem;
  }

  .search-quick-links {
    flex-wrap: wrap;
    gap: 10px;
  }

  /* Section */
  .section {
    padding: 40px 0;
  }

  .section-title {
    font-size: 1.4rem;
  }

  /* Stats */
  .stats-section {
    padding: 36px 0;
  }

  .stat-number {
    font-size: 2rem;
  }

  /* Forms */
  .form-row {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  /* Admin */
  .admin-sidebar {
    transform: translateX(-100%);
  }

  .admin-sidebar.open {
    transform: translateX(0);
  }

  .admin-content {
    margin-left: 0;
  }

  .admin-stat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .admin-body {
    padding: 20px;
  }

  /* Properties */
  .properties-layout {
    grid-template-columns: 1fr;
  }

  .filter-sidebar {
    display: none;
  }

  .filter-sidebar.open {
    display: block;
  }

  /* Map */
  .map-container {
    height: 320px;
  }

  /* Auth */
  .auth-card {
    padding: 30px 24px;
  }

  /* Gallery */
  .gallery-thumb {
    width: 70px;
    height: 52px;
  }

  /* Prop specs */
  .prop-specs-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Admin table */
  .admin-table {
    font-size: 0.85rem;
  }

  .admin-table thead th,
  .admin-table tbody td {
    padding: 10px 12px;
  }
}

/* ── Max 480px (Mobile) ────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1.15rem; }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .properties-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .states-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 360px;
  }

  .hero-content h1 {
    font-size: 1.6rem;
  }

  .hero-content p,
  .hero-subtitle {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }

  .hero-search {
    padding: 14px;
  }

  .btn-search {
    width: 100%;
    justify-content: center;
  }

  .search-quick-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .section {
    padding: 30px 0;
  }

  .section-title {
    font-size: 1.2rem;
  }

  .btn-lg {
    padding: 14px 24px;
    font-size: 1rem;
  }

  .prop-card-body {
    padding: 14px;
  }

  .prop-card-title {
    font-size: 0.95rem;
  }

  .prop-card-specs {
    gap: 12px;
  }

  .stat-number {
    font-size: 1.6rem;
  }

  .whatsapp-float,
  .wa-float {
    width: 52px;
    height: 52px;
    bottom: 16px;
    right: 16px;
  }

  .whatsapp-float svg,
  .wa-float svg {
    width: 26px;
    height: 26px;
  }

  .auth-card {
    padding: 24px 18px;
  }

  .admin-stat-grid {
    grid-template-columns: 1fr;
  }

  .admin-stat {
    padding: 18px;
  }

  .admin-header {
    padding: 12px 16px;
  }

  .admin-header h1 {
    font-size: 1.1rem;
  }

  .gallery-thumbs {
    gap: 6px;
  }

  .gallery-thumb {
    width: 60px;
    height: 45px;
  }

  .prop-specs-grid {
    grid-template-columns: 1fr 1fr;
  }

  .prop-spec-item {
    padding: 14px 8px;
  }

  .contact-card {
    padding: 18px;
  }

  .pagination {
    gap: 4px;
  }

  .page-btn {
    width: 36px;
    height: 36px;
    font-size: 0.82rem;
  }

  .upload-preview-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  }

  .toast-container {
    left: 12px;
    right: 12px;
  }

  .toast {
    min-width: auto;
    max-width: 100%;
  }
}

/* ── Print Styles ─────────────────────────────────────────────────────────── */
@media print {
  .header,
  #mainHeader,
  .footer,
  .whatsapp-float,
  .wa-float,
  .hamburger,
  .mobile-menu,
  .search-bar,
  .pagination,
  .toast-container,
  .admin-sidebar {
    display: none !important;
  }

  body {
    background: var(--white);
    color: var(--black);
  }

  .prop-card {
    box-shadow: none;
    border: 1px solid var(--gray-200);
    break-inside: avoid;
  }
}
