/* Layout container */
.search-results-container {
    padding-top: 20px;
    padding-bottom: 20px;
    min-height: calc(100vh - 200px);
    /* Ensure full height feel */
    padding-left: 30px;
    padding-right: 30px;
    width: 100%;
}

/* Grid Layout for Results */
.hotel-results-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 columns grid */
    gap: 15px;
    /* Space between cards */
    margin-bottom: 30px;
}

/* Empty / Error State (not found, errors) - full width in grid */
.hotel-results-list .search-empty-error-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px 60px;
    text-align: center;
    min-height: 280px;
}

.hotel-results-list .search-empty-error-state .empty-error-image {
    width: 140px;
    height: 140px;
    margin-bottom: 28px;
    object-fit: contain;
}

.hotel-results-list .search-empty-error-state .empty-error-message-box {
    max-width: 420px;
    padding: 20px 28px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.hotel-results-list .search-empty-error-state .empty-error-message-box .message {
    font-size: 17px;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.hotel-results-list .search-empty-error-state .empty-error-message-box .submessage {
    font-size: 14px;
    color: #6c757d;
    margin: 0 0 16px 0;
    line-height: 1.5;
}

.hotel-results-list .search-empty-error-state .empty-error-message-box .btn-retry {
    margin-top: 8px;
}

#searchbox {
    padding-bottom: 10px;
}

/* Order Dropdown Styles */
#order-btn {
    position: relative;
}

.dropdown-menu .order-option {
    position: relative;
    padding-right: 30px;
    text-align: right;
}

.dropdown-menu .order-option .fa-check {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #4CAF50;
}

.dropdown-menu .order-option:hover {
    background-color: #f5f5f5;
}

/* Sticky Map */
.map-column {
    position: sticky;
    top: 80px;
    /* Adjust based on header height */
    height: 100vh;
    padding-left: 0;
}

/* Fixed map effect for desktop only */
@media (min-width: 992px) {
    .map-column.fixed-map {
        position: fixed;
        top: 100px;
        z-index: 10;
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .map-column.fixed-map .map-wrapper {
        height: 100%;
    }
}

.map-wrapper {
    height: 100%;
    width: 100%;
    border-radius: 30px;
    /* More rounded */
    overflow: hidden;
    border: 1px solid #eee;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

#hotel-map {
    height: 100%;
    width: 100%;
    z-index: 1;
}

.results-column {
    padding-right: 15px;
}

/* Hotel Card Styles - Clean & Modern */
.hotel-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    margin-bottom: 0;
    overflow: visible;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    padding: 8px;
    line-height: 24px;
    font-size: 12px;
    border: 1px solid #ddd;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    direction: rtl;
    width: 100%;
    /* Ensure consistent card width */
    min-height: 400px;
    min-width: 0;
    /* Critical for preventing grid blowout */
}

.hotel-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* Hotel Card Highlight Animation */
.hotel-card.highlight {
    border-color: #ed8905;
    box-shadow: 0 0 0 2px rgba(210, 113, 3, 0.946);
}

.hotel-card.highlight.animate {
    animation: highlight-border 3s ease-in-out;
}

