/* ======================
RESET
====================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ======================
GLOBAL
====================== */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background-color: #f7f7f7;
    color: #222;
}

/* ======================
TITRE RÉSULTATS
====================== */

.results-title-airbnb {
    text-align: center;
    font-size: 2.4rem;
    font-weight: 700;
    margin: 70px 0 50px;
}

.results-title-airbnb span {
    color: #f5b800;
}

/* ======================
GRID AIRBNB
====================== */

.airbnb-grid {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 40px 100px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 35px;
}

/* ======================
CARD
====================== */

/* ======================
AIRBNB CARD – PREMIUM
====================== */

.airbnb-card {
    background: linear-gradient(180deg, #ffffff, #fafafa);
    border-radius: 22px;
    overflow: hidden;
    position: relative;
    transition:
            transform 0.45s cubic-bezier(.22,.61,.36,1),
            box-shadow 0.45s cubic-bezier(.22,.61,.36,1);
    box-shadow:
            0 18px 30px rgba(0,0,0,0.06),
            0 18px 35px rgba(0,0,0,0.08);
}

/* Bord lumineux */
.airbnb-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 22px;
    padding: 1px;
    background: linear-gradient(
            135deg,
            rgba(255,255,255,0.9),
            rgba(245,184,0,0.35),
            rgba(255,255,255,0.9)
    );
    -webkit-mask:
            linear-gradient(#fff 0 0) content-box,
            linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.45s ease;
    pointer-events: none;
}

.airbnb-card:hover::before {
    opacity: 1;
}

.airbnb-card:hover {
    transform: translateY(-12px) scale(1.015);
    box-shadow:
            0 10px 30px rgba(0,0,0,0.12),
            0 40px 80px rgba(0,0,0,0.18);
}

/* ======================
IMAGE PREMIUM
====================== */

.airbnb-image {
    position: relative;
    height: 240px;
    overflow: hidden;
    border-radius: 22px;
}

/* Overlay subtil */
.airbnb-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
            to bottom,
            rgba(0,0,0,0.05),
            rgba(0,0,0,0.25)
    );
    opacity: 0.9;
    transition: opacity 0.45s ease;
}

.airbnb-card:hover .airbnb-image::after {
    opacity: 0.6;
}

.airbnb-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 0.6s ease;
}

.airbnb-card:hover img {
    transform: scale(1.1);
}

/* ======================
CONTENT
====================== */

.airbnb-content {
    padding: 22px 16px 16px;
}

.airbnb-content h2 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #111;
    margin-bottom: 8px;
    letter-spacing: -0.2px;
}

/* Meta plus clean */
.airbnb-meta {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 18px;
}

/* ======================
ACTIONS
====================== */

.airbnb-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.airbnb-actions a {
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    color: #444;
    transition: color 0.25s ease;
}

.airbnb-actions a:hover {
    color: #000;
}

/* Bouton réserver premium */
.airbnb-actions .reserve {
    background: linear-gradient(135deg, #111, #000);
    color: #fff;
    padding: 9px 20px;
    border-radius: 999px;
    box-shadow:
            0 8px 20px rgba(0,0,0,0.25),
            inset 0 -2px 0 rgba(255,255,255,0.1);
    transition:
            transform 0.25s ease,
            box-shadow 0.25s ease;
}

.airbnb-actions .reserve:hover {
    transform: translateY(-2px);
    box-shadow:
            0 14px 35px rgba(0,0,0,0.35);
}


/* ======================
NO RESULTS
====================== */

.no-results {
    text-align: center;
    margin: 100px 0;
    font-size: 1.1rem;
    color: #9ca3af;
    font-style: italic;
}

/* ======================
RESPONSIVE
====================== */

@media (max-width: 1024px) {
    .airbnb-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 28px;
    }
}

