/* === 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(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: #333;
}

.rental-type {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.rental-location {
    color: #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: #1e90ff;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.rental-rooms {
    background: #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: #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 */
    .rental-grid.row,
    #roomsContainer.row,
    .row.g-3,
    .row.g-4 {
        --bs-gutter-x: 0;
        --bs-gutter-y: 0.5rem;
        margin-left: 0;
        margin-right: 0;
    }
    
    /* Columnas sin padding */
    .rental-grid > [class*="col-"],
    #roomsContainer > [class*="col-"],
    .row.g-3 > [class*="col-"],
    .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;
    }
    
    /* Search filters full width */
    .search-filters {
        border-radius: 0;
        padding: 1rem;
        margin: 0;
        width: 100%;
    }
    
    /* Header mantiene bordes redondeados y márgenes */
    .header-pagina-rentas {
        margin: 0.5rem 1rem 1rem;
        border-radius: 12px;
    }
    
    /* Rental cards full width */
    .rental-card {
        border-radius: 0;
        margin-bottom: 0.5rem;
    }
}