/* ========================================
   TARJETA ESTABLECIMIENTO - te-*
   ======================================== */

.te-wrapper {
  padding: 0;
  background: none;
  border-radius: 18px;
  position: relative;
}

.te-card {
  background: none;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: none;
  display: block;
  position: relative;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}

.te-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  color: inherit;
  text-decoration: none;
}

.te-img-container {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: 15px 15px 0 0;
  overflow: hidden;
  pointer-events: none;
}

.te-header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.6rem 0.8rem;
  background: transparent;
  z-index: 10;
  pointer-events: none;
}

.te-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0;
  margin: 0;
  max-width: calc(100% - 50px);
  pointer-events: none;
}

.te-tipo {
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.te-separador {
  display: none;
}

.te-actions {
  position: absolute;
  top: 0.6rem;
  right: 0.8rem;
  z-index: 100;
}

.te-menu-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: none;
  color: white;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
  font-size: 1.1rem;
}

.te-menu-btn:hover {
  transform: scale(1.1);
  background: none;
}

.te-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  min-width: 150px;
  padding: 8px 0;
  display: none;
  z-index: 100;
}

.te-dropdown-menu.show {
  display: block;
}

.te-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: #374151;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.te-dropdown-item:hover {
  background: #f3f4f6;
}

.te-dropdown-item i {
  width: 18px;
  text-align: center;
}

.te-dropdown-item.edit i {
  color: #10b981;
}

.te-dropdown-item.share i {
  color: #3b82f6;
}

.te-dropdown-item.delete {
  color: #ef4444;
}

.te-dropdown-item.delete:hover {
  background: #fef2f2;
}

.te-nombre {
  color: white;
  font-size: 1rem;
  font-weight: 700;
  white-space: normal;
  overflow: visible;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.te-img-wrapper {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e8ecef 0%, #d1d8de 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #9ca3af;
  overflow: hidden;
  pointer-events: none;
}

.te-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  pointer-events: none;
}

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

.te-no-image {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.te-info-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.6rem 0.8rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, transparent 100%);
  z-index: 10;
  pointer-events: none;
}

