// ============================================
// VARIABLES
// ============================================
$gold: #BF9B30;
$gold-light: #D4AF37;
$gold-dark: #A08420;
$black: #000000;
$black-light: #111111;
$black-card: #0A0A0A;
$gray: #1A1A1A;
$gray-light: #2A2A2A;
$text: #FFFFFF;
$text-muted: #888888;
$text-light: #AAAAAA;
$border: rgba(191, 155, 48, 0.15);
$border-light: rgba(191, 155, 48, 0.08);
$success: #4CAF50;
$info: #2196F3;
$warning: #FF9800;
$danger: #F44336;

// ============================================
// MIXINS
// ============================================
@mixin transition($property: all, $duration: 0.3s, $ease: ease) {
    transition: $property $duration $ease;
}

@mixin flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

// ============================================
// GLOBAL STYLES
// ============================================
body {
    background: $black;
    color: $text;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    padding: 0 20px;
}

// ============================================
// HERO SECTION - Pure Black with Search Box Inside
// ============================================
.lux-hero {
    background: $black;
    padding: 60px 0 50px;
}

.lux-hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.lux-badge-gold {
    color: $gold;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 16px;
    background: rgba(191, 155, 48, 0.1);
    padding: 6px 16px;
    border-radius: 40px;
}

.lux-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -1px;
    line-height: 1.2;
    
    @media (max-width: 768px) {
        font-size: 2rem;
    }
}

.gold-text {
    color: $gold;
}

.lux-subtitle {
    color: $text-muted;
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

// Search Card - Inside Hero Section
.lux-search-card {
    background: $gray;
    border-radius: 20px;
    padding: 24px;
    border: 1px solid $border;
    max-width: 800px;
    margin: 0 auto;
    
    @media (max-width: 768px) {
        padding: 16px;
    }
}

.lux-search-form {
    display: flex;
    gap: 12px;
    
    @media (max-width: 768px) {
        flex-direction: column;
    }
}

.lux-search-input-wrapper {
    position: relative;
    flex: 1;
    
    i {
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        color: $text-muted;
        font-size: 14px;
        pointer-events: none;
    }
    
    input {
        width: 100%;
        padding: 12px 20px 12px 42px;
        background: $black-card;
        border: 1px solid $border;
        border-radius: 12px;
        color: $text;
        font-size: 14px;
        @include transition;
        
        &:focus {
            outline: none;
            border-color: $gold;
            box-shadow: 0 0 0 2px rgba(191, 155, 48, 0.1);
        }
        
        &::placeholder {
            color: $text-muted;
        }
    }
}

// Horizontal Filters
.lux-filters-horizontal {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid $border;
}

.lux-filter-item {
    flex: 1;
    min-width: 110px;
    
    @media (max-width: 768px) {
        min-width: calc(33.33% - 8px);
    }
    
    @media (max-width: 480px) {
        min-width: 100%;
    }
}

.lux-filter-select,
.lux-filter-input {
    width: 100%;
    padding: 8px 12px;
    background: $black-card;
    border: 1px solid $border;
    border-radius: 10px;
    color: $text;
    font-size: 12px;
    cursor: pointer;
    @include transition;
    
    &:focus {
        outline: none;
        border-color: $gold;
    }
    
    &:hover {
        border-color: $gold-light;
    }
}

.lux-checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: $text;
    font-size: 12px;
    cursor: pointer;
    padding: 8px 12px;
    background: $black-card;
    border-radius: 10px;
    border: 1px solid $border;
    @include transition;
    
    &:hover {
        border-color: $gold;
    }
    
    input {
        accent-color: $gold;
        width: 14px;
        height: 14px;
        cursor: pointer;
    }
    
    span {
        user-select: none;
    }
}

// Buttons
.lux-btn-gold {
    background: $gold;
    color: $black;
    border: none;
    border-radius: 12px;
    padding: 10px 28px;
    font-weight: 600;
    @include transition;
    cursor: pointer;
    font-size: 13px;
    white-space: nowrap;
    
    &:hover {
        background: $gold-light;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(191, 155, 48, 0.3);
    }
    
    @media (max-width: 768px) {
        width: 100%;
        padding: 12px;
    }
}

// ============================================
// SECTIONS
// ============================================
.lux-section {
    padding: 50px 0;
    border-bottom: 1px solid $border;
    
    &:last-child {
        border-bottom: none;
    }
    
    @media (max-width: 768px) {
        padding: 35px 0;
    }
}

.lux-section-header {
    text-align: center;
    margin-bottom: 40px;
}

.lux-section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    
    @media (max-width: 768px) {
        font-size: 1.5rem;
    }
}

// Tabs
.lux-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.lux-tab {
    padding: 6px 18px;
    background: transparent;
    border: 1px solid $border;
    border-radius: 40px;
    color: $text-muted;
    cursor: pointer;
    @include transition;
    font-size: 13px;
    font-weight: 500;
    
    &:hover {
        background: rgba(191, 155, 48, 0.1);
        border-color: $gold;
        color: $gold;
    }
    
    &.active {
        background: $gold;
        border-color: $gold;
        color: $black;
    }
}

// ============================================
// CAROUSEL
// ============================================
.lux-carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.lux-carousel-wrapper {
    flex: 1;
    overflow: hidden;
    border-radius: 20px;
}

.lux-carousel {
    display: flex;
    gap: 20px;
    @include transition(transform, 0.4s, ease-out);
}

