@import url('variables.css');
@import url('header.css');
@import url('footer.css');
/* favorites-section.css */
.favorites-section {
    padding: 2rem;
    flex-shrink: 1;
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.favorites-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
}

.favorites-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.header-content {
    flex: 1;
}

.favorites-title {
    font-size: 1.8rem;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
}

.icon-title {
    color: var(--accent);
    font-size: 1.5rem;
}

.favorites-count {
    font-size: 0.95rem;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.count-bubble {
    background-color: var(--primary);
    color: var(--text-on-primary);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
}

.sort-options {
    display: flex;
    gap: 0.75rem;
}

.sort-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    background: var(--white);
    border-radius: 2rem;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.sort-btn:hover {
    background: var(--light);
}

.sort-btn.active {
    background: var(--primary);
    color: var(--text-on-primary);
    border-color: var(--primary);
}

.sort-btn i {
    font-size: 0.9rem;
}

.favorites-location-group {
    margin-bottom: 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    overflow: hidden;
}

.location-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background-color: var(--light);
    cursor: pointer;
    transition: background-color 0.3s;
}

.location-header:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

.location-title {
    font-size: 1.2rem;
    color: var(--gray-700);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.location-icon {
    color: var(--primary);
    font-size: 1.1rem;
}

.location-count {
    font-size: 0.9rem;
    color: var(--gray-500);
    font-weight: normal;
    margin-left: 0.5rem;
}

.expand-btn {
    background: none;
    border: none;
    color: var(--gray-500);
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s;
}

.expand-btn:hover {
    color: var(--gray-700);
}

.favorite-hotel {
    display: flex;
    background: var(--white);
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.favorite-hotel:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.favorite-hotel.featured {
    background: linear-gradient(to right, rgba(255, 245, 230, 0.3), rgba(255, 245, 230, 0.1));
}

.ribbon {
    position: absolute;
    top: 15px;
    right: -30px;
    background: var(--secondary);
    color: white;
    padding: 0.25rem 2.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    transform: rotate(45deg);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.hotel-main {
    display: flex;
    flex: 1;
    gap: 1.5rem;
}

.hotel-image {
    width: 180px;
    height: 150px;
    border-radius: var(--border-radius-md);
    background-size: cover;
    background-position: center;
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
}

.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--gray-500);
    transition: all 0.3s;
    z-index: 2;
}

.wishlist-btn.active {
    color: var(--accent);
}

.wishlist-btn:hover {
    transform: scale(1.1);
    color: var(--accent);
}

.image-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
}

.hotel-info {
    flex: 1;
    padding: 0;
}

.hotel-name {
    font-size: 1.2rem;
    color: var(--gray-700);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.hotel-meta {
    /* display: flex;
    flex-wrap: wrap;
    gap: 0.75rem; */
    margin-bottom: 3px;
}

.hotel-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stars {
    color: var(--secondary);
    letter-spacing: 1px;
    position: relative;
}

.empty-star {
    color: var(--gray-200);
}

.type-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius-sm);
    font-weight: 500;
}

.type-badge.hotel {
    /* background-color: #e6f2ff; */
    color: #0071c2;
}

.type-badge.resort {
    /* background-color: #fff2e6; */
    color: #ff8000;
}

.location-chip {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    color: var(--gray-500);
    /* background: var(--light); */
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
}

.location-chip i {
    font-size: 0.8rem;
}

.hotel-score {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3px;
}

.score-bubble {
    /* background: var(--primary-light); */
    color: var(--primary);
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 600;
}

.score-bubble.highlight {
    /* background: var(--secondary-light); */
    color: var(--secondary-dark);
}

.score {
    font-size: 1rem;
}

.score-label {
    font-size: 0.85rem;
}

.reviews {
    font-size: 0.85rem;
    color: var(--gray-500);
}

.hotel-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 3px;
}

.feature {
    font-size: 0.85rem;
    color: var(--gray-500);
    /* display: flex; */
    align-items: center;
    gap: 0.25rem;
    /* background: var(--light); */
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
}

.feature i {
    font-size: 0.8rem;
    color: var(--primary);
}

.price-action {
    width: 220px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    padding-left: 1.5rem;
    border-left: 1px dashed var(--border-color);
    flex-shrink: 0;
}

.price-notice {
    font-size: 0.85rem;
    color: var(--gray-500);
    text-align: right;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    justify-content: flex-end;
}

.price-notice i {
    color: var(--primary);
}

.price-comparison {
    text-align: right;
    margin-bottom: 0.5rem;
}

.original-price {
    font-size: 0.85rem;
    color: var(--gray-500);
    text-decoration: line-through;
    display: block;
}

.current-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gray-700);
    display: block;
}

.price-save {
    font-size: 0.8rem;
    color: var(--success);
    display: block;
    font-weight: 500;
}

.price-button {
    padding: 0.75rem 1.25rem;
    background: var(--primary);
    color: var(--text-on-primary);
    border: none;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.price-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 113, 194, 0.2);
}

.pulse-animation:hover {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 113, 194, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 113, 194, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 113, 194, 0);
    }
}

.price-from {
    font-size: 0.75rem;
    font-weight: normal;
    opacity: 0.8;
}

.price-amount {
    font-size: 1.1rem;
}

.price-night {
    font-size: 0.75rem;
    font-weight: normal;
    opacity: 0.8;
}

.button-icon {
    font-size: 0.9rem;
}

.tax-info {
    font-size: 0.75rem;
    color: var(--success);
    text-align: right;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    justify-content: flex-end;
}

.tax-info i {
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .favorites-section::before {
        background: transparent;
    }
    .favorites-section {
        padding: 1.5rem;
    }
    .container-general {
        padding: 1rem !important;
        flex-direction: column;
        .none {
            display: none;
        }
        .favorites-section {
            padding: 0 !important;
            box-shadow: none;
            .favorites-location-group {
                margin-bottom: 1rem;
            }
        }
    }
    .favorites-header {
        flex-direction: column;
        gap: 1rem;
    }

    .sort-options {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }

    .favorite-hotel {
        flex-direction: column;
    }

    .hotel-main {
        flex-direction: column;
        margin-bottom: 1.5rem;
    }

    .hotel-image {
        width: 100%;
        height: 200px;
    }

    .price-action {
        width: 100%;
        padding-left: 0;
        border-left: none;
        border-top: 1px dashed var(--border-color);
        padding-top: 1.5rem;
        align-items: stretch;
    }

    .price-notice,
    .tax-info {
        justify-content: flex-start;
        text-align: left;
    }

    .ribbon {
        right: -35px;
        font-size: 0.7rem;
        padding: 0.15rem 2rem;
    }
}

@media (max-width: 480px) {
    .hotel-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hotel-score {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Agrega esto a tu CSS */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 1.5rem 1rem;
    border-radius: var(--border-radius-md);
    transition: all 0.3s;
}

.back-button:hover {
    background-color: var(--light);
    color: var(--primary-dark);
}

@media (max-width: 768px) {
    .back-container {
        padding: 0 1.5rem;
    }
}

.container-general {
    display: flex;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
}
.back-container {
    flex-shrink: 0;
}