/**
 * Featured Rooms Section Styles
 */

/* Section Container */
.featured-rooms-section {
    position: relative;
    width: 100%;
    padding: 80px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.featured-rooms-section .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Header */
.featured-rooms-section .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.featured-rooms-section .section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.featured-rooms-section .section-header p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Rooms Grid */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    max-width: 100%;
}

/* Limit to 4 columns max on very large screens */
@media (min-width: 1600px) {
    .rooms-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Room Card */
.room-card {
    position: relative;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.room-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-8px);
}

/* Room Image */
.room-image {
    position: relative;
    width: 100%;
    padding-bottom: 75%;
    /* 4:3 aspect ratio */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.room-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-image: inherit;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.room-card:hover .room-image::before {
    transform: scale(1.1);
}

/* Image Overlay */
.room-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.1) 50%,
            rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

/* Wishlist Button */
.wishlist-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.wishlist-btn:hover {
    background: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.wishlist-btn:active {
    transform: scale(0.95);
}

/* Heart Icon */
.heart-icon {
    width: 24px;
    height: 24px;
    color: #666;
    transition: color 0.3s ease;
}

.heart-outline {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.heart-filled {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wishlist-btn:hover .heart-icon {
    color: #FF5B00;
}

/* Active/Favorited State */
.wishlist-btn.active .heart-icon {
    color: #FF5B00;
}

.wishlist-btn.active .heart-outline {
    opacity: 0;
}

.wishlist-btn.active .heart-filled {
    opacity: 1;
}

/* Room Details */
.room-details {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

/* Room Header */
.room-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.room-name {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
}

.room-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: #666;
}

.room-type {
    font-weight: 600;
    color: #FF5B00;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.75rem;
}

.meta-separator {
    color: #ccc;
}

.room-location {
    color: #666;
}

/* Room Info */
.room-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.room-beds {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.875rem;
}

.room-beds svg {
    color: #999;
}

/* Room Price */
.room-price {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 4px;
}

.price-amount {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 700;
    color: #FF5B00;
    line-height: 1;
}

.price-label {
    font-size: 0.75rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Book Button */
.book-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    background: #FF5B00;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-top: auto;
}

.book-btn:hover {
    background: #e54f00;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 91, 0, 0.3);
}

.book-btn:active {
    transform: translateY(0);
}

.book-btn svg {
    transition: transform 0.3s ease;
}

.book-btn:hover svg {
    transform: translateX(4px);
}

/* Responsive Styles */

/* Tablet: 2 columns */
@media (max-width: 1024px) {
    .featured-rooms-section {
        padding: 60px 0;
    }

    .featured-rooms-section .section-header {
        margin-bottom: 40px;
    }

    .rooms-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .room-details {
        padding: 20px;
    }
}

/* Mobile: 1 column */
@media (max-width: 768px) {
    .featured-rooms-section {
        padding: 50px 0;
    }

    .featured-rooms-section .section-header {
        margin-bottom: 30px;
    }

    .rooms-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .room-card {
        max-width: 100%;
    }

    .room-details {
        padding: 20px;
        gap: 14px;
    }

    .room-info {
        padding: 14px 0;
    }

    .wishlist-btn {
        width: 40px;
        height: 40px;
        top: 12px;
        right: 12px;
    }

    .heart-icon {
        width: 20px;
        height: 20px;
    }
}

/* Small mobile adjustments */
@media (max-width: 480px) {
    .featured-rooms-section .container {
        padding: 0 16px;
    }

    .rooms-grid {
        gap: 20px;
    }

    .room-details {
        padding: 16px;
    }

    .book-btn {
        padding: 12px 20px;
        font-size: 0.8125rem;
    }
}

/* Performance Optimizations */
@media (prefers-reduced-motion: reduce) {

    .room-card,
    .room-image::before,
    .wishlist-btn,
    .heart-icon,
    .heart-outline,
    .heart-filled,
    .book-btn,
    .book-btn svg {
        transition: none;
    }

    .room-card:hover {
        transform: none;
    }

    .room-card:hover .room-image::before {
        transform: none;
    }

    .book-btn:hover {
        transform: none;
    }

    .book-btn:hover svg {
        transform: none;
    }
}

/* Print styles */
@media print {
    .wishlist-btn {
        display: none;
    }

    .room-card {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
}

/* Focus styles for accessibility */
.wishlist-btn:focus-visible,
.book-btn:focus-visible {
    outline: 3px solid #FF5B00;
    outline-offset: 2px;
}

/* Loading state (optional) */
.room-card.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Empty state */
.rooms-grid:empty::after {
    content: 'No rooms available at the moment.';
    display: block;
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 1.125rem;
}