/* --- FONT FACES: FIRAGO (Georgian & Latin) --- */
@font-face {
    font-family: 'FiraGO';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('assets/fonts/FiraGO-Light.woff2') format('woff2'),
         url('https://cdn.jsdelivr.net/gh/bBoxType/FiraGO@master/Fonts/FiraGO_WEB_1001/Roman/FiraGO-Light.woff2') format('woff2');
}

@font-face {
    font-family: 'FiraGO';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('assets/fonts/FiraGO-Regular.woff2') format('woff2'),
         url('https://cdn.jsdelivr.net/gh/bBoxType/FiraGO@master/Fonts/FiraGO_WEB_1001/Roman/FiraGO-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'FiraGO';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('assets/fonts/FiraGO-Medium.woff2') format('woff2'),
         url('https://cdn.jsdelivr.net/gh/bBoxType/FiraGO@master/Fonts/FiraGO_WEB_1001/Roman/FiraGO-Medium.woff2') format('woff2');
}

@font-face {
    font-family: 'FiraGO';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('assets/fonts/FiraGO-SemiBold.woff2') format('woff2'),
         url('https://cdn.jsdelivr.net/gh/bBoxType/FiraGO@master/Fonts/FiraGO_WEB_1001/Roman/FiraGO-SemiBold.woff2') format('woff2');
}

@font-face {
    font-family: 'FiraGO';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('assets/fonts/FiraGO-Bold.woff2') format('woff2'),
         url('https://cdn.jsdelivr.net/gh/bBoxType/FiraGO@master/Fonts/FiraGO_WEB_1001/Roman/FiraGO-Bold.woff2') format('woff2');
}

/* --- DESIGN SYSTEM & VARIABLES --- */
:root {
    /* Fonts */
    --font-sans: 'FiraGO', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-serif: 'FiraGO', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Colors */
    --bg-main: #060913;
    --bg-secondary: #0c1225;
    --primary: #c5a880; /* Premium Gold/Champagne */
    --primary-glow: rgba(197, 168, 128, 0.35);
    --secondary: #6366f1; /* Indigo */
    --accent: #10b981; /* Emerald Green */
    --text-white: #ffffff;
    --text-muted: #94a3b8;
    --text-dark: #0f172a;
    
    /* Glassmorphism System */
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-bg-hover: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.07);
    --glass-border-hover: rgba(255, 255, 255, 0.18);
    --glass-blur: 16px;
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    
    /* Light Mode Variables (Toggled via [data-theme="light"]) */
    --transition-speed: 0.4s;
}

[data-theme="light"] {
    /* Brand Light Palette: C0 M0 Y0 K10 / R235 G236 B236 */
    --bg-main: #ebecec;
    --bg-secondary: #dedfdf;
    --primary: #b58d53;
    --primary-glow: rgba(181, 141, 83, 0.25);
    --secondary: #4f46e5;
    --text-white: #0f172a;
    --text-muted: #475569;
    
    /* Light Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.5);
    --glass-bg-hover: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(15, 23, 42, 0.08);
    --glass-border-hover: rgba(15, 23, 42, 0.16);
    --glass-shadow: 0 8px 32px 0 rgba(15, 23, 42, 0.06);
}

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

html {
    scroll-behavior: smooth;
    font-family: var(--font-sans);
    color: var(--text-white);
    background-color: var(--bg-main);
    overflow-x: hidden;
}

body {
    background-color: var(--bg-main);
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 5px;
    border: 2px solid var(--bg-main);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

h1, h2, h3, .serif-font {
    font-family: var(--font-serif);
}

/* --- GLASSMORPHISM CLASS --- */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 16px;
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-panel-hover:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.45);
}

/* --- HEADER / NAVIGATION --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: padding 0.3s ease, background 0.3s ease;
}

/* Yellow Accent Line on Navbar Hover (#F0DD00) */
header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2.5px;
    background: #F0DD00;
    box-shadow: 0 0 14px rgba(240, 221, 0, 0.5);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

header:hover::after {
    transform: scaleX(1);
    opacity: 1;
}

