/* ================================================
   DEMITRO PROPERTIES - Mediterranean Luxury Design
   ================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Outfit:wght@300;400;500;600;700&display=swap');

/* CSS Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Design Tokens */
:root {
    /* Colors - Brand Palette */
    --demitro-red: #E31E24;
    --demitro-red-dark: #c91a1f;
    --navy: #0d1b2a;
    --navy-light: #1b263b;
    --azure: #415a77;
    --sand: #e8dcc4;
    --sand-light: #f5f0e8;
    --terracotta: #c17f59;
    --terracotta-dark: #a66b48;
    --gold: #d4a853;
    --white: #ffffff;
    --cream: #fdfbf7;

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, rgba(13, 27, 42, 0.92) 0%, rgba(27, 38, 59, 0.85) 100%);
    --gradient-card: linear-gradient(180deg, rgba(13, 27, 42, 0) 0%, rgba(13, 27, 42, 0.8) 100%);
    --gradient-gold: linear-gradient(135deg, #d4a853 0%, #c17f59 100%);

    /* Typography */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Outfit', -apple-system, sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(13, 27, 42, 0.08);
    --shadow-md: 0 8px 24px rgba(13, 27, 42, 0.12);
    --shadow-lg: 0 16px 48px rgba(13, 27, 42, 0.16);
    --shadow-card: 0 4px 20px rgba(13, 27, 42, 0.1);

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --duration-fast: 0.2s;
    --duration-normal: 0.4s;
    --duration-slow: 0.6s;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--navy);
    background: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); }

p {
    font-weight: 300;
    letter-spacing: 0.01em;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 3rem);
}

/* ================================================
   HEADER
   ================================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-md) 0;
    transition: all var(--duration-normal) var(--ease-out);
}

.header.scrolled {
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    padding: var(--space-sm) 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: var(--space-sm);
}

.logo img {
    height: 48px;
    border-radius: var(--radius-sm);
    transition: transform var(--duration-fast) var(--ease-out);
}

.logo:hover img {
    transform: scale(1.05);
}

.nav {
    display: flex;
    gap: var(--space-lg);
}

.nav-link {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--white);
    text-decoration: none;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
    padding: var(--space-xs) 0;
    transition: color var(--duration-fast);
}

.header.scrolled .nav-link {
    color: var(--navy);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--terracotta);
    transition: width var(--duration-normal) var(--ease-out);
}

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

.lang-switcher {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--duration-fast);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.lang-switcher:hover {
    background: var(--white);
    color: var(--navy);
}

.header.scrolled .lang-switcher {
    border-color: var(--navy);
    color: var(--navy);
}

.header.scrolled .lang-switcher:hover {
    background: var(--navy);
    color: var(--white);
}

.header-phone {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding: var(--space-sm) var(--space-md);
    background: var(--demitro-red);
    border-radius: var(--radius-md);
    transition: all var(--duration-fast) var(--ease-out);
}

.header.scrolled .header-phone {
    background: var(--demitro-red);
    color: var(--white);
}

.header-phone:hover {
    background: var(--demitro-red-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all var(--duration-fast);
}

.header.scrolled .mobile-menu-btn span {
    background: var(--navy);
}

/* ================================================
   HERO SECTION
   ================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        var(--gradient-hero),
        url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?w=1920&q=80') center/cover;
    transform: scale(1.1);
    animation: heroZoom 20s var(--ease-in-out) infinite alternate;
}

@keyframes heroZoom {
    from { transform: scale(1.1); }
    to { transform: scale(1); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 900px;
    padding: var(--space-xl);
}

.hero-tagline {
    font-family: var(--font-display);
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: var(--space-md);
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-out) 0.2s forwards;
}

.hero h1 {
    color: var(--white);
    margin-bottom: var(--space-md);
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-out) 0.4s forwards;
}

.hero-quote {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-style: italic;
    font-weight: 400;
    color: var(--sand);
    margin-bottom: var(--space-xs);
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-out) 0.6s forwards;
}

.hero-quote-author {
    font-size: 0.875rem;
    color: var(--sand);
    opacity: 0.7;
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-out) 0.8s forwards;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    margin-top: var(--space-xl);
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-out) 1s forwards;
}

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

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: var(--white);
    opacity: 0.6;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ================================================
   BUTTONS
   ================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
}

.btn-primary {
    background: var(--demitro-red);
    color: var(--white) !important;
}

.btn-primary:hover {
    background: var(--demitro-red-dark);
    color: var(--white) !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(227, 30, 36, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--navy);
}

.btn-dark {
    background: var(--navy);
    color: var(--white) !important;
}

.btn-dark:hover {
    background: var(--navy-light);
    color: var(--white) !important;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ================================================
   SEARCH SECTION
   ================================================ */
