/* === S-Canning v2 — Modern Brutalist White === */
:root {
  --bg: #fafafa;
  --bg2: #ffffff;
  --bg3: #f0f0f0;
  --surface: #ffffff;
  --surface2: #f5f5f5;
  --border: #e0e0e0;
  --border-bold: #1a1a1a;
  --text: #1a1a1a;
  --text2: #555555;
  --text3: #999999;
  --accent: #1a1a1a;
  --accent2: #333333;
  --accent-light: rgba(26,26,26,0.06);
  --green: #16a34a;
  --green-light: rgba(22,163,74,0.08);
  --orange: #ea580c;
  --orange-light: rgba(234,88,12,0.08);
  --red: #dc2626;
  --red-light: rgba(220,38,38,0.08);
  --blue: #2563eb;
  --blue-light: rgba(37,99,235,0.08);
  --gold: #ca8a04;
  --purple: #7c3aed;
  --radius: 0px;
  --radius-sm: 0px;
  --shadow: 4px 4px 0 #1a1a1a;
  --shadow-lg: 6px 6px 0 #1a1a1a;
  --shadow-sm: 2px 2px 0 #1a1a1a;
  --transition: 0.15s ease;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; touch-action: manipulation; }
a:hover { text-decoration-thickness: 2px; }

button { cursor: pointer; font-family: var(--font); touch-action: manipulation; }
input, select, textarea { touch-action: manipulation; }

/* === NAV === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--border-bold);
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  cursor: pointer;
  letter-spacing: -0.5px;
  text-transform: uppercase;
}

.nav-logo svg {
  width: 28px;
  height: 28px;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-links a {
  color: var(--text2);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color var(--transition);
}

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

.nav-cta {
  background: var(--accent);
  color: white;
  border: 2px solid var(--accent);
  padding: 8px 20px;
  border-radius: 0;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all var(--transition);
}

.nav-cta:hover {
  background: white;
  color: var(--accent);
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 2rem 80px;
  position: relative;
  overflow: hidden;
  background: var(--bg2);
  max-width: 100%;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}

.hero > *:not(.hero-bg-img) {
  position: relative;
  z-index: 1;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border: 2px solid var(--border);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.4;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  border: 2px solid var(--border);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.3;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: white;
  padding: 6px 16px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  max-width: 800px;
  letter-spacing: -2px;
  text-transform: uppercase;
}

.hero h1 .gradient {
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 4px;
  text-underline-offset: 6px;
  text-decoration-color: var(--blue);
}

.hero p {
  font-size: 1.15rem;
  color: var(--text2);
  max-width: 550px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 0;
  font-size: 0.9rem;
  font-weight: 700;
  border: 2px solid var(--border-bold);
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn svg { width: 18px; height: 18px; }

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #1a1a1a;
}

.btn-outline {
  background: white;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  background: var(--accent);
  color: white;
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #1a1a1a;
}

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

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border-bold);
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -1px;
}

.hero-stat-label {
  font-size: 0.75rem;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 4px;
  font-weight: 600;
}

/* === SECTIONS === */
section {
  padding: 80px 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 0.75rem;
  letter-spacing: -1px;
  text-transform: uppercase;
}

