/* =========================================================
   MODELO 6 — COSTA (Playa / Vacacional / Mediterraneo)
   Paleta: Ocean blue #0077B6 + Coral #FF6B6B + Sand #F5F3EE
   Tipografia: Playfair Display (serif titulos) + Poppins (body)
   ========================================================= */

body.model-6 {
  font-family: var(--font-body);
  color: #1a2a3a;
  background: var(--immo-bg);
}

/* --- Navbar con underline tipo ola --- */
body.model-6 .navbar-immo {
  background: var(--immo-navbar-bg, rgba(255, 255, 255, 0.92));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 119, 182, 0.1);
  transition: all 0.3s;
}

body.model-6 .navbar-immo .navbar-brand img {
  max-height: 42px;
}

body.model-6 .nav-link {
  position: relative;
  color: var(--immo-navbar-text, var(--immo-dark)) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  letter-spacing: 0.03em;
}

body.model-6 .nav-link::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 20%;
  width: 0;
  height: 3px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 8'><path d='M 0 4 Q 10 0 20 4 T 40 4' stroke='%230077B6' stroke-width='2' fill='none'/></svg>") repeat-x;
  background-size: 40px 8px;
  transition: width 0.35s ease;
}

body.model-6 .nav-link:hover::after,
body.model-6 .nav-link.active::after {
  width: 60%;
}

/* --- Hero --- */
body.model-6 .hero-costa {
  position: relative;
  min-height: 85vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}

body.model-6 .hero-costa::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(3, 4, 94, 0.55) 0%, rgba(0, 119, 182, 0.35) 100%);
}

body.model-6 .hero-costa .container {
  position: relative;
  z-index: 2;
}

body.model-6 .hero-costa h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
  letter-spacing: -0.01em;
}

body.model-6 .hero-costa h1 em {
  font-style: italic;
  color: #FFD7B5;
  font-weight: 400;
}

body.model-6 .hero-costa p {
  font-size: 1.2rem;
  max-width: 600px;
  margin-bottom: 2rem;
  line-height: 1.6;
  font-weight: 300;
}

body.model-6 .hero-costa-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--immo-accent);
  color: #fff;
  padding: 1rem 2.2rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 30px rgba(255, 107, 107, 0.4);
  transition: transform 0.25s, box-shadow 0.25s;
}

body.model-6 .hero-costa-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(255, 107, 107, 0.55);
  color: #fff;
}

/* --- Wave divider SVG al final del hero --- */
body.model-6 .hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 90px;
  z-index: 3;
}

/* --- Buscador tipo flotante --- */
body.model-6 .search-card {
  background: #fff;
  border-radius: var(--immo-radius-lg);
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0, 119, 182, 0.15);
  margin-top: -60px;
  position: relative;
  z-index: 10;
  border: 1px solid rgba(0, 119, 182, 0.08);
}

body.model-6 .search-card h4 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--immo-dark);
  margin-bottom: 1rem;
}

body.model-6 .search-card .form-select,
body.model-6 .search-card .form-control {
  border: 1.5px solid #E8EEF2;
  border-radius: 999px;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

body.model-6 .search-card .form-select:focus,
body.model-6 .search-card .form-control:focus {
  border-color: var(--immo-primary);
  box-shadow: 0 0 0 4px rgba(0, 119, 182, 0.12);
}

/* --- Section titles --- */
body.model-6 .section-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--immo-dark);
  letter-spacing: -0.01em;
  text-transform: none;
}

body.model-6 .section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  margin: 0.75rem auto 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 10'><path d='M 0 5 Q 20 0 40 5 T 80 5' stroke='%230077B6' stroke-width='2.5' fill='none'/></svg>") no-repeat center;
  background-size: contain;
}

/* --- Property cards --- */
body.model-6 .property-card {
  background: var(--immo-card-bg);
  border-radius: var(--immo-radius-lg);
  overflow: hidden;
  box-shadow: var(--immo-shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid rgba(0, 119, 182, 0.06);
}

body.model-6 .property-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--immo-shadow);
}

body.model-6 .property-card .card-img-container {
  position: relative;
  height: 260px;
  overflow: hidden;
}

body.model-6 .property-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

body.model-6 .property-card:hover img {
  transform: scale(1.08);
}

body.model-6 .property-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--immo-accent);
  color: #fff;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 2;
}

body.model-6 .property-card .card-body {
  padding: 1.5rem;
}

body.model-6 .property-card .property-price {
  color: var(--immo-accent);
  font-weight: 700;
  font-size: 1.45rem;
  font-family: var(--font-heading);
  display: block;
  margin-bottom: 0.35rem;
}

body.model-6 .property-card .card-title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--immo-dark);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

body.model-6 .property-card .property-location {
  color: var(--immo-text-muted);
  font-size: 0.9rem;
}

body.model-6 .property-card .property-location i {
  color: var(--immo-primary);
}

body.model-6 .fav-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s;
  z-index: 2;
}

body.model-6 .fav-btn:hover {
  background: var(--immo-accent);
  color: #fff;
  transform: scale(1.1);
}

body.model-6 .fav-btn.active {
  background: var(--immo-accent);
  color: #fff;
}

/* --- Buttons --- */
body.model-6 .btn-immo {
  background: var(--immo-primary);
  color: #fff;
  border: none;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  font-weight: 600;
  font-family: var(--font-body);
  letter-spacing: 0.02em;
  transition: all 0.25s;
  box-shadow: 0 8px 24px rgba(0, 119, 182, 0.25);
}

body.model-6 .btn-immo:hover {
  background: var(--immo-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 119, 182, 0.35);
  color: #fff;
}

body.model-6 .btn-immo-outline {
  background: transparent;
  color: var(--immo-primary);
  border: 2px solid var(--immo-primary);
  padding: 0.75rem 1.85rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

body.model-6 .btn-immo-outline:hover {
  background: var(--immo-primary);
  color: #fff;
}

/* --- Footer --- */
body.model-6 .footer-immo {
  background: var(--immo-footer-bg, var(--immo-dark));
  color: var(--immo-footer-text, rgba(255, 255, 255, 0.85));
}

body.model-6 .footer-immo h5 {
  color: var(--immo-footer-heading, #FFD7B5);
  font-family: var(--font-heading);
  font-weight: 500;
}

body.model-6 .footer-immo a {
  color: var(--immo-footer-text, rgba(255, 255, 255, 0.8));
}

body.model-6 .footer-immo a:hover {
  color: var(--immo-accent);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  body.model-6 .hero-costa {
    min-height: 75vh;
    text-align: center;
  }
  body.model-6 .search-card {
    margin-top: -30px;
    padding: 1.25rem;
  }
}