.search-section {
    position: relative;
    z-index: 10;
    margin-top: -80px;
    padding: 0 var(--space-md);
}

.search-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: var(--space-lg);
    max-width: 1200px;
    margin: 0 auto;
}

.search-tabs {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    border-bottom: 1px solid rgba(13, 27, 42, 0.1);
    padding-bottom: var(--space-md);
}

.search-tab {
    padding: var(--space-sm) var(--space-md);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--azure);
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    transition: color var(--duration-fast);
}

.search-tab.active {
    color: var(--terracotta);
}

.search-tab.active::after {
    content: '';
    position: absolute;
    bottom: calc(-1 * var(--space-md) - 1px);
    left: 0;
    right: 0;
    height: 3px;
    background: var(--terracotta);
    border-radius: 3px 3px 0 0;
}

.search-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.filter-group label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--azure);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-group select,
.filter-group input {
    padding: var(--space-md);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--navy);
    background: var(--sand-light);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    transition: all var(--duration-fast);
    appearance: none;
}

.filter-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23415a77' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 48px;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: var(--terracotta);
    background-color: var(--white);
}

.btn-search {
    padding: var(--space-md) var(--space-xl);
    background: var(--gradient-gold);
    color: var(--white);
    font-weight: 600;
}

.btn-search:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 168, 83, 0.4);
}

/* ================================================
   PROPERTIES SECTION
   ================================================ */
.properties-section {
    padding: var(--space-2xl) 0;
    background: var(--cream);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-subtitle {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: var(--space-sm);
}

.section-header h2 {
    color: var(--navy);
    margin-bottom: var(--space-sm);
}

.section-header p {
    color: var(--azure);
    max-width: 600px;
    margin: 0 auto;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: var(--space-lg);
}

/* Property Card */
.property-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all var(--duration-normal) var(--ease-out);
    cursor: pointer;
    position: relative;
}

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

.property-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-out);
}

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

.property-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-card);
    opacity: 0;
    transition: opacity var(--duration-normal);
}

.property-card:hover .property-image::after {
    opacity: 1;
}

.property-badges {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    right: var(--space-md);
    display: flex;
    justify-content: space-between;
    z-index: 2;
}

.property-badge {
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
}

.badge-vendita {
    background: var(--navy);
    color: var(--white);
}

.badge-affitto {
    background: var(--demitro-red);
    color: var(--white);
}

.badge-venduto {
    background: #2d6a4f;
    color: var(--white);
}

.badge-trattativa {
    background: var(--gold);
    color: var(--navy);
}

.property-type {
    background: rgba(255, 255, 255, 0.95);
    color: var(--navy);
    backdrop-filter: blur(10px);
}

.property-favorite {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--duration-fast);
    z-index: 2;
}

.property-favorite:hover {
    background: var(--terracotta);
    color: var(--white);
}

.property-content {
    padding: var(--space-lg);
}

.property-price {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: var(--space-xs);
}

.property-price small {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--azure);
}

.property-location {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--azure);
    font-size: 0.95rem;
    margin-bottom: var(--space-md);
}

.property-location svg {
    color: var(--terracotta);
}

.property-features {
    display: flex;
    gap: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(13, 27, 42, 0.08);
}

.feature {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.9rem;
    color: var(--azure);
}

.feature svg {
    width: 18px;
    height: 18px;
    color: var(--terracotta);
}

.feature strong {
    color: var(--navy);
    font-weight: 600;
}