@keyframes highlight-border {
    0% {
        border-color: #ed8905;
        box-shadow: 0 0 0 2px rgba(210, 113, 3, 0.946);
    }

    100% {
        border-color: #ddd;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }
}

/* Image Wrapper */
.hotel-card-image-wrapper {
    width: 100%;
    aspect-ratio: 20/19;
    /* Slightly taller than square */
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    /* Rounded image */
    margin-bottom: 12px;
}

.hotel-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Image Hover Effect */
.hotel-card:hover .hotel-card-image {
    transform: scale(1.03);
}

/* Card Content */
.hotel-card-content {
    width: 100%;
    padding: 0;
    /* Remove padding as border is gone */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Show on Map Badge */
.show-on-map-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    background-color: rgba(255, 255, 255, 0.95);
    color: #ed8905;
    border: none;
    padding: 8px;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.show-on-map-badge:hover {
    background-color: #fff;
    color: #0056b3;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.show-on-map-badge:active {
    transform: scale(0.95);
}

.show-on-map-badge .fa {
    font-size: 16px;
}

/* Favorite Icon (next to location marker) */
.favorite-icon {
    position: absolute;
    top: 12px;
    left: 56px;
    z-index: 2;
    background-color: rgba(255, 255, 255, 0.95);
    color: rgba(0, 0, 0, 0.5);
    border: none;
    padding: 8px;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    font-size: 16px;
}

.favorite-icon:hover {
    background-color: #fff;
    color: #e74c3c;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.favorite-icon:active {
    transform: scale(0.95);
}

.favorite-icon.active,
.favorite-icon.favorited {
    color: #e74c3c;
    background-color: rgba(255, 255, 255, 0.95);
}

/* Typography */
.hotel-title-section {
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 32px;
    /* Enforce fixed height */
    overflow: hidden;
    width: 100%;
}

.hotel-name {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: #222;
    line-height: 32px;
    /* Match container height */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
    padding-left: 8px;
    /* Spacing from rating */
    max-width: calc(100% - 60px);
    /* Safety cap relative to container to prevent overflow */
}

.hotel-rating {
    font-size: 12px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 4px;
    background-color: #ff6822;
    border-radius: 10px;
    padding: 5px;
    height: 23px;
    line-height: 26px;
    flex-shrink: 0;
}

.hotel-rating .fa {
    color: #ffd700;
    margin-top: -3px;
    /* Adjustment for alignment */
    font-size: 11px;
}

.hotel-location {
    font-size: 15px;
    color: #717171;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.room-title {
    font-size: 14px;
    color: #717171;
    font-weight: 400;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    height: 24px;
    /* Enforce fixed height */
    overflow: hidden;
}

.room-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
    line-height: 24px;
}

.room-title .fa {
    font-size: 13px;
    color: #999;
    flex-shrink: 0;
}

/* Price Section */
.hotel-price-section {
    text-align: right;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    direction: rtl;
}

.price-per-night {
    font-size: 14px;
    font-weight: 500;
    color: #717171;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.price-total {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.price-total .fa {
    font-size: 15px;
    color: #28a745;
}

.price-currency {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

.price-period {
    font-size: 12px;
    font-weight: 400;
    color: inherit;
    opacity: 0.8;
}

/* View and Reserve Button */
.view-reserve-btn {
    margin-top: 12px;
    padding: 10px 20px;
    background-color: #ff6822;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    width: 100%;
    direction: rtl;
}

.view-reserve-btn:hover {
    background-color: #ed8905;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    color: #fff;
    text-decoration: none;
}

.view-reserve-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.2);
}


/* Remove Old Button */
.btn-view-hotel {
    display: none;
    /* Hidden in this layout */
}

/* Image Slider Controls */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: #222;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    /* Circle */
    text-align: center;
    line-height: 32px;
    cursor: pointer;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.hotel-card-image-wrapper:hover .slider-nav {
    opacity: 1;
}

.slider-nav:hover {
    transform: translateY(-50%) scale(1.05);
    background: #fff;
}

.slider-prev {
    left: 10px;
}

.slider-next {
    right: 10px;
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 3;
    align-items: center;
    justify-content: center;
}

.slider-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.slider-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.slider-dot.active {
    background-color: #fff;
    width: 8px;
    height: 8px;
    border-color: #fff;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.6);
}