@media (max-width: 768px) {
    .results-title-airbnb {
        font-size: 1.9rem;
        margin: 50px 0 35px;
    }

    .airbnb-grid {
        padding: 0 20px 60px;
        gap: 24px;
    }

    .airbnb-image {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .airbnb-content h2 {
        font-size: 1rem;
    }

    .airbnb-meta {
        font-size: 0.85rem;
    }

    .airbnb-actions .reserve {
        padding: 7px 16px;
    }
}



/* ======================
CURSOR INTERACTIF
====================== */

.airbnb-card {
    cursor: pointer;
}

/* ======================
SHADOW ULTRA PREMIUM
====================== */

.airbnb-card {
    background: linear-gradient(180deg, #ffffff, #f9fafb);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    transition:
            transform 0.5s cubic-bezier(.22,.61,.36,1),
            box-shadow 0.5s cubic-bezier(.22,.61,.36,1);
    box-shadow:
            0 8px 20px rgba(0,0,0,0.08),
            0 25px 50px rgba(0,0,0,0.15);
}

.airbnb-card:hover {
    transform: translateY(-14px) scale(1.02);
    box-shadow:
            0 15px 35px rgba(0,0,0,0.18),
            0 50px 120px rgba(0,0,0,0.28);
}

/* ======================
IMAGE + OVERLAY
====================== */

.airbnb-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.airbnb-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
            to bottom,
            rgba(0,0,0,0.05),
            rgba(0,0,0,0.35)
    );
    transition: opacity 0.5s ease;
}

.airbnb-card:hover .airbnb-image::after {
    opacity: 0.6;
}

.airbnb-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.airbnb-card:hover img {
    transform: scale(1.12);
}

.airbnb-card {
    padding: 14px; /* crée le cadre blanc autour */
}

.airbnb-image {
    height: 240px;
    border-radius: 16px;
    overflow: hidden;
}





/* ======================
BADGES (RATING / VIDEO)
====================== */

.badge-container {
    position: absolute;
    top: 14px;
    left: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2;
}

.badge {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(6px);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #111;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Badge vidéo animé */
.badge.video {
    background: linear-gradient(135deg, #111, #000);
    color: #fff;
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0,0,0,0.4); }
    70% { box-shadow: 0 0 0 12px rgba(0,0,0,0); }
    100% { box-shadow: 0 0 0 0 rgba(0,0,0,0); }
}

/* ======================
DISTANCE BADGE
====================== */

.distance-badge {
    position: absolute;
    bottom: 14px;
    left: 14px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

/* ======================
CONTENT
====================== */

.airbnb-content {
    padding: 22px 16px 16px;
}

.airbnb-content h2 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #111;
    margin-bottom: 8px;
}

.airbnb-meta {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 18px;
}

/* ======================
ACTIONS
====================== */

.airbnb-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.airbnb-actions a {
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    color: #444;
}

.airbnb-actions .reserve {
    background: linear-gradient(135deg, #111, #000);
    color: #fff;
    padding: 9px 22px;
    border-radius: 999px;
    box-shadow:
            0 10px 25px rgba(0,0,0,0.35),
            inset 0 -2px 0 rgba(255,255,255,0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.airbnb-actions .reserve:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 45px rgba(0,0,0,0.45);
}



.badge.rating.stars {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 1.1rem;
    color: #f5b800;
    background: rgba(0,0,0,0.6);
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 700;
}

.rating-value {
    margin-left: 6px;
    font-size: 0.85rem;
    color: #fff;
    opacity: 0.9;
}


.airbnb-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}





.video-play-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: #ff0000;
    color: #ff0000; /* utile car le 1er path est en currentColor */
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(255, 0, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    cursor: pointer;
}

.video-play-btn:hover {
    transform: scale(1.06);
    box-shadow: 0 14px 35px rgba(255, 0, 0, 0.35);
    filter: brightness(0.98);
}

.video-play-btn:active {
    transform: scale(0.98);
}









.yt-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 3000;
}

.yt-modal.show {
    display: block;
}

.yt-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(6px);
}

.yt-modal__content {
    position: relative;
    width: min(980px, 92vw);
    margin: 7vh auto;
    background: #111;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.55);
}

.yt-modal__close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: none;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 26px;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s ease;
}
.yt-modal__close:hover {
    background: rgba(255,255,255,0.22);
}

.yt-modal__ratio {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    overflow: hidden;
}

.yt-modal__ratio iframe,
.yt-modal__ratio video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    object-fit: contain;
}






#manualCitySelection {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition:
            max-height 0.35s ease,
            opacity 0.25s ease,
            transform 0.25s ease;
}

