// ============================================
// 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 hover-scale($scale: 1.05) {
    &:hover {
        transform: scale($scale);
    }
}

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

@mixin gradient-gold {
    background: linear-gradient(135deg, $gold 0%, $gold-light 100%);
}

// ============================================
// GLOBAL STYLES
// ============================================
body {
    background: $black;
    color: $text;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

// ============================================
// TYPOGRAPHY
// ============================================
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    color: $text-light;
}

a {
    color: $gold;
    text-decoration: none;
    @include transition;
    
    &:hover {
        color: $gold-light;
    }
}

// ============================================
// BREADCRUMB
// ============================================
.lux-breadcrumb {
    background: $black;
    border-bottom: 1px solid $border;
    padding: 20px 0;
    
    .lux-breadcrumb-content {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
        
        a {
            color: $text-muted;
            font-size: 14px;
            @include transition;
            
            &:hover {
                color: $gold;
            }
        }
        
        .separator {
            color: $gold;
            font-size: 14px;
        }
        
        .current {
            color: $gold;
            font-weight: 600;
            font-size: 14px;
        }
    }
}

// ============================================
// MAIN CONTAINER
// ============================================
.lux-detail-container {
    background: $black;
    padding: 60px 0;
    min-height: 100vh;
    
    @media (max-width: 768px) {
        padding: 30px 0;
    }
}

.lux-two-column-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 32px;
    
    @media (max-width: 992px) {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

// ============================================
// LEFT COLUMN
// ============================================
.lux-left-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

// ============================================
// GALLERY CARD
// ============================================
.lux-gallery-card {
    background: $black-card;
    border: 1px solid $border;
    border-radius: 20px;
    overflow: hidden;
}

.lux-main-image {
    position: relative;
    height: 480px;
    background: $gray;
    overflow: hidden;
    cursor: pointer;
    
    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        @include transition(transform, 0.5s);
    }
    
    &:hover img {
        transform: scale(1.05);
    }
    
    @media (max-width: 768px) {
        height: 300px;
    }
}

.lux-zoom-overlay {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 8px 16px;
    font-size: 12px;
    color: $text;
    @include transition;
    pointer-events: none;
    
    i {
        margin-right: 6px;
    }
}

.lux-thumbnails {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-top: 1px solid $border;
    flex-wrap: wrap;
}

.lux-thumb-item {
    width: 85px;
    height: 65px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    border: 2px solid transparent;
    @include transition;
    
    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    &:hover {
        opacity: 0.8;
    }
    
    &.active {
        opacity: 1;
        border-color: $gold;
    }
}

// ============================================
// ACTION BUTTONS GRID
// ============================================
.lux-action-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    
    @media (max-width: 480px) {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

.lux-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: $black-card;
    border: 1px solid $border;
    border-radius: 16px;
    padding: 16px 12px;
    text-decoration: none;
    @include transition;
    
    i {
        font-size: 24px;
        color: $gold;
        @include transition;
    }
    
    span {
        font-size: 12px;
        font-weight: 600;
        color: $text;
    }
    
    &:hover {
        transform: translateY(-4px);
        border-color: $gold;
        background: $gray;
        
        i {
            transform: scale(1.1);
        }
    }
}

// ============================================
// CONTENT CARDS
// ============================================
.lux-content-card {
    background: $black-card;
    border: 1px solid $border;
    border-radius: 20px;
    padding: 28px;
    
    @media (max-width: 768px) {
        padding: 20px;
    }
}

.lux-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: $gold;
    border-bottom: 2px solid $gold;
    display: inline-block;
    padding-bottom: 8px;
    letter-spacing: -0.3px;
}

.lux-description-text {
    font-size: 15px;
    line-height: 1.8;
    color: $text-light;
    margin-top: 20px;
}