header.scrolled {
    padding: 12px 0;
    background: rgba(6, 9, 19, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

[data-theme="light"] header.scrolled {
    background: rgba(235, 236, 236, 0.85);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    line-height: 1;
    position: relative;
    cursor: pointer;
}

.logo-img {
    height: 44px;
    width: auto;
    max-width: 220px;
    display: block;
    object-fit: contain;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease, height 0.3s ease;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.18));
}

header.scrolled .logo-img {
    height: 38px;
}

.logo:hover .logo-img {
    transform: translateY(-1px) scale(1.03);
}

/* Theme sensitive logo switching */
[data-theme="dark"] .logo-img-light {
    display: none !important;
}
[data-theme="dark"] .logo-img-dark {
    display: block !important;
}

[data-theme="light"] .logo-img-dark {
    display: none !important;
}
[data-theme="light"] .logo-img-light {
    display: block !important;
}

@media (max-width: 768px) {
    .logo-img {
        height: 36px;
    }
    header.scrolled .logo-img {
        height: 32px;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 32px;
    }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    position: relative;
    text-decoration: none;
    color: var(--text-white);
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
    opacity: 0.85;
    padding: 6px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #F0DD00;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 2px;
}

.nav-links a:hover {
    color: var(--text-white);
    opacity: 1;
}

.nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Theme Switcher Button */
.theme-toggle {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    color: var(--text-white);
    width: 40px;
    height: 40px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: var(--primary);
    color: var(--bg-main);
    border-color: var(--primary);
}

/* Language Switcher */
.lang-toggle {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    color: var(--text-white);
    padding: 8px 16px;
    border-radius: 30px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

[data-theme="light"] .lang-toggle {
    color: var(--text-dark);
}

.lang-toggle:hover {
    background: var(--primary);
    color: var(--bg-main);
    border-color: var(--primary);
}

.lang-toggle:hover span {
    color: var(--bg-main) !important;
}

/* Saved Properties Badge */
.favorites-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 8px 16px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-white);
    font-family: inherit;
    font-size: 14px;
    transition: all 0.3s ease;
}

.favorites-btn:hover {
    border-color: var(--primary);
}

.favorites-count {
    background: var(--primary);
    color: var(--bg-main);
    font-weight: 600;
    font-size: 11px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), transform 6s ease;
    transform: scale(1.05);
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}

[data-theme="light"] .slide.active {
    opacity: 0.95;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(6, 9, 19, 0.65) 0%, transparent 15%, transparent 80%, rgba(6, 9, 19, 1) 100%);
    z-index: 2;
    pointer-events: none;
}

[data-theme="light"] .hero-overlay {
    background: linear-gradient(to bottom, rgba(235, 236, 236, 0.65) 0%, transparent 15%, transparent 80%, rgba(235, 236, 236, 1) 100%);
}