/* ================================================
   SERVICES SECTION
   ================================================ */
.services-section {
    padding: var(--space-2xl) 0;
    background: var(--navy);
    position: relative;
    overflow: hidden;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(193, 127, 89, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(212, 168, 83, 0.1) 0%, transparent 50%);
}

.services-section .section-header {
    position: relative;
    z-index: 1;
}

.services-section .section-header h2 {
    color: var(--white);
}

.services-section .section-header p {
    color: var(--sand);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    position: relative;
    z-index: 1;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    transition: all var(--duration-normal) var(--ease-out);
    backdrop-filter: blur(10px);
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--terracotta);
    transform: translateY(-5px);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-md);
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--duration-normal) var(--ease-out);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-icon svg {
    width: 36px;
    height: 36px;
    stroke: var(--white);
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: var(--space-sm);
}

.service-card p {
    color: var(--sand);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ================================================
   ABOUT SECTION
   ================================================ */
.about-section {
    padding: var(--space-2xl) 0;
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-2xl);
    align-items: center;
}

.about-text .section-subtitle {
    text-align: left;
}

.about-text h2 {
    color: var(--navy);
    margin-bottom: var(--space-md);
}

.about-text p {
    color: var(--azure);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.about-stats {
    display: flex;
    gap: var(--space-xl);
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(13, 27, 42, 0.1);
}

.stat {
    text-align: center;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 600;
    color: var(--terracotta);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--azure);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: var(--space-xs);
}

/* Agent Card */
.agent-card {
    background: var(--sand-light);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.agent-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: var(--gradient-gold);
}

.agent-photo {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto var(--space-md);
    border-radius: 50%;
    border: 5px solid var(--white);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    z-index: 1;
}

.agent-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.agent-card h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--navy);
    margin-bottom: var(--space-xs);
}

.agent-role {
    color: var(--terracotta);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-md);
}

.agent-contacts {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.agent-contacts a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    color: var(--navy);
    text-decoration: none;
    font-size: 0.95rem;
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    transition: all var(--duration-fast);
}

.agent-contacts a:hover {
    background: var(--white);
    color: var(--terracotta);
}

.agent-contacts svg {
    width: 20px;
    height: 20px;
    color: var(--terracotta);
}

/* ================================================
   CONTACT SECTION
   ================================================ */
.contact-section {
    padding: var(--space-2xl) 0;
    background: var(--sand-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-xl);
}

.contact-info h2 {
    color: var(--navy);
    margin-bottom: var(--space-lg);
}

.contact-item {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.contact-icon {
    width: 56px;
    height: 56px;
    background: var(--white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    color: var(--terracotta);
}

.contact-item strong {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--azure);
    margin-bottom: var(--space-xs);
}

.contact-item p,
.contact-item a {
    color: var(--navy);
    font-size: 1rem;
    text-decoration: none;
    line-height: 1.6;
}

.contact-item a:hover {
    color: var(--terracotta);
}

/* Contact Form */
.contact-form-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-lg);
}

.contact-form-card h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--navy);
    margin-bottom: var(--space-lg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: var(--space-xs);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: var(--space-md);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--navy);
    background: var(--sand-light);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    transition: all var(--duration-fast);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--terracotta);
    background: var(--white);
}

.form-group.checkbox {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.form-group.checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--demitro-red);
}

.form-group.checkbox label {
    font-size: 0.85rem;
    color: var(--azure);
    margin-bottom: 0;
}

.form-group.checkbox a {
    color: var(--terracotta);
}

.btn-submit {
    width: 100%;
    padding: var(--space-md);
    margin-top: var(--space-sm);
}

