/* ==========================================================================
   Component Styles - Prime Italy Property
   Old Money Luxury Aesthetic
   ========================================================================== */

/* --------------------------------------------------------------------------
   Header / Navigation
   -------------------------------------------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    padding: var(--space-6) 0;
    transition: all var(--transition-slow);
}

.header.scrolled {
    background-color: rgba(4, 27, 60, 0.97);
    padding: var(--space-4) 0;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

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

.logo {
    width: 45px;
    height: auto;
    transition: transform var(--transition-base);
}

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

.nav {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

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

.nav-link {
    font-family: var(--font-accent);
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    position: relative;
    padding: var(--space-2) 0;
    transition: color var(--transition-base);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background-color: var(--color-accent);
    transition: all var(--transition-base);
    transform: translateX(-50%);
}

.nav-link:hover {
    color: var(--color-accent);
}

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

/* Language Toggle */
.lang-toggle {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    padding: var(--space-1);
    gap: 0;
}

.lang-btn {
    font-family: var(--font-accent);
    font-size: 10px;
    font-weight: var(--font-semibold);
    color: var(--color-silver);
    background: none;
    border: none;
    padding: var(--space-2) var(--space-3);
    cursor: pointer;
    transition: all var(--transition-fast);
    letter-spacing: var(--tracking-wide);
}

.lang-btn.active {
    background-color: var(--color-accent);
    color: var(--color-primary);
}

.lang-btn:hover:not(.active) {
    color: var(--color-white);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
    z-index: calc(var(--z-overlay) + 1);
}

.menu-toggle span {
    width: 22px;
    height: 1px;
    background-color: var(--color-white);
    transition: all var(--transition-base);
    transform-origin: center;
}

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

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

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

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--color-primary);
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.hero-video-container video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    object-fit: cover;
    object-position: center center;
}

/* Mobile portrait: ensure full cover with no letterbox */
@media (max-width: 768px) {
    .hero-video-container video {
        width: 100%;
        height: 100%;
        min-width: unset;
        min-height: unset;
        object-fit: cover;
    }
}


.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(4, 27, 60, 0.75) 0%,
            rgba(4, 27, 60, 0.5) 40%,
            rgba(4, 27, 60, 0.6) 70%,
            rgba(4, 27, 60, 0.9) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 0 var(--space-6);
    max-width: 900px;
}

.hero-subtitle {
    font-family: var(--font-accent);
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: var(--tracking-widest);
    margin-bottom: var(--space-6);
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.3s;
}

.hero-title {
    font-family: 'Droid Serif', 'Libre Baskerville', Georgia, serif;
    font-size: var(--text-7xl);
    font-weight: var(--font-light);
    color: var(--color-white);
    margin-bottom: var(--space-6);
    letter-spacing: var(--tracking-wide);
    line-height: 1;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.5s;
}

.hero-tagline {
    font-family: var(--font-body);
    font-size: var(--text-lg);
    font-weight: var(--font-regular);
    color: rgba(255, 255, 255, 0.85);
    max-width: 550px;
    margin: 0 auto var(--space-10);
    font-style: italic;
    line-height: 1.7;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.7s;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-family: var(--font-accent);
    font-size: 11px;
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    padding: var(--space-4) var(--space-8);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.9s;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-primary);
    border: 1px solid var(--color-accent);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-accent);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
    border-color: var(--color-white);
}

.scroll-indicator {
    position: absolute;
    bottom: var(--space-10);
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    animation: bounce 2.5s ease-in-out infinite;
}

.scroll-indicator span {
    font-family: var(--font-accent);
    font-size: 10px;
    color: var(--color-silver);
    text-transform: uppercase;
    letter-spacing: var(--tracking-widest);
}

.scroll-indicator svg {
    width: 18px;
    height: 18px;
    stroke: var(--color-accent);
    stroke-width: 1.5;
}

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

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

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-8px);
    }

    60% {
        transform: translateX(-50%) translateY(-4px);
    }
}

/* --------------------------------------------------------------------------
   Section Titles
   -------------------------------------------------------------------------- */
.section-header {
    margin-bottom: var(--space-16);
}

.section-label {
    font-family: var(--font-accent);
    font-size: 10px;
    font-weight: var(--font-semibold);
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: var(--tracking-widest);
    margin-bottom: var(--space-4);
    display: block;
}

.section-title {
    font-size: var(--text-4xl);
    font-weight: var(--font-regular);
    margin-bottom: var(--space-4);
    letter-spacing: var(--tracking-tight);
}