.hero-slider-dots {
    position: absolute;
    bottom: 30px;
    display: flex;
    gap: 12px;
    z-index: 3;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

[data-theme="light"] .slider-dot {
    background: rgba(15, 23, 42, 0.15);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.slider-dot.active,
.slider-dot:hover {
    background: var(--primary);
    transform: scale(1.2);
    box-shadow: 0 0 8px var(--primary-glow);
}

/* --- HERO SLOGAN (Stationary Top-Left under Logo) --- */
.hero-slogan-wrapper {
    position: absolute;
    top: 96px;
    left: 0;
    width: 100%;
    z-index: 4;
    pointer-events: none;
}

.hero-slogan-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.hero-slogan-pill {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    background: rgba(6, 9, 19, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(240, 221, 0, 0.45);
    border-radius: 30px;
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.35),
        0 0 16px rgba(240, 221, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
}

[data-theme="light"] .hero-slogan-pill {
    background: rgba(235, 236, 236, 0.88);
    border-color: rgba(240, 221, 0, 0.7);
    box-shadow: 
        0 6px 18px rgba(15, 23, 42, 0.12),
        0 0 14px rgba(240, 221, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.hero-slogan-pill:hover {
    border-color: #F0DD00;
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.45),
        0 0 22px rgba(240, 221, 0, 0.35);
    transform: translateY(-1px);
}

[data-theme="light"] .hero-slogan-pill:hover {
    box-shadow: 
        0 8px 22px rgba(15, 23, 42, 0.16),
        0 0 20px rgba(240, 221, 0, 0.35);
    transform: translateY(-1px);
}

.slogan-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #F0DD00;
    box-shadow: 0 0 10px #F0DD00;
    position: relative;
    flex-shrink: 0;
}

.slogan-pulse-dot::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1.5px solid #F0DD00;
    opacity: 0.85;
    animation: sloganPulseWave 2.2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

@keyframes sloganPulseWave {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(1.8); opacity: 0; }
}

.slogan-text {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    font-family: inherit;
    background: linear-gradient(90deg, #FFFFFF 0%, #F0DD00 50%, #FFFFFF 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: sloganTextShimmer 4s linear infinite;
    white-space: nowrap;
}

[data-theme="light"] .slogan-text {
    background: linear-gradient(90deg, #0f172a 0%, #9e8500 50%, #0f172a 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes sloganTextShimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@media (max-width: 768px) {
    .hero-slogan-wrapper {
        top: 76px;
    }
    .hero-slogan-pill {
        padding: 6px 14px;
        gap: 8px;
    }
    .slogan-text {
        font-size: 11px;
        letter-spacing: 1.8px;
    }
}

.hero-content {
    max-width: 1000px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    position: relative;
    z-index: 3;
}

.hero-title-container {
    max-width: 800px;
}

.hero-tag {
    background: rgba(197, 168, 128, 0.15);
    border: 1px solid rgba(197, 168, 128, 0.3);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 20px;
    animation: float 4s ease-in-out infinite;
}

.hero h1 {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text-white) 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="light"] .hero h1 {
    background: linear-gradient(135deg, #0f172a 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

/* Hero Search Panel */
.search-panel {
    width: 100%;
    max-width: 900px;
    padding: 24px;
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    align-items: flex-end;
}

.search-field {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.search-field label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 600;
}

.search-field select,
.search-field input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--text-white);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

[data-theme="light"] .search-field select,
[data-theme="light"] .search-field input {
    background: rgba(15, 23, 42, 0.05);
    color: var(--text-dark);
}

.search-field select:focus,
.search-field input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.search-btn {
    background: var(--primary);
    color: #060913;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    padding: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    box-shadow: 0 4px 20px rgba(197, 168, 128, 0.25);
}

.search-btn:hover {
    background: #e2c59d;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(197, 168, 128, 0.4);
}

/* --- FEATURED LISTINGS --- */
.section-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 24px;
}

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

.section-header h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 16px;
    max-width: 500px;
    margin: 0 auto;
    font-weight: 300;
}

/* Filter Controls Wrapper */
.portfolio-filters-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
}

/* Status Filter Tabs (Segmented Pills) */
.status-filter-tabs {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 4px;
    gap: 4px;
    backdrop-filter: blur(12px);
}

[data-theme="light"] .status-filter-tabs {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(15, 23, 42, 0.08);
}

.status-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid transparent;
    padding: 8px 18px;
    border-radius: 24px;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.status-filter-btn:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.05);
}

.status-filter-btn.active {
    background: var(--glass-bg-hover);
    color: var(--text-white);
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-weight: 600;
}

[data-theme="light"] .status-filter-btn.active {
    background: #ffffff;
    color: var(--text-dark);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: rgba(15, 23, 42, 0.15);
}

/* Status Indicator Dots */
.status-indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.dot-works {
    background: #eab308;
    box-shadow: 0 0 8px rgba(234, 179, 8, 0.65);
}

.status-filter-btn.active .dot-works {
    animation: statusPulse 2s infinite ease-in-out;
}

.dot-done {
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.65);
}

@keyframes statusPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

