:root {
    /* Colors */
    --primary: #008ee6;
    --primary-hover: #0077c0;
    --secondary: #95c11f;
    --secondary-hover: #86ae1c;
    --accent: #ef4444;
    --accent-hover: #dc2626;
    --navy: #0f172a;

    /* Backgrounds */
    --bg-light: #fcfcfc;
    --bg-dark: #0f172a;
    --bg-subtle: #f8fafc;
    --card-bg: #ffffff;
    --form-bg: #f0f7ff;
    --topbar-bg: #f8fafc;

    /* Text */
    --text-main: #1e293b;
    --text-muted: #64748b;

    /* Borders & Dividers */
    --border-color: #e2e8f0;

    /* Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);

    /* Fonts */
    --font-display: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;

    /* Sizing & Transitions */
    --transition: all 0.3s ease;
    --border-radius-lg: 1.5rem;
    --border-radius-xl: 2.5rem;
    --border-radius-2xl: 2rem;

    /* Skeleton Loading */
    --sk-bg-main: #e2e8f0;
    --sk-bg-alt: #f1f5f9;
    --sk-bg-sub: #f8fafc;
}

html.dark {
    /* Overrides for Dark Mode */
    --bg-light: #0f172a;
    --bg-subtle: #1e293b;
    --card-bg: #0f172a;
    --form-bg: rgba(15, 23, 42, 0.4);
    --topbar-bg: #0f172a;

    --text-main: #f8fafc;
    --text-muted: #94a3b8;

    --border-color: #1e293b;

    --glass-bg: rgba(15, 23, 42, 0.85);
    --glass-border: rgba(255, 255, 255, 0.1);

    --sk-bg-main: #1e293b;
    --sk-bg-alt: #0f172a;
    --sk-bg-sub: #1e293b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

        body {
            font-family: var(--font-display);
            background-color: var(--bg-light);
            color: var(--text-main);
            transition: background-color 0.3s, color 0.3s;
            margin: 0;
            line-height: 1.5;
        }

        /* Typography & Utils */
        h1, h2, h3, h4, h5, h6 { margin: 0; }
        p { margin: 0; }
        a { text-decoration: none; color: inherit; }
        ul { list-style: none; padding: 0; margin: 0; }
        button { background: none; border: none; cursor: pointer; font-family: inherit; }
        img { max-width: 100%; height: auto; display: block; }
        input, select, textarea { font-family: inherit; outline: none;border: none;background: none;cursor: pointer; }

        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 1.5rem;
        }

        .flex { display: flex; }
        .items-center { align-items: center; }
        .justify-between { justify-content: space-between; }
        .gap-1 { gap: 0.25rem; }
        .gap-2 { gap: 0.5rem; }
        .gap-4 { gap: 1rem; }
        .text-center { text-align: center; }
        .font-bold { font-weight: 700; }
        .hidden { display: none; }

        /* Topbar */
        .topbar {
            display: none;
            background-color: var(--topbar-bg);
            border-bottom: 1px solid var(--border-color);
            height: 40px;
        }
        @media (min-width: 768px) {
            .topbar { display: block; }
        }
        .topbar-container {
            display: flex;
            align-items: center;
            justify-content: space-between;
            height: 100%;
            font-size: 0.875rem;
            font-weight: 500;
        }
        .topbar-contact {
            display: flex;
            gap: 1.5rem;
        }
        .topbar-contact a {
            display: flex;
            align-items: center;
            gap: 0.375rem;
            transition: var(--transition);
        }
        .topbar-contact a:hover { color: var(--primary); }
        .topbar-actions {
            display: flex;
            align-items: center;
            gap: 1rem;
        }
        .theme-toggle {
            padding: 0.25rem;
            transition: var(--transition);
            cursor: pointer;
        }
        .theme-toggle:hover { color: var(--primary); }
        html.dark .icon-dark { display: none; }
        html:not(.dark) .icon-light { display: none; }

        .topbar-inner {
            height: 2.5rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        .topbar-group { display: flex; gap: 1.5rem; }

        /* Navbar */
        .navbar {
            position: sticky;
            top: 0;
            z-index: 50;
            background-color: rgba(255, 255, 255, 0.8);
            backdrop-filter: blur(12px);
            border-bottom: 1px solid var(--border-color);
        }
        html.dark .navbar {
            background-color: rgba(15, 23, 42, 0.9);
        }
        .navbar-container {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0.75rem 1.5rem;
        }
        @media (min-width: 768px) {
            .navbar-container { padding: 1rem 1.5rem; }
        }
        .navbar-brand {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        .brand-logo {
            height: 2.25rem;
            width: 2.25rem;
            background-color: var(--secondary);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 700;
            font-size: 1.125rem;
        }
        @media (min-width: 768px) {
            .brand-logo { height: 2.5rem; width: 2.5rem; font-size: 1.25rem; }
        }
        .brand-text {
            display: flex;
            flex-direction: column;
        }
        .brand-name {
            font-weight: 700;
            font-size: 1rem;
            line-height: 1;
        }
        @media (min-width: 768px) {
            .brand-name { font-size: 1.125rem; }
        }
        .brand-slogan {
            font-size: 0.5rem;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            font-weight: 700;
            color: var(--secondary);
        }
        @media (min-width: 768px) {
            .brand-slogan { font-size: 0.625rem; }
        }

        .navbar-menu {
            display: none;
            align-items: center;
            gap: 2rem;
        }
        @media (min-width: 1024px) {
            .navbar-menu { display: flex; }
        }
        .nav-link {
            font-weight: 500;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }
        .nav-link:hover { color: var(--primary); }
        .nav-link.highlight { color: #ef4444; font-weight: 600; }
        .nav-link.highlight:hover { color: #dc2626; }

        .navbar-actions {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        @media (min-width: 768px) {
            .navbar-actions { gap: 1rem; }
        }
        .btn-sell {
            display: none;
            background-color: var(--secondary);
            color: white;
            padding: 0.5rem 1rem;
            border-radius: 9999px;
            font-size: 0.75rem;
            font-weight: 700;
            transition: var(--transition);
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        }
        @media (min-width: 640px) {
            .btn-sell { display: block; }
        }
        @media (min-width: 768px) {
            .btn-sell { padding: 0.625rem 1.5rem; font-size: 0.875rem; }
        }
        .btn-sell:hover { background-color: var(--secondary-hover); }

        .mobile-menu-btn {
            display: block;
            padding: 0.5rem;
            color: var(--text-muted);
        }
        @media (min-width: 1024px) {
            .mobile-menu-btn { display: none; }
        }
        .mobile-theme-btn {
            display: block;
            padding: 0.5rem;
            color: var(--text-muted);
        }
        @media (min-width: 768px) {
            .mobile-theme-btn { display: none; }
        }

        /* Mobile Menu */
        .mobile-menu {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            width: 100%;
            background-color: var(--card-bg);
            border-bottom: 1px solid var(--border-color);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
        }
        .mobile-menu.active { display: block; }
        .mobile-menu-list {
            padding: 1.5rem;
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }
        .mobile-nav-link {
            display: block;
            font-weight: 500;
        }
        .mobile-nav-link.highlight { color: #ef4444; font-weight: 600; }
        .mobile-nav-link-flex {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .mobile-menu-footer {
            padding-top: 1rem;
            border-top: 1px solid var(--border-color);
        }
        .btn-sell-mobile {
            display: block;
            text-align: center;
            background-color: var(--secondary);
            color: white;
            padding: 0.75rem;
            border-radius: 0.75rem;
            font-weight: 700;
        }


        /* Newsletter Section */
        .newsletter-section {
            background-color: rgba(149, 193, 31, 0.1);
            padding: 5rem 0;
            margin-top: 3rem;
            border-top: 1px solid var(--border-color);
        }

        html.dark .newsletter-section {
            background-color: rgba(15, 23, 42, 0.5);
        }

        .newsletter-container {
            text-align: center;
        }

        .newsletter-title {
            font-size: 1.875rem;
            font-family: var(--font-serif);
            margin-bottom: 1rem;
        }

        .newsletter-desc {
            color: var(--text-muted);
            max-width: 42rem;
            margin: 0 auto 2.5rem auto;
        }

        .newsletter-form {
            display: flex;
            flex-direction: column;
            gap: 1rem;
            max-width: 32rem;
            margin: 0 auto;
        }

        @media (min-width: 768px) {
            .newsletter-form {
                flex-direction: row;
            }
        }

        .newsletter-input {
            flex: 1;
            padding: 0.875rem 1.5rem;
            border-radius: 1rem;
            border: none;
            background-color: var(--card-bg);
            box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
            font-size: 1rem;
            color: var(--text-main);
            transition: box-shadow 0.2s;
        }

        .newsletter-input:focus {
            box-shadow: 0 0 0 2px rgba(149, 193, 31, 0.2);
        }

        .btn-notify {
            background-color: var(--secondary);
            color: white;
            padding: 0.875rem 2rem;
            border-radius: 1rem;
            font-weight: 700;
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
            transition: background-color 0.3s;
            white-space: nowrap;
        }

        .btn-notify:hover {
            background-color: var(--secondary-hover);
        }


        /* Floating WhatsApp */
        .whatsapp-float {
            position: fixed;
            bottom: 1.5rem;
            right: 1.5rem;
            z-index: 50;
            background-color: #25d366;
            color: white;
            padding: 0.875rem;
            border-radius: 50%;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.2s;
        }
        @media (min-width: 768px) {
            .whatsapp-float { padding: 1rem; }
        }
        .whatsapp-float:hover { transform: scale(1.1); }
        .whatsapp-float:active { transform: scale(0.95); }
        .whatsapp-icon {
            width: 1.5rem;
            height: 1.5rem;
            fill: currentColor;
        }
        @media (min-width: 768px) {
            .whatsapp-icon { width: 2rem; height: 2rem; }
        }

        /* Footer */
        .footer {
            background-color: #0f172a;
            color: #cbd5e1;
            padding: 4rem 0;
        }

        .footer-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 3rem;
        }

        @media (min-width: 768px) {
            .footer-grid {
                grid-template-columns: repeat(4, 1fr);
            }
        }

        .footer-brand {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 1.5rem;
        }

        .footer-desc {
            font-size: 0.875rem;
            line-height: 1.625;
            color: #94a3b8;
        }

        .footer-title {
            color: white;
            font-weight: 700;
            margin-bottom: 1.5rem;
        }

        .footer-links {
            display: flex;
            flex-direction: column;
            gap: 1rem;
            font-size: 0.875rem;
        }

        .footer-links a:hover {
            color: var(--primary);
        }

        .footer-links.social-link{
            margin-top: 1rem;
        }
        .footer-links.social-link a{
            display: flex;
            gap: .2rem;
        }

        .footer-contact li {
            display: flex;
            align-items: flex-start;
            gap: 0.75rem;
            margin-bottom: 1rem;
            font-size: 0.875rem;
        }

        .footer-contact .icon {
            color: var(--secondary);
        }

        .footer-bottom {
            margin-top: 4rem;
            padding-top: 2rem;
            border-top: 1px solid #1e293b;
            display: flex;
            flex-direction: column;
            gap: 1rem;
            font-size: 0.75rem;
            font-weight: 500;
            color: #64748b;
        }

        @media (min-width: 768px) {
            .footer-bottom {
                flex-direction: row;
                justify-content: space-between;
                align-items: center;
            }
        }

        .footer-legal-links {
            display: flex;
            gap: 1.5rem;
        }

        .footer-legal-links a:hover {
            color: white;
        }

        /* property-card */
        .property-card {
            background-color: var(--card-bg);
            border-radius: 1.5rem;
            overflow: hidden;
            box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
            border: 1px solid var(--border-color);
            transition: all 0.5s ease;
            display: flex;
            flex-direction: column;
        }

        .property-card:hover {
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
        }

        .property-img-wrapper {
            position: relative;
            height: 16rem;
            overflow: hidden;
        }

        .property-img {
            cursor: pointer;
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.7s ease;
        }

        .property-card:hover .property-img {
            transform: scale(1.1);
        }

        .property-tags {
            position: absolute;
            top: 1rem;
            left: 1rem;
            display: flex;
            gap: 0.5rem;
        }

        .tag-small {
            font-size: 0.625rem;
            font-weight: 700;
            padding: 0.25rem 0.75rem;
            border-radius: 9999px;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .tag-highlight { background-color: var(--secondary); color: white; }
        .tag-danger { background-color: #ef4444; color: white; }
        .tag-primary { background-color: var(--primary); color: white; }
        .tag-white { background-color: rgba(255, 255, 255, 0.9); backdrop-filter: blur(4px); color: #0f172a; }

        .btn-favorite {
            position: absolute;
            bottom: 1rem;
            right: 1rem;
            height: 2.5rem;
            width: 2.5rem;
            border-radius: 50%;
            background-color: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(4px);
            display: flex;
            align-items: center;
            justify-content: center;
            color: #0f172a;
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
            transition: var(--transition);
        }

        .btn-favorite:hover {
            color: #ef4444;
        }

        .btn-favorite.active {
            background-color: #ef4444;
            color: #ffffff;
        }


        .property-info {
            cursor: pointer;
            padding: 1.5rem;
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        .property-price-row {
            display: flex;
            align-items: baseline;
            gap: 0.5rem;
            margin-bottom: 0.25rem;
        }

        .price-main {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary);
        }

        .price-sub {
            font-size: 0.75rem;
            color: var(--text-muted);
            font-weight: 500;
        }

        .property-title {
            font-size: 1.25rem;
            font-weight: 700;
            color: var(--text-main);
            margin-bottom: 0.25rem;
            line-height: 1.3;
            transition: var(--transition);
            display: -webkit-box;
            -webkit-line-clamp: 1;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .property-card:hover .property-title {
            color: var(--primary);
        }

        .property-location {
            color: var(--text-muted);
            font-size: 0.875rem;
            display: flex;
            align-items: center;
            gap: 0.25rem;
            margin-bottom: 1.25rem;
        }

        .property-location a{
            display:flex;
            align-items:center;
        }


        .property-stats {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 0.5rem;
            border-top: 1px solid var(--border-color);
            padding-top: 1.25rem;
            margin-top: auto;
        }

        .stat-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.25rem;
        }

        .stat-icon {
            color: var(--text-muted);
            font-size: 1.25rem;
        }

        .stat-label {
            font-size: 0.75rem;
            font-weight: 700;
            color: var(--text-muted);
        }


        /* Properties Section */
        .properties-section {
            padding-top: 12rem;
            padding-bottom: 4rem;
        }
        @media (min-width: 768px) {
            .properties-section { padding-top: 8rem; padding-bottom: 6rem; }
        }
        .section-header {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-top: 4rem;
            margin-bottom: 2.5rem;
        }
        @media (min-width: 768px) {
            .section-header { margin-bottom: 4rem; }
            .section-header.header-top {margin-top: 1rem; }
        }
        .section-subtitle {
            color: var(--secondary);
            font-weight: 700;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            font-size: 0.75rem;
            margin-bottom: 0.5rem;
        }
        @media (min-width: 768px) {
            .section-subtitle { font-size: 0.875rem; }
        }
        .section-title {
            font-size: 1.875rem;
            font-family: var(--font-serif);
            text-align: center;
        }
        @media (min-width: 768px) {
            .section-title { font-size: 2.25rem; }
        }
        .section-line {
            width: 4rem;
            height: 4px;
            background-color: var(--secondary);
            margin-top: 1rem;
        }
        @media (min-width: 768px) {
            .section-line { width: 5rem; }
        }

        .properties-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 2rem;
        }
        @media (min-width: 768px) {
            .properties-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
        }
        @media (min-width: 1024px) {
            .properties-grid { grid-template-columns: repeat(3, 1fr); }
        }

        .view-all-container {
            margin-top: 3rem;
            text-align: center;
        }
        @media (min-width: 768px) {
            .view-all-container { margin-top: 4rem; }
        }
        .btn-view-all {
            display: inline-block;
            width: 100%;
            border: 2px solid var(--border-color);
            padding: 0.875rem 2rem;
            border-radius: 9999px;
            font-weight: 700;
            transition: var(--transition);
            color: var(--text-muted);
        }
        @media (min-width: 640px) {
            .btn-view-all { width: auto; }
        }
        .btn-view-all:hover {
            border-color: var(--primary);
            color: var(--primary);
        }