/*
Theme Name: Nexta
Theme URI: https://nexta-theme.com
Author: Nexta Team
Author URI: https://nexta-theme.com
Description: A premium, luxury real estate WordPress theme with smart features, multilingual support (English, Russian, Georgian), and a stylish modern design. Perfect for selling and renting properties with full admin control.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nexta
Tags: real-estate, multilingual, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, rtl-language-support, theme-options
*/

/* ============================================
   NEXTA - LUXURY REAL ESTATE THEME
   Modern, sophisticated, smart
   ============================================ */

:root {
    --nexta-primary: #0a1628;
    --nexta-secondary: #c9a876;
    --nexta-accent: #d4af7a;
    --nexta-dark: #050d1a;
    --nexta-light: #f8f6f1;
    --nexta-gray: #6b7280;
    --nexta-text: #1a1f2e;
    --nexta-bg: #ffffff;
    --nexta-border: #e5e7eb;
    --nexta-success: #10b981;
    --nexta-error: #ef4444;
    --nexta-shadow: 0 10px 40px rgba(10, 22, 40, 0.08);
    --nexta-shadow-lg: 0 20px 60px rgba(10, 22, 40, 0.15);
    --nexta-font-display: 'Playfair Display', Georgia, serif;
    --nexta-font-body: 'Manrope', -apple-system, sans-serif;
    --nexta-transition: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--nexta-font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--nexta-text);
    background: var(--nexta-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--nexta-font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--nexta-primary);
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h4 { font-size: 1.5rem; }

a {
    color: var(--nexta-secondary);
    text-decoration: none;
    transition: color 0.3s var(--nexta-transition);
}

a:hover { color: var(--nexta-accent); }

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.nexta-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

.nexta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--nexta-font-body);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--nexta-transition);
    position: relative;
    overflow: hidden;
}

.nexta-btn-primary {
    background: var(--nexta-primary);
    color: #fff;
}

.nexta-btn-primary:hover {
    background: var(--nexta-secondary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--nexta-shadow);
}

.nexta-btn-secondary {
    background: var(--nexta-secondary);
    color: #fff;
}

.nexta-btn-outline {
    background: transparent;
    color: var(--nexta-primary);
    border: 1.5px solid var(--nexta-primary);
}

.nexta-btn-outline:hover {
    background: var(--nexta-primary);
    color: #fff;
}

/* ============================================
   HEADER
   ============================================ */
.nexta-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--nexta-border);
    transition: all 0.3s var(--nexta-transition);
}

.nexta-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
}

.nexta-logo {
    font-family: var(--nexta-font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--nexta-primary);
    letter-spacing: 0.05em;
}

.nexta-logo span {
    color: var(--nexta-secondary);
}

.nexta-nav ul {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nexta-nav a {
    color: var(--nexta-primary);
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
}

.nexta-nav a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--nexta-secondary);
    transition: width 0.3s var(--nexta-transition);
}

.nexta-nav a:hover::after { width: 100%; }

.nexta-header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nexta-lang-switcher {
    position: relative;
}

.nexta-lang-current {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid var(--nexta-border);
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

.nexta-lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: #fff;
    border: 1px solid var(--nexta-border);
    border-radius: 4px;
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s var(--nexta-transition);
    box-shadow: var(--nexta-shadow);
}

.nexta-lang-switcher:hover .nexta-lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nexta-lang-dropdown a {
    display: block;
    padding: 10px 16px;
    color: var(--nexta-text);
    font-size: 13px;
    border-bottom: 1px solid var(--nexta-border);
}

.nexta-lang-dropdown a:last-child { border-bottom: none; }
.nexta-lang-dropdown a:hover { background: var(--nexta-light); }

/* ============================================
   HERO SECTION
   ============================================ */
.nexta-hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--nexta-primary) 0%, var(--nexta-dark) 100%);
}

.nexta-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(201, 168, 118, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(212, 175, 122, 0.1) 0%, transparent 50%);
}

.nexta-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    color: #fff;
}

.nexta-hero-tag {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(201, 168, 118, 0.15);
    border: 1px solid rgba(201, 168, 118, 0.3);
    color: var(--nexta-secondary);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-radius: 30px;
    margin-bottom: 24px;
}

.nexta-hero h1 {
    color: #fff;
    margin-bottom: 24px;
    font-weight: 500;
}

.nexta-hero h1 em {
    font-style: italic;
    color: var(--nexta-secondary);
    font-weight: 400;
}

.nexta-hero p {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    max-width: 600px;
}

/* ============================================
   PROPERTY SEARCH
   ============================================ */
.nexta-search-bar {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    box-shadow: var(--nexta-shadow-lg);
    margin-top: 60px;
    position: relative;
    z-index: 3;
}

.nexta-search-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--nexta-border);
}