#manualCitySelection.show {
    max-height: 520px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;

    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px;
    max-height: 520px;
}


.city-list {
    max-height: 300px;
    overflow-y: auto;
}


.modal {
    overflow-y: auto;
}



.manual-panel {
    margin-top: 25px;
}

/* Allow overflow for city modal content */
#cityModal .modal-content {
    overflow: visible !important;
    padding-bottom: 200px;
}

#cityModal .city-selection {
    overflow: visible !important;
}

#cityModal .manual-panel {
    overflow: visible !important;
}

/* City Search Autocomplete */
.search-city-autocomplete {
    position: relative;
    width: 100%;
}

.search-city-autocomplete .city-search-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.search-city-autocomplete .city-search-input:focus {
    outline: none;
    border-color: #f5b800;
    box-shadow: 0 0 0 3px rgba(245, 184, 0, 0.1);
}

.city-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 12px 12px;
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 9999;
    display: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.city-search-results.show {
    display: block;
}

.city-result-item {
    padding: 12px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
}

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

.city-result-item:hover {
    background-color: #fef3c7;
}

.city-result-item .city-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.city-result-item .city-name {
    font-weight: 600;
    color: #111;
}

.city-result-item .city-postal {
    font-size: 0.8rem;
    color: #9ca3af;
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
}

.city-result-item .city-country {
    font-size: 0.85rem;
    color: #6b7280;
}

.city-result-item.no-results {
    justify-content: center;
    color: #9ca3af;
    font-style: italic;
    cursor: default;
}

.city-result-item.no-results:hover {
    background-color: transparent;
}

/* Scrollbar for results */
.city-search-results::-webkit-scrollbar {
    width: 8px;
}

.city-search-results::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 0 0 10px 0;
}

.city-search-results::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 10px;
}

.city-search-results::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}



.hidden {
    display: none !important;
}


select.city-search-input {
    appearance: auto;
    -webkit-appearance: menulist;
    -moz-appearance: menulist;
    background-color: #fff;
}


/* Afficher les boutons sur 2 lignes */
.modal-actions {
    flex-direction: column;
}

.modal-actions .modal-btn {
    width: 100%;
}

/* ======================
Drawer Details info - Enhanced
====================== */

/* Drawer Overlay */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Drawer Panel */
.drawer {
    position: fixed;
    top: 0;
    right: -480px;
    width: 480px;
    height: 100vh;
    background-color: #fff;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.drawer.active {
    right: 0;
}

.drawer-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.drawer-close:hover {
    background: #fff;
    transform: scale(1.1);
}

.drawer-close svg {
    color: #333;
}

.drawer-content {
    padding: 0;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Header with image carousel */
.drawer-header {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

/* Drawer Carousel */
.drawer-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.drawer-carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.drawer-carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.drawer-carousel-slide.active {
    opacity: 1;
}

.drawer-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.drawer-carousel-slide .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    color: #999;
    font-size: 16px;
}

/* Carousel Navigation Buttons */
.drawer-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: #111;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.drawer-carousel-btn:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
}

.drawer-carousel-btn.prev {
    left: 12px;
}

.drawer-carousel-btn.next {
    right: 12px;
}

/* Carousel Dots */
.drawer-carousel-dots {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 6;
}

.drawer-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.2s ease;
}

.drawer-carousel-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.drawer-carousel-dot.active {
    background: #fff;
    transform: scale(1.3);
}

.drawer-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Top overlay for rating badge */
.drawer-image-overlay-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 16px;
    z-index: 5;
}

/* Bottom overlay for info chips and video button */
.drawer-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
    z-index: 5;
}

.drawer-overlay-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Info chips (players, duration, difficulty) */
.drawer-info-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.drawer-info-chip .chip-icon {
    font-size: 14px;
}

.drawer-info-chip .chip-value {
    font-weight: 600;
}

.drawer-info-chip .difficulty-dots {
    display: flex;
    gap: 4px;
}

.drawer-info-chip .difficulty-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
}

.drawer-info-chip .difficulty-dot.filled {
    background: #fff;
}

/* Video button on overlay */
.drawer-video-btn-overlay {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #e53935;
    border-radius: 20px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-left: auto;
}

