/* =========================
   HOTEL VERSION RESTAURANT STYLE
========================= */

.hotels-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

/* Responsive */
@media (max-width: 1000px) {
    .hotels-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .hotels-list {
        grid-template-columns: 1fr;
    }
}

.l3-carousel-wrapper {
    position: relative;
    width: 100%;
}

.l3-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    padding: 0px;
}

.l3-carousel-left {
    left: -10px;
}

.l3-carousel-right {
    right: -10px;
}

.hotels-carousel {
    display: flex;
    gap: 20px;
    overflow-x: hidden;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.hotels-carousel::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.hotels-carousel .carousel-element {
    flex: 0 0 calc((100% - 40px) / 3);
    box-sizing: border-box;
    padding: 10px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

@media (max-width:900px) {
    .hotels-carousel .carousel-element {
        flex: 0 0 calc((100% - 16px) / 2);
    }
}

@media (max-width:600px) {
    .hotels-carousel .carousel-element {
        flex: 0 0 100%;
    }
}


.hotels-carousel .carousel-element:last-child {
    padding-right: 0;
}

.hotels-carousel .carousel-element:first-child {
    padding-left: 0;
}

.hotel-title hotel {
    color: #fff;
}

.hotel-card {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.hotel-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

/* Bottom gradient */
.card-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 100px 14px 14px;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.75),
            rgba(0, 0, 0, 0));
    color: #fff;
}

.card-city {
    font-size: 0.85rem;
    opacity: 0.85;
    margin-top: 4px;
}

.card-meta {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Ligne principale */
.card-main {
    display: flex;
    gap: 8px;
    font-size: 0.9rem;
}

/* Ligne secondaire */
.card-secondary {
    font-size: 0.8rem;
    opacity: 0.85;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.card-main span,
.card-secondary span {
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(2px);
    padding: 2px 8px;
    font-size: 0.75rem;
    white-space: nowrap;
}

/* Title */
hotel {
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.2;
    display: block;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 6px;
    padding-top: 0;
    margin-top: 0;
}

/* =========================
   FILTERS – PREMIUM MATCH CARDS
========================= */

.l3-header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 0.5px solid #888;
}

.l3-filters-dropdown {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.l3-filter-wrapper {
    position: relative;
    display: inline-block;
}

.l3-filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 0.5px solid #888;
    border-radius: 4px;
    background: transparent;
    color: #888;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    white-space: nowrap;
}

.l3-filter-btn:hover {
    color: #fff;
    background: #444;
}

.l3-filter-btn.active {
    color: #fff;
    background: #444;
}

.l3-filter-btn .btn-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.l3-filter-btn .btn-arrow {
    width: 14px;
    height: 14px;
    margin-left: 4px;
    transition: transform 0.2s;
}

.l3-filter-btn.active .btn-arrow {
    transform: rotate(180deg);
}

.l3-filter-btn .btn-badge {
    background: #fff;
    color: #111;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.l3-dropdown-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 220px;
    background: var(--background-nav-color, #fff);
    border: 1.5px solid var(--text-color, #111);
    border-radius: 4px;
    z-index: 200;
    display: none;
    color: var(--text-color, #111);
}

.l3-dropdown-panel.open {
    display: block;
}

.l3-dropdown-title {
    padding: 14px 16px 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.l3-dropdown-sep {
    border: none;
    border-top: 1px solid #e5e5e5;
    margin: 0;
}

.l3-dropdown-list {
    max-height: 220px;
    overflow-y: auto;
    padding: 6px 0;
}

.l3-dropdown-list::-webkit-scrollbar {
    width: 4px;
}

.l3-dropdown-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

.l3-dropdown-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 14px;
    cursor: pointer;
    color: var(--text-color, #111);
    transition: background 0.1s;
}

.l3-dropdown-option:hover {
    background: var(--background-nav-contrasted);
}

.l3-dropdown-option.selected {
    font-weight: 500;
}

.l3-check {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    border: 1.5px solid var(--text-color, #111);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.l3-dropdown-option.selected .l3-check {
    background: #111;
    border-color: #111;
}

.l3-check-mark {
    display: none;
    width: 8px;
    height: 5px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translateY(-1px);
}

.l3-dropdown-option.selected .l3-check-mark {
    display: block;
}