.nexta-search-tab {
    padding: 12px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: var(--nexta-gray);
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.05em;
    border-bottom: 2px solid transparent;
    transition: all 0.3s var(--nexta-transition);
}

.nexta-search-tab.active {
    color: var(--nexta-primary);
    border-bottom-color: var(--nexta-secondary);
}

.nexta-search-form {
    display: grid;
    grid-template-columns: repeat(4, 1fr) auto;
    gap: 16px;
    align-items: end;
}

.nexta-form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--nexta-gray);
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}

.nexta-form-group input,
.nexta-form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--nexta-border);
    border-radius: 4px;
    font-family: var(--nexta-font-body);
    font-size: 14px;
    color: var(--nexta-text);
    background: #fff;
    transition: border-color 0.3s var(--nexta-transition);
}

.nexta-form-group input:focus,
.nexta-form-group select:focus {
    outline: none;
    border-color: var(--nexta-secondary);
}

/* ============================================
   PROPERTY CARDS
   ============================================ */
.nexta-section {
    padding: 100px 0;
}

.nexta-section-header {
    text-align: center;
    margin-bottom: 60px;
}

.nexta-section-tag {
    display: inline-block;
    color: var(--nexta-secondary);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 16px;
}

.nexta-section-title {
    margin-bottom: 16px;
}

.nexta-section-subtitle {
    color: var(--nexta-gray);
    font-size: 17px;
    max-width: 600px;
    margin: 0 auto;
}

.nexta-properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 32px;
}

.nexta-property-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--nexta-shadow);
    transition: all 0.4s var(--nexta-transition);
    position: relative;
}

.nexta-property-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--nexta-shadow-lg);
}

.nexta-property-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.nexta-property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--nexta-transition);
}

.nexta-property-card:hover .nexta-property-image img {
    transform: scale(1.08);
}

.nexta-property-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    background: var(--nexta-secondary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 4px;
}

.nexta-property-badge.rent { background: var(--nexta-primary); }

.nexta-property-favorite {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s var(--nexta-transition);
    border: none;
}

.nexta-property-favorite:hover {
    background: var(--nexta-secondary);
    color: #fff;
}

.nexta-property-content {
    padding: 24px;
}

.nexta-property-price {
    font-family: var(--nexta-font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--nexta-primary);
    margin-bottom: 8px;
}

.nexta-property-price span {
    font-size: 14px;
    font-weight: 400;
    color: var(--nexta-gray);
}

.nexta-property-title {
    font-size: 20px;
    margin-bottom: 8px;
}

.nexta-property-title a {
    color: var(--nexta-primary);
}

.nexta-property-title a:hover {
    color: var(--nexta-secondary);
}

.nexta-property-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--nexta-gray);
    font-size: 14px;
    margin-bottom: 16px;
}

.nexta-property-meta {
    display: flex;
    gap: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--nexta-border);
    color: var(--nexta-gray);
    font-size: 14px;
}

.nexta-property-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ============================================
   FEATURES
   ============================================ */
.nexta-features {
    background: var(--nexta-light);
}

.nexta-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.nexta-feature-card {
    background: #fff;
    padding: 40px 32px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.4s var(--nexta-transition);
    border: 1px solid transparent;
}

.nexta-feature-card:hover {
    border-color: var(--nexta-secondary);
    transform: translateY(-4px);
}

.nexta-feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--nexta-secondary), var(--nexta-accent));
    color: #fff;
    border-radius: 50%;
    font-size: 24px;
}

.nexta-feature-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.nexta-feature-card p {
    color: var(--nexta-gray);
    font-size: 15px;
}

/* ============================================
   FOOTER
   ============================================ */
.nexta-footer {
    background: var(--nexta-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 30px;
}

.nexta-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.nexta-footer-logo {
    font-family: var(--nexta-font-display);
    font-size: 32px;
    color: #fff;
    margin-bottom: 16px;
}

.nexta-footer h4 {
    color: #fff;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}

.nexta-footer ul {
    list-style: none;
}

.nexta-footer ul li {
    margin-bottom: 10px;
}

.nexta-footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s var(--nexta-transition);
}

.nexta-footer a:hover { color: var(--nexta-secondary); }

.nexta-footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .nexta-search-form { grid-template-columns: repeat(2, 1fr); }
    .nexta-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nexta-nav { display: none; }
    .nexta-search-form { grid-template-columns: 1fr; }
    .nexta-footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .nexta-section { padding: 60px 0; }
    .nexta-properties-grid { grid-template-columns: 1fr; }
}

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

.nexta-fade-in {
    animation: fadeInUp 0.8s var(--nexta-transition) forwards;
}

/* RTL Support */
body.rtl .nexta-nav ul { flex-direction: row-reverse; }
body.rtl .nexta-property-favorite { right: auto; left: 16px; }
body.rtl .nexta-property-badge { left: auto; right: 16px; }
