/**
 * Hotel Grid Component Styles - Safari Compatible
 * Grid layout, sorting, filtering, and pagination
 */

/* Inline hotel display variables to avoid import issues */
.hotel-display-component {
    /* Hotel Card Colors */
    --hotel-card-bg: #ffffff;
    --hotel-card-bg-hover: #f9fafb;
    --hotel-card-border: #e5e7eb;
    --hotel-card-border-hover: #8b5cf6;
    --hotel-card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --hotel-card-shadow-hover: 0 8px 15px rgba(0, 0, 0, 0.15);
    
    /* Hotel Card Typography */
    --hotel-title-size: 18px;
    --hotel-title-weight: 700;
    --hotel-title-color: #1f2937;
    --hotel-price-size: 20px;
    --hotel-price-weight: 700;
    --hotel-price-color: #16a34a;
    --hotel-rating-size: 14px;
    --hotel-rating-color: #6b7280;
    --hotel-location-size: 14px;
    --hotel-location-color: #6b7280;
    
    /* Hotel Card Spacing */
    --hotel-card-padding: 20px;
    --hotel-card-margin: 16px;
    --hotel-card-gap: 16px;
    --hotel-image-radius: 12px;
    --hotel-card-radius: 16px;
    
    /* Hotel Grid Layout */
    --hotel-grid-columns: repeat(auto-fit, minmax(300px, 1fr));
    --hotel-grid-gap: 24px;
    --hotel-grid-padding: 20px;
    
    /* Featured Hotels */
    --featured-bg: linear-gradient(135deg, #fef3c7 0%, #f59e0b 100%);
    --featured-border: #f59e0b;
    --featured-text: #92400e;
    
    /* Sold Out Hotels */
    --soldout-bg: #f3f4f6;
    --soldout-border: #9ca3af;
    --soldout-text: #6b7280;
    --soldout-overlay: rgba(0, 0, 0, 0.5);
    
    /* Hotel Controls */
    --controls-bg: #ffffff;
    --controls-border: #e5e7eb;
    --controls-padding: 16px 20px;
    --controls-radius: 12px;
    --controls-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    
    /* Sort & Filter */
    --filter-bg: #ffffff;
    --filter-border: #d1d5db;
    --filter-color: #374151;
    --filter-hover-bg: #f9fafb;
    --filter-active-bg: #8b5cf6;
    --filter-active-color: #ffffff;
}

/* ========================================
   HOTEL GRID COMPONENT
   ======================================== */

/* Main Container */
.hotel-grid-component {
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: inherit;
}

/* Grid Wrapper - replaces legacy col-md-12 content container */
.hotel-grid-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 8px;
    box-sizing: border-box;
    overflow-x: hidden;
}

@media (min-width: 480px) {
    .hotel-grid-wrapper {
        padding: 0 12px;
    }
}

@media (min-width: 768px) {
    .hotel-grid-wrapper {
        max-width: 1400px;
        padding: 0 16px;
    }
}

@media (min-width: 1024px) {
    .hotel-grid-wrapper {
        padding: 0 24px;
    }
}

@media (min-width: 1200px) {
    .hotel-grid-wrapper {
        padding: 0 32px;
    }
}

/* Mobile wrapper fixes */
@media (max-width: 479px) {
    .hotel-grid-wrapper {
        padding: 0 8px;
    }
}

@media (max-width: 360px) {
    .hotel-grid-wrapper {
        padding: 0 6px;
    }
}

/* Grid Inner - replaces legacy content custom-sort v2 */
.hotel-grid-inner {
    width: 100%;
}

/* Grid Container - replaces legacy row products-grid */
.hotel-grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

.hotel-grid-container--grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

/* Map View Split Layout */
.map-view-container.map-view {
    display: flex;
    flex-direction: row;
    gap: 16px;
    width: 100%;
    align-items: flex-start;
}

.map-view-container.map-view .hotel-grid-container--map {
    flex: 0 0 380px;
    max-height: 85vh;
    overflow-y: auto;
    overflow-x: hidden;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    position: relative;
    padding-bottom: 40px;
    
    /* Improved scrollbar styling for better visibility */
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 92, 246, 0.6) rgba(255, 255, 255, 0.1);
}

/* Webkit scrollbar styling for better visibility */
.map-view-container.map-view .hotel-grid-container--map::-webkit-scrollbar {
    width: 8px;
}

.map-view-container.map-view .hotel-grid-container--map::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.map-view-container.map-view .hotel-grid-container--map::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.6);
    border-radius: 4px;
    transition: background 0.2s ease;
}

.map-view-container.map-view .hotel-grid-container--map::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.8);
}

