/* === ESTILOS PARA LISTA DE RENTAS TEMPORALES === */

.rentals-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.rental-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rental-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

/* Tarjetas clicables - efecto hover */
.rental-card a {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.rental-card .rental-property-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rental-card:hover .rental-property-card {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(var(--tema-primario-rgb, 30, 144, 255), 0.2);
}

.rental-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.rental-content {
    padding: 1.5rem;
}

.rental-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--tema-primario, var(--tema-primario, #1e90ff));
}

.rental-type {
    color: var(--tema-texto-silenciado, #6c757d);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.rental-location {
    color: var(--tema-texto-silenciado, #6c757d);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.rental-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.amenity-badge {
    background: #e1f2ff;
    color: var(--tema-primario, #1e90ff);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.rental-rooms {
    background: var(--tema-fondo-hover, #f8f9fa);
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.rental-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
}

.search-filters {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.no-rentals {
    text-align: center;
    padding: 3rem;
    color: var(--tema-texto-silenciado, #6c757d);
}

.no-rentals i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #dee2e6;
}

/* === ESTILOS PARA CAROUSEL DE RENTAL === */
.rental-carousel {
    height: 250px;
    overflow: hidden;
}

.rental-carousel .carousel-inner {
    height: 100%;
    border-radius: 0;
}

.rental-carousel .carousel-item {
    height: 250px;
}

.rental-hero-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.rental-property-card:hover .rental-hero-image {
    transform: scale(1.05);
}

/* Controles del carousel para rentals */
.rental-carousel-control {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 15%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.rental-image-wrapper:hover .rental-carousel-control {
    opacity: 0.8;
}

.rental-carousel-control:hover {
    opacity: 1;
}

.rental-carousel-control .carousel-control-prev-icon,
.rental-carousel-control .carousel-control-next-icon {
    width: 25px;
    height: 25px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    padding: 5px;
}

/* Contador de imágenes para rentals */
.rental-image-counter {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 4px;
}

.rental-image-counter i {
    font-size: 0.7rem;
}

/* === RESPONSIVE: TARJETAS FULL WIDTH EN MÓVIL === */
@media (max-width: 576px) {
    /* Container sin padding */
    .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Filas sin gutters - SOLO EN PÁGINAS DE RENTAS */
    .rental-page .rental-grid.row,
    .rental-page #roomsContainer.row,
    .rental-page .row.g-3,
    .rental-page .row.g-4 {
        --bs-gutter-x: 0;
        --bs-gutter-y: 0.5rem;
        margin-left: 0;
        margin-right: 0;
    }
    
    /* Columnas sin padding - SOLO EN PÁGINAS DE RENTAS */
    .rental-page .rental-grid > [class*="col-"],
    .rental-page #roomsContainer > [class*="col-"],
    .rental-page .row.g-3 > [class*="col-"],
    .rental-page .row.g-4 > [class*="col-"] {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Room cards sin margin bottom */
    .room-card {
        margin-bottom: 0.5rem !important;
    }
    
    /* Header mantiene bordes redondeados y márgenes */
    .header-pagina-rentas {
        margin: 0.5rem 0.5rem 1rem;
        border-radius: 12px;
    }
    
    /* Rental cards full width */
    .rental-card {
        border-radius: 0;
        margin-bottom: 0.5rem;
    }
}

/* ============================================
   SOPORTE DE TEMAS - NOCTURNO
   ============================================ */
html[data-tema="nocturno"] .rental-card {
    background: var(--tema-fondo-tarjeta, rgba(22, 27, 34, 0.95));
    border: 1px solid rgba(var(--tema-primario-rgb, 30, 144, 255), 0.2);
}

html[data-tema="nocturno"] .rental-content {
    background: var(--tema-fondo-tarjeta, rgba(22, 27, 34, 0.95));
}

html[data-tema="nocturno"] .rental-title {
    color: var(--tema-primario, var(--tema-primario, #1e90ff));
}

html[data-tema="nocturno"] .rental-type,
html[data-tema="nocturno"] .rental-location {
    color: #adb5bd;
}

html[data-tema="nocturno"] .amenity-badge {
    background: rgba(var(--tema-primario-rgb, 30, 144, 255), 0.15);
    color: var(--tema-primario, var(--tema-primario, #1e90ff));
    border: 1px solid rgba(var(--tema-primario-rgb, 30, 144, 255), 0.3);
}

html[data-tema="nocturno"] .rental-rooms {
    background: rgba(var(--tema-primario-rgb, 30, 144, 255), 0.1);
    border: 1px solid rgba(var(--tema-primario-rgb, 30, 144, 255), 0.2);
}

html[data-tema="nocturno"] .rental-footer {
    border-color: rgba(var(--tema-primario-rgb, 30, 144, 255), 0.2);
}

/* ============================================
   SOPORTE DE TEMAS - FUTURISTA
   ============================================ */
html[data-tema="futurista"] .rental-card {
    background: var(--tema-fondo-tarjeta, rgba(0, 20, 40, 0.9));
    border: 1px solid rgba(0, 247, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 247, 255, 0.1);
}

html[data-tema="futurista"] .rental-card:hover {
    box-shadow: 0 0 30px rgba(0, 247, 255, 0.25);
    border-color: rgba(0, 247, 255, 0.5);
}

html[data-tema="futurista"] .rental-content {
    background: transparent;
}

html[data-tema="futurista"] .rental-title {
    color: #00f7ff;
    text-shadow: 0 0 8px rgba(0, 247, 255, 0.3);
}

html[data-tema="futurista"] .rental-type,
html[data-tema="futurista"] .rental-location {
    color: rgba(0, 247, 255, 0.7);
}

html[data-tema="futurista"] .amenity-badge {
    background: rgba(0, 247, 255, 0.1);
    color: #00f7ff;
    border: 1px solid rgba(0, 247, 255, 0.3);
}

html[data-tema="futurista"] .rental-rooms {
    background: rgba(0, 247, 255, 0.08);
    border: 1px solid rgba(0, 247, 255, 0.2);
}

html[data-tema="futurista"] .rental-footer {
    border-color: rgba(0, 247, 255, 0.2);
}

html[data-tema="futurista"] .no-rentals i {
    color: #00f7ff;
}