/* Efectos de transición globales */
.transition-all {
  transition: all 0.3s ease !important;
}

.hover-lift:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

/* Hero section */
.apartment-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.min-vh-50 {
  min-height: 50vh;
}

.text-shadow {
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Botón de volver atrás */
.back-btn {
  background: linear-gradient(135deg, #0d6efd, #6610f2);
  border: none;
  transition: all 0.3s ease;
  animation: float 3s ease-in-out infinite;
}

.back-btn:hover {
  background: linear-gradient(135deg, #0b5ed7, #520dc2);
  transform: translateY(-3px) scale(1.05);
}

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

/* Glassmorphism effects */
.backdrop-blur {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Pestañas modernas */
.modern-tabs .nav-link {
  background: transparent;
  border: 2px solid transparent;
  color: #6c757d;
  margin: 0 0.25rem;
  transition: all 0.3s ease;
}

.modern-tabs .nav-link:hover {
  background: rgba(13, 110, 253, 0.1);
  color: #0d6efd;
  transform: translateY(-2px);
}

.modern-tabs .nav-link.active {
  background: linear-gradient(135deg, #0d6efd, #6610f2);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

/* Carrusel mejorado */
.carousel-image {
  transition: transform 0.3s ease;
}

.carousel-item:hover .carousel-image {
  transform: scale(1.02);
}

.control-icon {
  transition: all 0.3s ease;
}

.control-icon:hover {
  background: rgba(0, 0, 0, 0.8) !important;
  transform: scale(1.1);
}

/* Secciones */
.section-title {
  position: relative;
  padding-bottom: 0.5rem;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(135deg, #0d6efd, #6610f2);
  border-radius: 2px;
}

/* Tarjetas de características */
.characteristic-item,
.service-item,
.bed-item,
.rule-item {
  transition: all 0.3s ease;
}

.characteristic-item:hover,
.service-item:hover,
.bed-item:hover,
.rule-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
}

/* Mapa */
.map-container {
  position: relative;
  overflow: hidden;
}

.map-iframe {
  transition: all 0.3s ease;
}

.map-container:hover .map-iframe {
  transform: scale(1.02);
}

/* Formulario de reserva */
.reservation-form-content .form-control:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
  transform: translateY(-2px);
}

/* Calendario */
.calendar-wrapper {
  transition: all 0.3s ease;
}

.calendar-wrapper:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
}

/* Animaciones de entrada */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Responsive */
@media (max-width: 768px) {
  .apartment-hero {
    min-height: 50vh;
    padding: 1rem 0;
  }
  
  .hero-info h1 {
    font-size: 1.5rem !important;
  }
  
  .hero-info p {
    font-size: 0.9rem;
  }
  
  .quick-info {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .quick-info-item {
    font-size: 0.85rem;
    padding: 0.5rem;
  }
  
  .price-card {
    margin-top: 1.5rem;
    padding: 1rem;
  }
  
  .price-card h3 {
    font-size: 1.5rem !important;
  }
  
  .back-button-container {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    margin: 0 !important;
    z-index: 1000;
  }
  
  .modern-tabs {
    flex-direction: column;
    overflow-x: auto;
  }
  
  .modern-tabs .nav-link {
    margin: 0.25rem 0;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }
  
  /* Galería de imágenes más pequeña */
  .apartment-gallery img {
    height: 200px !important;
  }
  
  /* Calendario más compacto */
  #calendar {
    font-size: 0.8rem;
  }
  
  /* Servicios en grid más compacto */
  .services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
  }
  
  .service-item {
    padding: 0.5rem !important;
    font-size: 0.85rem;
  }
  
  /* Mapa responsive */
  #map {
    height: 250px !important;
  }
}

@media (max-width: 576px) {
  .apartment-hero {
    min-height: 40vh;
  }
  
  .hero-info h1 {
    font-size: 1.3rem !important;
  }
  
  .price-card h3 {
    font-size: 1.3rem !important;
  }
  
  .btn-reserve {
    width: 100%;
    padding: 1rem;
  }
  
  .modern-tabs .nav-link {
    width: 100%;
  }
  
  /* Botón volver más pequeño */
  .back-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

/* Estados de carga */
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Efectos adicionales */
.details-card {
  animation: fadeInUp 0.8s ease-out;
}

.tab-pane {
  animation: fadeInUp 0.6s ease-out;
}

/* Mejoras en alertas */
.alert {
  border: none;
  font-weight: 500;
}

.alert-warning {
  background: linear-gradient(135deg, #fff3cd, #ffeaa7);
  color: #856404;
}

.alert-info {
  background: linear-gradient(135deg, #d1ecf1, #74b9ff);
  color: #0c5460;
}