/* Category Filter Buttons */
.filter-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.filter-tab {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 10px 24px;
    border-radius: 30px;
    color: var(--text-white);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tab:hover {
    border-color: var(--primary);
}

.filter-tab.active {
    background: var(--primary);
    color: var(--bg-main);
    border-color: var(--primary);
    box-shadow: 0 4px 15px var(--primary-glow);
}

/* Property Grid & Card styling */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.property-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.property-img-wrapper {
    position: relative;
    height: 240px;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
}

.property-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.badge-luxury {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(6, 9, 19, 0.75);
    backdrop-filter: blur(10px);
    border: 1px solid var(--primary);
    color: var(--primary);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 12px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge-luxury.badge-status-works {
    border-color: rgba(234, 179, 8, 0.6);
    color: #fde047;
    background: rgba(6, 9, 19, 0.82);
}

[data-theme="light"] .badge-luxury.badge-status-works {
    background: rgba(255, 255, 255, 0.9);
    color: #854d0e;
    border-color: #ca8a04;
}

.badge-luxury.badge-status-done {
    border-color: rgba(16, 185, 129, 0.6);
    color: #6ee7b7;
    background: rgba(6, 9, 19, 0.82);
}

[data-theme="light"] .badge-luxury.badge-status-done {
    background: rgba(255, 255, 255, 0.9);
    color: #065f46;
    border-color: #059669;
}

.fav-card-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
}

.fav-card-btn:hover {
    background: #ff4757;
    border-color: #ff4757;
    transform: scale(1.1);
}

.fav-card-btn.favorited {
    background: #ff4757;
    border-color: #ff4757;
}

.property-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

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

.property-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-white);
}

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

.property-specs {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--glass-border);
    padding-top: 16px;
    margin-top: auto;
    gap: 8px;
}

.spec-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    min-width: 0;
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.3;
}

.spec-item span {
    font-weight: 600;
    color: var(--text-white);
    font-size: 13px;
    white-space: nowrap;
    margin-bottom: 2px;
}

.spec-icon {
    color: var(--primary);
    margin-bottom: 6px;
    opacity: 0.85;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.property-card:hover .spec-icon {
    transform: translateY(-3px);
    opacity: 1;
}

/* --- VIRTUAL TOUR PREVIEW --- */
.tour-section {
    background: radial-gradient(circle at bottom right, rgba(99, 102, 241, 0.08), transparent);
}

.tour-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
}

/* Interactive Tour Screen */
.tour-screen {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16/9;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.tour-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease-in-out;
}

.tour-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(6, 9, 19, 0.2), rgba(6, 9, 19, 0.7));
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
}

.tour-badge {
    align-self: flex-start;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 6px 16px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: pulse 2s infinite;
}

/* Tour Hotspots */
.tour-hotspot {
    position: absolute;
    width: 32px;
    height: 32px;
    background: rgba(197, 168, 128, 0.8);
    border: 4px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 15px var(--primary);
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tour-hotspot::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--primary);
    animation: sonar 1.5s infinite;
}

.tour-hotspot:hover {
    transform: translate(-50%, -50%) scale(1.25);
    background: var(--primary);
}

.hotspot-tooltip {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(6, 9, 19, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--primary);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.tour-hotspot:hover .hotspot-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.tour-navigation {
    display: flex;
    gap: 12px;
    align-self: center;
}

.tour-nav-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tour-nav-btn.active,
.tour-nav-btn:hover {
    background: var(--primary);
    color: var(--bg-main);
    border-color: var(--primary);
}

.tour-info-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 40px;
}

.tour-info-card h3 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
}

.tour-info-card p {
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.6;
}

.tour-highlights {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--text-white);
}

.highlight-icon {
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- AGENT PROFILES --- */
.agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.agent-card {
    padding: 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.agent-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 24px;
    border: 3px solid rgba(197, 168, 128, 0.4);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transition: border-color 0.3s ease;
}

.agent-card:hover .agent-avatar {
    border-color: var(--primary);
}

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

.agent-name {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-white);
}

.agent-role {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 16px;
}

.agent-bio {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 24px;
}

