/* =====================================================
   MODEL 3: URBANO — Bold, energetic, tech/startup style
   Audience: Young renters, Badi/Spotahome/Airbnb vibe
   ===================================================== */

/* --- Base / Body --- */
body {
  background-color: var(--immo-bg);
  color: var(--immo-dark);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}

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

/* --- Navbar --- */
.navbar-immo {
  background: #ffffff !important;
  box-shadow: 0 1px 8px rgba(108, 92, 231, 0.06);
  padding: 0.5rem 0;
  min-height: 64px;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  border-bottom: none;
}

.navbar-immo.scrolled {
  background: #ffffff !important;
  box-shadow: 0 4px 20px rgba(108, 92, 231, 0.1);
}

.navbar-immo .navbar-brand img {
  height: 38px;
  width: auto;
}

.navbar-immo .nav-link {
  color: var(--immo-dark) !important;
  font-family: var(--font-body);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.9rem;
  padding: 0.5rem 0.85rem !important;
  border-radius: 50px;
  transition: all 0.25s ease;
}

.navbar-immo .nav-link:hover {
  color: var(--immo-primary) !important;
  background: var(--immo-primary-light);
}

.navbar-immo .nav-link.active {
  color: var(--immo-primary) !important;
  border-bottom: 2px solid var(--immo-primary);
  border-radius: 0;
}

.navbar-toggler {
  border-color: var(--immo-primary);
  border-radius: 50px;
  padding: 0.35rem 0.65rem;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%236C5CE7' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-cta-publish {
  background: var(--immo-primary);
  color: #ffffff !important;
  border-radius: 50px;
  padding: 0.5rem 1.25rem !important;
  font-weight: 600;
  font-size: 0.85rem;
  border: none;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(108, 92, 231, 0.25);
}

.navbar-cta-publish:hover {
  background: var(--immo-primary-hover);
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(108, 92, 231, 0.35);
}

/* Fav badge in navbar */
.nav-fav-badge {
  position: relative;
}

.nav-fav-count {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--immo-accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  border-radius: 50px;
  padding: 0 4px;
}

/* --- Hero --- */
.hero {
  min-height: 50vh;
  height: auto;
  background: var(--immo-bg);
  position: relative;
  display: flex;
  align-items: center;
  padding: 6rem 0 2rem;
}

.hero::before {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: left;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--immo-dark);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero-content h1 .hero-highlight {
  color: var(--immo-primary);
}

.hero-content p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--immo-text-muted);
}

/* Hero mosaic */
.hero-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  height: 380px;
}

.hero-mosaic-item {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

.hero-mosaic-item:first-child {
  grid-row: 1 / 3;
}

.hero-mosaic-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-mosaic-item:hover img {
  transform: scale(1.05);
}

/* Hover overlay for mosaic navigation */
.hero-mosaic-hover {
  position: absolute;
  inset: 0;
  background: rgba(108, 92, 231, 0.75);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity 0.35s ease;
  border-radius: 20px;
}

.hero-mosaic-item:hover .hero-mosaic-hover {
  opacity: 1;
}

.hero-mosaic-hover i {
  font-size: 2rem;
  color: #ffffff;
}

.hero-mosaic-hover span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: #ffffff;
  letter-spacing: 0.02em;
}

a.hero-mosaic-item {
  text-decoration: none;
  display: block;
}

/* Fallback stat overlay tiles */
.hero-mosaic-overlay {
  background: linear-gradient(135deg, rgba(108,92,231,0.08), rgba(0,210,211,0.08));
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.hero-mosaic-number {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--immo-primary);
  line-height: 1;
}

.hero-mosaic-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--immo-text-muted);
  margin-top: 0.25rem;
}

/* Single image fallback */
.hero-mosaic-single {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}
.hero-mosaic-full {
  grid-row: auto;
}

/* Hero search (inline, no card) */
.hero-search {
  margin-top: 1.5rem;
}

.hero-search .form-select,
.hero-search .form-control {
  background-color: #ffffff;
  border: 2px solid #E8E6F0;
  color: var(--immo-dark);
  border-radius: 50px;
  height: 48px;
  font-size: 0.9rem;
  padding-left: 1.25rem;
  transition: all 0.25s ease;
}