/* Map */
.map-container {
    margin-top: var(--space-lg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-container iframe {
    width: 100%;
    height: 250px;
    border: none;
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
    background: var(--navy);
    color: var(--white);
    padding: var(--space-xl) 0 var(--space-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .footer-logo {
    height: 44px;
    border-radius: var(--radius-sm);
}

.footer-brand p {
    color: var(--sand);
    margin-top: var(--space-md);
    max-width: 300px;
    line-height: 1.7;
}

.footer h4 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
    color: var(--white);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    color: var(--sand);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color var(--duration-fast);
}

.footer-links a:hover {
    color: var(--terracotta);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-lg);
    font-size: 0.875rem;
    color: var(--sand);
}

.footer-legal {
    display: flex;
    gap: var(--space-md);
}

.footer-legal a {
    color: var(--sand);
    text-decoration: none;
    transition: color var(--duration-fast);
}

.footer-legal a:hover {
    color: var(--terracotta);
}

.footer-social {
    display: flex;
    gap: var(--space-sm);
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all var(--duration-fast);
}

.footer-social a:hover {
    background: var(--terracotta);
    transform: translateY(-3px);
}

/* ================================================
   MODAL
   ================================================ */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(13, 27, 42, 0.9);
    backdrop-filter: blur(10px);
    z-index: 2000;
    overflow-y: auto;
    padding: var(--space-lg);
}

.modal.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    animation: fadeIn 0.3s var(--ease-out);
}

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

.modal-content {
    background: var(--white);
    border-radius: var(--radius-xl);
    max-width: 1000px;
    width: 100%;
    margin: var(--space-xl) 0;
    position: relative;
    animation: slideUp 0.4s var(--ease-out);
    overflow: hidden;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 48px;
    height: 48px;
    background: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-fast);
}

.modal-close:hover {
    background: var(--terracotta);
    color: var(--white);
}

.modal-gallery {
    position: relative;
    height: 450px;
}

.modal-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: all var(--duration-fast);
}

.gallery-nav:hover {
    background: var(--terracotta);
    color: var(--white);
}

.gallery-nav.prev { left: var(--space-md); }
.gallery-nav.next { right: var(--space-md); }

.gallery-counter {
    position: absolute;
    bottom: var(--space-md);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(13, 27, 42, 0.8);
    color: var(--white);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    backdrop-filter: blur(10px);
}

.modal-details {
    padding: var(--space-xl);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-md);
}

.modal-price {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--navy);
}

.modal-price small {
    font-size: 1rem;
    color: var(--azure);
}

.modal-code {
    color: var(--azure);
    font-size: 0.9rem;
}

.property-type-badge {
    display: inline-block;
    margin-left: var(--space-sm);
    padding: var(--space-xs) var(--space-sm);
    background: var(--sand-light);
    color: var(--navy);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
}

.modal-location {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--azure);
    margin-bottom: var(--space-lg);
}

.modal-location svg {
    color: var(--terracotta);
}

.modal-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--sand-light);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
}

.modal-feature {
    text-align: center;
}

.modal-feature .value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--navy);
}

.modal-feature .label {
    font-size: 0.85rem;
    color: var(--azure);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.modal-description {
    margin-bottom: var(--space-lg);
}

.modal-description h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: var(--space-md);
}

.modal-description p {
    color: var(--azure);
    line-height: 1.8;
}

.modal-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.amenity {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    background: var(--sand-light);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    color: var(--navy);
}

.amenity svg {
    color: var(--terracotta);
}

.modal-extra-info {
    padding: var(--space-md);
    background: var(--sand-light);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
}

.modal-extra-info p {
    margin: 0;
    color: var(--navy);
}

.modal-cta {
    display: flex;
    gap: var(--space-md);
}

.modal-cta .btn {
    flex: 1;
}

/* ================================================
   COOKIE BANNER
   ================================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -4px 20px rgba(13, 27, 42, 0.15);
    z-index: 3000;
    transform: translateY(100%);
    transition: transform var(--duration-normal) var(--ease-out);
}

.cookie-banner.active {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.cookie-text {
    flex: 1;
}

.cookie-text h4 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--navy);
    margin-bottom: var(--space-xs);
}

.cookie-text p {
    font-size: 0.9rem;
    color: var(--azure);
    margin: 0;
}

.cookie-text a {
    color: var(--terracotta);
}

.cookie-actions {
    display: flex;
    gap: var(--space-sm);
    flex-shrink: 0;
}

.btn-cookie {
    padding: var(--space-sm) var(--space-lg);
    font-size: 0.85rem;
}

.btn-cookie-accept {
    background: var(--demitro-red);
    color: var(--white);
}

.btn-cookie-reject {
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--navy);
}

.btn-cookie-settings {
    background: transparent;
    color: var(--azure);
    border: none;
    text-decoration: underline;
}

/* Cookie Settings Modal */
.cookie-settings-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(13, 27, 42, 0.9);
    z-index: 3001;
    padding: var(--space-lg);
    overflow-y: auto;
}