/* Map Marker Styles */
.price-marker {
    background-color: #fff;
    color: #222;
    padding: 8px 12px;
    border-radius: 24px;
    /* Pill shape */
    font-family: "IRANSans", IRANSans, tahoma, sans-serif !important;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    text-align: center;
    white-space: nowrap;
    transition: all 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.price-marker:hover {
    transform: scale(1.1);
    z-index: 1000 !important;
}

.price-marker.active {
    background-color: #222;
    color: #fff;
    border-color: #222;
}

/* Responsive */
@media (max-width: 991px) {
    .container-fluid.search-results-container {
        display: block;
        padding: 0;
        /* Allow header to scroll away or stay depending on site layout, 
           but here we manage the map and results */
    }

    .row {
        margin: 0;
    }

    .map-column {
        position: fixed;
        top: 10vh;
        /* Start below the header/search area */
        left: 0;
        width: 100% !important;
        height: 80vh !important;
        /* Tall enough to extend behind the list */
        z-index: 0;
        padding: 0;
        margin: 0;
    }

    .map-column .map-wrapper {
        border-radius: 0;
        border: none;
        height: 100%;
        box-shadow: none;
    }

    .results-column {
        width: 100%;
        padding-right: 0;
        padding-left: 0;
        margin-top: 30vh;
        /* Start covering the map from here */
        background: #f9f9f9;
        position: relative;
        z-index: 10;
        border-top-left-radius: 24px;
        border-top-right-radius: 24px;
        min-height: 60vh;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
        padding-bottom: 40px;
    }

    /* Drag Handle visual */
    .results-column::before {
        content: '';
        display: block;
        width: 48px;
        height: 5px;
        background: #ddd;
        margin: 12px auto 8px;
        border-radius: 3px;
    }

    .results-header {
        padding: 0 20px;
        margin-top: 10px;
        flex-direction: column;
        align-items: flex-start !important;
        gap: 10px;
    }

    .results-header .buttons-group {
        width: 100%;
        justify-content: flex-start;
    }

    .results-header .results-title {
        width: 100%;
        text-align: right;
        margin-left: 0;
    }

    .hotel-results-list {
        grid-template-columns: 1fr;
        /* Single column */
        padding: 0 15px;
        gap: 15px;
    }

    /* Adjust pagination margin */
    .pagination-container {
        padding-bottom: 20px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .hotel-results-list {
        grid-template-columns: repeat(3, 1fr);
        /* 3 columns on tablet */
    }
}

/* Skeleton Loading Styles */
.skeleton-card {
    pointer-events: none;
    border: 1px solid #e0e0e0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

.skeleton-image {
    background-color: #f0f0f0;
    position: relative;
    overflow: hidden;
}

.skeleton-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.4),
            transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.skeleton-text {
    background-color: #f0f0f0;
    border-radius: 4px;
    animation: pulse 1.5s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.skeleton-text::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.6),
            transparent);
    animation: text-shimmer 1.5s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

@keyframes text-shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.skeleton-title {
    height: 16px;
    width: 70%;
    margin-bottom: 8px;
}

.skeleton-rating {
    height: 14px;
    width: 30%;
    margin-bottom: 8px;
}

.skeleton-room {
    height: 15px;
    width: 60%;
    margin-bottom: 8px;
}

.skeleton-price {
    height: 16px;
    width: 40%;
}

/* Filter Button Loading State */
#filter-btn.filter-loading {
    opacity: 0.7;
    pointer-events: none;
}

#filter-btn.filter-loading span {
    display: flex;
    align-items: center;
    gap: 5px;
}

#results-count {
    font-size: 14px;
    color: #717171;
    font-weight: 400;
    margin-bottom: 6px;
}

/* Results Header Layout - Desktop (default) */
.results-header {
    width: 100%;
    gap: 15px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.results-header .buttons-group {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: initial;
}

.results-header .results-title {
    flex: 1;
    min-width: 0;
    /* Allow flex item to shrink below content size */
    text-align: right;
    margin: 0;
    padding-right: 0;
    overflow: hidden;
    margin-left: 15px;
    /* Add space between buttons and title */
}

.results-header .results-title h1 {
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.results-header .results-title #results-count {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

/* Ensure horizontal layout on desktop screens */
@media (min-width: 992px) {
    .results-header {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
}

/* Filter Modal Styles */
#filter-modal .modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    direction: rtl;
}

#filter-modal .modal-header {
    border-bottom: 1px solid #f0f0f0;
    padding: 11px 25px;
    background-color: #fafafa;
    border-radius: 16px 16px 0 0;
}

#filter-modal .modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #222;
    margin: 0;
}

#filter-modal .modal-body {
    padding: 25px;
}