.section-header p {
  color: var(--text2);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* === QUIZ SECTION === */
.quiz-card {
  background: var(--surface);
  border: 2px solid var(--border-bold);
  padding: 2.5rem;
  max-width: 700px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}

.quiz-progress {
  display: flex;
  gap: 8px;
  margin-bottom: 2rem;
}

.quiz-progress-dot {
  flex: 1;
  height: 4px;
  background: var(--border);
  transition: background var(--transition);
}

.quiz-progress-dot.active {
  background: var(--text);
}

.quiz-progress-dot.done {
  background: var(--green);
}

.quiz-question {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.quiz-hint {
  color: var(--text3);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.quiz-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 2rem;
}

.quiz-option {
  background: white;
  border: 2px solid var(--border);
  padding: 14px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  text-align: left;
  transition: all var(--transition);
}

.quiz-option:hover {
  border-color: var(--border-bold);
  box-shadow: var(--shadow-sm);
  transform: translate(-1px, -1px);
}

.quiz-option.selected {
  border-color: var(--border-bold);
  background: var(--accent);
  color: white;
  box-shadow: var(--shadow-sm);
}

.quiz-input {
  width: 100%;
  background: white;
  border: 2px solid var(--border);
  padding: 12px 16px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: var(--font);
  margin-bottom: 1.5rem;
  resize: vertical;
}

.quiz-input:focus {
  outline: none;
  border-color: var(--border-bold);
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.quiz-result {
  background: var(--surface);
  border: 2px solid var(--border-bold);
  padding: 2rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
  font-size: 0.95rem;
  white-space: pre-wrap;
  box-shadow: var(--shadow);
}

.quiz-result h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  font-weight: 800;
  text-transform: uppercase;
}

.quiz-loading {
  text-align: center;
  padding: 3rem;
  color: var(--text2);
}

/* === IMAGE BREAK === */
.image-break {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-top: 2px solid var(--border-bold);
  border-bottom: 2px solid var(--border-bold);
}

.image-break img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

.image-break-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,26,26,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-break-overlay span {
  color: white;
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  padding: 0 2rem;
}

/* === EXPLORE / MAP SECTION === */
#explore {
  max-width: 100%;
  padding: 80px 0 0;
}

.explore-container {
  display: flex;
  height: calc(100vh - 144px);
  background: var(--bg);
  border-top: 2px solid var(--border-bold);
}

.explore-sidebar {
  width: 420px;
  min-width: 420px;
  background: var(--bg2);
  border-right: 2px solid var(--border-bold);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.explore-tabs {
  display: flex;
  border-bottom: 2px solid var(--border-bold);
}

.explore-tab {
  flex: 1;
  background: none;
  border: none;
  color: var(--text3);
  padding: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 3px solid transparent;
  transition: all var(--transition);
}

.explore-tab:hover { color: var(--text2); }

.explore-tab.active {
  color: var(--text);
  border-bottom-color: var(--text);
  background: var(--surface2);
}

.explore-filters {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-row {
  display: flex;
  gap: 8px;
}

.filter-group {
  flex: 1;
}

.filter-label {
  font-size: 0.75rem;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
  display: block;
  font-weight: 700;
}

.filter-input {
  width: 100%;
  background: white;
  border: 2px solid var(--border);
  padding: 8px 10px;
  color: var(--text);
  font-size: 0.85rem;
  font-family: var(--font);
}

.filter-input:focus {
  outline: none;
  border-color: var(--border-bold);
}

.filter-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-chip {
  background: white;
  border: 2px solid var(--border);
  padding: 5px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text2);
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.filter-chip:hover, .filter-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.explore-list-header {
  padding: 8px 1rem;
  font-size: 0.75rem;
  color: var(--text3);
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.explore-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem;
}

.explore-list::-webkit-scrollbar {
  width: 6px;
}

.explore-list::-webkit-scrollbar-thumb {
  background: var(--border);
}

/* Neighborhood cards in sidebar */
.nb-card {
  background: white;
  border: 2px solid var(--border);
  padding: 1rem;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all var(--transition);
}

.nb-card:hover {
  border-color: var(--border-bold);
  box-shadow: var(--shadow-sm);
  transform: translate(-1px, -1px);
}

.nb-card.active {
  border-color: var(--border-bold);
  background: var(--surface2);
  box-shadow: var(--shadow-sm);
}

.nb-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6px;
}

.nb-card-name {
  font-size: 1rem;
  font-weight: 700;
}

.nb-card-zone {
  font-size: 0.7rem;
  padding: 2px 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 2px solid;
}

.zone-norte { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }
.zone-sur { border-color: var(--green); color: var(--green); background: var(--green-light); }
.zone-oeste { border-color: var(--orange); color: var(--orange); background: var(--orange-light); }

.nb-card-info {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text2);
  margin-bottom: 6px;
}

.nb-card-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.amenity-tag {
  font-size: 0.7rem;
  color: var(--text2);
  background: var(--bg3);
  padding: 2px 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Listing cards in sidebar */
.listing-card {
  background: white;
  border: 2px solid var(--border);
  padding: 0.75rem 1rem;
  margin-bottom: 6px;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.listing-card:hover {
  border-color: var(--border-bold);
  box-shadow: var(--shadow-sm);
}

.listing-card-left {
  flex: 1;
}

.listing-card-title {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.listing-card-meta {
  font-size: 0.75rem;
  color: var(--text3);
  margin-top: 2px;
}

.listing-card-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--green);
}

.listing-card-m2 {
  font-size: 0.75rem;
  color: var(--text3);
  text-align: right;
  margin-top: 2px;
}

.explore-map {
  flex: 1;
  position: relative;
}

#map {
  width: 100%;
  height: 100%;
}

/* === NEIGHBORHOOD PROFILE OVERLAY === */
.profile-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.profile-overlay.show {
  display: flex;
}

.profile-card {
  background: white;
  border: 2px solid var(--border-bold);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.profile-card::-webkit-scrollbar { width: 6px; }
.profile-card::-webkit-scrollbar-thumb { background: var(--border); }

.profile-close {
  position: sticky;
  top: 1rem;
  float: right;
  margin-right: 1rem;
  background: white;
  border: 2px solid var(--border-bold);
  color: var(--text);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  z-index: 10;
}

.profile-close:hover {
  background: var(--accent);
  color: white;
}

.profile-header {
  padding: 2rem;
  border-bottom: 2px solid var(--border-bold);
}

.profile-name {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 4px;
  letter-spacing: -1px;
  text-transform: uppercase;
}

.profile-location {
  color: var(--text2);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.profile-share {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.profile-share-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text3);
}

.share-btn {
  display: inline-block;
  padding: 5px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border: 2px solid var(--border);
  background: white;
  color: var(--text2);
  text-decoration: none;
  cursor: pointer;
  font-family: var(--font);
  transition: all var(--transition);
}

.share-btn:hover {
  border-color: var(--border-bold);
  box-shadow: var(--shadow-sm);
  transform: translate(-1px, -1px);
}

.share-wa:hover { background: #25d366; color: white; border-color: #25d366; }
.share-tw:hover { background: var(--accent); color: white; }
.share-fb:hover { background: #1877f2; color: white; border-color: #1877f2; }
.share-copy:hover { background: var(--accent); color: white; }

.profile-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}

.profile-stat {
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 12px;
  text-align: center;
}

.profile-stat-value {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
}

.profile-stat-label {
  font-size: 0.7rem;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2px;
  font-weight: 600;
}

.profile-body {
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.profile-section h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text3);
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.profile-description {
  color: var(--text2);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.profile-amenities-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.profile-amenity {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text2);
}

.profile-amenity .check { color: var(--green); font-weight: 700; }
.profile-amenity .cross { color: var(--text3); }

.pro-item, .con-item {
  font-size: 0.85rem;
  color: var(--text2);
  padding: 6px 0;
  padding-left: 18px;
  position: relative;
}

.pro-item::before {
  content: '+';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.con-item::before {
  content: '−';
  position: absolute;
  left: 2px;
  color: var(--red);
  font-weight: 700;
}

.profile-listings {
  padding: 0 2rem 2rem;
  border-top: 2px solid var(--border-bold);
  padding-top: 1.5rem;
}

.profile-listings h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text3);
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.listing-mini {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: var(--surface2);
  border: 1px solid var(--border);
  margin-bottom: 6px;
  font-size: 0.85rem;
}

.listing-mini-price {
  font-weight: 800;
  color: var(--green);
}

.listing-mini-area {
  color: var(--text2);
}

.listing-mini-m2 {
  color: var(--text3);
  font-size: 0.75rem;
}

.profile-similar {
  padding: 0 2rem 2rem;
}

.profile-similar h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text3);
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.similar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}

.similar-card {
  background: white;
  border: 2px solid var(--border);
  padding: 12px;
  cursor: pointer;
  transition: all var(--transition);
}

.similar-card:hover {
  border-color: var(--border-bold);
  box-shadow: var(--shadow-sm);
}

.similar-card-name {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.similar-card-info {
  font-size: 0.75rem;
  color: var(--text2);
}

/* === NEWS SECTION === */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.news-card {
  background: white;
  border: 2px solid var(--border);
  padding: 1.5rem;
  transition: all var(--transition);
}

.news-card:hover {
  border-color: var(--border-bold);
  box-shadow: var(--shadow-sm);
  transform: translate(-2px, -2px);
}

.news-category {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  margin-bottom: 8px;
  display: inline-block;
  padding: 3px 8px;
  border: 2px solid;
}

.cat-mercado { border-color: var(--green); color: var(--green); background: var(--green-light); }
.cat-infraestructura { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }
.cat-seguridad { border-color: var(--red); color: var(--red); background: var(--red-light); }
.cat-comunidad { border-color: var(--orange); color: var(--orange); background: var(--orange-light); }
.cat-legal { border-color: var(--purple); color: var(--purple); background: rgba(124,58,237,0.08); }

.news-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}

.news-summary {
  font-size: 0.85rem;
  color: var(--text2);
  line-height: 1.6;
  margin-bottom: 12px;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text3);
  font-weight: 600;
}

