/**
 * Wishlist Feature Styles
 * Styling for wishlist buttons, cards, and notifications
 */

/* Wishlist Button Styles */
.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    color: #ccc;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.wishlist-btn:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.wishlist-btn.in-wishlist {
    color: #ff6b6b;
    background: rgba(255, 255, 255, 1);
}

.wishlist-btn.in-wishlist:hover {
    color: #ff5252;
    transform: scale(1.15);
}

/* Wishlist Card Styles */
.wishlist-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.wishlist-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.wishlist-card .card-image {
    position: relative;
    overflow: hidden;
    height: 200px;
    background: #f5f5f5;
}

.wishlist-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.wishlist-card:hover .card-image img {
    transform: scale(1.05);
}

.wishlist-card .card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.wishlist-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
}

.wishlist-card .category {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 10px 0;
}

.wishlist-card .description {
    font-size: 13px;
    color: #666;
    margin: 0 0 12px 0;
    line-height: 1.4;
    flex-grow: 1;
}

.wishlist-card .room-details {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #777;
    margin: 10px 0 15px 0;
}

.wishlist-card .room-details span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.wishlist-card .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0 15px 0;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.wishlist-card .price {
    font-size: 16px;
    font-weight: 700;
    color: #4A90E2;
}

.wishlist-card .added-date {
    font-size: 11px;
    color: #999;
}

.wishlist-card .btn {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 6px;
    background: linear-gradient(135deg, #4A90E2 0%, #1F4788 100%);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    display: inline-block;
}

.wishlist-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

/* Empty Wishlist Styles */
.empty-wishlist {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-wishlist i {
    font-size: 64px;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-wishlist h3 {
    font-size: 24px;
    color: #666;
    margin: 20px 0 10px 0;
}

.empty-wishlist p {
    font-size: 14px;
    color: #999;
    margin-bottom: 30px;
}

.empty-wishlist .btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #4A90E2 0%, #1F4788 100%);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.empty-wishlist .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

/* Wishlist Grid */
.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .wishlist-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .wishlist-grid {
        grid-template-columns: 1fr;
    }
}

/* Notification Styles */
.notification {
    position: fixed;
    bottom: -100px;
    right: 20px;
    padding: 16px 20px;
    border-radius: 8px;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: bottom 0.3s ease;
    z-index: 1000;
    max-width: 400px;
}

.notification.show {
    bottom: 20px;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.notification-success {
    border-left: 4px solid #28a745;
    background: #f8f9fa;
}

.notification-success i {
    color: #28a745;
}

.notification-error {
    border-left: 4px solid #dc3545;
    background: #f8f9fa;
}

.notification-error i {
    color: #dc3545;
}

.notification-warning {
    border-left: 4px solid #ffc107;
    background: #f8f9fa;
}

.notification-warning i {
    color: #ffc107;
}

.notification-info {
    border-left: 4px solid #17a2b8;
    background: #f8f9fa;
}

.notification-info i {
    color: #17a2b8;
}

/* Wishlist Count Badge */
.wishlist-count-badge {
    display: inline-block;
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff6b6b;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Room card image container positioning */
.room-card,
.room-item,
[class*="card"] {
    position: relative;
}

.room-card .card-image,
.room-item .card-image,
[class*="card"] .card-image {
    position: relative;
}

/* Fade out animation */
@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .wishlist-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
}

@media (max-width: 640px) {
    .wishlist-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}