// ============================================
// DETAILS GRID
// ============================================
.lux-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 20px;
    
    @media (max-width: 768px) {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.lux-detail-item {
    display: flex;
    align-items: center;
    gap: 16px;
    
    .lux-icon-box {
        width: 50px;
        height: 50px;
        background: $gray;
        border-radius: 14px;
        @include flex-center;
        font-size: 22px;
        color: $gold;
        @include transition;
    }
    
    .lux-detail-label {
        font-size: 11px;
        color: $text-muted;
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 4px;
    }
    
    .lux-detail-value {
        font-size: 1.1rem;
        font-weight: 600;
        color: $text;
    }
    
    &:hover .lux-icon-box {
        background: rgba(191, 155, 48, 0.1);
        transform: scale(1.05);
    }
}

// ============================================
// AMENITIES
// ============================================
.lux-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.lux-amenity-tag {
    background: $gray;
    padding: 8px 18px;
    border-radius: 40px;
    font-size: 13px;
    color: $text-light;
    @include transition;
    
    i {
        color: $gold;
        margin-right: 8px;
        font-size: 13px;
    }
    
    &:hover {
        background: rgba(191, 155, 48, 0.1);
        border-color: $gold;
        transform: translateY(-2px);
    }
}

// ============================================
// LOCATION INFO & MAP
// ============================================
.lux-location-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding: 16px;
    background: $gray;
    border-radius: 12px;
    
    i {
        font-size: 20px;
        color: $gold;
    }
    
    span {
        font-size: 15px;
        color: $text;
        font-weight: 500;
    }
}

.lux-map-container {
    width: 100%;
    height: 300px;
    border-radius: 16px;
    overflow: hidden;
    margin-top: 20px;
    border: 1px solid $border;
    position: relative;
    background: $gray;
}

.lux-map-placeholder {
    width: 100%;
    height: 100%;
    @include flex-center;
    flex-direction: column;
    gap: 12px;
    color: $text-muted;
    
    i {
        font-size: 48px;
        color: $gold;
    }
    
    p {
        margin: 0;
    }
}

// Custom map marker
.custom-map-marker {
    background: transparent;
    border: none;
}

// ============================================
// INVESTMENT CARD
// ============================================
.lux-investment-card {
    margin-top: 20px;
    text-align: center;
    padding: 24px;
    background: $gray;
    border-radius: 16px;
    border: 1px solid $border;
    
    .lux-roi-label {
        font-size: 12px;
        color: $text-muted;
        text-transform: uppercase;
        letter-spacing: 2px;
        margin-bottom: 8px;
    }
    
    .lux-roi-percentage {
        font-size: 2rem;
        font-weight: 800;
        color: $gold;
    }
}

// ============================================
// SIDEBAR
// ============================================
.lux-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    
    @media (max-width: 992px) {
        position: static;
        top: auto;
    }
}

// Price Card
.lux-price-card {
    background: $black-card;
    border: 1px solid $border;
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    @include transition;
    
    &:hover {
        transform: translateY(-4px);
        border-color: $gold;
    }
}

