﻿/* ===================================
   LUXURY LINE — Hero Slider Component
   Source: luxury-main/css/styles.css
   =================================== */

.hero-slider {
    width: 100%;
    height: 600px;
    position: relative;
}

.heroSwiper {
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: pointer;
}

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

.hero-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

.hero-slide-content {
    position: absolute;
    bottom: 15%;
    left: 0;
    right: 0;
    z-index: 2;
    color: var(--color-text-white);
    max-width: var(--container-max-width, 1400px);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-slide-title {
    font-size: clamp(40px, 7vw, 90px);
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    letter-spacing: -1px;
    text-align: left;
}

.hero-slide-subtitle {
    font-size: clamp(18px, 2vw, 24px);
    font-weight: var(--font-weight-light);
    opacity: 0.95;
    text-align: left;
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
}

.hero-slide-filters {
    display: none;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: 0;
    z-index: 10;
}

/* Hero Filters (cascade) — floating bottom-right */
.hero-filters {
    position: absolute;
    bottom: 100px;
    right: 80px;
    z-index: 10;
}

.hero-filter-cascade {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── Custom selects inside the hero — exact luxury-main style ── */

/* Base select pill */
.hero-filter-cascade .custom-select {
    position: relative;
    min-width: 180px;
    user-select: none;
}

.hero-filter-cascade .custom-select-trigger {
    padding: 12px 20px !important;
    background-color: var(--color-background-light, #ebe6e1) !important;
    border: none !important;
    border-radius: 30px !important;
    font-size: 15px !important;
    font-weight: 400;
    color: #1A1A1A !important;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.hero-filter-cascade .custom-select-trigger svg {
    margin-left: 12px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.hero-filter-cascade .custom-select-trigger svg path {
    fill: #1A1A1A;
}

.hero-filter-cascade .custom-select.open .custom-select-trigger svg {
    transform: rotate(180deg);
}

.hero-filter-cascade .custom-select-trigger:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

/* Options — opens upward */
.hero-filter-cascade .custom-select-options {
    position: absolute;
    bottom: calc(100% + 8px) !important;
    top: auto !important;
    left: 0;
    right: 0;
    background-color: var(--color-background-light, #ebe6e1) !important;
    border: none !important;
    border-radius: 12px !important;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.hero-filter-cascade .custom-select.open .custom-select-options {
    max-height: 300px;
    opacity: 1;
    overflow-y: auto;
}

.hero-filter-cascade .custom-select-option {
    padding: 14px 20px;
    color: #1A1A1A;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 15px;
    letter-spacing: 0.3px;
}

.hero-filter-cascade .custom-select-option:first-child {
    border-radius: 12px 12px 0 0;
}

.hero-filter-cascade .custom-select-option:last-child {
    border-radius: 0 0 12px 12px;
}

.hero-filter-cascade .custom-select-option:hover,
.hero-filter-cascade .custom-select-option.selected {
    background-color: var(--primary-color, #C5A572);
    color: var(--color-text-white, #ebe6e1);
}

/* Label inside trigger */
.hero-filter-cascade .select-label,
.hero-filter-cascade .select-placeholder {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.6;
}

/* Disabled state */
.hero-filter-cascade .cascade-select.disabled .custom-select-trigger {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none !important;
    transform: none !important;
}

.hero-filter-cascade .cascade-select.disabled:hover .custom-select-trigger {
    transform: none !important;
    box-shadow: none !important;
}

/* Separator */
.cascade-sep {
    color: rgba(255, 255, 255, 0.4);
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
    font-weight: 300;
}

/* Reset button */
.cascade-reset-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    margin-left: 4px;
}

.cascade-reset-btn:hover {
    background: rgba(197, 165, 114, 0.25);
    border-color: var(--primary-color, #C5A572);
    color: var(--primary-color, #C5A572);
}

.hero-filter-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.hero-filter-label {
    color: var(--color-text-white);
    font-size: 11px;
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.85;
    margin-bottom: 2px;
}

/* Swiper nav hidden by default in hero */
.hero-slider .swiper-button-prev,
.hero-slider .swiper-button-next {
    display: none;
}

.hero-slider .swiper-pagination {
    display: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-filters {
        display: block;
        left: 24px;
        right: 24px;
        bottom: 32px;
        z-index: 20;
    }

    .hero-filter-cascade {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .hero-filter-cascade .custom-select {
        min-width: 170px;
    }
}

@media (max-width: 768px) {
    .hero-slide-title {
        text-align: center;
        font-size: 42px !important;
        margin-bottom: 16px;
    }

    .hero-slide-subtitle {
        text-align: center;
        font-size: 16px !important;
        margin-bottom: 0;
    }

    .hero-slide-content {
        align-items: center;
        bottom: auto;
        top: 50%;
        transform: translateY(-50%);
    }

    .hero-filters {
        display: block;
        left: 100px;
        right: 100px;
        bottom: 24px;
    }

    .hero-filter-cascade {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        align-items: stretch;
    }

    .hero-filter-cascade .custom-select {
        width: 100%;
        min-width: 0;
    }

    .hero-filter-cascade .custom-select-options {
        bottom: auto !important;
        top: calc(100% + 8px) !important;
        z-index: 120;
    }

    .hero-filter-cascade .cascade-sep {
        display: none;
    }

    .hero-filter-cascade .cascade-reset-btn {
        justify-self: center;
        margin-left: 0;
        margin-top: 2px;
    }
}