.section-description {
    font-size: var(--text-lg);
    color: var(--color-gray);
    max-width: 800px;
    margin: 0 auto;
    line-height: 2;
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card {
    background-color: var(--color-white);
    padding: var(--space-8);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-slow);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

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

.card:hover::before {
    opacity: 1;
}

.card-number {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: var(--font-light);
    color: var(--color-accent);
    opacity: 0.4;
    margin-bottom: var(--space-4);
    line-height: 1;
}

.card-title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    margin-bottom: var(--space-3);
    color: var(--color-primary);
    font-weight: var(--font-medium);
}

.card-text {
    font-size: var(--text-sm);
    color: var(--color-gray);
    line-height: 1.8;
    margin-bottom: 0;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
}

@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   Mission & Vision Split
   -------------------------------------------------------------------------- */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
}

.split-item {
    position: relative;
    padding-left: var(--space-8);
}

.split-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 50px;
    background: linear-gradient(to bottom, var(--color-accent), transparent);
}

.split-title {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-6);
    color: var(--color-primary);
    font-weight: var(--font-regular);
}

.split-text {
    color: var(--color-gray);
    line-height: 2;
}

@media (max-width: 768px) {
    .split-section {
        grid-template-columns: 1fr;
        gap: var(--space-12);
    }
}

/* --------------------------------------------------------------------------
   Dark Section (Philosophy)
   -------------------------------------------------------------------------- */
.section-dark {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.section-dark .section-label {
    color: var(--color-accent);
}

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

.section-dark .section-description {
    color: rgba(255, 255, 255, 0.75);
}

/* --------------------------------------------------------------------------
   Contact Section
   -------------------------------------------------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-6);
}

.contact-item {
    text-align: center;
    padding: var(--space-6);
    transition: all var(--transition-base);
}

.contact-item:hover {
    background-color: var(--color-white);
}

.contact-icon {
    width: 32px;
    height: 32px;
    margin: 0 auto var(--space-4);
    color: var(--color-accent);
    stroke-width: 1;
}

.contact-label {
    font-family: var(--font-accent);
    font-size: 10px;
    font-weight: var(--font-semibold);
    color: var(--color-silver);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    margin-bottom: var(--space-2);
}

.contact-value {
    font-size: var(--text-sm);
    color: var(--color-primary);
    margin: 0;
}

.contact-value a {
    color: var(--color-primary);
}

.contact-value a:hover {
    color: var(--color-accent);
}

@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
    background-color: var(--color-primary-dark);
    color: var(--color-silver);
    padding: var(--space-12) 0 var(--space-8);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-6);
}

.footer-logo {
    width: 36px;
    opacity: 0.8;
    transition: opacity var(--transition-base);
}

.footer-logo:hover {
    opacity: 1;
}

.footer-copyright {
    font-family: var(--font-accent);
    font-size: var(--text-xs);
    letter-spacing: var(--tracking-wide);
}

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

.footer-social a {
    color: var(--color-silver);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    color: var(--color-accent);
    transform: translateY(-2px);
}

.footer-social svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 640px) {
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* --------------------------------------------------------------------------
   Floating Action Buttons
   -------------------------------------------------------------------------- */
.floating-buttons {
    position: fixed;
    right: var(--space-6);
    bottom: var(--space-6);
    z-index: var(--z-fixed);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.floating-btn {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-lg);
}

.floating-btn svg {
    width: 24px;
    height: 24px;
}

/* WhatsApp Button */
.whatsapp-btn {
    background-color: #25D366;
    color: var(--color-white);
}

.whatsapp-btn:hover {
    background-color: #1da851;
    transform: scale(1.08);
    box-shadow: var(--shadow-xl);
}

/* Scroll to Top Button */
.scroll-top-btn {
    background-color: var(--color-primary);
    color: var(--color-white);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background-color: var(--color-accent);
    color: var(--color-primary);
}

@media (max-width: 640px) {
    .floating-buttons {
        right: var(--space-4);
        bottom: var(--space-4);
    }

    .floating-btn {
        width: 48px;
        height: 48px;
    }

    .floating-btn svg {
        width: 22px;
        height: 22px;
    }
}

/* --------------------------------------------------------------------------
   Mobile Navigation Overlay
   -------------------------------------------------------------------------- */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-primary);
    z-index: var(--z-overlay);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-slow);
}

.mobile-nav.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: var(--space-8);
}