.lux-property-badge {
    display: inline-block;
    background: rgba(191, 155, 48, 0.15);
    border: 1px solid $gold;
    color: $gold;
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.lux-price-amount {
    font-size: 2.2rem;
    font-weight: 800;
    color: $gold;
    
    .lux-price-period {
        font-size: 14px;
        font-weight: 500;
        color: $text-muted;
    }
}

// Contact Card
.lux-contact-card {
    background: $black-card;
    border: 1px solid $border;
    border-radius: 20px;
    padding: 28px;
    text-align: center;
}

.lux-agent-icon {
    i {
        font-size: 56px;
        color: $gold;
        margin-bottom: 12px;
    }
    
    h4 {
        font-size: 1.1rem;
        font-weight: 600;
        color: $text;
        margin: 0;
    }
}

.lux-agent-name {
    margin: 20px 0;
    padding: 14px;
    background: $gray;
    border-radius: 12px;
    
    i {
        color: $gold;
        margin-right: 8px;
    }
    
    span {
        color: $text;
        font-size: 14px;
        font-weight: 500;
    }
}

.lux-contact-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    
    .btn-whatsapp {
        flex: 1;
        background: $gold;
        color: $black;
        padding: 12px;
        border-radius: 40px;
        text-align: center;
        font-weight: 700;
        text-decoration: none;
        @include transition;
        font-size: 14px;
        
        i {
            margin-right: 8px;
        }
        
        &:hover {
            background: $gold-light;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(191, 155, 48, 0.3);
        }
    }
    
    .btn-call {
        flex: 1;
        background: $gray;
        color: $text;
        padding: 12px;
        border-radius: 40px;
        text-align: center;
        text-decoration: none;
        @include transition;
        font-size: 14px;
        
        i {
            margin-right: 8px;
        }
        
        &:hover {
            background: rgba(191, 155, 48, 0.1);
            border: 1px solid $gold;
            color: $gold;
            transform: translateY(-2px);
        }
    }
}

// Enquiry Card
.lux-enquiry-card {
    background: $black-card;
    border: 1px solid $border;
    border-radius: 20px;
    padding: 28px;
    
    h3 {
        color: $gold;
        font-size: 1.2rem;
        margin-bottom: 20px;
        text-align: center;
    }
}

.lux-enquiry-form {
    .lux-form-group {
        margin-bottom: 16px;
        
        input, textarea, select {
            width: 100%;
            padding: 12px 16px;
            background: $gray;
            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;
            }
        }
        
        textarea {
            resize: vertical;
            min-height: 100px;
        }
    }
    
    .btn-submit-enquiry {
        width: 100%;
        background: $gold;
        color: $black;
        padding: 12px;
        border: none;
        border-radius: 40px;
        font-weight: 700;
        font-size: 14px;
        cursor: pointer;
        @include transition;
        
        i {
            margin-right: 8px;
        }
        
        &:hover {
            background: $gold-light;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(191, 155, 48, 0.3);
        }
        
        &:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }
    }
}

.lux-form-success {
    text-align: center;
    padding: 20px;
    
    i {
        font-size: 48px;
        color: $success;
        margin-bottom: 16px;
    }
    
    p {
        color: $text;
        margin-bottom: 8px;
    }
    
    .lux-form-success-message {
        color: $gold;
        font-weight: 600;
    }
}

// Reference Card
.lux-reference-card {
    background: $black-card;
    border: 1px dashed rgba(191, 155, 48, 0.3);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    
    .lux-reference-label {
        font-size: 11px;
        color: $text-muted;
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 8px;
    }
    
    .lux-reference-value {
        font-size: 14px;
        font-weight: 700;
        color: $gold;
        letter-spacing: 1px;
    }
}

// Back Button
.lux-back-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    color: $text-muted;
    text-decoration: none;
    font-size: 14px;
    @include transition;
    
    &:hover {
        color: $gold;
        gap: 12px;
    }
}

// ============================================
// RELATED PROPERTIES
// ============================================
.lux-related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
    
    @media (max-width: 480px) {
        grid-template-columns: 1fr;
    }
}

.lux-related-card {
    text-decoration: none;
    display: block;
    background: $gray;
    border-radius: 16px;
    overflow: hidden;
    @include transition;
    
    &:hover {
        transform: translateY(-6px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }
}

.lux-related-image {
    position: relative;
    height: 130px;
    overflow: hidden;
    
    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        @include transition;
    }
    
    &:hover img {
        transform: scale(1.1);
    }
}

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

.lux-related-price {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    color: $gold;
}

.lux-related-info {
    padding: 12px;
    
    h3 {
        font-size: 13px;
        font-weight: 600;
        color: $text;
        margin: 0 0 6px 0;
        line-height: 1.4;
    }
    
    div {
        font-size: 11px;
        color: $text-muted;
        
        i {
            color: $gold;
            margin-right: 4px;
        }
    }
}