#filter-modal .modal-footer {
    border-top: 1px solid #f0f0f0;
    padding: 15px 25px;
    background-color: #fafafa;
    border-radius: 0 0 16px 16px;
}

#filter-modal .close {
    font-size: 28px;
    font-weight: 300;
    color: #999;
    opacity: 0.7;
    transition: opacity 0.2s;
    float: left;
}

#filter-modal .close:hover {
    opacity: 1;
    color: #222;
}

/* Filter Form Groups */
.filter-search-group {
    margin-bottom: 25px;
}

.filter-stars-group {
    margin-bottom: 0;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #222;
    margin-bottom: 12px;
}

.filter-label i {
    color: #ff6822;
    font-size: 14px;
}

/* Filter Input Styles */
.filter-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.2s ease;
    direction: rtl;
    background-color: #fff;
}

.filter-input:focus {
    outline: none;
    border-color: #ff6822;
    box-shadow: 0 0 0 3px rgba(29, 41, 89, 0.1);
}

.filter-input::placeholder {
    color: #999;
    font-size: 13px;
}

/* Stars Checkbox Container */
.stars-checkbox-container {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.star-checkbox-item {
    margin: 0;
    flex: 1;
    min-width: 0;
}

.star-checkbox-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 16px 12px;
    border: 2px solid #e8e8e8;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    margin: 0;
    user-select: none;
    position: relative;
    overflow: hidden;
    min-height: 80px;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.star-checkbox-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(29, 41, 89, 0.05) 0%, rgba(0, 123, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.star-checkbox-label:hover {
    border-color: #ff6822;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(29, 41, 89, 0.15);
}

.star-checkbox-label:hover::before {
    opacity: 1;
}

.star-checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

/* Custom Checkbox Indicator */
.star-checkbox-label::after {
    content: '';
    position: absolute;
    top: 12px;
    left: 12px;
    width: 24px;
    height: 24px;
    border: 2px solid #d0d0d0;
    border-radius: 6px;
    background-color: #fff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.star-checkbox-label:hover::after {
    border-color: #ff6822;
}

.star-checkbox-label:has(input[type="checkbox"]:checked)::after {
    background-color: #ff6822;
    border-color: #ff6822;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: 14px;
    background-position: center;
    background-repeat: no-repeat;
}

.star-checkbox-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1;
    font-size: 14px;
    color: #333;
    position: relative;
    z-index: 1;
    width: 100%;
    text-align: center;
    padding-top: 30px;
}

.star-checkbox-text .fa-star {
    color: #ffd700;
    font-size: 20px;
    filter: drop-shadow(0 2px 4px rgba(255, 215, 0, 0.3));
    transition: all 0.3s ease;
}

.star-checkbox-label:hover .star-checkbox-text .fa-star {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 3px 6px rgba(255, 215, 0, 0.4));
}

.star-checkbox-text .star-text {
    position: absolute;
    top: -7px;
    right: -8px;
    font-weight: 600;
    font-size: 13px;
    color: #444;
    transition: color 0.3s ease;
    z-index: 2;
    white-space: nowrap;
}

.star-checkbox-label:has(input[type="checkbox"]:checked) {
    border-color: #ff6822;
    background: linear-gradient(135deg, #e8f0ff 0%, #d6e7ff 100%);
    box-shadow: 0 4px 16px rgba(29, 41, 89, 0.2);
    transform: translateY(-1px);
}

.star-checkbox-label:has(input[type="checkbox"]:checked)::before {
    opacity: 1;
}

.star-checkbox-label:has(input[type="checkbox"]:checked) .star-checkbox-text {
    color: #ff6822;
}

.star-checkbox-label:has(input[type="checkbox"]:checked) .star-checkbox-text .star-text {
    color: #ff6822;
    font-weight: 700;
}

.star-checkbox-label:has(input[type="checkbox"]:checked) .star-checkbox-text .fa-star {
    color: #ffb800;
    transform: scale(1.15);
    filter: drop-shadow(0 3px 8px rgba(255, 184, 0, 0.5));
}

/* Star Rating Display Enhancement */
.star-rating-display {
    display: flex;
    align-items: center;
    gap: 3px;
    direction: ltr;
}

.star-rating-display .fa-star {
    font-size: 12px;
    color: #ffd700;
    text-shadow: 0 1px 2px rgba(255, 215, 0, 0.3);
}

.star-rating-display .fa-star.filled {
    color: #ffb800;
}

.star-rating-display .fa-star.empty {
    color: #e0e0e0;
    opacity: 0.4;
}

/* Filter Modal Buttons */
#filter-modal .modal-footer .btn {
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
}

