/* Clean La Souq Real Estate */
:root {
    /* La Souq Logo Colors Only */
    --primary-gold: #FFD700;
    --primary-dark: #2C3E50;
    --accent-blue: #4A90E2;
    
    /* Clean Color System */
    --bg-primary: #FFFFFF;
    --bg-light: #F8FAFC;
    --text-primary: #2C3E50;
    --text-secondary: #718096;
    --text-light: #A0AEC0;
    
    /* Simple Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-gold) 0%, #FFA500 100%);
    
    /* Clean Shadows */
    --shadow-sm: 0 2px 4px rgba(255, 215, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(255, 215, 0, 0.15);
    --shadow-lg: 0 8px 25px rgba(255, 215, 0, 0.2);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Main Logo */
.logo-section {
    margin-bottom: 1.8rem;
    text-align: center;
}

.main-logo {
    height: 220px;
    width: auto;
    max-width: 500px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
}

.main-logo:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: 
        radial-gradient(circle at 20% 80%, rgba(212, 165, 116, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(74, 144, 226, 0.02) 0%, transparent 50%),
        linear-gradient(135deg, #ffffff 0%, #fdfcfa 100%);
    background-size: 800px 800px, 600px 600px, 100% 100%;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
    padding-top: 10vh;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(45deg, rgba(212, 165, 116, 0.01) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(212, 165, 116, 0.01) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(212, 165, 116, 0.01) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(212, 165, 116, 0.01) 75%);
    background-size: 60px 60px;
    background-position: 0 0, 0 30px, 30px -30px, -30px 0px;
    pointer-events: none;
    opacity: 0.3;
}

.hero-container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

/* Hero Content */
.hero-content {
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
    font-family: 'Inter', sans-serif;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Unified Search Interface */
.search-interface {
    width: 100%;
    max-width: 700px;
    margin: 0 auto 1rem auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}


.unified-search-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.search-input-container {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #E2E8F0;
    border-radius: 25px;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
    margin: 0 auto 1.5rem auto;
    position: relative;
    overflow: hidden;
}

.search-input-container:focus-within {
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.15);
    outline: none;
}


.search-icon {
    color: var(--primary-gold);
    margin-right: 1rem;
    font-size: 1.2rem;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.1rem;
    background: transparent;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    padding-right: 1rem;
    caret-color: var(--primary-gold);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-shadow: none;
}

.search-input:focus {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.search-input::placeholder {
    color: var(--text-light);
}

/* Remove any browser-specific input styling */
.search-input::-webkit-outer-spin-button,
.search-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.search-input::-webkit-search-decoration,
.search-input::-webkit-search-cancel-button,
.search-input::-webkit-search-results-button,
.search-input::-webkit-search-results-decoration {
    -webkit-appearance: none;
}

.search-input[type="search"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}


.search-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
}

.action-btn {
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    box-shadow: var(--shadow-sm);
}

.voice-trigger {
    background: var(--gradient-primary);
    border: 1px solid var(--primary-gold);
}

.voice-trigger:hover {
    background: linear-gradient(135deg, var(--primary-gold) 0%, #FFA500 100%);
    border-color: var(--primary-gold);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.voice-trigger i {
    animation: voice-pulse 2s ease-in-out infinite;
}

.voice-trigger.active i {
    animation: voice-active 1s ease-in-out infinite;
}

@keyframes voice-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes voice-active {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.action-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.action-btn.active {
    background: var(--accent-blue);
    animation: pulse 2s infinite;
}

.ai-trigger {
    background: linear-gradient(135deg, var(--accent-blue) 0%, #6BB6FF 100%);
    border: 1px solid var(--accent-blue);
}

.ai-trigger:hover {
    background: linear-gradient(135deg, #357ABD 0%, var(--accent-blue) 100%);
    border-color: var(--accent-blue);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(74, 144, 226, 0.4);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Voice Feedback */
.voice-feedback {
    text-align: center;
    padding: 1.5rem;
    background: rgba(212, 165, 116, 0.05);
    border-radius: 20px;
    margin: 0 auto 1rem auto;
    border: 1px solid rgba(212, 165, 116, 0.2);
    max-width: 600px;
    width: 100%;
}

.voice-visualizer {
    margin-bottom: 1rem;
}

.voice-waves {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.3rem;
    height: 40px;
}

.wave {
    width: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    animation: wave-animation 1.5s ease-in-out infinite;
}

.wave:nth-child(1) { animation-delay: 0s; height: 20px; }
.wave:nth-child(2) { animation-delay: 0.2s; height: 30px; }
.wave:nth-child(3) { animation-delay: 0.4s; height: 25px; }

@keyframes wave-animation {
    0%, 100% { transform: scaleY(0.5); opacity: 0.7; }
    50% { transform: scaleY(1); opacity: 1; }
}

.voice-status {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

/* AI Suggestions */
.ai-suggestions {
    text-align: center;
    padding: 1.5rem;
    background: rgba(52, 152, 219, 0.05);
    border-radius: 20px;
    margin: 0 auto 1rem auto;
    border: 1px solid rgba(52, 152, 219, 0.2);
    max-width: 600px;
    width: 100%;
}

.ai-thinking {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.ai-thinking .dot {
    width: 8px;
    height: 8px;
    background: var(--accent-blue);
    border-radius: 50%;
    animation: thinking 1.4s ease-in-out infinite both;
}

.ai-thinking .dot:nth-child(1) { animation-delay: -0.32s; }
.ai-thinking .dot:nth-child(2) { animation-delay: -0.16s; }
.ai-thinking .dot:nth-child(3) { animation-delay: 0s; }

@keyframes thinking {
    0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

.suggestion-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.suggestion-chip {
    background: white;
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.suggestion-chip:hover {
    background: var(--accent-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.voice-trigger {
    background: var(--gradient-primary);
    border: none;
    color: white;
    padding: 0.75rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 1rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.voice-trigger:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}


/* Voice Interface */
.voice-interface {
    text-align: center;
    padding: 2rem 0;
}

.voice-visualizer {
    position: relative;
    margin-bottom: 2rem;
}

.voice-circle {
    width: 120px;
    height: 120px;
    background: var(--gradient-ai);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 2rem;
    color: white;
    animation: voicePulse 2s ease-in-out infinite;
}

@keyframes voicePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.voice-waves {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.wave {
    position: absolute;
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    animation: waveExpand 2s ease-out infinite;
}

.wave:nth-child(1) {
    width: 140px;
    height: 140px;
    margin: -70px 0 0 -70px;
    animation-delay: 0s;
}

.wave:nth-child(2) {
    width: 180px;
    height: 180px;
    margin: -90px 0 0 -90px;
    animation-delay: 0.5s;
}

.wave:nth-child(3) {
    width: 220px;
    height: 220px;
    margin: -110px 0 0 -110px;
    animation-delay: 1s;
}

@keyframes waveExpand {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(1.2); opacity: 0; }
}

.voice-status h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.voice-status p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.voice-suggestions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.suggestion-chip {
    background: #F7FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.suggestion-chip:hover {
    background: var(--primary-gold);
    color: white;
    border-color: var(--primary-gold);
}

/* AI Interface */
.ai-interface {
    text-align: center;
    padding: 2rem 0;
}

.ai-avatar {
    position: relative;
    margin-bottom: 2rem;
}

.avatar-circle {
    width: 100px;
    height: 100px;
    background: var(--gradient-ai);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 2rem;
    color: white;
}

.ai-thinking {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
}

.dot {
    width: 8px;
    height: 8px;
    background: var(--primary-gold);
    border-radius: 50%;
    animation: thinking 1.5s ease-in-out infinite;
}

.dot:nth-child(2) { animation-delay: 0.3s; }
.dot:nth-child(3) { animation-delay: 0.6s; }

@keyframes thinking {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 1; }
}

.ai-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.ai-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.question-card {
    background: #F7FAFC;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: left;
}

.question-card span {
    font-weight: 600;
    display: block;
    margin-bottom: 1rem;
}

.quick-answers {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.quick-answers button {
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-answers button:hover {
    background: var(--primary-gold);
    color: white;
    border-color: var(--primary-gold);
}

/* Quick Actions */
.quick-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.action-card {
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.action-card:hover {
    background: var(--primary-gold);
    color: white;
    border-color: var(--primary-gold);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.action-card i {
    font-size: 1.25rem;
    color: var(--primary-gold);
    transition: color 0.3s ease;
}

.action-card:hover i {
    color: white;
}


/* Autocomplete Results */
.autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    margin-top: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    z-index: 1000;
    display: none;
}

.autocomplete-results.show {
    display: block;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.autocomplete-item {
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid #F1F5F9;
}

.autocomplete-item:hover {
    background: var(--bg-secondary);
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item i {
    color: var(--primary-gold);
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .ai-elements {
        display: none;
    }
    
    .hero-container {
        padding: 0 1rem;
    }
}

@media (max-width: 768px) {
    .main-logo {
        height: 100px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .search-interface {
        padding: 1.5rem;
    }
    
    .search-modes {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .search-filters {
        flex-direction: column;
    }
    
    .quick-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .main-logo {
        height: 80px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .search-interface {
        padding: 1rem;
        border-radius: 16px;
    }
    
    .voice-suggestions {
        flex-direction: column;
        align-items: center;
    }
    
    .quick-actions {
        gap: 1rem;
    }
    
    .action-card {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

/* Advanced Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card {
    animation: fadeInUp 0.6s ease-out forwards;
}

.feature-card:nth-child(2) { animation-delay: 0.1s; }
.feature-card:nth-child(3) { animation-delay: 0.2s; }
.feature-card:nth-child(4) { animation-delay: 0.3s; }

/* Loading States */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-radius: 50%;
    border-top-color: var(--primary-gold);
    animation: spin 1s ease-in-out infinite;
}

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

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Styles */
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid var(--primary-gold);
    outline-offset: 2px;
}

/* Selection Styles */
::selection {
    background: rgba(212, 165, 116, 0.3);
    color: var(--text-primary);
}