/*
Theme Name: Next
Theme URI: https://yes-eu.com
Author: YES-EU Team
Author URI: https://yes-eu.com
Description: Theme premium dark para Real Estate, 100% compatible con Elementor. Diseño moderno con soporte para Flexbox Containers, Theme Builder locations, y edición visual completa.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
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: next-theme
Tags: dark, real-estate, elementor, custom-colors, custom-logo, custom-menu, featured-images, full-width-template, translation-ready

Nestora Real Estate — Premium Dark Theme for Elementor
*/

/* ═══════════════════════════════════════════
   DESIGN SYSTEM — CSS Custom Properties
   ═══════════════════════════════════════════ */

:root {
    /* Colors */
    --next-black: #171717;
    --next-white: #ffffff;
    --next-primary: #21B7A6;
    --next-primary-dark: #1a9b8c;
    --next-white-70: rgba(255, 255, 255, 0.7);
    --next-white-30: rgba(255, 255, 255, 0.3);
    --next-white-10: rgba(255, 255, 255, 0.1);
    --next-white-05: rgba(255, 255, 255, 0.05);

    /* Typography */
    --next-font: 'Albert Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Sizing */
    --next-max-width: 1240px;
    --next-container-padding: 100px;

    /* Transitions */
    --next-transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --next-transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ──── Reset & Base ──── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--next-font);
    background-color: var(--next-black);
    color: var(--next-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: color var(--next-transition);
}

a:hover {
    color: var(--next-primary);
}

button {
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.2;
}

/* ──── WordPress Core Styles ──── */
.wp-caption {
    max-width: 100%;
}

.wp-caption img {
    display: block;
    margin: 0 auto;
}

.wp-caption-text {
    text-align: center;
    font-size: 14px;
    color: var(--next-white-70);
    padding-top: 8px;
}

.aligncenter {
    display: block;
    margin: 0 auto;
}

.alignleft {
    float: left;
    margin-right: 24px;
    margin-bottom: 16px;
}

.alignright {
    float: right;
    margin-left: 24px;
    margin-bottom: 16px;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* ──── Elementor Overrides ──── */

/* Force dark background on Elementor sections */
.elementor-section {
    background-color: var(--next-black);
}

/* Ensure Elementor uses our font */
.elementor-widget-text-editor,
.elementor-widget-heading .elementor-heading-title,
.elementor-widget-button .elementor-button {
    font-family: var(--next-font);
}

/* Elementor button styles matching our design */
.elementor-button {
    font-family: var(--next-font) !important;
    font-weight: 600;
    letter-spacing: 0;
    transition: all var(--next-transition);
}

/* Primary button (teal) */
.elementor-widget-button .elementor-button.elementor-button--primary,
.elementor-button[style*="background-color: #21B7A6"],
.elementor-button[style*="background-color:#21B7A6"] {
    border-radius: 70px;
}

.elementor-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(33, 183, 166, 0.3);
}

/* Ensure containers use dark bg by default */
.elementor .e-con {
    --background-color: var(--next-black);
}

/* Navigation menu widget styling */
.elementor-nav-menu a {
    font-family: var(--next-font);
    color: var(--next-white);
    font-size: 16px;
    font-weight: 400;
    text-transform: capitalize;
}

.elementor-nav-menu a:hover {
    color: var(--next-primary);
}

/* ──── Fallback Navbar (when not using Elementor header) ──── */
.next-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px var(--next-container-padding);
    border-bottom: 1px solid var(--next-white-70);
    backdrop-filter: blur(3px);
    background: var(--next-white-05);
}

.next-navbar__logo img {
    height: 30px;
    width: auto;
}

.next-navbar__menu {
    list-style: none;
    display: flex;
    gap: 12px;
}

.next-navbar__menu a {
    padding: 4px 10px;
    font-size: 16px;
    text-transform: capitalize;
    color: var(--next-white);
    position: relative;
}

.next-navbar__menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10px;
    right: 10px;
    height: 1px;
    background: var(--next-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--next-transition);
}

.next-navbar__menu a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* ──── Fallback Footer ──── */
.next-footer {
    background: var(--next-black);
    border-top: 1px solid var(--next-white-30);
    padding: 60px var(--next-container-padding);
    text-align: center;
}

.next-footer__copyright {
    font-size: 16px;
    color: var(--next-white-70);
}

/* ──── Utility Classes (usable in Elementor custom CSS) ──── */
.next-glassmorphism {
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.next-gradient-overlay {
    position: relative;
}

.next-gradient-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(23, 23, 23, 0.6) 50%, rgba(23, 23, 23, 1) 100%);
    pointer-events: none;
}

.next-glow {
    box-shadow: 0 0 30px rgba(33, 183, 166, 0.2);
}

.next-text-gradient {
    background: linear-gradient(135deg, var(--next-white), var(--next-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ──── Responsive Base ──── */
@media (max-width: 1024px) {
    :root {
        --next-container-padding: 40px;
    }

    .next-navbar {
        padding: 20px 40px;
    }
}

@media (max-width: 767px) {
    :root {
        --next-container-padding: 20px;
    }

    .next-navbar {
        padding: 16px 20px;
    }

    .next-navbar__menu {
        display: none;
    }
}

/* ──── Prefers Reduced Motion ──── */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}