/* Scroll indicator gradients */
.map-view-container.map-view .hotel-grid-container--map::before,
.map-view-container.map-view .hotel-grid-container--map::after {
    content: '';
    position: sticky;
    left: 0;
    right: 0;
    height: 20px;
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.map-view-container.map-view .hotel-grid-container--map::before {
    top: 0;
    background: linear-gradient(to bottom, rgba(28, 28, 30, 0.9) 0%, transparent 100%);
}

.map-view-container.map-view .hotel-grid-container--map::after {
    bottom: 0;
    background: linear-gradient(to top, rgba(28, 28, 30, 0.9) 0%, transparent 100%);
}

/* Show gradients when content is scrollable */
.map-view-container.map-view .hotel-grid-container--map.has-scroll::before,
.map-view-container.map-view .hotel-grid-container--map.has-scroll::after {
    opacity: 1;
}

/* Only show top gradient when scrolled from top */
.map-view-container.map-view .hotel-grid-container--map.scrolled-from-top::before {
    opacity: 1;
}

.map-view-container.map-view .hotel-grid-container--map:not(.scrolled-from-top)::before {
    opacity: 0;
}

/* Only show bottom gradient when can scroll more */
.map-view-container.map-view .hotel-grid-container--map.can-scroll-more::after {
    opacity: 1;
}

.map-view-container.map-view .hotel-grid-container--map:not(.can-scroll-more)::after {
    opacity: 0;
}

/* Scroll hint text - only show when can scroll more */
.map-view-container.map-view .hotel-grid-container--map.has-scroll.can-scroll-more::after {
    content: 'Scroll for more hotels ↓';
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: rgba(139, 92, 246, 0.8);
    font-weight: 500;
    height: 30px;
    background: linear-gradient(to top, rgba(28, 28, 30, 0.95) 0%, rgba(28, 28, 30, 0.8) 70%, transparent 100%);
    animation: scroll-hint-pulse 2s ease-in-out infinite;
}

/* Subtle pulsing animation for scroll hint */
@keyframes scroll-hint-pulse {
    0%, 100% {
        opacity: 0.8;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-2px);
    }
}

@keyframes mobile-map-hint-pulse {
    0%, 100% {
        opacity: 0.9;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scale(1.05);
    }
}

/* Pause animation on hover to avoid distraction */
.map-view-container.map-view .hotel-grid-container--map:hover.has-scroll.can-scroll-more::after {
    animation-play-state: paused;
}

/* Improved spacing and visual separation */
.map-view-container.map-view {
    margin-bottom: 40px; /* Add space before footer */
    border-radius: 12px;
    background: rgba(28, 28, 30, 0.3);
    padding: 16px;
}

/* Add subtle border to hotel list container */
.map-view-container.map-view .hotel-grid-container--map {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.2);
}

.map-view-container.map-view .embedded-map {
    flex: 1 1 auto;
    width: 100%;
    height: 85vh;
    min-height: 600px;
    max-height: 900px;
    position: sticky;
    top: 100px;
}

.map-view-container.map-view .embedded-map .hotel-map-component {
    height: 100%;
    width: 100%;
}

.map-view-container.map-view .embedded-map [data-hotel-map] {
    height: 100%;
    width: 100%;
}

/* Small desktop adjustments */
@media (max-width: 1400px) {
    .map-view-container.map-view .hotel-grid-container--map {
        flex: 0 0 360px;
    }
}

@media (max-width: 1200px) {
    .map-view-container.map-view .hotel-grid-container--map {
        flex: 0 0 340px;
        gap: 8px;
    }
    
    .map-view-container.map-view {
        gap: 12px;
    }
}

/* Tablet - still side by side but more compact */
@media (max-width: 900px) {
    .map-view-container.map-view .hotel-grid-container--map {
        flex: 0 0 280px;
        max-height: 75vh;
    }
    
    .map-view-container.map-view .embedded-map {
        height: 75vh;
        min-height: 500px;
        max-height: 750px;
    }
}

