/* ============================================
   DEMO SITES - Styles Partagés
   ============================================ */

/* Utilities communes */
.demo-widget {
    max-width: 400px;
}

@media (max-width: 768px) {
    .demo-widget {
        position: relative !important;
        top: auto !important;
        max-width: 100%;
    }
}

/* Animation scale-in pour modal */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-scale-in {
    animation: scaleIn 0.3s ease-out;
}

/* Gallery grid */
.demo-gallery {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.demo-gallery img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 1rem;
    transition: transform 0.3s ease;
}

.demo-gallery img:hover {
    transform: scale(1.05);
}

/* Hero section */
.demo-hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.demo-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.demo-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
    z-index: 1;
}

.demo-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
}

/* Reviews */
.review-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.review-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
}

.review-stars {
    color: #d4af37;
}

/* Amenities grid */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0.75rem;
    font-size: 0.875rem;
}

.amenity-item i {
    flex-shrink: 0;
    color: #d4af37;
}

/* Section styles */
.demo-section {
    padding: 4rem 0;
}

.demo-section-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-align: center;
}

.demo-section-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    max-width: 42rem;
    margin: 0 auto 3rem;
}

/* Property info badges */
.property-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* CTA Floating */
.cta-floating {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
    background: linear-gradient(135deg, #d4af37, #f5e8b6);
    color: #020617;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 700;
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.4);
    transition: all 0.3s ease;
}

.cta-floating:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 15px 50px rgba(212, 175, 55, 0.5);
}

@media (max-width: 768px) {
    .cta-floating {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        text-align: center;
        font-size: 0.875rem;
        padding: 0.875rem 1.5rem;
    }
}

/* Responsive typography */
@media (max-width: 640px) {
    .demo-section-title {
        font-size: 2rem;
    }

    .demo-hero {
        height: 60vh;
        min-height: 400px;
    }
}

/* Loading skeleton (pour futures optimisations) */
.skeleton {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 25%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.03) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ============================================
   WIDGET PREMIUM OVERRIDES
   ============================================ */

/* Flatpickr Custom Theme (Gold/Slate) */
.flatpickr-calendar {
    background: #0f172a !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
    font-family: 'Outfit', sans-serif !important;
    width: 340px !important;
    /* Slightly wider for prices */
}

/* Day Cell Layout */
.flatpickr-day {
    height: 48px !important;
    line-height: normal !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    border-radius: 8px !important;
    margin-top: 4px !important;
}

/* Price Tag Style */
.day-price {
    font-size: 9px;
    color: #94a3b8;
    margin-top: 2px;
    font-weight: 500;
}

.flatpickr-day.selected .day-price,
.flatpickr-day.startRange .day-price,
.flatpickr-day.endRange .day-price {
    color: rgba(0, 0, 0, 0.8) !important;
    font-weight: 700;
}

/* Blocked Dates Visuals */
.blocked-date {
    text-decoration: line-through !important;
    opacity: 0.3 !important;
    color: #ef4444 !important;
    /* Red tint for blocked */
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected.inRange,
.flatpickr-day.startRange.inRange,
.flatpickr-day.endRange.inRange,
.flatpickr-day.selected:focus,
.flatpickr-day.startRange:focus,
.flatpickr-day.endRange:focus,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover,
.flatpickr-day.selected.prevMonthDay,
.flatpickr-day.startRange.prevMonthDay,
.flatpickr-day.endRange.prevMonthDay,
.flatpickr-day.selected.nextMonthDay,
.flatpickr-day.startRange.nextMonthDay,
.flatpickr-day.endRange.nextMonthDay {
    background: #d4af37 !important;
    border-color: #d4af37 !important;
    color: #000 !important;
    /* Better contrast text */
}

.flatpickr-months .flatpickr-month {
    color: white !important;
    fill: white !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months .flatpickr-monthDropdown-month {
    color: black !important;
}

.flatpickr-day.inRange {
    box-shadow: -5px 0 0 #334155, 5px 0 0 #334155 !important;
    background: #334155 !important;
    border-color: #334155 !important;
}

/* Animation Fade In */
.animate-fade-in {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Guest Dropdown Mobile & States */
#guest-dropdown {
    min-width: 280px;
    animation: fadeIn 0.2s ease-out;
}

.guest-btn-minus:disabled,
.guest-btn-plus:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: rgba(255, 255, 255, 0.05);
}

.guest-btn-minus:not(:disabled):hover,
.guest-btn-plus:not(:disabled):hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(212, 175, 55, 0.5);
}