.hero-search .form-select:focus,
.hero-search .form-control:focus {
  border-color: var(--immo-primary);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.12);
  background-color: #ffffff;
}

.hero-search .form-select option {
  background: #ffffff;
  color: var(--immo-dark);
}

.hero-search .btn-immo {
  border-radius: 50px;
  height: 48px;
  width: 100%;
}

/* --- Quick Filters (Horizontal Scroll Pills) --- */
.quick-filters {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 1rem 0 1.5rem;
  scrollbar-width: none;
  justify-content: center;
  flex-wrap: wrap;
}

.quick-filters::-webkit-scrollbar {
  display: none;
}

.quick-filter-pill {
  flex-shrink: 0;
  scroll-snap-align: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.5rem 1.25rem;
  background: #ffffff;
  border: 2px solid #E8E6F0;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--immo-dark);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(108, 92, 231, 0.04);
}

.quick-filter-pill:hover,
.quick-filter-pill.active {
  background: var(--immo-primary);
  color: #ffffff;
  border-color: var(--immo-primary);
  box-shadow: 0 4px 12px rgba(108, 92, 231, 0.2);
  transform: translateY(-1px);
}

.quick-filter-pill i {
  font-size: 1rem;
}

/* --- Section Titles --- */
.section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--immo-dark);
  text-transform: none;
  letter-spacing: -0.01em;
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: var(--immo-primary);
  border-radius: 50%;
}

/* --- Search Card (propiedades page) --- */
.search-card {
  background: #ffffff;
  border: none;
  border-radius: var(--immo-radius-lg);
  box-shadow: var(--immo-shadow);
  padding: 1.75rem;
}

.search-card h4 {
  color: var(--immo-dark) !important;
  font-family: var(--font-heading);
}

.search-card h4 i {
  color: var(--immo-primary) !important;
}

/* --- Form Controls (Global) --- */
.form-select,
.form-control {
  background-color: #ffffff;
  border: 2px solid #E8E6F0;
  color: var(--immo-dark);
  border-radius: 50px;
  height: 46px;
  font-size: 0.9rem;
  padding-left: 1.25rem;
  transition: all 0.25s ease;
}

.form-select:focus,
.form-control:focus {
  border-color: var(--immo-primary);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.12);
  background-color: rgba(108, 92, 231, 0.03);
  color: var(--immo-dark);
}

.form-select option {
  background: #ffffff;
  color: var(--immo-dark);
}

.form-floating label {
  color: var(--immo-text-muted);
}

/* --- Buttons --- */
.btn-immo {
  background: var(--immo-primary);
  color: #ffffff;
  border: none;
  border-radius: 50px;
  padding: 0.7rem 2rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: none;
  letter-spacing: 0;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(108, 92, 231, 0.25);
}

.btn-immo:hover {
  background: var(--immo-primary-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108, 92, 231, 0.35);
}

.btn-immo-outline {
  background: transparent;
  color: var(--immo-primary);
  border: 2px solid var(--immo-primary);
  border-radius: 50px;
  padding: 0.7rem 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-immo-outline:hover {
  background: var(--immo-primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(108, 92, 231, 0.25);
}

/* --- Property Cards --- */
.property-card {
  background: var(--immo-card-bg);
  border: none;
  border-radius: var(--immo-radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(108, 92, 231, 0.06);
  transition: all 0.35s ease;
  position: relative;
  height: 100%;
}

.property-card::before {
  display: none;
}

.property-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(108, 92, 231, 0.18);
}

/* Colored shadow on hover based on badge color */
.property-card.card-alquiler:hover {
  box-shadow: 0 12px 32px rgba(108, 92, 231, 0.22);
}

.property-card.card-venta:hover {
  box-shadow: 0 12px 32px rgba(0, 210, 211, 0.22);
}

.property-card .card-img-container {
  position: relative;
  overflow: hidden;
  height: 180px;
  border-radius: var(--immo-radius) var(--immo-radius) 0 0;
}

.property-card .card-img-container .carousel,
.property-card .card-img-container .carousel-inner,
.property-card .card-img-container .carousel-item {
  height: 100%;
}

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

.property-card:hover .card-img-container img {
  transform: scale(1.05);
}

/* Badge — pill inside card body */
.property-badge {
  display: inline-block;
  padding: 0.25rem 0.85rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: static;
  margin-bottom: 0.5rem;
}

.property-badge.badge-alquiler {
  background: rgba(108, 92, 231, 0.1);
  color: var(--immo-primary);
}

.property-badge.badge-venta {
  background: rgba(0, 210, 211, 0.1);
  color: var(--immo-secondary);
}

/* Price */
.property-price {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--immo-dark);
  position: static;
  background: transparent;
  padding: 0;
  border-radius: 0;
  display: inline;
  margin-left: 0.5rem;
}

/* Card body */
.card-body {
  padding: 1.15rem 1.25rem;
}

.card-title {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--immo-dark);
  font-size: 1rem;
  margin-top: 0.25rem;
}