.news-filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

/* === JOURNEY SECTION === */
#journey {
  background: var(--accent);
  color: white;
  max-width: 100%;
  padding: 80px 2rem;
}

#journey .section-header h2 { color: white; }
#journey .section-header p { color: rgba(255,255,255,0.7); }

.journey-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.journey-step {
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.2);
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  transition: all var(--transition);
}

.journey-step:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.4);
  transform: translateY(-4px);
}

.journey-step-number {
  width: 44px;
  height: 44px;
  background: white;
  color: var(--accent);
  font-weight: 900;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.journey-step h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.journey-step p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
}

/* === WHATSAPP BUTTON === */
.whatsapp-fab {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 52px;
  height: 52px;
  background: #25d366;
  color: white;
  border: 2px solid #1a1a1a;
  box-shadow: var(--shadow-sm);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  text-decoration: none;
}

.whatsapp-fab:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #1a1a1a;
}

.whatsapp-fab svg { width: 26px; height: 26px; }

/* === CHAT WIDGET === */
.chat-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: var(--accent);
  color: white;
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-sm);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.chat-fab:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #1a1a1a;
}

.chat-fab svg { width: 24px; height: 24px; }

.chat-panel {
  position: fixed;
  bottom: 150px;
  right: 24px;
  width: 380px;
  height: 520px;
  background: white;
  border: 2px solid var(--border-bold);
  box-shadow: var(--shadow-lg);
  z-index: 300;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.chat-panel.show {
  display: flex;
}

.chat-header {
  padding: 16px;
  border-bottom: 2px solid var(--border-bold);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--accent);
  color: white;
}