.mobile-nav .nav-link {
    font-size: var(--text-xl);
    letter-spacing: var(--tracking-wider);
}

.mobile-lang-toggle {
    margin-top: var(--space-6);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .mobile-nav {
        display: block;
    }

    .hero-title {
        font-size: var(--text-4xl);
    }

    .hero-tagline {
        font-size: var(--text-base);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: var(--text-3xl);
        letter-spacing: 0.05em;
    }

    .hero-tagline {
        font-size: var(--text-sm);
    }
}

/* --------------------------------------------------------------------------
   Intro/About Sections
   -------------------------------------------------------------------------- */
.intro-text {
    font-size: var(--text-lg);
    line-height: 2.2;
    color: var(--color-gray);
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.about-text {
    color: var(--color-gray);
    line-height: 2;
}

.about-text p:not(:last-child) {
    margin-bottom: var(--space-6);
}

.about-image {
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    top: var(--space-6);
    right: calc(var(--space-6) * -1);
    width: 100%;
    height: 100%;
    border: 1px solid var(--color-accent);
    opacity: 0.4;
    z-index: -1;
    transition: all var(--transition-slow);
}

.about-image:hover::before {
    top: var(--space-4);
    right: calc(var(--space-4) * -1);
    opacity: 0.6;
}

.about-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    filter: grayscale(15%);
    transition: filter var(--transition-slow);
}

.about-image:hover img {
    filter: grayscale(0%);
}

/* --------------------------------------------------------------------------
   Founder Section
   -------------------------------------------------------------------------- */
.founder-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.founder-text {
    color: var(--color-gray);
    line-height: 2;
}

.founder-text p:not(:last-child) {
    margin-bottom: var(--space-6);
}

.founder-image {
    position: relative;
}

.founder-image::before {
    content: '';
    position: absolute;
    top: var(--space-6);
    right: calc(var(--space-6) * -1);
    width: 100%;
    height: 100%;
    border: 1px solid var(--color-accent);
    opacity: 0.4;
    z-index: -1;
    transition: all var(--transition-slow);
}

.founder-image:hover::before {
    top: var(--space-4);
    right: calc(var(--space-4) * -1);
    opacity: 0.6;
}

.founder-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    filter: grayscale(15%);
    transition: filter var(--transition-slow);
}

.founder-image:hover img {
    filter: grayscale(0%);
}

@media (max-width: 900px) {
    .founder-content {
        grid-template-columns: 1fr;
        gap: var(--space-10);
    }

    .founder-image {
        order: -1;
        max-width: 400px;
        margin: 0 auto;
    }

    .founder-image::before {
        display: none;
    }
}

@media (max-width: 900px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--space-10);
    }

    .about-image {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }

    .about-image::before {
        display: none;
    }
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-delay-1 {
    transition-delay: 0.1s;
}

.fade-in-delay-2 {
    transition-delay: 0.2s;
}

.fade-in-delay-3 {
    transition-delay: 0.3s;
}

/* --------------------------------------------------------------------------
   Luxury Preloader
   -------------------------------------------------------------------------- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-primary);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.preloader-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-6);
}

.preloader-logo-container {
    position: relative;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
}

.preloader-ring-outer {
    width: 140px;
    height: 140px;
    border-top-color: var(--color-accent);
    border-right-color: var(--color-accent);
    animation: ringRotate 2s linear infinite;
}

.preloader-ring-inner {
    width: 110px;
    height: 110px;
    border-bottom-color: var(--color-accent);
    border-left-color: rgba(197, 168, 120, 0.4);
    animation: ringRotate 1.5s linear infinite reverse;
}

.preloader-logo {
    width: 70px;
    height: auto;
    z-index: 1;
}

.preloader-brand {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.brand-prime {
    color: var(--color-white);
}

.brand-property {
    color: var(--color-accent);
}

.preloader-text {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 1px;
    animation: textPulse 2s ease-in-out infinite;
}

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

@keyframes textPulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* --------------------------------------------------------------------------
   Property Market Table
   -------------------------------------------------------------------------- */
.market-table-container {
    width: auto;
    max-width: 1200px;
    margin: var(--space-10) 1rem 0 1rem;
    background-color: var(--color-primary);
    border-radius: 12px;
    overflow-x: hidden;
    box-shadow: var(--shadow-xl);
}

@media (min-width: 769px) {
    .market-table-container {
        margin: var(--space-10) auto 0;
    }
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-6) var(--space-8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.table-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-white);
    margin: 0;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 20px;
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: #22c55e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.market-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-body);
}