// ============================================
// MODALS
// ============================================
.lux-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.96);
    backdrop-filter: blur(20px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.lux-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    
    img {
        max-width: 100%;
        max-height: 85vh;
        object-fit: contain;
        border-radius: 12px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    }
}

.lux-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid $gold;
    color: $gold;
    font-size: 24px;
    padding: 12px 18px;
    cursor: pointer;
    border-radius: 50%;
    @include transition;
    
    &:hover {
        background: $gold;
        color: $black;
    }
    
    &.prev {
        left: -60px;
        
        @media (max-width: 768px) {
            left: 10px;
        }
    }
    
    &.next {
        right: -60px;
        
        @media (max-width: 768px) {
            right: 10px;
        }
    }
}

.lux-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: $text;
    font-size: 36px;
    cursor: pointer;
    @include transition;
    
    &:hover {
        color: $gold;
        transform: scale(1.1);
    }
}

.lux-modal-counter {
    position: absolute;
    bottom: -40px;
    left: 0;
    right: 0;
    text-align: center;
    color: $text-muted;
    font-size: 14px;
}

// ROI Calculator Modal
.lux-roi-calculator {
    background: $black-card;
    border: 2px solid $gold;
    border-radius: 24px;
    max-width: 500px;
    width: 90%;
    padding: 32px;
    
    h3 {
        color: $gold;
        font-size: 1.5rem;
        margin-bottom: 24px;
        text-align: center;
    }
}

.lux-roi-field {
    margin-bottom: 20px;
    
    label {
        display: block;
        color: $text-muted;
        font-size: 13px;
        margin-bottom: 8px;
        font-weight: 500;
    }
    
    input {
        width: 100%;
        padding: 12px 16px;
        background: $gray;
        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);
        }
    }
}

.lux-btn-gold {
    width: 100%;
    background: $gold;
    color: $black;
    padding: 12px;
    border: none;
    border-radius: 40px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    @include transition;
    
    &:hover {
        background: $gold-light;
        transform: translateY(-2px);
    }
}

.lux-roi-result {
    padding: 16px;
    background: $gray;
    border-radius: 12px;
    text-align: center;
    margin-top: 20px;
    
    strong {
        color: $gold;
    }
    
    span {
        color: $text;
        font-size: 1.2rem;
        font-weight: 700;
    }
}

.lux-modal-close-btn {
    display: block;
    width: 100%;
    margin-top: 20px;
    padding: 10px;
    background: transparent;
    border: 1px solid $border;
    border-radius: 12px;
    color: $text-muted;
    cursor: pointer;
    @include transition;
    
    &:hover {
        border-color: $gold;
        color: $gold;
    }
}

// ============================================
// RESPONSIVE
// ============================================
@media (max-width: 992px) {
    .lux-two-column-layout {
        grid-template-columns: 1fr;
    }
    
    .lux-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .lux-detail-container {
        padding: 30px 0;
    }
    
    .lux-main-image {
        height: 300px;
    }
    
    .lux-details-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .lux-action-grid {
        grid-template-columns: repeat(3, 1fr);
        
        @media (max-width: 480px) {
            grid-template-columns: 1fr;
        }
    }
    
    .lux-related-grid {
        grid-template-columns: 1fr;
    }
    
    .lux-price-amount {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .lux-content-card {
        padding: 16px;
    }
    
    .lux-card-title {
        font-size: 1rem;
    }
    
    .lux-detail-item .lux-icon-box {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    
    .lux-contact-buttons {
        flex-direction: column;
    }
    
    .lux-thumb-item {
        width: 70px;
        height: 55px;
    }
}

// ============================================
// ANIMATIONS
// ============================================
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.lux-detail-container {
    animation: fadeIn 0.5s ease-out;
}

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

::-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;
}