.cookie-settings-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-settings-content {
    background: var(--white);
    border-radius: var(--radius-xl);
    max-width: 600px;
    width: 100%;
    padding: var(--space-xl);
}

.cookie-settings-content h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--navy);
    margin-bottom: var(--space-lg);
}

.cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: var(--space-md) 0;
    border-bottom: 1px solid rgba(13, 27, 42, 0.1);
}

.cookie-option-info h4 {
    font-size: 1rem;
    color: var(--navy);
    margin-bottom: var(--space-xs);
}

.cookie-option-info p {
    font-size: 0.85rem;
    color: var(--azure);
    margin: 0;
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #ccc;
    border-radius: 26px;
    transition: var(--duration-fast);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: var(--white);
    border-radius: 50%;
    transition: var(--duration-fast);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--demitro-red);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(24px);
}

.toggle-switch input:disabled + .toggle-slider {
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-settings-actions {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

/* ================================================
   PRIVACY PAGE
   ================================================ */
.privacy-page {
    padding-top: 120px;
    padding-bottom: var(--space-2xl);
    background: var(--cream);
    min-height: 100vh;
}

.privacy-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.privacy-content h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--navy);
    margin-bottom: var(--space-lg);
}

.privacy-content h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--navy);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
}

.privacy-content p {
    color: var(--azure);
    margin-bottom: var(--space-md);
    line-height: 1.8;
}

.privacy-content ul {
    margin-left: var(--space-lg);
    margin-bottom: var(--space-md);
    color: var(--azure);
}

.privacy-content li {
    margin-bottom: var(--space-xs);
    line-height: 1.7;
}

.privacy-content a {
    color: var(--terracotta);
}

.last-updated {
    font-size: 0.9rem;
    color: var(--azure);
    font-style: italic;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid rgba(13, 27, 42, 0.1);
}

.privacy-actions {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(13, 27, 42, 0.1);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

@media (max-width: 480px) {
    .privacy-content {
        padding: var(--space-md);
    }

    .privacy-content h1 {
        font-size: 1.75rem;
    }

    .privacy-content h2 {
        font-size: 1.25rem;
    }

    .privacy-actions {
        flex-direction: column;
    }

    .privacy-actions .btn {
        width: 100%;
        text-align: center;
    }
}

/* ================================================
   LOADING & STATES
   ================================================ */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--space-2xl);
}

.spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--sand);
    border-top-color: var(--terracotta);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.no-results {
    text-align: center;
    padding: var(--space-2xl);
    color: var(--azure);
}

.no-results h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--navy);
    margin-bottom: var(--space-sm);
}

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .modal-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: var(--space-md);
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        gap: 0;
    }

    .nav.active {
        display: flex;
    }

    .nav .nav-link {
        color: var(--navy);
        padding: var(--space-sm) var(--space-md);
        border-bottom: 1px solid var(--gray-200);
    }

    .nav .nav-link:last-of-type {
        border-bottom: none;
    }

    .nav .lang-switcher {
        margin: var(--space-sm) var(--space-md);
        align-self: flex-start;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .header-phone span {
        display: none;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .search-section {
        margin-top: -40px;
    }

    .search-filters {
        grid-template-columns: 1fr;
    }

    .search-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .properties-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        flex-direction: column;
        gap: var(--space-lg);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand p {
        max-width: none;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }

    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-actions {
        flex-wrap: wrap;
        justify-content: center;
    }

    .modal-cta {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .property-image {
        height: 220px;
    }

    .modal-gallery {
        height: 300px;
    }

    .modal-features {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-sm);
    }

    .modal-feature .value {
        font-size: 1.5rem;
    }
}

/* ================================================
   UTILITY CLASSES
   ================================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
