﻿/* ===================================
   LUXURY LINE — Global Styles
   Reset, base, container, typography, overlay, animations
   Source: luxury-main/css/styles.css
   =================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background-light, #ebe6e1);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 96px;
}


.container {
    max-width: var(--container-max-width, 1400px);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

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

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xxl);
    color: var(--color-text-light);
}

.loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Links */
.link {
    color: var(--color-accent);
    text-decoration: underline;
    transition: color var(--transition-fast);
}

.link:hover {
    color: var(--color-accent-dark, #721d2c);
}

/* Luxury CTAs and badges shared by Razor templates */
.lux-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 42px;
    padding: 0.72rem 1.6rem;
    border: 1px solid transparent;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.02em;
    line-height: 1;
    text-transform: none;
    text-decoration: none;
    cursor: pointer;
    transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.lux-btn-primary,
.lux-btn-outline:hover,
.lux-btn-outline-dark:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-text-white);
}

.lux-btn-primary:hover {
    background-color: var(--color-accent-dark, #721d2c);
    border-color: var(--color-accent-dark, #721d2c);
    color: var(--color-text-white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.lux-btn-outline,
.lux-btn-outline-dark,
.lux-btn-ghost {
    background-color: transparent;
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.lux-btn-ghost {
    border-color: transparent;
}

.lux-btn-ghost:hover {
    color: var(--color-accent-dark, #721d2c);
}

.lux-btn--sm {
    min-height: 34px;
    padding: 0.5rem 1.1rem;
    font-size: 0.72rem;
}

.lux-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    background-color: var(--color-accent);
    color: var(--color-text-white);
    font-size: 0.68rem;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Section shared */
.section-header {
    margin-bottom: var(--spacing-xxl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-xl);
}

.section-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: var(--font-weight-bold);
    color: var(--color-accent, #8b7355);
    line-height: 1.2;
    letter-spacing: -1px;
}

.section-description {
    font-size: clamp(20px, 2vw, 26px);
    line-height: 1.5;
    color: var(--color-text-light);
    max-width: 700px;
    text-align: center;
    font-weight: var(--font-weight-light);
}

/* Custom select (shared) */
.custom-select {
    position: relative;
    min-width: 180px;
    user-select: none;
}

.custom-select-trigger {
    padding: 12px 20px;
    background-color: var(--dropdown-bg-color, #FFFFFF);
    border: none;
    border-radius: 30px;
    font-size: 15px;
    font-weight: var(--font-weight-normal);
    color: var(--dropdown-text-color, #1A1A1A);
    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);
}

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

.custom-select-trigger svg path {
    fill: var(--dropdown-text-color, #1A1A1A);
}

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

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

.custom-select-options {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    right: 0;
    background-color: var(--dropdown-bg-color, #FFFFFF);
    border-radius: 12px;
    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);
}

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

.custom-select-option {
    padding: 14px 20px;
    color: var(--dropdown-text-color, #1A1A1A);
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 15px;
    letter-spacing: 0.3px;
}

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

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

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

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

.select-placeholder,
.select-label {
    font-size: 11px;
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.6;
}

/* Cascade select system */
.cascade-select {
    transition: opacity 0.25s, filter 0.25s;
}

.cascade-select.disabled .custom-select-trigger {
    opacity: 0.45;
    cursor: not-allowed;
    background-color: rgba(255, 255, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.45) !important;
    box-shadow: none !important;
    transform: none !important;
}

.cascade-select.disabled .custom-select-trigger svg path {
    fill: rgba(255, 255, 255, 0.35) !important;
}

.cascade-select.disabled .custom-select-trigger svg path[stroke] {
    stroke: rgba(255, 255, 255, 0.35) !important;
}

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

/* Cascade 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(--cta-bg-color, #C5A572);
    color: var(--cta-bg-color, #C5A572);
}

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

/* Form cascade select in side panel */
.form-custom-select {
    position: relative;
    user-select: none;
}

.form-custom-select .custom-select-trigger {
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    font-family: inherit;
    transition: border-color 0.2s, background 0.2s;
    box-shadow: none;
}

.form-custom-select .custom-select-trigger:hover {
    border-color: var(--cta-bg-color, #C5A572);
    transform: none;
    box-shadow: none;
}

.form-custom-select .custom-select-trigger svg path {
    fill: none;
    stroke: rgba(255, 255, 255, 0.5);
}

.form-custom-select.open .custom-select-trigger {
    border-color: var(--cta-bg-color, #C5A572);
}

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

.form-custom-select .custom-select-options {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    bottom: auto;
    background: #1e1e1e;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    z-index: 200;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-custom-select.open .custom-select-options {
    max-height: 220px;
    opacity: 1;
    overflow-y: auto;
}

.form-custom-select .custom-select-option {
    padding: 10px 16px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    letter-spacing: 0;
}

.form-custom-select .custom-select-option:hover {
    background: rgba(197, 165, 114, 0.1);
    color: var(--cta-bg-color, #C5A572);
}

.form-custom-select .custom-select-option.selected {
    background: rgba(197, 165, 114, 0.12);
    color: var(--cta-bg-color, #C5A572);
}

.form-custom-select.disabled .custom-select-trigger {
    opacity: 0.38;
    cursor: not-allowed;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.form-custom-select.disabled:hover .custom-select-trigger {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

/* Map disabled cascade */
.map-city-select.disabled .custom-select-trigger,
.map-province-select.disabled .custom-select-trigger {
    opacity: 0.42;
    cursor: not-allowed;
}

/* Responsive base */
/* Section Title Block */
.section-title-block {
    padding: var(--spacing-xxl) 0;
    background-color: var(--color-background-light, #ebe6e1);
}

.section-title-block--cream {
    background-color: var(--color-background-light, #ebe6e1);
}

.section-title-block--dark {
    background-color: var(--color-background-dark);
}

.section-title-block--dark .section-title {
    color: var(--color-text-white, #ebe6e1);
}

.section-title-block--dark .section-description {
    color: rgba(255, 255, 255, 0.65);
}

.section-title-block__cta {
    display: flex;
    justify-content: center;
    margin-top: var(--spacing-xl);
}

@media (max-width: 1024px) {
    body {
        padding-top: 53px;
    }

    .section-header {
        flex-direction: column;
    }
}