/* Hotel detail page — loaded only on pages/hotels/show */

    /* Gallery slider with consistent height and cropping */
    .tour-details-banner .swiper-slide {
        height: 500px; /* Fixed height for consistency */
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f8f9fa;
        overflow: hidden;
    }
    
    .tour-details-banner .swiper-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Crop to fill container */
        object-position: center;
        border-radius: 12px; /* Match the rounded corners style */
    }
    
    /* Responsive adjustments */
    @media (max-width: 768px) {
        .tour-details-banner .swiper-slide {
            height: 350px; /* Fixed height for tablets */
        }
        
        .tour-details-banner .swiper-slide img {
            border-radius: 8px; /* Slightly smaller radius on mobile */
        }
    }
    
    @media (max-width: 480px) {
        .tour-details-banner .swiper-slide {
            height: 280px; /* Fixed height for mobile */
        }
        
        .tour-details-banner .swiper-slide img {
            border-radius: 6px; /* Even smaller radius on small mobile */
        }
    }
    
    .amenity-badge {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 8px 16px;
        background: #f8f9fa;
        border-radius: 8px;
        margin: 4px;
    }
    
    .room-card {
        border: 1px solid #e0e0e0;
        border-radius: 12px;
        overflow: hidden;
        transition: transform 0.2s, box-shadow 0.2s;
    }
    
    .room-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    
    @keyframes slideIn {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    @keyframes slideOut {
        from {
            opacity: 1;
            transform: translateY(0);
        }
        to {
            opacity: 0;
            transform: translateY(-10px);
        }
    }
    
    @keyframes fadeIn {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }
    
    /* FAQ answer styling fix */
    .destination-accordion .accordion-body {
        font-weight: normal !important; /* Remove bold from FAQ answers */
        line-height: 1.6; /* Better readability */
        color: #666; /* Softer color for answers */
    }
    
    .destination-accordion .accordion-body * {
        font-weight: normal !important; /* Ensure all nested elements are normal weight */
    }

    /* Highlight blocked/unavailable dates in date picker */
    .daterangepicker td.blocked-date,
    .daterangepicker td.off.blocked-date,
    .daterangepicker td.disabled.blocked-date {
        background: #ffe8e8 !important;
        color: #c81e1e !important;
        text-decoration: line-through;
        font-weight: 600;
        border-radius: 4px;
    }

    /* Show page — room cards: fixed height, image flush left, book CTA aligned */
    #rooms-section .hotel-show-room-card > .row.g-0 {
        height: 220px;
        min-height: 220px;
        max-height: 220px;
    }

    #rooms-section .hotel-room-card__media {
        flex-shrink: 0;
        height: 100%;
        padding: 0;
    }

    #rooms-section .hotel-room-card__image-wrap {
        height: 100%;
        min-height: 220px;
        overflow: hidden;
        background: #f0f0f0;
    }

    #rooms-section .hotel-room-card__image {
        width: 100%;
        height: 100%;
        min-height: 220px;
        object-fit: cover;
        object-position: center;
        display: block;
    }

    #rooms-section .hotel-room-card__body {
        height: 100%;
        min-height: 0;
        overflow: hidden;
    }

    #rooms-section .hotel-room-card__body .p-4 {
        height: 100%;
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }

    #rooms-section .hotel-room-card__body-inner {
        height: 100%;
        min-height: 0;
    }

    #rooms-section .hotel-room-card__details {
        min-height: 0;
        overflow: hidden;
    }

    #rooms-section .hotel-room-card__details .room-card-desc {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 0.5rem !important;
    }

    #rooms-section .hotel-room-card__details .room-card-amenities {
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    #rooms-section .hotel-room-card__booking {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        height: 100%;
        min-height: 0;
    }

    #rooms-section .hotel-room-card__booking > .mb-3 {
        margin-bottom: 0.4rem !important;
    }

    #rooms-section .hotel-room-card__booking .book-room-btn {
        margin-top: 0.25rem;
    }

    @media (max-width: 767.98px) {
        #rooms-section .hotel-show-room-card > .row.g-0 {
            height: auto;
            min-height: 0;
            max-height: none;
        }

        #rooms-section .hotel-room-card__image-wrap,
        #rooms-section .hotel-room-card__image {
            min-height: 200px;
            height: 200px;
        }

        #rooms-section .hotel-room-card__booking {
            justify-content: flex-start;
            height: auto;
            margin-top: 1rem;
        }
    }
    
    /* Cancellation Policy Styling */
    .cancellation-policy-content {
        background: #f8f9fa;
        padding: 25px;
        border-radius: 12px;
        border: 1px solid #e9ecef;
    }

    .policy-card {
        background: #fff;
        padding: 20px;
        border-radius: 10px;
        border: 1px solid #e9ecef;
        height: 100%;
        transition: box-shadow 0.3s ease;
    }

    .policy-card:hover {
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }

    .policy-header {
        display: flex;
        align-items: center;
        margin-bottom: 20px;
        color: #017b6e;
    }

    .policy-header i {
        font-size: 20px;
        margin-right: 10px;
    }

    .policy-header h5 {
        margin: 0;
        font-weight: 600;
        color: #333;
    }

    .policy-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .policy-item {
        display: flex;
        align-items: center;
        padding: 12px 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .policy-item:last-child {
        border-bottom: none;
    }

    .policy-item i {
        font-size: 18px;
        margin-right: 12px;
        flex-shrink: 0;
    }

    .policy-item.free i {
        color: #10b981;
    }

    .policy-item.partial i {
        color: #f59e0b;
    }

    .policy-item.no-refund i {
        color: #ef4444;
    }

    .special-conditions {
        padding: 0;
    }

    .condition-item {
        display: flex;
        align-items-start;
        padding: 12px 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .condition-item:last-child {
        border-bottom: none;
    }

    .condition-item i {
        font-size: 18px;
        color: #017b6e;
        margin-right: 12px;
        margin-top: 2px;
        flex-shrink: 0;
    }

    .condition-item strong {
        display: block;
        margin-bottom: 4px;
        color: #333;
    }

    .condition-item p {
        margin: 0;
        color: #666;
        font-size: 14px;
        line-height: 1.5;
    }

    .policy-note {
        background: #fff;
        padding: 20px;
        border-radius: 10px;
        border: 1px solid #e9ecef;
        border-left: 4px solid #017b6e;
    }

    .policy-note i {
        color: #017b6e;
        font-size: 20px;
    }

    .policy-note p {
        color: #666;
        font-size: 14px;
        line-height: 1.6;
    }

    .policy-note strong {
        color: #333;
    }
    
    /* Star Rating Styles */
    .star-rating {
        cursor: pointer;
        position: relative;
        display: inline-block;
        margin-right: 5px;
    }

    .star-rating input {
        display: none;
    }

    .star-rating i {
        font-size: 24px;
        color: #ddd;
        transition: color 0.2s ease;
    }

    .star-rating:hover i,
    .star-rating input:checked ~ i,
    .star-rating input:checked + i {
        color: #ffc107;
    }

    .rating-text {
        font-size: 14px;
        color: #666;
        font-weight: 500;
    }

    .reviews-container {
        overflow: hidden;
        transition: all 0.4s ease;
        animation: slideDown 0.4s ease;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            max-height: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            max-height: 2000px;
            transform: translateY(0);
        }
    }

    #reviewsArrow {
        transition: transform 0.3s ease;
    }

    #reviewsArrow.rotated {
        transform: rotate(180deg);
    }

    @media (max-width: 768px) {
        .reviews-summary {
            flex-direction: column;
            text-align: center;
            gap: 15px;
        }

        .reviews-summary .d-flex {
            flex-direction: column;
            align-items: center;
        }

        .review-breakdown {
            display: none !important;
        }

        /* Reduce rating number size on mobile */
        .rating-number {
            font-size: 1.5rem;
        }

        .review-date {
            min-width: 60px;
        }

        .review-date small {
            font-size: 11px;
        }

        /* Keep stars horizontal */
        .stars.d-flex {
            flex-direction: row !important;
        }

        .load-reviews-btn {
            width: 100%;
        }

        .load-reviews-btn .btn {
            width: 100%;
        }
    }
    
    /* Mobile: Move booking sidebar to top */
    @media (max-width: 991px) {
        .tour-details-container .row.g-4 {
            display: flex;
            flex-direction: column;
        }
        
        .tour-details-container .row.g-4 .col-xl-4 {
            order: -1; /* Move booking sidebar to top */
        }
        
        .tour-details-container .row.g-4 .col-xl-8 {
            order: 1; /* Content below */
        }
        
        .date-travel-card {
            position: relative !important;
            top: auto !important;
            margin-bottom: 30px;
        }
    }
    
    /* View Rooms Button (Mobile) - Same style as Book Now */
    .view-rooms-btn {
        width: 100%;
        background: linear-gradient(135deg, #FF6B6B, #FF8E53);
        color: white;
        border: none;
        border-radius: 15px;
        padding: 15px 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 16px;
        font-weight: 600;
        box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
        transition: all 0.3s ease;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        animation: slideInUp 0.4s ease-out;
    }
    
    .view-rooms-btn:hover {
        background: linear-gradient(135deg, #FF8E53, #FF6B6B);
        transform: translateY(-2px);
        box-shadow: 0 12px 30px rgba(255, 107, 107, 0.4);
        color: white;
    }
    
    .view-rooms-btn:active {
        transform: scale(0.98);
    }
    
    .view-rooms-btn i:first-child {
        font-size: 20px;
        animation: bounce 2s infinite;
    }
    
    @keyframes bounce {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-5px); }
    }
    
    @keyframes pulse {
        0%, 100% { transform: scale(1); }
        50% { transform: scale(1.02); }
    }
    
    /* Show More/Less Functionality */
    .amenity-hidden,
    .house-rule-hidden {
        display: none !important;
    }
    
    #amenitiesArrow,
    #houseRulesArrow {
        transition: transform 0.3s ease;
    }
    
    #amenitiesArrow.rotated,
    #houseRulesArrow.rotated {
        transform: rotate(180deg);
    }
    
    /* Mobile Book Now Button Styling */
    .mobile-book-now {
        position: fixed;
        bottom: 20px;
        left: 20px;
        right: 20px;
        background: linear-gradient(135deg, #FF6B6B, #FF8E53);
        color: white;
        border: none;
        border-radius: 15px;
        padding: 15px 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
        z-index: 1000;
        transition: all 0.3s ease;
        font-size: 16px;
        font-weight: 600;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .mobile-book-now:hover {
        background: linear-gradient(135deg, #FF8E53, #FF6B6B);
        transform: translateY(-2px);
        box-shadow: 0 12px 30px rgba(255, 107, 107, 0.4);
        color: white;
    }

    .mobile-book-now .price-info {
        font-size: 14px;
        opacity: 0.9;
    }

    .mobile-book-now .price-info span {
        font-size: 18px;
        font-weight: 700;
        margin-left: 4px;
    }

    .mobile-book-now .book-text {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 16px;
    }

    .mobile-book-now .book-text i {
        font-size: 18px;
    }

    /* Hide mobile button on desktop */
    @media (min-width: 769px) {
        .mobile-book-now {
            display: none;
        }
    }

    /* Mobile responsive adjustments */
    @media (max-width: 480px) {
        .mobile-book-now {
            left: 15px;
            right: 15px;
            padding: 12px 18px;
        }
        
        .mobile-book-now .price-info {
            font-size: 13px;
        }
        
        .mobile-book-now .price-info span {
            font-size: 16px;
        }
        
        .mobile-book-now .book-text {
            font-size: 15px;
        }
    }
    
    /* Property Description Toggle */
    .description-wrapper {
        position: relative;
    }
    
    .description-content {
        max-height: 300px;
        overflow: hidden;
        transition: max-height 0.3s ease;
        position: relative;
    }
    
    .description-content.expanded {
        max-height: none;
    }
    
    .description-content::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: linear-gradient(to bottom, transparent, white);
        pointer-events: none;
        transition: opacity 0.3s ease;
    }
    
    .description-content.expanded::after {
        opacity: 0;
    }
