/* Estilos para el listado de resultados de FacetWP */

/* Contador de resultados */
.results-count {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

/* Contenedor principal de resultados */
.listing-results {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
}

/* Elemento individual del listado */
.listing-item {
    display: flex;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.listing-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Contenedor de imagen */
.listing-image-container {
    position: relative;
    width: 300px;
    min-width: 300px;
    height: 220px;
    overflow: hidden;
}

.listing-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.listing-item:hover .listing-image {
    transform: scale(1.05);
}

/* Badge TOP */
.listing-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #FFA500;
    color: white;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 2;
}

/* Botón de favorito - Adaptado para el nuevo componente */
.favorite-button-wrapper {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

/* Ajustes para el botón de me gusta existente */
.wishlist-button-container {
    margin: 0;
}

.add-to-wishlist-button {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: rgba(255, 255, 255, 0.8) !important;
    border: none !important;
    cursor: pointer !important;
}

.add-to-wishlist-button:hover {
    background-color: #fff !important;
}

.add-to-wishlist-button svg {
    margin-right: 0 !important;
    width: 20px !important;
    height: 20px !important;
}

.add-to-wishlist-button .button-text {
    display: none !important;
}

/* Ocultar el tooltip en el listado */
.listing-item .login-tooltip {
    display: none !important;
}

/* Navegación de imágenes (puntos) */
.image-navigation {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 2;
}

.nav-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.2s;
}

.nav-dot.active {
    background-color: #fff;
}

/* Contenido del listado */
.listing-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

/* Título del listado */
.listing-title {
    margin: 0 0 10px 0;
    font-size: 22px;
    font-weight: 600;
}

.listing-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.listing-title a:hover {
    color: #0066cc;
}

/* Calificación */
.listing-rating {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: #666;
    font-size: 14px;
}

.star-icon {
    color: #FFA500;
    margin-right: 5px;
    font-size: 16px;
}

/* Estilos para el sistema de rating con estrellas */
.star-rating {
    color: #ffb300;
    font-size: 16px;
    margin-right: 5px;
    letter-spacing: 2px;
}

.rating-number {
    font-weight: 600;
    color: #333;
    margin-right: 5px;
}

.rating-count {
    color: #888;
    font-size: 13px;
}

/* Descripción */
.listing-description {
    margin-bottom: 15px;
    color: #555;
    font-size: 14px;
    line-height: 1.5;
    flex-grow: 1;
}

/* Detalles (precio, capacidad) */
.listing-details {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #555;
}

.price-info, .capacity-info {
    display: flex;
    align-items: center;
}

.price-icon, .capacity-info {
    margin-right: 5px;
}

/* Iconos específicos */
.price-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="12" y1="1" x2="12" y2="23"></line><path d="M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6"></path></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.capacity-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="9" cy="7" r="4"></circle><path d="M23 21v-2a4 4 0 0 0-3-3.87"></path><path d="M16 3.13a4 4 0 0 1 0 7.75"></path></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Acciones (botón de solicitar presupuesto) */
.listing-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Estilos para el checkbox de presupuesto */
.budget-checkbox-container {
    flex-grow: 1;
    margin-right: 15px;
}

.budget-checkbox {
    display: none;
}

.budget-checkbox-label {
    display: inline-block;
    background-color: #ff5a5f;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s;
    cursor: pointer;
    text-align: center;
    width: 100%;
}

.budget-checkbox-label:hover {
    background-color: #ff4146;
}

.budget-checkbox:checked + .budget-checkbox-label {
    background-color: #45a049;
}

/* Botón flotante de solicitar presupuesto */
.budget-request-button {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #FF8C00;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    z-index: 9999999;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, transform 0.3s;
}

.budget-request-button:hover {
    background-color: #FF7F00;
    transform: translateX(-50%) translateY(-3px);
}

/* Tiempo de respuesta */
.response-time {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #666;
}

.time-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 5px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M13 2L3 14h9l-1 8 10-12h-9l1-8z"></path></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Mensaje de no resultados */
.no-results {
    padding: 30px;
    text-align: center;
    background-color: #f9f9f9;
    border-radius: 8px;
    color: #666;
    font-size: 16px;
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .listing-item {
        flex-direction: column;
    }
    
    .listing-image-container {
        width: 100%;
        height: 200px;
    }
    
    .listing-content {
        padding: 15px;
    }
    
    .listing-actions {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .budget-checkbox-container {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .response-time {
        align-self: flex-start;
    }
} 