/* SEARCH RESULTS PREMIUM STYLES */

.searchResultPage {
    padding: 30px 0;
    background: #fdfdfd;
}

.search_results_layout {
    display: flex;
    gap: 30px;
    width: 100%;
}

/* Sidebar Styling */
.filters_sidebar {
    width: 320px;
    flex-shrink: 0;
}

.googleMapSection {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    padding: 10px;
    margin-bottom: 20px;
}

.explore_map_link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    color: #1a3636;
    font-weight: 500;
    text-decoration: none;
    font-size: 14px;
}

.explore_map_link i {
    font-size: 18px;
}

.filters_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.filters_header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a3636;
    margin: 0;
}

.reset_all_btn {
    background: none;
    border: none;
    color: #d4a762;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
}

.filter_section {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.filter_title {
    font-size: 15px;
    font-weight: 700;
    color: #1a3636;
    margin-bottom: 12px;
}

.search_input_wrap {
    position: relative;
}

.search_input_wrap input {
    width: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 35px 10px 12px;
    font-size: 14px;
}

.search_input_wrap i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 18px;
}

/* Star Rating Filter Overhaul */
.star_ratings_wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.star_rating_item {
    cursor: pointer;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 6px 10px;
    transition: all 0.2s;
    background: #fff;
    width: calc(50% - 4px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.star_rating_item.active {
    background: #fffdf9;
    border-color: #d4a762;
}

.star_rating_item .stars {
    font-size: 14px;
    color: #d4a762;
}

/* Hotel Card Styling (DESIGN SYNC) */
.hotel_card {
    display: flex;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.hotel_image_wrap {
    width: 280px;
    height: auto;
    min-height: 240px;
    flex-shrink: 0;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.hot_deal_badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #007bff;
    color: #fff;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 4px;
    z-index: 2;
}

.hotel_details {
    flex: 1;
    display: flex;
    padding-left: 20px;
}

.hotel_info {
    flex: 1;
}

.stars_row {
    margin-bottom: 4px;
}

.stars_row .ph-star {
    color: #d4a762;
    font-size: 14px;
}

.name_row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.hotel_name {
    font-size: 20px;
    font-weight: 700;
    color: #1a3636;
    margin: 0;
}

.hotel_type_badge {
    border: 1px solid #1a3636;
    color: #1a3636;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.location_row {
    color: #666;
    font-size: 13px;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 5px;
}

.location_row i {
    font-size: 16px;
    color: #d4a762;
    margin-top: 2px;
}

.view_map_link {
    color: #1a3636;
    text-decoration: underline;
    font-size: 13px;
    font-weight: 600;
    display: block;
    margin-bottom: 12px;
}

.review_row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.review_score_box {
    background: #1a3636;
    color: #fff;
    padding: 4px 6px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 12px;
}

.review_text {
    font-size: 13px;
    color: #333;
}

.distance_badge {
    background: #f9f2ea;
    padding: 6px 12px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    width: fit-content;
}

.distance_badge i {
    font-size: 16px;
    color: #1a3636;
}

.distance_badge span {
    font-size: 13px;
    color: #1a3636;
    font-weight: 500;
}

.amenities_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.amenity_item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #333;
}

.amenity_item i {
    color: #2d5a3d;
    font-size: 14px;
}

/* Hotel Booking (Right Panel) */
.hotel_booking {
    width: 220px;
    border-left: 1px solid #f0f0f0;
    padding-left: 20px;
    text-align: right;
    display: flex;
    flex-direction: column;
}

.cancellation_status {
    color: #28a745;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    margin-bottom: 20px;
}

.price_section {
    margin-bottom: 20px;
}

.currency_label {
    font-size: 14px;
    font-weight: 600;
    color: #1a3636;
}

.amount_val {
    font-size: 24px;
    font-weight: 700;
    color: #1a3636;
}

.taxes_note {
    font-size: 10px;
    color: #777;
    display: block;
}

.per_night_note {
    font-size: 12px;
    color: #333;
    font-weight: 500;
}

.select_room_btn {
    background: #1a3636;
    color: #fff;
    width: 100%;
    border-radius: 6px;
    padding: 10px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
    margin-top: auto;
}

.expert_plan_btn {
    border: 1px solid #1a3636;
    background: #fff;
    color: #1a3636;
    padding: 6px;
    border-radius: 6px;
    font-size: 11px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1.2;
}

.expert_plan_btn i {
    font-size: 18px;
}

.expert_plan_btn strong {
    font-weight: 800;
}

/* Skeleton loader fixes */
.skeleton_hotel_card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.skeleton_image {
    width: 280px;
    height: 180px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}


/* Specific selector and !important to force scrollbar on filters */
.filters_sidebar .checkbox_list {
    max-height: 250px !important;
    overflow-y: auto !important;
    display: block !important;
    padding-right: 10px !important;
    margin-right: -5px;
}

/* Custom scrollbar for filter lists */
.filters_sidebar .checkbox_list::-webkit-scrollbar {
    width: 6px !important;
    display: block !important;
}
.filters_sidebar .checkbox_list::-webkit-scrollbar-track {
    background: #f8fafc !important;
    border-radius: 10px !important;
}
.filters_sidebar .checkbox_list::-webkit-scrollbar-thumb {
    background: #d4a762 !important;
    border-radius: 10px !important;
    border: 1px solid #f8fafc !important;
}
.filters_sidebar .checkbox_list::-webkit-scrollbar-thumb:hover {
    background: #b27633 !important;
}

 .r-col-left { width: 25%; }
        .r-col-right { width: 75%; }
        .r-rate-info { width: 41.666%; }
        .r-rate-actions { width: 58.333%; }
        .r-action-btn { max-width: 155px; }

        @media (max-width: 991px) {
            .detail-header-card .row .col-lg-5, 
            .detail-header-card .row .col-lg-4, 
            .detail-header-card .row .col-lg-3 {
                width: 100% !important;
            }
            .r-col-left, .r-col-right {
                width: 100% !important;
            }
            .r-col-left {
                border-right: none !important;
                border-bottom: 2px solid #f8f9fa;
                background-color: transparent !important;
            }
            .hotel_gallery_grid_wrap .row {
                height: auto !important;
            }
        }

        @media (max-width: 767px) {
            .r-rate-info, .r-rate-actions {
                width: 100% !important;
                text-align: left !important;
            }
            .r-rate-actions {
                align-items: flex-start !important;
                padding-top: 15px !important;
                padding-left: 0 !important;
            }
            .r-rate-actions .price_info, 
            .r-rate-actions .add-cart-btn, 
            .r-rate-actions .callUsbutton, 
            .r-rate-actions .w-100 {
                text-align: left !important;
                margin-left: 0 !important;
                margin-right: auto !important;
                align-items: flex-start !important;
            }
            .r-action-btn {
                max-width: 100% !important;
            }
            .room-actions {
                justify-content: start !important;
            }
            .r-rate-actions .w-100.text-center {
                text-align: left !important;
                padding-left: 20px;
            }
        }

        /* Cart Sidebar & Pay Button Fixes */
        .hotelCart .pay-btn {
            background: linear-gradient(135deg, #e8b253, #b27633) !important;
            color: #000 !important;
            font-weight: 700 !important;
            font-size: 16px !important;
            padding: 14px 20px !important;
            border-radius: 10px !important;
            display: block !important;
            text-align: center !important;
            width: 100% !important;
            margin-top: 15px !important;
            text-decoration: none !important;
            transition: all 0.3s ease !important;
        }
        .hotelCart .pay-btn.opacity-50 {
            opacity: 0.65 !important;
            filter: grayscale(0.2);
        }
        .hotelCart .pay-btn:hover:not(.pe-none) {
            background: #d89226 !important;
            transform: translateY(-1px);
        }

        /* Room Analysis Refinements */
        .room_title {
            font-size: 14px !important;
            font-weight: 600 !important;
            color: #1a1a1a;
            line-height: 1.4 !important;
        }
        .occupancy_icons i { font-size: 16px; color: #64748b; }
        .occupancy_icons .adult_icon { color: #334155; }
        .occupancy_icons .child_icon { opacity: 0.6; }

        /* Tooltip Styles */
        .info-trigger { position: relative; display: inline-flex; align-items: center; }
        .info-trigger { position: relative; display: inline-flex; align-items: center; }
        .info-trigger { position: relative; display: inline-flex; align-items: center; }
        .policy-tooltip {
            display: none; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); width: 420px;
            background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,0.2);
            z-index: 99999 !important; padding: 16px; margin-bottom: 0; font-size: 13px; color: #334155; text-align: left;
            white-space: normal;
            pointer-events: auto;
        }
        /* Hover Bridge to prevent tooltip from disappearing */
        .policy-tooltip::after {
            content: '';
            position: absolute;
            top: 100%;
            left: 0;
            width: 100%;
            height: 20px;
            background: transparent;
        }
        .info-trigger:hover .policy-tooltip { display: block; }
        .tooltip-header { font-weight: 700; margin-bottom: 12px; border-bottom: 1px solid #f1f5f9; padding-bottom: 10px; font-size: 15px; color: #1e293b; }
        .policy-table { width: 100%; border-collapse: collapse; margin-bottom: 12px; }
        .policy-table th { text-align: left; background: #f0f9ff; padding: 10px 12px; color: #0369a1; font-weight: 600; font-size: 12px; }
        .policy-table td { padding: 10px 12px; border-bottom: 1px solid #f1f5f9; font-size: 12px; }
        .tooltip-footer { margin-top: 12px; color: #475569; font-size: 11px; line-height: 1.6; padding: 12px; background: #f8fafc; border-radius: 8px; border-left: 3px solid #cbd5e1; }
        
        /* Z-Index Fix */
        .room_grid_card { position: relative; transition: all 0.2s ease; z-index: 1; }
        .room_grid_card:hover { z-index: 100 !important; box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important; border-color: #e2e8f0 !important; }
        
        .meal_plan_badge {
            background: #f0fdf4;
            color: #166534;
            padding: 4px 10px;
            border-radius: 6px;
            font-size: 13px;
            border: 1px solid #dcfce7;
        }