/* Mobile-First Map View - Map prioritized, hotels below */
@media (max-width: 768px) {
    .map-view-container.map-view {
        flex-direction: column;
        gap: 0; /* No gap between map and hotels */
        margin-bottom: 60px;
        padding: 0; /* Remove padding for full-width map */
        background: transparent;
        border-radius: 0;
    }
    
    /* Map takes priority - full width, prominent position */
    .map-view-container.map-view .embedded-map {
        order: 1; /* Map first */
        position: static;
        width: 100%;
        height: 60vh; /* Larger map on mobile */
        min-height: 400px;
        max-height: 500px;
        border-radius: 0 0 12px 12px; /* Rounded bottom corners */
        overflow: hidden;
        position: relative;
    }
    
    /* Mobile map instruction overlay */
    .map-view-container.map-view .embedded-map::after {
        content: 'Tap markers to see hotel details below ↓';
        position: absolute;
        top: 16px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(139, 92, 246, 0.9);
        color: #ffffff;
        padding: 8px 16px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 600;
        z-index: 1000;
        pointer-events: none;
        opacity: 1;
        transition: opacity 0.3s ease;
        animation: mobile-map-hint-pulse 3s ease-in-out infinite;
    }
    
    /* Hide instruction after user interaction */
    .map-view-container.map-view .embedded-map.user-interacted::after {
        opacity: 0;
        pointer-events: none;
    }
    
    /* Hotel details below map - compact, scrollable */
    .map-view-container.map-view .hotel-grid-container--map {
        order: 2; /* Hotels below map */
        flex: none;
        width: 100%;
        max-height: 40vh; /* Limit height to keep map prominent */
        min-height: 200px;
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px; /* Tighter spacing */
        border-radius: 12px 12px 0 0; /* Rounded top corners */
        padding: 16px 12px 40px;
        margin: 0;
        background: rgba(28, 28, 30, 0.95); /* Darker background */
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-bottom: none; /* Connect to map */
        position: relative;
        z-index: 10;
    }
    
    /* Mobile hotel cards - compact for map view */
    .map-view-container.map-view .hotel-grid-container--map .hotel-card {
        padding: 12px;
        border-radius: 8px;
        background: rgba(39, 39, 43, 0.9);
        border: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
    }
    
    /* Highlighted state for map interaction */
    .map-view-container.map-view .hotel-grid-container--map .hotel-card.map-highlighted {
        background: rgba(139, 92, 246, 0.2);
        border-color: #8b5cf6;
        transform: scale(1.02);
        box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
    }
    
    /* Scroll hint for mobile hotel list */
    .map-view-container.map-view .hotel-grid-container--map.has-scroll.can-scroll-more::after {
        content: 'Scroll for more hotels ↓';
        font-size: 12px;
        height: 30px;
        background: linear-gradient(to top, rgba(28, 28, 30, 0.95) 0%, rgba(28, 28, 30, 0.8) 70%, transparent 100%);
        color: rgba(139, 92, 246, 0.9);
        font-weight: 600;
    }
    
    /* Header for hotel list section */
    .map-view-container.map-view .hotel-grid-container--map::before {
        content: 'Tap a hotel marker above to see details';
        display: block;
        font-size: 13px;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.8);
        text-align: center;
        margin-bottom: 16px;
        padding: 8px 12px;
        position: sticky;
        top: 0;
        background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(28, 28, 30, 0.95) 100%);
        z-index: 20;
        border-radius: 8px;
        border: 1px solid rgba(139, 92, 246, 0.3);
    }
    
    /* Show instruction only when no hotel is highlighted */
    .map-view-container.map-view .hotel-grid-container--map:not(.has-highlighted-hotel)::before {
        content: 'Tap a hotel marker above to see details';
        opacity: 1;
    }
    
    /* Hide instruction when a hotel is highlighted */
    .map-view-container.map-view .hotel-grid-container--map.has-highlighted-hotel::before {
        content: 'Selected Hotel Details';
        background: linear-gradient(135deg, rgba(139, 92, 246, 0.4) 0%, rgba(139, 92, 246, 0.2) 100%);
        border-color: rgba(139, 92, 246, 0.5);
        color: #ffffff;
        font-weight: 600;
    }
}

/* Small Mobile - Even more map-focused */
@media (max-width: 480px) {
    .map-view-container.map-view .embedded-map {
        height: 50vh; /* Slightly smaller on small screens */
        min-height: 350px;
        max-height: 400px;
    }
    
    .map-view-container.map-view .hotel-grid-container--map {
        max-height: 50vh; /* More space for hotel list on small screens */
        padding: 12px 8px;
    }
    
    .map-view-container.map-view .hotel-grid-container--map .hotel-card {
        padding: 10px;
        margin-bottom: 4px;
    }
}

.hotel-grid-container--featured {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Override for informational panel */
.with-informational-text-panel .hotel-grid-container,
.with-informational-text-panel .hotel-grid-container--grid,
.with-informational-text-panel .hotel-grid-container--featured {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1200px) {
    .hotel-grid-container,
    .hotel-grid-container--grid,
    .hotel-grid-container--featured {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }

    .with-informational-text-panel .hotel-grid-container,
    .with-informational-text-panel .hotel-grid-container--grid,
    .with-informational-text-panel .hotel-grid-container--featured {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .hotel-grid-container,
    .hotel-grid-container--grid,
    .hotel-grid-container--featured {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 600px) {
    .hotel-grid-container,
    .hotel-grid-container--grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .with-informational-text-panel .hotel-grid-container,
    .with-informational-text-panel .hotel-grid-container--grid,
    .with-informational-text-panel .hotel-grid-container--featured {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (max-width: 600px) {
    .hotel-grid-container,
    .hotel-grid-container--grid,
    .hotel-grid-container--featured {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}


/* Header Section - Hidden (replaced by enhanced filters bar) */
.hotel-grid__header {
    display: none;
}

.hotel-grid__header.hidden {
    display: none;
}

/* Legacy .head-cont backwards compatibility */
.head-cont {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding: 0 4px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.head-cont.hidden {
    display: none;
}

.hotel-grid__title h2,
.title-cont h2 {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
}

.total_available_stays {
    color: #8b5cf6;
    font-weight: 700;
}

/* View Toggle */
.hotel-grid__view-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 4px;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hotel-grid__view-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
    outline: none;
}

.hotel-grid__view-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.hotel-grid__view-btn:focus {
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.3);
}

.hotel-grid__view-btn.active {
    background: #10b981;
    color: #ffffff;
}

.hotel-grid__view-btn svg {
    width: 16px;
    height: 16px;
}

/* Sort & Filter Controls - Enhanced Dark Theme */
.sort-controls {
    margin-bottom: 32px;
}

.sort-controls.hidden {
    display: none;
}

/* Main Filters Bar - Mobile-First Base Styles */
.hotel-filters-bar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 12px;
    margin-top: 16px;
    background: #1C1C1E;
    border: 1px solid #2C2C2E;
    border-radius: 12px;
    padding: 16px 12px;
    position: relative;
    overflow: visible;
}

/* Search Input - Mobile-First */
.hotel-search-wrapper {
    position: relative;
    flex: none;
    width: 100%;
    max-width: none;
    min-width: 0;
    box-sizing: border-box;
    overflow: visible;
    order: 1;
}

.hotel-search-input,
input#hotel-search-input,
.hotel-filters-bar .hotel-search-input {
    width: 100% !important;
    background: #27272B !important;
    border: 1px solid #3F3F46 !important;
    border-radius: 8px !important;
    padding: 12px 32px 12px 16px !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    height: 48px !important;
    color: #ffffff !important;
    outline: none !important;
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
    box-shadow: none !important;
    position: relative !important;
    z-index: 1 !important;
    box-sizing: border-box !important;
}

.hotel-search-input::placeholder,
input#hotel-search-input::placeholder {
    color: #777E90 !important;
}

.hotel-search-input:hover,
input#hotel-search-input:hover {
    border-color: #8b5cf6 !important;
}

.hotel-search-input:focus,
input#hotel-search-input:focus {
    border-color: #8b5cf6 !important;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2) !important;
    background: #2D2D31 !important;
}

.search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #777E90;
    pointer-events: none;
    transition: color 0.2s ease;
}