.agent-socials {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.agent-social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.agent-social-btn:hover {
    background: var(--primary);
    color: var(--bg-main);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* --- TRUST BADGES BAR --- */
.trust-bar {
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    padding: 40px 24px;
    background: rgba(255, 255, 255, 0.01);
}

.trust-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.trust-item {
    text-align: center;
}

.trust-stat {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.trust-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 500;
}

/* --- CONTACT SECTION --- */
.contact-section {
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.contact-text-block h3 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.contact-text-block p {
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 32px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.method-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.method-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.method-details h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.method-details p {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-white);
    margin-bottom: 0;
}

/* Contact Glass Form */
.contact-form-panel {
    padding: 40px;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-full-width {
    grid-column: span 2;
}

.input-group {
    position: relative;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-white);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

[data-theme="light"] .input-group input,
[data-theme="light"] .input-group textarea {
    background: rgba(15, 23, 42, 0.02);
    color: var(--text-dark);
}

.input-group textarea {
    resize: none;
    min-height: 120px;
}

.input-group label {
    position: absolute;
    left: 16px;
    top: 18px;
    color: var(--text-muted);
    transition: all 0.3s ease;
    pointer-events: none;
    font-size: 14px;
}

.input-group input:focus ~ label,
.input-group input:valid ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:valid ~ label {
    top: -10px;
    left: 10px;
    font-size: 11px;
    background: var(--bg-main);
    padding: 0 6px;
    color: var(--primary);
    border-radius: 4px;
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.04);
}

[data-theme="light"] .input-group input:focus,
[data-theme="light"] .input-group textarea:focus {
    background: rgba(15, 23, 42, 0.04);
}

/* Submit Button */
.submit-btn {
    grid-column: span 2;
    background: var(--primary);
    color: #060913;
    border: none;
    border-radius: 8px;
    padding: 16px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.submit-btn:hover {
    background: #e2c59d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 168, 128, 0.4);
}

.form-feedback-message {
    grid-column: span 2;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
    display: none;
}

.form-feedback-message.show {
    opacity: 1;
    transform: translateY(0);
    display: block;
}

.form-feedback-message.success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid var(--accent);
    color: var(--accent);
}

/* --- FOOTER --- */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 60px 24px;
    background: var(--bg-secondary);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-brand h4 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-brand h4 span {
    color: var(--primary);
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
    font-weight: 300;
}

.footer-links-col h5 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-col ul a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links-col ul a:hover {
    color: var(--primary);
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0 auto;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 13px;
}

.footer-policy-links {
    display: flex;
    gap: 20px;
}

.footer-policy-links a {
    text-decoration: none;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

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

/* --- KEYFRAME ANIMATIONS --- */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { opacity: 0.8; box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
}

@keyframes sonar {
    0% { transform: scale(0.9); opacity: 0.8; }
    100% { transform: scale(2.2); opacity: 0; }
}

/* Mobile Navigation Button */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-white);
    padding: 8px;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

[data-theme="light"] .menu-toggle {
    color: var(--text-dark);
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(6, 9, 19, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

[data-theme="light"] .mobile-nav {
    background: rgba(235, 236, 236, 0.98);
}

.mobile-nav.active {
    transform: translateY(0);
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.mobile-nav-links a {
    text-decoration: none;
    color: var(--text-white);
    font-size: 24px;
    font-family: var(--font-serif);
    font-weight: 600;
    transition: color 0.3s ease;
}

.mobile-nav-links a:hover {
    color: var(--primary);
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 992px) {
    .tour-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .favorites-btn span {
        display: none;
    }
    
    .favorites-btn {
        padding: 8px 12px;
    }
    
    .lang-toggle {
        padding: 8px 12px;
    }
    
    .hero {
        height: 60vh;
        min-height: 400px;
    }
    
    .property-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .section-container {
        padding: 60px 16px;
    }
    
    .section-header h2 {
        font-size: 32px;
    }
    
    .tour-info-card {
        padding: 24px 16px;
    }
    
    .tour-info-card h3 {
        font-size: 24px;
    }
    
    .contact-text-block h3 {
        font-size: 28px;
    }
    
    .contact-form-panel {
        padding: 24px 16px;
    }
    
    .contact-form {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .form-full-width, .submit-btn, .form-feedback-message {
        grid-column: span 1;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* --- ADMIN PANEL STYLES --- */
.admin-grid {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 40px;
    align-items: start;
}

.admin-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.btn-back {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-white);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-back:hover {
    border-color: var(--primary);
    background: var(--glass-bg-hover);
}

/* File Upload Field */
.file-upload-wrapper {
    position: relative;
    width: 100%;
}

.file-upload-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed var(--glass-border);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.file-upload-btn:hover {
    border-color: var(--primary);
    color: var(--text-white);
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Selected Image Preview */
.img-preview {
    width: 100%;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 10px;
    display: none;
    border: 1px solid var(--glass-border);
}

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

/* Admin Table */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.admin-table th, 
.admin-table td {
    padding: 16px;
    border-bottom: 1px solid var(--glass-border);
    font-size: 14px;
}

.admin-table th {
    font-family: var(--font-sans);
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.admin-table td {
    color: var(--text-white);
}

[data-theme="light"] .admin-table td {
    color: var(--text-dark);
}

.admin-thumb {
    width: 60px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid var(--glass-border);
}

/* Status Badges */
.badge-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-status.done {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent);
    border: 1px solid var(--accent);
}

.badge-status.works {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    border: 1px solid #818cf8;
}

.badge-status.future {
    background: rgba(197, 168, 128, 0.15);
    color: var(--primary);
    border: 1px solid var(--primary);
}

.delete-btn {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid #ef4444;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.delete-btn:hover {
    background: #ef4444;
    color: white;
}

/* Preset Template Picker */
.preset-picker {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.preset-option {
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 16/9;
    transition: border-color 0.3s ease;
}

.preset-option:hover {
    border-color: var(--glass-border-hover);
}

.preset-option.active {
    border-color: var(--primary);
}

.preset-option img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

/* Modal Popup Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(6, 9, 19, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

[data-theme="light"] .modal-overlay {
    background: rgba(235, 236, 236, 0.7);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    width: 90%;
    max-width: 550px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 32px 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    transform: scale(0.9);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

[data-theme="light"] .modal-card {
    background: rgba(235, 236, 236, 0.95);
    border: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
    z-index: 10;
}

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

[data-theme="light"] .close-modal:hover {
    color: var(--text-dark);
}

.registry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 16px;
}

.btn-add-contract {
    background: var(--primary);
    color: var(--text-dark);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-add-contract:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(197, 168, 128, 0.3);
}

@media (max-width: 576px) {
    .registry-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .btn-add-contract {
        width: 100%;
        justify-content: center;
    }
}

/* --- ADMIN CMS TAB STYLES --- */
.admin-tabs {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 16px;
}

.admin-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.admin-tab-btn:hover {
    color: var(--text-white);
}

[data-theme="light"] .admin-tab-btn:hover {
    color: var(--text-dark);
}

.admin-tab-btn.active {
    color: var(--primary);
    background: rgba(197, 168, 128, 0.08);
}

/* --- BLOG GRID & CARD STYLES --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid var(--glass-border);
}

.blog-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-img-wrapper img {
    transform: scale(1.05);
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.blog-category {
    background: rgba(197, 168, 128, 0.1);
    color: var(--primary);
    border: 1px solid rgba(197, 168, 128, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-title {
    font-family: var(--font-serif);
    font-size: 22px;
    line-height: 1.4;
    margin-bottom: 12px;
    color: var(--text-white);
    transition: color 0.3s ease;
}

[data-theme="light"] .blog-title {
    color: var(--text-dark);
}

.blog-card:hover .blog-title {
    color: var(--primary);
}

.blog-excerpt {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.btn-read-more {
    background: transparent;
    border: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    transition: color 0.3s ease;
}

.btn-read-more:hover {
    color: var(--text-white);
}

[data-theme="light"] .btn-read-more:hover {
    color: var(--text-dark);
}

/* --- BLOG READER OVERLAY --- */
.blog-reader-card {
    max-width: 700px;
}

.blog-reader-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 24px;
    border: 1px solid var(--glass-border);
}

.blog-reader-content {
    font-size: 16px;
    color: var(--text-white);
    line-height: 1.8;
}

[data-theme="light"] .blog-reader-content {
    color: var(--text-dark);
}

.blog-reader-content p {
    margin-bottom: 16px;
}

/* --- FLOATING FONT PICKER PANEL --- */
.font-picker-widget {
    position: fixed;
    right: -280px; /* Hidden by default */
    top: 150px;
    width: 280px;
    background: rgba(12, 18, 37, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 12px 0 0 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 99999;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 20px;
}

[data-theme="light"] .font-picker-widget {
    background: rgba(235, 236, 236, 0.96);
    border: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.12);
}

.font-picker-widget.active {
    right: 0;
}

.font-picker-toggle {
    position: absolute;
    left: -48px;
    top: 20px;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--text-dark);
    border: 1px solid var(--glass-border);
    border-right: none;
    border-radius: 10px 0 0 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: -4px 4px 12px rgba(0,0,0,0.25);
    font-weight: bold;
}

.font-picker-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.font-target-toggles {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.font-target-btn {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 8px 4px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

[data-theme="light"] .font-target-btn {
    background: rgba(0,0,0,0.03);
}

.font-target-btn.active {
    background: var(--primary);
    color: var(--text-dark);
    border-color: var(--primary);
}

.font-picker-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 380px;
    overflow-y: auto;
    padding-right: 4px;
}

.font-item-btn {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    padding: 10px;
    text-align: left;
    cursor: pointer;
    color: var(--text-white);
    transition: all 0.3s ease;
}

[data-theme="light"] .font-item-btn {
    background: rgba(0,0,0,0.02);
    color: var(--text-dark);
}

.font-item-btn:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--primary);
}

.font-item-btn.active-sans {
    border-color: var(--primary);
    background: rgba(197, 168, 128, 0.12);
    font-weight: 600;
}

.font-item-btn.active-serif {
    border-color: var(--secondary);
    background: rgba(99, 102, 241, 0.12);
    font-weight: 600;
}

.font-item-name {
    font-size: 14px;
    margin-bottom: 2px;
}

.font-item-preview {
    font-size: 11px;
    color: var(--text-muted);
}

/* --- BRAND GEOMETRIC DECORATIVE MOTIFS --- */
.brand-deco {
    position: absolute;
    pointer-events: none;
    user-select: none;
    z-index: 2;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s ease;
    will-change: transform, opacity;
}

/* Ambient Floating Keyframes */
@keyframes decoFloatA {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1.2deg); }
}

@keyframes decoFloatB {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(10px) rotate(-1.2deg); }
}

@keyframes decoDrift {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(6px, -7px); }
}

@keyframes decoPulseGlow {
    0%, 100% { opacity: 0.75; filter: drop-shadow(0 0 8px rgba(240, 221, 0, 0.35)); }
    50% { opacity: 0.98; filter: drop-shadow(0 0 18px rgba(240, 221, 0, 0.7)); }
}

/* Theme Adaptive Styling */
.deco-yellow {
    filter: drop-shadow(0 0 10px rgba(240, 221, 0, 0.45));
    opacity: 0.88;
}
[data-theme="light"] .deco-yellow {
    filter: drop-shadow(0 4px 10px rgba(218, 165, 32, 0.28));
    opacity: 0.95;
}

.deco-slate {
    filter: brightness(0) invert(1) drop-shadow(0 0 6px rgba(255, 255, 255, 0.18));
    opacity: 0.3;
}
[data-theme="light"] .deco-slate {
    filter: none;
    opacity: 0.4;
}

/* Specific Placements across Landing Page (Scattered Below Hero) */

/* 1. Portfolio / Listings Section */
.portfolio-deco-triangle {
    top: 25px;
    left: 3%;
    width: 44px;
    height: auto;
    animation: decoFloatA 8s ease-in-out infinite;
}

.portfolio-deco-triple {
    top: 36px;
    right: 4%;
    width: 48px;
    height: auto;
    animation: decoFloatB 9s ease-in-out infinite;
}

.portfolio-deco-chevron-left {
    top: 38%;
    left: 2%;
    width: 38px;
    height: auto;
    animation: decoDrift 7.5s ease-in-out infinite;
}

.portfolio-deco-apex {
    top: 48%;
    right: 2%;
    width: 48px;
    height: auto;
    animation: decoPulseGlow 6s ease-in-out infinite;
}

.portfolio-deco-corner {
    top: 72%;
    left: 2%;
    width: 46px;
    height: auto;
    animation: decoFloatB 10s ease-in-out infinite;
}

.portfolio-deco-double {
    bottom: 50px;
    right: 3%;
    width: 44px;
    height: auto;
    animation: decoDrift 8s ease-in-out infinite;
}

.portfolio-deco-triangle-right {
    bottom: 25px;
    left: 4%;
    width: 40px;
    height: auto;
    animation: decoFloatA 9s ease-in-out infinite;
}

/* 2. Engineering Blog Section */
.blog-deco-triangle-right {
    top: 36px;
    left: 3%;
    width: 42px;
    height: auto;
    animation: decoFloatB 7.5s ease-in-out infinite;
}

.blog-deco-arrow {
    top: 40px;
    right: 4%;
    width: 44px;
    height: auto;
    animation: decoFloatA 8.5s ease-in-out infinite;
}

.blog-deco-apex {
    top: 46%;
    left: 2%;
    width: 40px;
    height: auto;
    animation: decoPulseGlow 6.5s ease-in-out infinite;
}

.blog-deco-triple {
    top: 60%;
    right: 2%;
    width: 46px;
    height: auto;
    animation: decoFloatB 9.5s ease-in-out infinite;
}

.blog-deco-corner {
    bottom: 30px;
    left: 3%;
    width: 50px;
    height: auto;
    animation: decoFloatB 11s ease-in-out infinite;
}

.blog-deco-chevron {
    bottom: 25px;
    right: 3%;
    width: 38px;
    height: auto;
    animation: decoDrift 8s ease-in-out infinite;
}

/* 3. Trust / Stats Bar */
.trust-bar {
    position: relative;
    overflow: hidden;
}

.trust-deco-left {
    top: 50%;
    left: 2.5%;
    transform: translateY(-50%);
    width: 36px;
    height: auto;
    animation: decoPulseGlow 5.5s ease-in-out infinite;
}

.trust-deco-mid {
    top: 20%;
    right: 35%;
    width: 32px;
    height: auto;
    opacity: 0.35;
    animation: decoFloatA 7s ease-in-out infinite;
}

.trust-deco-right {
    top: 50%;
    right: 2.5%;
    transform: translateY(-50%);
    width: 42px;
    height: auto;
    animation: decoFloatB 8s ease-in-out infinite;
}

/* 4. Contact Section */
.contact-section {
    position: relative;
    overflow: hidden;
}

.contact-deco-apex {
    top: -15px;
    left: 24px;
    width: 44px;
    height: auto;
    animation: decoFloatA 9s ease-in-out infinite;
}

.contact-deco-top-right {
    top: 20px;
    right: 4%;
    width: 40px;
    height: auto;
    animation: decoPulseGlow 6s ease-in-out infinite;
}

.contact-deco-left {
    top: 55%;
    left: 2%;
    width: 38px;
    height: auto;
    animation: decoDrift 7.5s ease-in-out infinite;
}

.contact-deco-chevron {
    bottom: 25px;
    left: 3%;
    width: 42px;
    height: auto;
    animation: decoFloatB 8s ease-in-out infinite;
}

.contact-deco-corner {
    top: 18px;
    right: 18px;
    width: 44px;
    height: auto;
    animation: decoFloatB 8s ease-in-out infinite;
}

.contact-deco-bottom-right {
    bottom: 20px;
    right: 3%;
    width: 40px;
    height: auto;
    animation: decoFloatA 10s ease-in-out infinite;
}

/* 5. Footer */
footer {
    position: relative;
    overflow: hidden;
}

.footer-deco-left {
    bottom: 20px;
    left: 3%;
    width: 48px;
    height: auto;
    animation: decoFloatB 9s ease-in-out infinite;
}

.footer-deco-right {
    top: 25px;
    right: 4%;
    width: 42px;
    height: auto;
    animation: decoFloatA 8s ease-in-out infinite;
}

.footer-deco-mid {
    bottom: 15px;
    right: 32%;
    width: 40px;
    height: auto;
    animation: decoDrift 10s ease-in-out infinite;
}

/* Mobile & Tablet Adaptations */
@media (max-width: 900px) {
    .portfolio-deco-apex,
    .portfolio-deco-corner,
    .blog-deco-corner,
    .blog-deco-triple,
    .trust-deco-mid,
    .contact-deco-bottom-right,
    .footer-deco-mid {
        display: none;
    }
}

@media (max-width: 768px) {
    .brand-deco {
        opacity: 0.35 !important;
        transform: scale(0.72);
    }
    .portfolio-deco-chevron-left,
    .blog-deco-apex,
    .contact-deco-left,
    .contact-deco-chevron {
        display: none;
    }
}