.lux-carousel-item {
    flex: 0 0 calc(25% - 15px);
    min-width: calc(25% - 15px);
    
    @media (max-width: 1200px) {
        flex: 0 0 calc(33.333% - 14px);
        min-width: calc(33.333% - 14px);
    }
    
    @media (max-width: 992px) {
        flex: 0 0 calc(50% - 10px);
        min-width: calc(50% - 10px);
    }
    
    @media (max-width: 768px) {
        flex: 0 0 100%;
        min-width: 100%;
    }
}

.lux-carousel-prev,
.lux-carousel-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: $black-card;
    border: 1px solid $border;
    color: $gold;
    font-size: 24px;
    cursor: pointer;
    @include flex-center;
    @include transition;
    flex-shrink: 0;
    
    &:hover {
        background: $gold;
        color: $black;
        border-color: $gold;
        transform: scale(1.05);
    }
    
    @media (max-width: 768px) {
        width: 32px;
        height: 32px;
        font-size: 20px;
    }
}

// ============================================
// PROPERTY CARDS
// ============================================
.lux-card {
    background: $black-card;
    border: 1px solid $border;
    border-radius: 16px;
    overflow: hidden;
    @include transition;
    height: 100%;
    display: flex;
    flex-direction: column;
    
    &:hover {
        transform: translateY(-5px);
        border-color: $gold;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    }
}

.lux-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: $gray;
    
    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        @include transition(transform, 0.5s);
    }
    
    &:hover img {
        transform: scale(1.08);
    }
}

.lux-no-image {
    width: 100%;
    height: 100%;
    background: $gray;
    @include flex-center;
    font-size: 2.5rem;
    color: $text-muted;
}

.lux-card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.lux-badge-offplan {
    background: rgba(191, 155, 48, 0.15);
    border: 1px solid $gold;
    color: $gold;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1px;
    backdrop-filter: blur(5px);
}

.lux-badge-new {
    background: $gold;
    color: $black;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
}

.lux-badge-project {
    background: rgba(33, 150, 243, 0.15);
    border: 1px solid $info;
    color: $info;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1px;
    backdrop-filter: blur(5px);
}

.lux-badge-ready {
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid $success;
    color: $success;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1px;
    backdrop-filter: blur(5px);
}

.lux-badge-payment {
    background: rgba(33, 150, 243, 0.15);
    border: 1px solid $info;
    color: $info;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1px;
}

.lux-card-price {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    padding: 6px 12px;
    border-radius: 25px;
    font-weight: 700;
    color: $gold;
    font-size: 14px;
    border: 1px solid rgba(191, 155, 48, 0.3);
}

.lux-card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.lux-card-type {
    font-size: 9px;
    letter-spacing: 1.5px;
    color: $gold;
    margin-bottom: 8px;
    font-weight: 600;
}

.lux-card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    
    a {
        color: $text;
        text-decoration: none;
        @include transition;
        
        &:hover {
            color: $gold;
        }
    }
}

.lux-card-location {
    color: $text-muted;
    font-size: 12px;
    margin-bottom: 12px;
    
    i {
        color: $gold;
        margin-right: 5px;
        font-size: 11px;
    }
}

.lux-card-features {
    display: flex;
    gap: 14px;
    padding-top: 12px;
    border-top: 1px solid $border;
    margin-bottom: 12px;
    color: $text-muted;
    font-size: 12px;
    flex-wrap: wrap;
    
    i {
        color: $gold;
        margin-right: 4px;
        font-size: 11px;
    }
    
    span {
        display: inline-flex;
        align-items: center;
        gap: 3px;
    }
}

.lux-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 10px;
}

.lux-roi {
    color: $gold;
    font-weight: 600;
    font-size: 11px;
    background: rgba(191, 155, 48, 0.1);
    padding: 3px 8px;
    border-radius: 20px;
}

.lux-handover,
.lux-downpayment,
.lux-handover-year {
    color: $gold;
    font-weight: 600;
    font-size: 10px;
    background: rgba(191, 155, 48, 0.1);
    padding: 3px 8px;
    border-radius: 20px;
}

.lux-link {
    color: $gold;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    @include transition;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    
    i {
        @include transition;
        font-size: 10px;
    }
    
    &:hover {
        gap: 8px;
        color: $gold-light;
        
        i {
            transform: translateX(3px);
        }
    }
}

// ============================================
// RESPONSIVE
// ============================================
@media (max-width: 992px) {
    .container {
        padding: 0 16px;
    }
}

@media (max-width: 768px) {
    .lux-section-title {
        font-size: 1.5rem;
    }
    
    .lux-tabs {
        gap: 8px;
    }
    
    .lux-tab {
        padding: 5px 12px;
        font-size: 11px;
    }
    
    .lux-filter-select,
    .lux-filter-input {
        font-size: 11px;
        padding: 7px 10px;
    }
}

@media (max-width: 480px) {
    .lux-section-title {
        font-size: 1.3rem;
    }
    
    .lux-card-title {
        font-size: 0.9rem;
    }
    
    .lux-card-features {
        gap: 10px;
        font-size: 10px;
    }
}

// ============================================
// ANIMATIONS
// ============================================
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lux-section {
    animation: fadeInUp 0.5s ease-out;
}

// ============================================
// SCROLLBAR
// ============================================
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: $gray;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: $gold;
    border-radius: 10px;
    
    &:hover {
        background: $gold-light;
    }
}

// ============================================
// SELECTION
// ============================================
::selection {
    background: $gold;
    color: $black;
}

::-moz-selection {
    background: $gold;
    color: $black;
}