.chat-header-title {
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.chat-header-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  padding: 4px;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg);
}

.chat-msg {
  max-width: 85%;
  padding: 10px 14px;
  font-size: 0.85rem;
  line-height: 1.6;
  white-space: pre-wrap;
  border: 2px solid var(--border);
}

.chat-msg.bot {
  background: white;
  align-self: flex-start;
}

.chat-msg.user {
  background: var(--accent);
  color: white;
  align-self: flex-end;
  border-color: var(--accent);
}

.chat-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 0 16px 8px;
  background: var(--bg);
}

.chat-chip {
  background: white;
  border: 2px solid var(--border);
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: all var(--transition);
}

.chat-chip:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.chat-input-area {
  padding: 12px;
  border-top: 2px solid var(--border-bold);
  display: flex;
  gap: 8px;
}

.chat-input {
  flex: 1;
  background: white;
  border: 2px solid var(--border);
  padding: 10px 12px;
  color: var(--text);
  font-size: 0.85rem;
  font-family: var(--font);
}

.chat-input:focus {
  outline: none;
  border-color: var(--border-bold);
}

.chat-send {
  background: var(--accent);
  border: 2px solid var(--accent);
  color: white;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-send:hover {
  background: white;
  color: var(--accent);
}

.chat-send svg { width: 18px; height: 18px; }

.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 10px 14px;
  align-self: flex-start;
}