.te-info-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.te-info-item {
  font-size: 0.75rem;
  color: white;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.te-info-item i {
  opacity: 0.8;
  color: #60a5fa;
}

.te-info-item strong {
  font-weight: 600;
}

.te-content {
  padding: 0;
  margin: 0;
}

.te-stats {
  padding: 0.4rem 0.8rem;
  margin: 0;
  background: var(--tema-fondo-hover, #f8f9fa);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.te-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: #4b5563;
  background: white;
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.te-stat i {
  color: var(--tema-primario-oscuro, #4169e1);
  font-size: 0.75rem;
}

.te-amenities {
  padding: 0.4rem 0.8rem;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.te-amenity {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #f0f7ff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tema-primario-oscuro, #4169e1);
  font-size: 0.85rem;
  transition: all 0.2s;
  border: 1px solid #d4edff;
}

.te-amenity:hover {
  background: var(--tema-primario-oscuro, #4169e1);
  color: #fff;
  transform: translateY(-2px);
}

.te-location-footer {
  padding: 0.5rem 0.8rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--tema-primario, #1e90ff);
  font-size: 0.78rem;
  background: #f8fafc;
  border-top: none;
}

.te-location-footer i {
  color: var(--tema-primario-oscuro, #4169e1);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.te-location-footer span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.te-footer {
  padding: 0.8rem 1rem;
  border-top: 1px solid #e9ecef;
  margin-top: auto;
}

.te-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.te-btn-primary {
  background: linear-gradient(135deg, var(--tema-primario-oscuro, #4169e1), var(--tema-primario, #1e90ff));
  color: white;
}

.te-btn-primary:hover {
  background: var(--tema-gradiente-primario, linear-gradient(135deg, #1e90ff, #4169e1));
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(65, 105, 225, 0.35);
}

@media (max-width: 576px) {
  .te-img-container { height: 180px; }
  .te-header-overlay, .te-info-overlay { padding: 0.4rem 0.6rem; }
  .te-label { padding: 0; }
  .te-tipo { font-size: 0.6rem; }
  .te-nombre { font-size: 0.75rem; }
  .te-info-item { font-size: 0.7rem; }
  .te-amenity { width: 26px; height: 26px; font-size: 0.7rem; }
  .te-stats { padding: 0.3rem 0.6rem; }
  .te-stat { padding: 0.25rem 0.5rem; font-size: 0.7rem; }
  .te-location-footer { padding: 0.4rem 0.6rem; font-size: 0.72rem; }
}

/* ========================================
   TARJETA HABITACIÓN - th-*
   ======================================== */

.th-wrapper {
  padding: 10px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-radius: 18px;
  position: relative;
}

.th-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border-left: 4px solid var(--tema-primario, #1e90ff);
  height: 100%;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.th-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  color: inherit;
  text-decoration: none;
}

.th-card-disabled {
  cursor: not-allowed;
  opacity: 0.7;
  filter: grayscale(30%);
}

.th-card-disabled:hover {
  transform: none;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.th-img-container {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.th-header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.6rem 0.8rem;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
  z-index: 2;
}

.th-room-number {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, var(--tema-primario, #1e90ff), #0ea5e9);
  color: white;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.35rem 0.8rem;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(30, 144, 255, 0.4);
}

.th-room-number i {
  font-size: 0.8rem;
}

.th-status {
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.th-status-activa {
  background: rgba(40, 167, 69, 0.9);
  color: white;
}

.th-status-ocupada {
  background: rgba(255, 87, 34, 0.9);
  color: white;
}

.th-status-inactiva {
  background: rgba(220, 53, 69, 0.9);
  color: white;
}

.th-status-mantenimiento {
  background: rgba(255, 193, 7, 0.9);
  color: #333;
}

.th-img-wrapper {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e3f2fd 0%, #f0f7ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.th-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.th-no-image {
  color: #90caf9;
  font-size: 3rem;
}

.th-info-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.6rem 0.8rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, transparent 100%);
  z-index: 2;
}

.th-info-row {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.th-info-item {
  font-size: 0.75rem;
  color: white;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.th-info-item i {
  opacity: 0.8;
}

.th-info-item strong {
  font-weight: 600;
}

.th-mini-precio {
  display: none;
}

.th-precio-valor {
  font-weight: 700;
  color: white;
  font-size: 0.85rem;
}

.th-precio-valor small {
  font-weight: 400;
  font-size: 0.6rem;
  opacity: 0.8;
  margin-left: 2px;
}

.tarjeta-carousel.th-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.tarjeta-carousel .carousel-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.tarjeta-carousel .carousel-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.tarjeta-carousel .carousel-item.active {
  opacity: 1;
  pointer-events: auto;
}

.tarjeta-carousel .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tarjeta-carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  cursor: pointer;
}

.carousel-control-prev.tarjeta-carousel-control {
  left: 8px;
}

.carousel-control-next.tarjeta-carousel-control {
  right: 8px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.carousel-control-prev-icon {
  transform: rotate(-135deg);
}

.carousel-control-next-icon {
  transform: rotate(45deg);
}

.tarjeta-carousel-counter {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 4;
  padding: 0.2rem 0.45rem;
  border-radius: 10px;
  font-size: 0.65rem;
  font-weight: 600;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
}

.th-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.th-details {
  padding: 0.8rem 1rem;
  background: var(--tema-fondo-hover, #f8f9fa);
}

.th-detail-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.3rem;
  font-size: 0.85rem;
}

.th-detail-label {
  font-weight: 600;
  color: var(--tema-texto-secundario, #495057);
}

.th-detail-value {
  color: var(--tema-primario, #1e90ff);
  font-weight: 500;
}

.th-property {
  padding: 0.6rem 1rem;
  background: #e8f4fc;
  border-top: 1px solid #d4edff;
}

.th-property-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--tema-texto-primario, #2c3e50);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.th-property-name i {
  color: var(--tema-primario, #1e90ff);
}

.th-property-location {
  font-size: 0.75rem;
  color: var(--tema-texto-silenciado, #6c757d);
  margin-top: 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.th-amenities {
  padding: 0.6rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.th-amenity {
  background: #f0f7ff;
  color: var(--tema-primario, #1e90ff);
  border: 1px solid #d4edff;
  padding: 0.2rem 0.5rem;
  border-radius: 15px;
  font-size: 0.7rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.th-footer {
  padding: 0.8rem 1rem;
  border-top: 1px solid #e9ecef;
  margin-top: auto;
}

.th-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.th-btn-primary {
  background: var(--tema-gradiente-primario, linear-gradient(135deg, #1e90ff, #4169e1));
  color: white;
}

.th-btn-primary:hover {
  background: linear-gradient(135deg, var(--tema-primario-oscuro, #4169e1), var(--tema-primario, #1e90ff));
  color: white;
  transform: translateY(-2px);
}

@media (max-width: 576px) {
  .th-wrapper {
    padding: 0;
    border-radius: 16px;
    background: transparent;
    overflow: hidden;
  }

  .th-card {
    border-radius: 16px;
    border-left: none;
    overflow: hidden;
  }

  .th-img-container {
    height: 200px;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
  }

  .th-wrapper .tarjeta-carousel {
    border-radius: 16px 16px 0 0;
    overflow: hidden;
  }

  .th-wrapper .carousel-inner {
    border-radius: 16px 16px 0 0;
  }

  .th-header-overlay,
  .th-info-overlay {
    padding: 0.5rem;
  }

  .th-room-number {
    font-size: 0.95rem;
  }

  .th-info-item {
    font-size: 0.7rem;
  }

  .th-content {
    padding: 0;
    border-radius: 0 0 16px 16px;
  }

  .th-details {
    padding: 0.6rem 0.8rem;
  }
}