#filter-modal .modal-content {
    padding: 0;
}

#filter-modal .modal-footer .btn-default {
    background-color: #f5f5f5;
    color: #222;
}

#filter-modal .modal-footer .btn-default:hover {
    background-color: #e8e8e8;
    color: #222;
}

#filter-modal .modal-footer .btn-primary {
    background-color: #ff6822;
    color: #fff;
}

#filter-modal .modal-footer .btn-primary:hover {
    background-color: #ed8905;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

#filter-modal .modal-footer .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.2);
}

/* Responsive Filter Modal */
@media (max-width: 767px) {
    #filter-modal .modal-dialog {
        margin: 10px;
    }

    #filter-modal .modal-body {
        padding: 20px;
    }

    #filter-modal .modal-header,
    #filter-modal .modal-footer {
        padding: 11px 20px;
    }

    .filter-label {
        font-size: 14px;
    }

    .filter-input {
        padding: 10px 14px;
        font-size: 13px;
    }

    .stars-checkbox-container {
        flex-wrap: wrap;
        gap: 8px;
    }

    .star-checkbox-item {
        flex: 1 1 calc(50% - 4px);
        min-width: 120px;
    }

    .star-checkbox-label {
        padding: 16px 12px;
        min-height: 80px;
    }

    .star-checkbox-text {
        font-size: 13px;
    }

    .star-checkbox-text .star-rating-display .fa-star {
        font-size: 12px;
    }

    .star-checkbox-label::after {
        top: 10px;
        left: 10px;
        width: 20px;
        height: 20px;
    }
}

/* Flight + hotel travel search loading modals (shared layout; hotel page) */
.travel-search-loading-modal .travel-search-loading-modal__dialog {
    max-width: min(94vw, 500px);
    width: 100%;
    margin: 0.75rem auto;
    display: flex;
    align-items: center;
    min-height: calc(100% - 1.5rem);
}

.travel-search-loading-modal .travel-search-loading-modal__content {
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
}

.travel-search-loading-modal .travel-search-loading-modal__body {
    padding: 1.25rem 1rem;
}

@media (min-width: 576px) {
    .travel-search-loading-modal .travel-search-loading-modal__body {
        padding: 1.75rem 1.5rem;
    }
}

.travel-search-loading-modal .flight-loading-gallery-wrap,
.travel-search-loading-modal .hotel-loading-gallery-wrap {
    display: block;
    width: 100%;
    max-width: 100%;
}

.travel-search-loading-modal .travel-loading-gallery-link {
    display: block;
    width: 100%;
    max-width: 100%;
    line-height: 0;
}

.travel-search-loading-modal .flight-loading-gallery-img,
.travel-search-loading-modal .hotel-loading-gallery-img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: min(70vh, 420px);
    margin: 0 auto;
    border-radius: 8px;
    object-fit: contain;
}

.hotel-loading-modal .hotel-loading-logo {
    max-width: 80px;
    width: auto;
    height: auto;
    margin: 0 auto 1rem;
}

.hotel-loading-modal .hotel-loading-message {
    margin: 0;
    font-size: 1rem;
    color: #333;
}

@keyframes hotel-loading-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}

.hotel-loading-modal .hotel-loading-logo {
    animation: hotel-loading-pulse 1.5s ease-in-out infinite;
}

.travel-search-ad {
    text-align: center;
    clear: both;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.travel-search-ad__link {
    display: block;
    width: 100%;
    max-width: 100%;
    line-height: 0;
}

.travel-search-ad__img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
}