/* Room Detail Page Styles */

/* Room Detail Section */
.room-detail-section {
    padding: 120px 0 60px;
    background: #f8f9fa;
    min-height: 100vh;
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.breadcrumb a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #0056b3;
}

.breadcrumb span {
    color: #666;
}

/* Room Header */
.room-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    background: white;
    padding: 20px 24px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.room-title-section h1 {
    font-size: 2.5rem;
    color: #0d2347;
    margin-bottom: 15px;
    font-weight: 700;
}

.room-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stars {
    color: #ffc107;
    font-size: 18px;
}

.rating-text {
    color: #666;
    font-size: 14px;
}

.room-price-section {
    text-align: right;
}

.price-display {
    margin-bottom: 20px;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #28a745;
}

.price-period {
    font-size: 1rem;
    color: #666;
}

.btn-reserve {
    background: #007bff;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-reserve:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

/* Room Gallery */
.room-gallery {
    margin-bottom: 40px;
}

.main-image {
    position: relative;
    height: clamp(320px, 52vh, 520px);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s;
}

.main-image:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    bottom: 20px;
    right: 20px;
}

.gallery-btn {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gallery-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

.thumbnail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 12px;
}

.thumbnail {
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    border: 3px solid transparent;
}

.thumbnail:hover {
    border-color: #007bff;
    transform: translateY(-3px);
}

.thumbnail.active {
    border-color: #007bff;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Room Info Grid */
.room-info-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 24px;
}

.room-details-card,
.room-description-card,
.room-amenities-card {
    background: white;
    padding: 20px 24px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.room-details-card h3,
.room-description-card h3,
.room-amenities-card h3 {
    color: #0d2347;
    margin-bottom: 25px;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.room-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.spec-item i {
    font-size: 1.5rem;
    color: #007bff;
    width: 30px;
    text-align: center;
}

.spec-item div {
    display: flex;
    flex-direction: column;
}

.spec-item strong {
    color: #0d2347;
    font-size: 14px;
    margin-bottom: 3px;
}

.spec-item span {
    color: #666;
    font-size: 13px;
}

.description-content {
    line-height: 1.8;
    color: #555;
}

.description-content p {
    margin-bottom: 15px;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s;
}

.amenity-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.amenity-item i {
    color: #28a745;
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.amenity-item span {
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

/* Booking Widget */
.booking-widget {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid #e1e5e9;
    position: sticky;
    top: 120px;
}

.guest-reviews-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid #e1e5e9;
    margin-top: 20px;
}

.guest-reviews-card h3 {
    color: #0d2347;
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.guest-reviews-card h3 i {
    color: #ffc107;
}

.reviews-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid #007bff;
    transition: all 0.3s ease;
}

.review-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reviewer-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
}

.reviewer-details h4 {
    margin: 0;
    color: #0d2347;
    font-size: 1rem;
    font-weight: 600;
}

.reviewer-details .review-date {
    color: #666;
    font-size: 0.85rem;
    margin-top: 2px;
}

.review-rating {
    display: flex;
    gap: 2px;
}

.review-rating i {
    color: #ffc107;
    font-size: 14px;
}

.review-text {
    color: #333;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.review-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.review-tag {
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.booking-widget h3 {
    color: #0d2347;
    margin-bottom: 25px;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.date-inputs,
.guest-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.booking-form .form-group {
    margin-bottom: 15px;
}

.booking-form .form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.booking-form .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.booking-form .form-control:focus {
    outline: none;
    border-color: #007bff;
}

.booking-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.summary-row:last-child {
    margin-bottom: 0;
    font-weight: 600;
    font-size: 16px;
    color: #0d2347;
    border-top: 1px solid #dee2e6;
    padding-top: 10px;
}

.btn-book-now {
    width: 100%;
    background: #25d366;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-book-now:hover {
    background: #1da851;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 0;
    width: 90%;
    max-width: 1200px;
    top: 50%;
    transform: translateY(-50%);
}

.image-modal-content {
    text-align: center;
}

.image-modal-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 10px;
}

.gallery-modal-content {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #e1e5e9;
    background: #f8f9fa;
}

.modal-header h3 {
    color: #0d2347;
    margin: 0;
    font-size: 1.5rem;
}

.close {
    color: white;
    font-size: 35px;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 25px;
    cursor: pointer;
    transition: color 0.3s;
}

.gallery-modal-content .close {
    color: #666;
    position: static;
}

.close:hover {
    color: #007bff;
}

.modal-navigation {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
}

.nav-btn {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
}

.nav-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 30px;
}

.gallery-item {
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .room-info-grid {
        grid-template-columns: 1fr;
    }
    
    .booking-widget {
        position: static;
        order: -1;
    }
}

@media (max-width: 768px) {
    .room-detail-section {
        padding: 100px 0 30px;
    }
    
    .room-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 20px;
    }
    
    .room-title-section h1 {
        font-size: 2rem;
    }
    
    .price {
        font-size: 2rem;
    }
    
    .main-image {
        height: clamp(260px, 40vh, 360px);
    }
    
    .room-specs {
        grid-template-columns: 1fr;
    }
    
    .date-inputs,
    .guest-inputs {
        grid-template-columns: 1fr;
    }
    
    .thumbnail-gallery {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    }
    
    .thumbnail {
        height: 80px;
    }
    
    .amenities-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        padding: 20px;
    }
    
    .gallery-item {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .room-header {
        padding: 14px 16px;
        margin-bottom: 16px;
    }
    
    .room-title-section h1 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
    
    .price {
        font-size: 1.5rem;
    }
    
    .btn-reserve {
        padding: 12px 20px;
        font-size: 14px;
        width: 100%;
        justify-content: center;
    }
    
    .main-image {
        height: 220px;
        margin-bottom: 12px;
    }
    
    .room-details-card,
    .room-description-card,
    .room-amenities-card,
    .booking-widget,
    .guest-reviews-card {
        padding: 14px 16px;
        margin-bottom: 12px;
    }
    
    .breadcrumb {
        font-size: 12px;
        gap: 5px;
        margin-bottom: 15px;
        flex-wrap: wrap;
    }
    
    .modal-content {
        width: 95%;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        padding: 15px;
    }
    
    .thumbnail-gallery {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    
    .thumbnail {
        height: 60px;
    }
    
    .spec-item {
        padding: 12px;
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .spec-item i {
        font-size: 1.8rem;
        margin-bottom: 5px;
    }
    
    .amenity-item {
        padding: 10px;
        gap: 8px;
    }
    
    .review-item {
        padding: 15px;
    }
    
    .reviewer-avatar {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .review-rating {
        align-self: flex-end;
    }
    
    .btn-book-now {
        padding: 12px;
        font-size: 14px;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 0;
        z-index: 1000;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .booking-widget {
        padding-bottom: 80px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.room-details-card,
.room-description-card,
.room-amenities-card,
.booking-widget {
    animation: slideInUp 0.6s ease-out;
}

.room-details-card {
    animation-delay: 0.1s;
}

.room-description-card {
    animation-delay: 0.2s;
}

.room-amenities-card {
    animation-delay: 0.3s;
}

.booking-widget {
    animation-delay: 0.4s;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
