/* ============================================================
   SANTA MARTA GUÍA — index.css (page-specific, requires styles.css)
   ============================================================ */

/* HERO */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, oklch(22% 0.06 245 / 0.55) 0%, oklch(22% 0.06 245 / 0.25) 100%);
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, var(--bg), transparent);
}
.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  color: var(--bg);
  opacity: 0.15;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 0 24px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: oklch(96% 0.01 240);
  margin-bottom: 12px;
  text-shadow: 0 2px 8px oklch(0% 0 0 / 0.35);
}
.hero-desc {
  font-size: clamp(16px, 2vw, 20px);
  color: oklch(85% 0.02 230);
  line-height: 1.5;
  margin-bottom: 32px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.search-form {
  display: flex;
  align-items: stretch;
  gap: 0;
  max-width: 600px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  flex-wrap: nowrap;
}
.search-group {
  flex: 1;
  min-width: 0;
  position: relative;
  display: flex;
  align-items: center;
  background: transparent;
}
.search-group input,
.search-group select {
  width: 100%;
  height: 56px;
  padding: 0 16px;
  border: none;
  background: transparent;
  font-size: 15px;
  color: var(--fg);
  outline: none;
  border-right: 1px solid var(--border);
  border-radius: 0;
}
.search-group:last-of-type input,
.search-group:last-of-type select { border-right: none; }
.search-group:focus-within { background: oklch(98% 0.01 220); }
.search-group select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 32px;
}
.search-group .select-arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
  font-size: 10px;
}
.search-btn {
  min-width: 56px;
  width: 56px;
  height: 56px;
  background: var(--accent);
  color: var(--fg-on-accent);
  border: none;
  font-size: 20px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.15s;
  cursor: pointer;
}
.search-btn:hover { background: var(--accent-strong); }
.search-btn:active { transform: scale(0.96); }
.search-btn svg { display: block; }
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 24px;
}
.hero-tag {
  padding: 6px 16px;
  background: oklch(100% 0 0 / 0.15);
  border-radius: var(--radius-chip);
  color: oklch(90% 0.01 240);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  backdrop-filter: blur(4px);
  transition: background 0.2s;
}
/* CATEGORIES */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  container-type: inline-size;
}
.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
  text-decoration: none;
  color: var(--fg);
}
.category-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}
.category-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-chip);
  background: var(--accent-weak);
  display: grid;
  place-items: center;
  color: var(--accent-strong);
  flex-shrink: 0;
}
.category-icon svg { width: 24px; height: 24px; }
.category-name {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.category-count {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* NEIGHBORHOODS */
.neighborhoods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.neighborhood-card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  color: var(--fg);
  display: block;
  transition: box-shadow 0.2s, transform 0.2s;
}
.neighborhood-card:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}
.neighborhood-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.neighborhood-info {
  padding: 16px;
}
.neighborhood-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.neighborhood-meta {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.01em;
}
.neighborhood-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 12px;
  background: var(--accent);
  color: var(--fg-on-accent);
  border-radius: var(--radius-chip);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* FEATURED LISTINGS — extensions beyond styles.css */
.listing-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  background: var(--warn);
  color: var(--fg);
  border-radius: var(--radius-chip);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.listing-save {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-elev);
  border: none;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 16px;
  transition: color 0.2s, background 0.2s;
}
.listing-save:hover { color: var(--danger); background: var(--surface); }
.listing-save.saved { color: var(--danger); }
.listing-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  line-height: 1.3;
}
.listing-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}
.listing-reviews {
  font-size: 12px;
  color: var(--muted);
}
.listing-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding: 12px 16px 0;
  margin: 0 -16px;
  padding-left: 16px;
  padding-right: 16px;
}
.listing-status {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.listing-status.open { color: var(--success); }
.listing-status.closed { color: var(--danger); }

/* CTA SECTION */
.cta-section {
  background: var(--navy);
  color: oklch(92% 0.01 240);
  text-align: center;
}
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 12px;
}
.cta-desc {
  font-size: 16px;
  line-height: 1.6;
  color: oklch(80% 0.01 240);
  max-width: 560px;
  margin: 0 auto clamp(32px, 4vw, 48px);
}
.cta-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}
.cta-step {
  background: oklch(100% 0 0 / 0.06);
  border-radius: var(--radius-card);
  padding: 28px 20px;
  border: 1px solid oklch(100% 0 0 / 0.1);
  text-align: center;
}
.cta-step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--fg-on-accent);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 16px;
  margin: 0 auto 12px;
}
.cta-step-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.cta-step-desc {
  font-size: 14px;
  color: oklch(75% 0.01 240);
  line-height: 1.5;
}
.cta-section .btn { margin-top: 32px; }

/* TESTIMONIALS */
.testimonial-card {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  padding: 0 20px;
}
.testimonial-quote {
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.6;
  color: var(--fg);
  font-weight: 400;
  position: relative;
  margin-bottom: 24px;
}
.testimonial-quote::before {
  content: '\201C';
  display: block;
  font-size: 64px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.3;
  font-family: serif;
  margin-bottom: -12px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-weak);
  display: grid;
  place-items: center;
  color: var(--accent-strong);
  font-weight: 600;
  font-size: 18px;
  flex-shrink: 0;
}
.testimonial-info { text-align: left; }
.testimonial-name {
  font-weight: 600;
  font-size: 15px;
}
.testimonial-role {
  font-size: 13px;
  color: var(--muted);
}

/* PERFORMANCE: Reduce hero video on mobile */
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}
@media (max-width: 768px) {
  .hero-video { display: none; }
  .hero { background: linear-gradient(135deg, var(--navy-deep), var(--navy)), url('../santa-marta-guia.png') center/cover; }
  .search-form {
    flex-direction: column;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    flex-wrap: nowrap;
  }
  .search-group input,
  .search-group select {
    border-right: none;
    border-bottom: 1px solid var(--border);
    height: 52px;
  }
  .search-btn {
    width: 100%;
    min-width: 100%;
    height: 52px;
    border-radius: 0;
  }
  .categories-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
  }
  .neighborhoods-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
  .cta-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero { min-height: auto; padding: 32px 0 24px; }
  .hero h1 { font-size: clamp(24px, 8vw, 32px); }
  .hero p { font-size: 15px; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .category-card { padding: 16px 8px; }
  .neighborhoods-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .listings-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@container (max-width: 400px) {
  .category-card { padding: 16px 8px; }
}