.hotel-search-input:focus ~ .search-icon {
    color: #8b5cf6;
}

.search-clear-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #777E90;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.search-clear-btn:hover {
    background: #3F3F46;
    color: #ffffff;
}

/* Filter Chips */
.hotel-filter-chips {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    align-items: center;
    flex: 1 1 0;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    margin-left: 20px;
    margin-right: 16px;
    position: relative;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.hotel-filter-chips::-webkit-scrollbar {
    display: none;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: #27272B;
    border: 1px solid #3F3F46;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #B4B4B8;
    cursor: pointer;
    height: 40px;
    box-sizing: border-box;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.filter-chip svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.filter-chip:hover {
    background: #2D2D31;
    border-color: #8b5cf6;
    color: #ffffff;
}

.filter-chip[data-active="true"] {
    background: #8b5cf6;
    border-color: #8b5cf6;
    color: #ffffff;
}

.filter-chip[data-active="true"]:hover {
    background: #7c3aed;
    border-color: #7c3aed;
}

/* Filter Dropdown (Mobile) */
.hotel-filter-dropdown {
    display: none;
}


.filter-chip--unified {
    color: #ffffff;
}

.filter-chip--unified:hover,
.filter-chip--unified.filter-chip--active {
    background: #2D2D31;
    border-color: #8b5cf6;
}

.filter-active-count {
    display: inline-block;
    background: #ffffff;
    color: #8b5cf6;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 11px;
    margin-left: 4px;
    font-weight: 600;
    min-width: 18px;
    text-align: center;
}

/* Unified Filters Modal */
.unified-filters-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
}

.unified-filters-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.unified-filters-panel {
    position: relative;
    max-width: 700px;
    margin: 50px auto;
    background: #1C1C1E;
    border: 1px solid #3F3F46;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
}

.unified-filters-header {
    padding: 20px 24px;
    border-bottom: 1px solid #3F3F46;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.unified-filters-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
}

.unified-filters-close {
    font-size: 32px;
    background: none;
    border: none;
    cursor: pointer;
    color: #B4B4B8;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}
.unified-filters-close:hover {
    color: #fff;
}

.unified-filters-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.filter-section {
    margin-bottom: 32px;
}
.filter-section:last-child {
    margin-bottom: 0;
}

.filter-section h4 {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px;
    border-radius: 6px;
    background: #27272B;
    transition: background 0.2s;
    color: #fff;
    font-size: 14px;
}
.filter-option:hover {
    background: #2D2D31;
}

.filter-option input[type="radio"],
.amenity-checkbox input[type="checkbox"] {
    appearance: none;
    margin: 0 12px 0 0;
    cursor: pointer;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid #8F939C;
    background-color: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 120ms ease-in-out;
}

.amenity-checkbox input[type="checkbox"] {
    margin-right: 10px;
    border-radius: 4px;
}

.filter-option input[type="radio"] {
    border-radius: 50%;
    position: relative;
}

.filter-option input[type="radio"]:checked,
.amenity-checkbox input[type="checkbox"]:checked {
    background-color: var(--event-primary-color, #4323FF);
    border-color: var(--event-primary-color, #4323FF);
}

.filter-option input[type="radio"]:checked::before {
    content: "";
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
    position: absolute;
}

.amenity-checkbox input[type="checkbox"]::before {
    content: "";
    width: 0.65em;
    height: 0.65em;
    background-color: white;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
    transform: scale(0);
    transform-origin: bottom left;
    transition: 120ms transform ease-in-out;
}

.amenity-checkbox input[type="checkbox"]:checked::before {
    transform: scale(1);
}

.filter-option input[type="radio"]:hover:not(:checked),
.amenity-checkbox input[type="checkbox"]:hover:not(:checked) {
    border-color: #B4B4B8;
}

.amenities-section .amenity-category {
    margin-bottom: 24px;
}
.amenities-section .amenity-category:last-child {
    margin-bottom: 0;
}

.amenities-section h5 {
    margin: 16px 0 12px;
    font-size: 12px;
    font-weight: 600;
    color: #8B8B8F;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.amenities-section h5:first-child {
    margin-top: 0;
}

.amenity-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
}

.amenity-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px 12px;
    border-radius: 6px;
    transition: background 0.2s;
    color: #fff;
    font-size: 14px;
}
.amenity-checkbox:hover {
    background: #27272B;
}
.amenity-checkbox span {
    flex: 1;
}

.unified-filters-footer {
    padding: 16px 24px;
    border-top: 1px solid #3F3F46;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn-secondary, .btn-primary {
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s;
}

.btn-secondary {
    background: #3F3F46;
    color: #fff;
}
.btn-secondary:hover {
    background: #52525B;
}

.btn-primary {
    background: #8b5cf6;
    color: white;
}

.btn-primary:hover {
    background: #7c3aed;
}

/* Sort Dropdown */
.hotel-sort-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    flex: 0 0 auto;
    min-width: 0;
    margin-left: 0;
}

.sort-label {
    display: none; /* Hide external label - text now inside dropdown */
}

.sort-select-container {
    position: relative;
    display: flex;
    align-items: center;
}

.hotel-sort-filter {
    background: #27272B;
    border: 1px solid #3F3F46;
    border-radius: 8px;
    padding: 12px 40px 12px 16px;
    font-size: 16px;
    font-weight: 400;
    color: #ffffff;
    cursor: pointer;
    outline: none;
    appearance: none;
    width: 100%;
    height: 48px;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.hotel-sort-filter:hover {
    border-color: #8b5cf6;
    background: #2D2D31;
}

.hotel-sort-filter:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
    background: #2D2D31;
}

.hotel-sort-filter option {
    background: #27272B;
    color: #ffffff;
    font-weight: 400;
    font-size: inherit;
}

.sort-chevron {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #777E90;
    pointer-events: none;
    transition: all 0.2s ease;
}

.hotel-sort-filter:hover + .sort-chevron,
.hotel-sort-filter:focus + .sort-chevron {
    color: #8b5cf6;
}

.hotel-sort-filter:focus + .sort-chevron {
    transform: translateY(-50%) rotate(180deg);
}

/* Results Counter & View Toggle Container */
.hotel-controls-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
    margin-left: auto;
    padding-left: 16px;
}