.typing-indicator span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text3);
  animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}

/* === FOOTER === */
.footer {
  background: var(--accent);
  color: white;
  border-top: 2px solid var(--border-bold);
  padding: 3rem 2rem;
  text-align: center;
}

.footer-text {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.footer-links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* === LOADING === */
.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top: 3px solid var(--text);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 2rem auto;
}

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

/* === LEAFLET OVERRIDES === */
.leaflet-container {
  background: var(--bg) !important;
}

.leaflet-popup-content-wrapper {
  background: white !important;
  color: var(--text) !important;
  border-radius: 0 !important;
  box-shadow: var(--shadow) !important;
  border: 2px solid var(--border-bold) !important;
}

.leaflet-popup-tip {
  background: white !important;
  border: 1px solid var(--border-bold);
}

.leaflet-popup-content {
  margin: 12px !important;
  font-family: var(--font) !important;
  font-size: 0.85rem !important;
}

.leaflet-popup-close-button {
  color: var(--text3) !important;
  font-weight: 700 !important;
}

.leaflet-control-zoom a {
  background: white !important;
  color: var(--text) !important;
  border: 2px solid var(--border-bold) !important;
  border-radius: 0 !important;
  font-weight: 700 !important;
}

.map-popup-name {
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: -0.3px;
}

.map-popup-price {
  color: var(--green);
  font-weight: 800;
  font-size: 0.9rem;
}

.map-popup-info {
  color: var(--text2);
  font-size: 0.8rem;
  margin-top: 4px;
}

.map-popup-btn {
  background: var(--accent);
  color: white;
  border: 2px solid var(--accent);
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 8px;
  cursor: pointer;
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.map-popup-btn:hover {
  background: white;
  color: var(--accent);
}

/* === MOBILE TEXT SIZE FIX === */
@media (max-width: 768px) {
  .filter-label, .filter-chip, .explore-list-header,
  .nb-card-zone, .amenity-tag, .news-category,
  .listing-card-m2, .listing-card-meta, .chat-chip,
  .hero-badge, .hero-stat-label, .profile-stat-label,
  .btn-sm, .map-popup-btn, .explore-tab, .nav-cta,
  .similar-card-info, .news-meta, .listing-mini-m2,
  .listing-mini, .profile-section h3, .profile-listings h3,
  .profile-similar h3 {
    font-size: max(0.75rem, 12px);
  }
  .nb-card-info, .profile-amenity, .pro-item, .con-item,
  .listing-card-title, .chat-msg, .news-summary,
  .quiz-hint, .footer-text, .footer-links a,
  .nav-links a, .journey-step p {
    font-size: max(0.85rem, 14px);
  }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav { padding: 0 1rem; }
  .nav-links { display: none; }

  .hero { padding: 100px 1.5rem 60px; }
  .hero-stats { gap: 1.5rem; }

  section { padding: 60px 1.5rem; }

  .explore-container { flex-direction: column; height: auto; }
  .explore-sidebar { width: 100%; min-width: 100%; max-height: 50vh; }
  .explore-map { height: 50vh; min-height: 300px; }

  .journey-steps { grid-template-columns: 1fr 1fr; }

  .profile-body { grid-template-columns: 1fr; }

  .chat-panel {
    width: calc(100% - 2rem);
    right: 1rem;
    bottom: 80px;
    height: 60vh;
  }

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

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .hero-stats { flex-direction: column; gap: 1rem; }
  .journey-steps { grid-template-columns: 1fr; }
  .quiz-options { grid-template-columns: 1fr; }
}