.drawer-video-btn-overlay:hover {
    background: #c62828;
    transform: scale(1.05);
}

.drawer-video-btn-overlay .video-icon {
    font-size: 12px;
}

.drawer-badges {
    display: flex;
    gap: 8px;
}

.drawer-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.drawer-badge.rating {
    background: linear-gradient(135deg, #f5b800, #fde047);
    color: #111;
}

.drawer-badge .star {
    font-size: 14px;
}

/* Body */
.drawer-body {
    padding: 24px;
}

.drawer-title {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 12px 0;
    color: #111;
    line-height: 1.3;
}

.drawer-description {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 24px;
}

/* Info Grid */
.drawer-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.drawer-info-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px 12px;
    text-align: center;
}

.drawer-info-item .info-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.drawer-info-item .info-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.drawer-info-item .info-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.drawer-info-item .info-value {
    font-size: 16px;
    font-weight: 700;
    color: #111;
}

/* Difficulty dots */
.difficulty-dots {
    display: flex;
    justify-content: center;
    gap: 4px;
}

.difficulty-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #e0e0e0;
    transition: background-color 0.2s ease;
}

.difficulty-dot.filled {
    background: linear-gradient(135deg, #f5b800, #fde047);
}

/* Video Button */
.drawer-video-container {
    margin-bottom: 24px;
}

.drawer-video-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    background: #111;
    color: #fff;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
}

.drawer-video-btn:hover {
    background: #333;
    transform: translateY(-2px);
}

.drawer-video-btn .video-icon {
    font-size: 16px;
}

/* Sessions */
.drawer-sessions {
    margin-bottom: 24px;
}

.drawer-sessions h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #111;
}

.drawer-sessions .sessions-icon {
    font-size: 18px;
}

.sessions-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.session-time {
    padding: 10px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
}

.session-time:hover {
    border-color: #f5b800;
    background: #fffbeb;
}

/* Action Buttons - Sticky Footer */
.drawer-actions-sticky {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 24px;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
}

.drawer-reserve-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #f5b800, #fde047);
    color: #111;
    border: none;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(245, 184, 0, 0.3);
}

.drawer-reserve-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 184, 0, 0.4);
}

.drawer-reserve-btn svg {
    transition: transform 0.2s ease;
}

.drawer-reserve-btn:hover svg {
    transform: translateX(4px);
}

.drawer-details-btn {
    display: block;
    width: 100%;
    padding: 14px 24px;
    background: transparent;
    color: #666;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
}

.drawer-details-btn:hover {
    border-color: #111;
    color: #111;
}

/* Desktop: centered modal dialog */
@media (min-width: 769px) {
    .drawer {
        /* Center the modal */
        top: 50%;
        left: 50%;
        right: auto;
        transform: translate(-50%, -50%) scale(0.95);

        /* Modal dimensions */
        width: 95%;
        max-width: 900px;
        height: auto;
        max-height: 95vh;

        /* Modal appearance */
        border-radius: 24px;

        /* Hidden state */
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    }

    .drawer.active {
        right: auto;
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, -50%) scale(1);
    }

    .drawer-header {
        height: 350px;
        border-radius: 24px 24px 0 0;
    }

    .drawer-body {
        padding: 16px 20px;
    }

    .drawer-title {
        font-size: 26px;
        margin-bottom: 8px;
    }

    .drawer-description {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .drawer-info-grid {
        margin-bottom: 16px;
        gap: 8px;
    }

    .drawer-info-item {
        padding: 12px 8px;
    }

    .drawer-info-item .info-icon {
        font-size: 20px;
        margin-bottom: 4px;
    }

    .drawer-info-item .info-value {
        font-size: 14px;
    }

    /* Video button now in overlay */
    .drawer-video-btn-overlay {
        padding: 10px 18px;
        font-size: 13px;
    }

    .drawer-sessions {
        margin-bottom: 16px;
    }

    .drawer-sessions h3 {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .drawer-actions-sticky {
        padding: 12px 20px;
        gap: 8px;
        border-radius: 0 0 24px 24px;
    }

    .drawer-reserve-btn {
        padding: 12px 20px;
        font-size: 15px;
    }

    .drawer-details-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Responsive - Mobile drawer */
@media (max-width: 768px) {
    .drawer {
        width: 100%;
        right: -100%;
    }

    .drawer-header {
        height: 250px;
    }

    .drawer-overlay-info {
        gap: 6px;
    }

    .drawer-info-chip {
        padding: 6px 10px;
        font-size: 12px;
        gap: 4px;
    }

    .drawer-info-chip .chip-icon {
        font-size: 12px;
    }

    .drawer-video-btn-overlay {
        padding: 6px 12px;
        font-size: 12px;
    }

    .drawer-image-overlay {
        padding: 12px 16px;
    }

    .drawer-actions-sticky {
        padding: 12px 16px;
    }
}


/* ======================
   RESULTS MAP SPLIT VIEW
   ====================== */

.results-map-container {
    display: flex;
    height: calc(100vh - 80px);
    overflow: hidden;
}

.results-map-container.no-map {
    display: block;
    height: auto;
}

/* Results Panel (Left) */
.results-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #f7f7f7;
    transition: flex 0.3s ease;
}

.results-panel.full-width {
    flex: 1 1 100%;
}

.results-header {
    padding: 12px 24px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    gap: 16px;
}

.results-header .results-title-airbnb {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    text-align: left;
}

.results-header .results-title-airbnb span {
    color: #f5b800;
}

.results-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
}