.market-table thead {
    background: rgba(255, 255, 255, 0.05);
}

.market-table th {
    padding: var(--space-4) var(--space-5);
    text-align: left;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.market-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.2s ease;
}

.market-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.market-table td {
    padding: var(--space-4) var(--space-5);
    font-size: 0.875rem;
    color: var(--color-white);
    white-space: nowrap;
}

.property-name {
    font-weight: 500;
    max-width: 280px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.type-badge {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

.type-badge.villa {
    background: rgba(197, 168, 120, 0.2);
    color: var(--color-accent);
}

.price-cell {
    font-weight: 600;
    color: var(--color-accent);
}

.specs-cell {
    color: rgba(255, 255, 255, 0.7);
}

.appreciation {
    font-weight: 600;
}

.appreciation.positive {
    color: #22c55e;
}

.appreciation.negative {
    color: #ef4444;
}

.appreciation.neutral {
    color: rgba(255, 255, 255, 0.4);
}

.appreciation.highlight {
    color: var(--color-accent);
    font-weight: 600;
}

.date-cell {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8125rem;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-badge.trending {
    background: rgba(239, 68, 68, 0.15);
    color: #f97316;
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.status-badge.hot {
    background: rgba(234, 179, 8, 0.15);
    color: #eab308;
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.status-badge.stable {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-badge.emerging {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.status-badge.value {
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.table-footer {
    padding: var(--space-4) var(--space-8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: right;
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
}

/* Mobile Responsive Table */
@media (max-width: 768px) {
    .market-table-container {
        margin: var(--space-6) var(--space-4) 0;
        border-radius: 8px;
        max-width: calc(100vw - 2rem);
        overflow: hidden;
    }

    .table-header {
        flex-direction: column;
        gap: var(--space-3);
        align-items: flex-start;
        padding: var(--space-4) var(--space-5);
    }

    .table-title {
        font-size: 1rem;
    }

    .table-wrapper {
        max-width: 100%;
        overflow-x: auto;
    }

    .property-table th,
    .property-table td {
        padding: var(--space-3) var(--space-4);
        font-size: 0.8125rem;
    }

    .property-name {
        max-width: 180px;
        font-size: 0.8125rem;
    }
}

/* --------------------------------------------------------------------------
   WhatsApp Pulse Animation (Random)
   -------------------------------------------------------------------------- */
@keyframes whatsappPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    50% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
}

.whatsapp-btn.pulse {
    animation: whatsappPulse 2s ease-in-out 3;
}

/* --------------------------------------------------------------------------
   Cookie Consent Banner
   -------------------------------------------------------------------------- */
.cookie-consent-banner {
    position: fixed;
    bottom: var(--space-6);
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    width: 90%;
    max-width: var(--container-lg);
    background-color: rgba(4, 27, 60, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xl);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-slow);
}

.cookie-consent-banner.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: all;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: var(--space-8);
}

.cookie-text-content {
    flex: 1;
}

.cookie-title {
    color: var(--color-white);
    font-size: var(--text-lg);
    margin-bottom: var(--space-2);
    font-family: var(--font-heading);
}

.cookie-text {
    color: var(--color-silver);
    font-size: var(--text-sm);
    margin-bottom: 0;
    line-height: 1.5;
}

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

.btn-sm {
    padding: var(--space-3) var(--space-6);
    font-size: 10px;
}

@media (max-width: 768px) {
    .cookie-consent-banner {
        bottom: 0;
        left: 0;
        transform: translateY(100%);
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        border: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding: var(--space-4);
    }

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

    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-4);
    }

    .cookie-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* --------------------------------------------------------------------------
   Footer Legal & Info
   -------------------------------------------------------------------------- */
.footer-info {
    margin-bottom: var(--space-6);
    text-align: center;
}

.footer-company {
    font-weight: 600;
    margin-bottom: var(--space-1);
    color: var(--color-primary);
}

.footer-address,
.footer-vat {
    font-size: var(--text-sm);
    color: var(--color-text-light);
    margin-bottom: var(--space-1);
}

.footer-legal {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
    font-size: var(--text-sm);
}

.footer-link {
    color: var(--color-text-light);
    text-decoration: none;
    transition: color var(--transition-base);
}

.footer-link:hover {
    color: var(--color-gold);
}

.separator {
    color: var(--color-border);
}

@media (max-width: 640px) {
    .footer-legal {
        flex-direction: column;
        gap: var(--space-2);
    }

    .separator {
        display: none;
    }
}