/* ============================================
   Room Detail Page Styles
   WITH ARROW NAVIGATION + DRAG FUNCTIONALITY
   ============================================ */

.room-detail-hero {
    height: 60vh;
}

.room-header {
    background: white;
    padding: 5rem 2rem;
    margin-top: -4rem;
    position: relative;
    z-index: 10;
}

.room-header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
}

.room-title-section h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--deep-blue);
    margin-bottom: 1rem;
}

.room-subtitle {
    font-size: 1.1rem;
    color: var(--warm-gray);
    margin-bottom: 1.5rem;
}

.room-quick-info {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.quick-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--warm-gray);
}

.room-booking-card {
    background: var(--sand);
    padding: 2rem;
    border-radius: 4px;
    text-align: center;
    min-width: 250px;
}

.room-price {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--ocean-blue);
    margin-bottom: 0.5rem;
}

.room-price-note {
    font-size: 0.85rem;
    color: var(--warm-gray);
    margin-bottom: 1.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 4px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--ocean-blue);
}

.feature-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--deep-blue);
    margin-bottom: 0.75rem;
}

.feature-description {
    font-size: 0.95rem;
    color: var(--warm-gray);
    line-height: 1.7;
}

.amenities-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: white;
    border-radius: 4px;
    font-size: 0.95rem;
}

.amenity-icon {
    color: var(--ocean-blue);
    font-size: 1.2rem;
}

.room-gallery {
    margin-top: 3rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.15);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    padding: 1.5rem 1rem 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-caption {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Lightbox styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--gold);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 3rem;
    cursor: pointer;
    padding: 1rem;
    user-select: none;
    transition: color 0.3s ease;
}

.lightbox-nav:hover {
    color: var(--gold);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .lightbox-nav {
        font-size: 2rem;
        padding: 0.5rem;
    }
    
    .lightbox-close {
        font-size: 2rem;
        top: 10px;
        right: 15px;
    }
}

.highlight-box {
    background: var(--sand);
    padding: 2rem;
    border-left: 4px solid var(--gold);
    margin: 2rem 0;
}

.highlight-box h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--deep-blue);
    margin-bottom: 1rem;
}

/* ============================================
   DRAG + ARROW NAVIGATION FOR ROOM CARDS
   Frosted glass arrows + Drag/swipe
   ============================================ */

/* Wrapper for positioning arrows */
.similar-rooms-wrapper {
    position: relative;
    margin: 0;
}

/* Room cards container */
.similar-rooms {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1rem 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    cursor: grab; /* Default cursor */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.similar-rooms::-webkit-scrollbar {
    display: none;
}

/* Grabbing cursor when dragging */
.similar-rooms.dragging {
    cursor: grabbing;
    scroll-behavior: auto; /* Disable smooth scroll during drag */
}

/* Prevent text selection while dragging */
.similar-rooms.dragging * {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Prevent image dragging */
.similar-rooms img {
    pointer-events: none;
    user-drag: none;
    -webkit-user-drag: none;
}

/* Room card */
.similar-room-card {
    background: white;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    min-width: 280px;
    max-width: 320px;
    flex-shrink: 0;
}

/* Hover effect only when not dragging */
.similar-rooms:not(.dragging) .similar-room-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.similar-room-image {
    height: 200px;
    overflow: hidden;
}

.similar-room-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Zoom effect only when not dragging */
.similar-rooms:not(.dragging) .similar-room-card:hover .similar-room-image img {
    transform: scale(1.1);
}

.similar-room-content {
    padding: 1.5rem;
}

.similar-room-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--deep-blue);
    margin-bottom: 0.5rem;
}

.similar-room-info {
    font-size: 0.9rem;
    color: var(--warm-gray);
    line-height: 1.5;
}

/* ============================================
   NAVIGATION ARROWS (Frosted Glass Style)
   ============================================ */

.room-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    /* Frosted glass effect */
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    font-size: 2rem;
    font-weight: 300;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    /* Start hidden, show on hover */
    opacity: 0;
    pointer-events: none;
}

/* Show arrows on wrapper hover */
.similar-rooms-wrapper:hover .room-nav-arrow {
    opacity: 1;
    pointer-events: all;
}

/* Arrow hover effect */
.room-nav-arrow:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Arrow active/pressed state */
.room-nav-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

/* Left arrow positioning */
.room-nav-prev {
    left: 1rem;
}

/* Right arrow positioning */
.room-nav-next {
    right: 1rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .room-header-content {
        grid-template-columns: 1fr;
    }
    
    .room-booking-card {
        min-width: 100%;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .room-quick-info {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Hide arrows on mobile - use touch swipe instead */
    .room-nav-arrow {
        display: none;
    }
    
    /* Smaller cards on mobile */
    .similar-rooms {
        gap: 1rem;
        padding: 0.5rem 0;
    }
    
    .similar-room-card {
        min-width: 240px;
        max-width: 280px;
    }
    
    .similar-room-image {
        height: 160px;
    }
    
    .similar-room-content {
        padding: 1rem;
    }
    
    .similar-room-title {
        font-size: 1.1rem;
    }
    
    .similar-room-info {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .similar-room-card {
        min-width: 220px;
        max-width: 260px;
    }
    
    .similar-room-image {
        height: 140px;
    }
}

/* Tablet and up - show arrows and enable drag */
@media (min-width: 769px) {
    /* Arrows visible on hover */
    .similar-rooms-wrapper:hover .room-nav-arrow {
        opacity: 1;
        pointer-events: all;
    }
    
    /* Show grab cursor on desktop */
    .similar-rooms {
        cursor: grab;
    }
    
    .similar-rooms.dragging {
        cursor: grabbing;
    }
}