/* Map Panel (Right) */
.map-panel {
    flex: 0 0 50%;
    position: relative;
    transition: flex 0.3s ease, opacity 0.3s ease;
}

.map-panel.hidden {
    flex: 0 0 0;
    opacity: 0;
    overflow: hidden;
}

.results-map {
    width: 100%;
    height: 100%;
}

/* Toggle Map Button */
.toggle-map-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.toggle-map-btn:hover {
    background: #333;
    transform: scale(1.02);
}

.toggle-map-icon {
    font-size: 16px;
}

/* Bottom Sheet Handle (mobile only) */
.bottom-sheet-handle {
    display: none;
}

/* Card hover state from map */
.game-card.map-hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(245, 184, 0, 0.3);
    border: 2px solid #f5b800;
}

/* ======================
   MOBILE BOTTOM SHEET
   ====================== */

@media (max-width: 768px) {
    .results-map-container {
        flex-direction: column;
        height: 100vh;
        height: 100dvh;
        position: relative;
    }

    /* Map takes top portion */
    .map-panel {
        flex: 0 0 55%;
        order: 1;
        position: relative;
    }

    .map-panel.hidden {
        display: none;
    }

    /* Results panel as bottom sheet */
    .results-panel {
        flex: 0 0 45%;
        order: 2;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 45vh;
        min-height: 150px;
        max-height: calc(100vh - 100px);
        max-height: calc(100dvh - 100px);
        background: #fff;
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
        z-index: 100;
        transition: height 0.3s ease;
    }

    .results-panel.expanded {
        height: 85vh;
        height: 85dvh;
    }

    .results-panel.collapsed {
        height: 150px;
    }

    .results-panel.full-width {
        position: relative;
        height: auto;
        max-height: none;
        border-radius: 0;
        box-shadow: none;
    }

    /* Bottom sheet handle */
    .bottom-sheet-handle {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 12px 0 8px;
        cursor: grab;
        touch-action: none;
    }

    .bottom-sheet-handle:active {
        cursor: grabbing;
    }

    .handle-bar {
        width: 40px;
        height: 4px;
        background: #d1d5db;
        border-radius: 2px;
    }

    .results-header {
        padding: 10px 16px 15px;
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    /* Hide toggle button on mobile */
    .toggle-map-btn {
        display: none;
    }

    .results-scroll {
        padding: 0 16px 20px;
    }

    /* Make grid single column on mobile in this context */
    .results-scroll .airbnb-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .map-panel {
        flex: 0 0 45%;
    }

    .results-scroll {
        padding: 16px;
    }
}

/* Large screens */
@media (min-width: 1200px) {
    .map-panel {
        flex: 0 0 55%;
    }
}

/* Adjust grid inside split view */
.results-scroll .airbnb-grid {
    max-width: none;
    padding: 0;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.results-panel.full-width .results-scroll .airbnb-grid {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}