.hotel-results-counter {
    display: flex;
    align-items: baseline;
    gap: 5px;
    font-size: 13px;
}

.results-count {
    font-size: 16px;
    font-weight: 700;
    color: #10b981;
}

.results-label {
    font-size: 12px;
    color: #B4B4B8;
    font-weight: 400;
    white-space: nowrap;
}

/* View Toggle Integration */
.hotel-controls-right .hotel-grid__view-toggle {
    margin: 0;
}

/* Mobile-First Responsive Design for Toolbar */

/* Mobile Base Styles - Override default desktop layout */
@media (max-width: 1023px) {
    .hotel-filters-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
        padding: 16px 12px !important;
        overflow: visible !important;
    }
    
    .hotel-search-wrapper {
        flex: none !important;
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        order: 1;
    }
    
    .hotel-search-input,
    input#hotel-search-input,
    .hotel-filters-bar .hotel-search-input {
        padding: 12px 32px 12px 16px !important;
        font-size: 16px !important; /* Prevent iOS zoom */
        height: 48px !important;
        box-sizing: border-box !important;
    }
    
    .hotel-filter-chips {
        display: none !important;
    }
    
    .filter-chip,
    .filter-chip--unified {
        height: 48px !important;
        padding: 12px 16px !important;
        font-size: 16px !important;
    }
    
    .filter-chip svg {
        width: 16px !important;
        height: 16px !important;
    }
    
    .hotel-filter-dropdown {
        display: block !important;
        flex: none !important;
        width: 100% !important;
        order: 2;
        margin: 0 !important;
    }
    
    .hotel-filter-dropdown .filter-chip--unified {
        width: 100%;
        justify-content: flex-start;
    }
    
    .hotel-sort-wrapper {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        flex: none !important;
        width: 100% !important;
        order: 3;
        margin: 0 !important;
    }
    
    
    .sort-select-container {
        width: 100% !important;
        min-width: 0 !important;
    }
    
    .hotel-sort-filter {
        width: 100% !important;
        min-width: 0 !important;
        height: 48px !important;
        font-size: 16px !important; /* Prevent iOS zoom */
        padding: 12px 40px 12px 16px !important;
    }
    
    .hotel-controls-right {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 12px !important;
        flex: none !important;
        width: 100% !important;
        order: 4;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .hotel-results-counter {
        flex: 1 !important;
        font-size: 14px;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    .hotel-filters-bar {
        padding: 12px 8px !important;
        gap: 10px !important;
        border-radius: 8px;
    }
    
    .hotel-search-input,
    input#hotel-search-input,
    .hotel-filters-bar .hotel-search-input {
        padding: 10px 28px 10px 36px !important;
        height: 44px !important;
        font-size: 16px !important;
    }
    
    .hotel-sort-filter {
        height: 48px !important;
        min-height: 48px !important;
        padding: 10px 36px 10px 14px !important;
        font-size: 16px !important;
    }
    
    .hotel-filter-dropdown .filter-chip--unified {
        height: 44px !important;
        padding: 10px 16px !important;
    }
    
    
    .hotel-results-counter {
        font-size: 13px;
    }
}

/* Tablet Portrait (600px - 767px) */
@media (min-width: 600px) and (max-width: 767px) {
    .hotel-filters-bar {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 12px !important;
        padding: 12px 16px !important;
    }
    
    .hotel-search-wrapper {
        flex: 1 1 200px !important;
        max-width: 300px !important;
        width: auto !important;
        order: 1;
    }
    
    .hotel-filter-dropdown {
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: 140px !important;
        order: 2;
    }
    
    .hotel-sort-wrapper {
        flex-direction: row !important;
        align-items: center !important;
        gap: 8px !important;
        flex: 0 0 auto !important;
        width: auto !important;
        order: 3;
    }
    
    
    .sort-select-container {
        width: 100% !important;
    }
    
    .hotel-sort-filter {
        width: 100% !important;
        height: 40px !important;
        font-size: 14px !important;
        padding: 8px 32px 8px 12px !important;
    }
    
    .hotel-controls-right {
        flex: 0 0 auto !important;
        width: auto !important;
        order: 4;
        margin-left: auto;
    }
}

/* Desktop (1024px+) - Modern CSS Grid Layout */
@media (min-width: 1024px) {
    .hotel-filters-bar {
        display: grid !important;
        grid-template-columns: auto auto auto 1fr auto !important;
        grid-template-areas: "search filters sort spacer controls" !important;
        align-items: center !important;
        gap: 16px !important;
        padding: 12px 16px !important;
        overflow: hidden !important;
    }
    
    .hotel-search-wrapper {
        grid-area: search;
        width: auto;
        min-width: 180px;
        max-width: 280px;
    }
    
    .hotel-search-input,
    input#hotel-search-input,
    .hotel-filters-bar .hotel-search-input {
        padding: 10px 32px 10px 16px !important;
        font-size: 14px !important;
        height: 40px !important;
    }
    
    .hotel-filter-chips {
        grid-area: filters;
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 6px !important;
        overflow-x: auto;
        margin: 0 !important;
        scrollbar-width: none;
    }
    
    .hotel-filter-chips::-webkit-scrollbar {
        display: none;
    }
    
    .hotel-filter-dropdown {
        display: none !important;
    }
    
    .hotel-sort-wrapper {
        grid-area: sort;
        width: auto;
        min-width: 200px;
        margin: 0;
    }
    
    .hotel-sort-filter {
        height: 40px !important;
        font-size: 14px !important;
        padding: 10px 32px 10px 16px !important;
        white-space: nowrap;
    }
    
    .hotel-controls-right {
        grid-area: controls;
        gap: 12px;
        margin: 0;
        padding: 0;
        justify-self: end;
    }
}

/* Large Desktop (1200px+) */
@media (min-width: 1200px) {
    .hotel-filters-bar {
        gap: 20px !important;
    }
    
    .hotel-search-wrapper {
        min-width: 200px;
        max-width: 300px;
    }
    
    .hotel-sort-wrapper {
        min-width: 220px;
    }
}

/* Extra Large Desktop (1400px+) */
@media (min-width: 1400px) {
    .hotel-filters-bar {
        gap: 24px !important;
        padding: 12px 20px !important;
    }
    
    .hotel-search-wrapper {
        min-width: 220px;
        max-width: 320px;
    }
    
    .hotel-sort-wrapper {
        min-width: 240px;
    }
}


/* Touch Device Enhancements */
@media (hover: none) and (pointer: coarse) {
    .hotel-search-input,
    input#hotel-search-input,
    .hotel-filters-bar .hotel-search-input,
    .hotel-sort-filter {
        min-height: 48px !important;
        padding-top: 14px !important;
        padding-bottom: 14px !important;
    }
    
    .filter-chip {
        min-height: 44px !important;
        padding: 10px 16px !important;
    }
    
    .search-clear-btn {
        width: 32px !important;
        height: 32px !important;
        padding: 8px !important;
    }
}

/* Grid Sections */
.grid-view-container,
.map-view-container {
    -webkit-transition: opacity 0.3s ease;
    transition: opacity 0.3s ease;
}

.grid-view-container.hidden,
.map-view-container.hidden {
    display: none;
}

/* Legacy .products-grid removed - use .hotel-grid-container instead */

/* Featured Section */
.featured-section-component {
    margin-bottom: 40px;
    padding: 24px;
    background: linear-gradient(135deg, #fef3c7 0%, #f9fafb 100%);
    border-radius: 16px;
    border: 1px solid #fbbf24;
}

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

.featured-section__title {
    font-size: 24px;
    font-weight: 700;
    color: #92400e;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.featured-section__title::before {
    content: '⭐';
    font-size: 20px;
}

.featured-section__count {
    font-size: 14px;
    font-weight: 600;
    color: #92400e;
    background: rgba(251, 191, 36, 0.2);
    padding: 4px 12px;
    border-radius: 12px;
}

/* Load More */
.load-more-component {
    margin-top: 32px;
    text-align: center;
    padding: 20px;
}

.load-more__progress {
    margin-bottom: 16px;
}

.load-more__progress-text {
    display: block;
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 8px;
}

.load-more__progress-bar {
    width: 100%;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
}

.load-more__progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6 0%, #a78bfa 100%);
    border-radius: 2px;
    -webkit-transition: width 0.3s ease;
    transition: width 0.3s ease;
}

.load-more__button {
    background: #8b5cf6;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
    outline: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    
    /* Safari GPU acceleration */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.load-more__button:hover {
    background: #7c3aed;
    -webkit-transform: translateY(-2px) translateZ(0);
    transform: translateY(-2px) translateZ(0);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

.load-more__button:focus {
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.3);
}

.load-more__button:disabled {
    background: #9ca3af;
    color: #d1d5db;
    cursor: not-allowed;
    -webkit-transform: none;
    transform: none;
    box-shadow: none;
}

.load-more__button-count {
    font-size: 14px;
    font-weight: 400;
    opacity: 0.8;
}

.load-more__spinner {
    display: none;
    width: 16px;
    height: 16px;
}

.load-more__button.loading .load-more__spinner {
    display: block;
}

.load-more__button.loading .load-more__button-text,
.load-more__button.loading .load-more__button-count {
    display: none;
}

/* Empty State */
.hotel-grid__empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #1C1C1E;
    border-radius: 16px;
    border: 2px dashed #3F3F46;
    margin: 40px 0;
}

.empty-state__icon {
    margin-bottom: 20px;
    color: #6b7280;
}

.empty-state__title {
    font-size: 24px;
    font-weight: 700;
    color: #e5e7eb;
    margin: 0 0 12px 0;
}

.empty-state__message {
    font-size: 16px;
    color: #9ca3af;
    margin: 0 0 24px 0;
    line-height: 1.5;
}

.empty-state__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.empty-state__button {
    background: #8b5cf6;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
    outline: none;
}

.empty-state__button:hover {
    background: #7c3aed;
}

.empty-state__button--secondary {
    background: transparent;
    color: #a78bfa;
    border: 1px solid #a78bfa;
}

.empty-state__button--secondary:hover {
    background: #a78bfa;
    color: #1C1C1E;
}

/* Loading State */
.hotel-grid-component.loading {
    position: relative;
}

.hotel-grid-component.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: 16px;
    background: transparent;
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    /* Legacy .products-grid responsive rules removed */
    
    .head-cont {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .hotel-sort-container {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    /* Legacy .products-grid responsive rules removed */
    
    .featured-section-component {
        padding: 20px 16px;
        margin-bottom: 32px;
    }
    
    .featured-section__header {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .hotel-grid__view-toggle {
        width: 100%;
        justify-content: center;
    }
    
    .hotel-grid__view-btn {
        flex: 1;
        justify-content: center;
        padding: 12px 16px;
    }
    
    .hotel-sort-filter {
        width: 100%;
        min-width: auto;
    }
    
    .load-more__button {
        width: 100%;
        max-width: 300px;
        padding: 16px 24px;
        font-size: 16px;
    }
    
    .empty-state__actions {
        flex-direction: column;
        align-items: center;
    }
    
    .empty-state__button {
        width: 100%;
        max-width: 200px;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .hotel-grid__view-btn {
        border: 1px solid #000000;
    }
    
    .hotel-grid__view-btn.active {
        background: #000000;
        color: #ffffff;
    }
    
    .hotel-sort-filter {
        border: 2px solid #000000;
    }
    
    .load-more__button {
        border: 2px solid #000000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .hotel-grid__view-btn,
    .hotel-sort-filter,
    .load-more__button,
    .grid-view-container,
    .map-view-container {
        -webkit-transition: none !important;
        transition: none !important;
        animation: none !important;
    }
    
    .load-more__button:hover {
        -webkit-transform: none;
        transform: none;
    }
    
    .sort-chevron {
        -webkit-transition: none !important;
        transition: none !important;
    }
}

/* Safari-Specific Optimizations */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .hotel-grid-component {
        -webkit-font-smoothing: antialiased;
    }
    
    .hotel-grid__view-btn,
    .hotel-sort-filter,
    .load-more__button {
        -webkit-tap-highlight-color: transparent;
        -webkit-font-smoothing: antialiased;
    }
    
    .hotel-grid-container {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
}

/* Print Styles */
@media print {
    .hotel-grid__view-toggle,
    .sort-controls,
    .load-more-component {
        display: none;
    }
    
    /* Legacy .products-grid print rules removed */
    
    .grid-view-container {
        display: block !important;
    }
    
    .map-view-container {
        display: none !important;
    }
}

/* Grid Layout with Hotel Informational Text Panel */
.with-informational-text-panel .grid-view-layout {
    display: block !important;
    width: 100% !important;
}

.with-informational-text-panel .grid-view-main {
    width: 100% !important;
}

/* When info panel is present */
.grid-view-container.with-informational-text-panel .grid-view-layout {
    display: flex !important;
    flex-direction: row !important;
    gap: 24px !important;
    align-items: flex-start !important;
}

.grid-view-container.with-informational-text-panel .grid-view-main {
    flex: 1 !important;
    min-width: 0 !important;
}

/* Keep Team Hotels heading aligned with informational panel at initial render */
.grid-view-container.with-informational-text-panel .team-hotels-section .hotel-section-title {
    margin-top: 0 !important;
}

/* Add separation before All Hotels heading */
.grid-view-container.with-informational-text-panel .all-hotels-section .hotel-section-title {
    margin-top: 28px !important;
}

/* Ensure parent containers don't break sticky */
.grid-view-container.with-informational-text-panel {
    overflow: visible !important;
}

.hotel-grid-wrapper.has-informational-text-panel {
    overflow: visible !important;
}

.hotel-grid-wrapper.has-informational-text-panel .hotel-grid-inner {
    overflow: visible !important;
}


.hotel-grid-container--grid .hotel-section {
    grid-column: 1 / -1;
    width: 100%;
    box-sizing: border-box;
}

/* Same column tracks as .hotel-grid-container--grid — fixed columns so one card never grows to full row width */
.hotel-grid-container--grid .hotel-section-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
    align-items: start;
    justify-items: stretch;
}

.hotel-grid-container--grid .hotel-section-grid .hotel-card {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Team claim member: section headings (match dark hotel-card theme in HotelCard.css) */
.hotel-grid-container--grid .hotel-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--hotel-section-heading-color, #f3f4f6);
    margin: 0 0 0.5rem;
    padding-bottom: 0;
    border-bottom: none;
    letter-spacing: -0.02em;
    width: 100%;
    box-sizing: border-box;
}
.hotel-grid-container--grid .team-hotels-section:first-child .hotel-section-title {
    margin-top: 0;
}
.hotel-grid-container--grid .all-hotels-section .hotel-section-title {
    margin-top: 1.75rem;
}
.hotel-grid-container--grid .all-hotels-section:first-child .hotel-section-title {
    margin-top: 0;
}
.hotel-grid-container--grid .team-hotels-section + .all-hotels-section .hotel-section-title {
    margin-top: 1.75rem;
}

.hotel-grid-container--grid .hotel-section--continuation {
    margin-top: 0;
}

.hotel-grid-container--grid:has(.hotel-section) {
    display: block;
}

.hotel-section-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
    align-items: start;
    justify-items: stretch;
    box-sizing: border-box;
}

.hotel-section-title + .hotel-section-grid {
    margin-top: 14px;
}

/* Match .with-informational-text-panel hotel grid: 3 cols when sidebar is present */
.grid-view-container.with-informational-text-panel .hotel-section-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1200px) {
    .hotel-grid-container--grid .hotel-section-grid,
    .hotel-section-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
    }

    .grid-view-container.with-informational-text-panel .hotel-section-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .hotel-grid-container--grid .hotel-section-grid,
    .hotel-section-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (max-width: 600px) {
    .hotel-grid-container--grid .hotel-section-grid,
    .hotel-section-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .grid-view-container.with-informational-text-panel .hotel-section-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.hotel-skeleton-grid {
    display: none;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.hotel-skeleton-card {
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    min-width: 0;
    width: 100%;
}

.hotel-skeleton-card__image {
    height: 240px;
    background: linear-gradient(90deg, #171a22 25%, #202531 37%, #171a22 63%);
    background-size: 400% 100%;
    animation: hotel-skeleton-shimmer 1.25s ease infinite;
}

.hotel-skeleton-card__content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 170px;
}

.hotel-skeleton-card__line {
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, #171a22 25%, #202531 37%, #171a22 63%);
    background-size: 400% 100%;
    animation: hotel-skeleton-shimmer 1.25s ease infinite;
}

.hotel-skeleton-card__line--title {
    width: 82%;
    height: 18px;
    margin-bottom: 14px;
    min-height: 47px;
}

.hotel-skeleton-card__line--meta {
    width: 42%;
    margin-bottom: 0;
}

.hotel-skeleton-card__meta-row {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 18px;
}

.hotel-skeleton-card__price-row {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    min-height: 72px;
}

.hotel-skeleton-card__price-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1 1 auto;
    min-width: 0;
}

.hotel-skeleton-card__line--label {
    width: 42px;
    height: 10px;
}

.hotel-skeleton-card__line--price {
    width: 64px;
    height: 24px;
    margin-bottom: 0;
}

.hotel-skeleton-card__line--period {
    width: 48px;
    height: 10px;
    margin-bottom: 0;
}

.hotel-skeleton-card__line--button {
    width: 112px;
    height: 38px;
    border-radius: 8px;
    margin-bottom: 0;
}

@media (max-width: 1200px) {
    .hotel-skeleton-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }

    .with-informational-text-panel .hotel-skeleton-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .hotel-skeleton-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 600px) {
    .hotel-skeleton-grid,
    .with-informational-text-panel .hotel-skeleton-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@keyframes hotel-skeleton-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* Prevent transient card paint artifacts during hotel loading */
body.hotel-grid-loading [data-hotel-grid-main] .hotel-card,
body.hotel-grid-loading [data-hotel-grid-main] [data-hotel-id],
body.hotel-grid-loading [data-hotel-grid-map] .hotel-card,
body.hotel-grid-loading [data-hotel-grid-map] [data-hotel-id],
body.hotel-grid-loading [data-featured-grid] .hotel-card,
body.hotel-grid-loading [data-featured-grid] [data-hotel-id] {
    visibility: hidden !important;
    pointer-events: none !important;
}

body.hotel-grid-loading .hotel-skeleton-grid {
    display: grid;
}