.property-location {
  color: var(--immo-text-muted);
  font-size: 0.85rem;
}

.property-location i {
  color: var(--immo-primary);
}

/* Property features with colored icon circles */
.property-features {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.property-features span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--immo-text-muted);
  font-size: 0.8rem;
}

.property-features .feature-icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 0.65rem;
}

.property-features .feature-icon-circle.icon-beds {
  background: rgba(108, 92, 231, 0.1);
  color: var(--immo-primary);
}

.property-features .feature-icon-circle.icon-area {
  background: rgba(0, 210, 211, 0.1);
  color: var(--immo-secondary);
}

.property-features .feature-icon-circle.icon-baths {
  background: rgba(253, 121, 168, 0.1);
  color: var(--immo-accent);
}

/* Fav button */
.fav-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
  z-index: 3;
}

.fav-btn i {
  font-size: 1rem;
  color: var(--immo-dark);
  transition: all 0.3s ease;
}

.fav-btn:hover {
  background: #ffffff;
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.fav-btn.active i,
.fav-btn:hover i {
  color: var(--immo-accent);
}

.fav-btn.active {
  background: #ffffff;
}

/* Fav bounce animation */
@keyframes fav-bounce {
  0%   { transform: scale(1); }
  25%  { transform: scale(1.3); }
  50%  { transform: scale(0.9); }
  75%  { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.fav-btn.bounce i {
  animation: fav-bounce 0.5s ease;
}

/* Carousel dots */
.carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 2;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background: #ffffff;
  width: 18px;
  border-radius: 50px;
}

/* --- Detail Page --- */
.detail-info-card {
  background: var(--immo-card-bg);
  border: none;
  border-radius: var(--immo-radius);
  box-shadow: var(--immo-shadow-sm);
}

.detail-info-card h3 {
  font-family: var(--font-heading);
  color: var(--immo-dark);
}

.detail-price {
  font-family: var(--font-heading);
  color: var(--immo-primary) !important;
  font-size: 1.8rem;
  font-weight: 700;
}

.detail-section-title {
  color: var(--immo-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  text-transform: none;
  letter-spacing: 0;
}

.detail-features .feature-item {
  color: var(--immo-dark);
}

.detail-features .feature-item i {
  color: var(--immo-primary);
}

.detail-carousel .carousel-item img {
  border-radius: var(--immo-radius) !important;
}

.map-container iframe {
  border-radius: var(--immo-radius);
}

/* --- Share bar --- */
.share-btn {
  border-radius: 50px;
  background: #ffffff;
  border: 2px solid #E8E6F0;
  color: var(--immo-dark);
  transition: all 0.25s ease;
}

.share-btn:hover {
  background: var(--immo-primary);
  border-color: var(--immo-primary);
  color: #ffffff;
}

/* --- Not Available Banner --- */
.not-available-banner {
  background: var(--immo-card-bg);
  border: none;
  border-radius: var(--immo-radius-lg);
  box-shadow: var(--immo-shadow);
}

.not-available-banner h2 {
  color: var(--immo-dark);
}

/* --- WhatsApp Button --- */
.btn-whatsapp {
  border-radius: 50px;
}

/* --- Pagination --- */
.pagination .page-link {
  background: #ffffff;
  border-color: #E8E6F0;
  color: var(--immo-dark);
  border-radius: 50px;
  margin: 0 3px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.pagination .page-item.active .page-link {
  background: var(--immo-primary);
  border-color: var(--immo-primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(108, 92, 231, 0.25);
}

.pagination .page-link:hover {
  background: var(--immo-primary-light);
  color: var(--immo-primary);
  border-color: var(--immo-primary);
}

/* --- Footer --- */
.footer-immo {
  background: var(--immo-dark);
  border-top: none;
  color: rgba(255, 255, 255, 0.7);
}

.footer-immo h5 {
  font-family: var(--font-heading);
  color: #ffffff;
  font-weight: 700;
}

.footer-immo a {
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.25s ease;
}

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

.footer-social a {
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.footer-social a:hover {
  background: var(--immo-primary);
  border-color: var(--immo-primary);
  color: #ffffff;
}

.footer-bottom {
  border-top-color: rgba(255, 255, 255, 0.08);
}

/* --- Toggle filters --- */
.btn-toggle-filters {
  color: var(--immo-primary);
  font-weight: 600;
  border-radius: 50px;
}

/* --- Contact Section --- */
.contact-section {
  background: #ffffff;
}

/* --- Page offset (propiedades, etc.) --- */
.page-offset {
  background: var(--immo-bg);
}

/* --- Service cards --- */
.service-card {
  background: var(--immo-card-bg);
  border: none;
  border-radius: var(--immo-radius);
  box-shadow: var(--immo-shadow-sm);
  transition: all 0.3s ease;
}

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

.service-card h5 {
  color: var(--immo-dark);
  font-family: var(--font-heading);
}

.service-icon i {
  color: var(--immo-primary);
}

/* --- View toggle --- */
.btn-outline-secondary {
  border-color: #E8E6F0;
  color: var(--immo-text-muted);
  border-radius: 50px;
}

.btn-outline-secondary.active,
.btn-outline-secondary:hover {
  background: var(--immo-primary);
  border-color: var(--immo-primary);
  color: #ffffff;
}

/* --- WhatsApp widget --- */
.wa-widget .wa-toggle {
  border-radius: 50px;
}

/* --- Animations --- */
.fade-up {
  transition-duration: 0.6s;
}

/* --- Form validated --- */
.was-validated .form-control:valid,
.was-validated .form-select:valid {
  border-color: var(--immo-secondary);
}

/* --- Responsive --- */
@media (max-width: 991px) {
  .hero {
    padding: 5rem 0 2rem;
  }

  .hero-mosaic {
    height: 200px;
    margin-top: 2rem;
  }

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

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

  .navbar-cta-publish {
    margin-top: 0.5rem;
    display: inline-block;
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 1.75rem;
  }

  .hero-mosaic {
    height: 160px;
  }

  .property-card .card-img-container {
    height: 160px;
  }
}

/* --- Servicios URBANO: cards colored shadow --- */
.servicios-urbano {
  background: linear-gradient(180deg, #ffffff 0%, #f5f3ff 100%);
}

.service-card-urbano {
  border-radius: var(--immo-radius-lg, 16px);
  border: 1px solid rgba(108, 92, 231, 0.08);
  box-shadow: 0 8px 20px rgba(108, 92, 231, 0.04);
  transition: all 0.35s ease;
}

.service-card-urbano:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(108, 92, 231, 0.18);
  border-color: rgba(108, 92, 231, 0.2);
  border-bottom: 1px solid rgba(108, 92, 231, 0.2);
}

.service-card-urbano .service-icon {
  background: var(--immo-primary-light);
  width: 80px;
  height: 80px;
}

.service-card-urbano .service-icon i {
  font-size: 2rem;
}

.service-card-urbano h5 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--immo-dark);
  text-transform: none;
  letter-spacing: 0;
  margin-top: 0.5rem;
}

/* --- Quienes Somos URBANO --- */
.about-urbano {
  background: #fafafa;
}

.about-content-urbano p {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.75;
  color: #4a4a57;
  margin-bottom: 1.25rem;
}

.about-content-urbano p strong {
  color: var(--immo-primary);
  font-weight: 600;
}

.about-image-urbano {
  border-radius: var(--immo-radius-lg, 16px);
  box-shadow: 0 20px 45px rgba(108, 92, 231, 0.18);
}
