/* ============================================
   الركن الأوسط للعقارات - التصميم الكامل
   Premium Real Estate Design System
   ============================================ */

/* --- CSS Variables (Design Tokens) --- */
:root {
    /* Blue Palette (formerly Gold) */
    --gold-50: #eaf0fa;
    --gold-100: #c9d5f0;
    --gold-200: #a7bae6;
    --gold-300: #869fdc;
    --gold-400: #6484d2;
    --gold-500: #294694; /* The requested blue */
    --gold-600: #213876;
    --gold-700: #192a59;
    --gold-800: #101c3b;
    --gold-900: #080e1e;

    /* Black/Dark Palette (formerly Slate) */
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #333333;
    --slate-700: #1f1f1f;
    --slate-800: #141414;
    --slate-900: #0a0a0a;
    --slate-950: #020202; /* The requested black */

    /* Status Colors */
    --green-400: #4ade80;
    --green-500: #22c55e;
    --red-400: #f87171;
    --red-500: #ef4444;
    --blue-400: #60a5fa;
    --blue-500: #3b82f6;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;

    /* Spacing */
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --radius-3xl: 2.5rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slower: 700ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Alexandria', sans-serif;
    background: var(--slate-950);
    color: var(--slate-300);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    overflow-x: hidden;
}

::selection {
    background: rgba(205, 154, 35, 0.3);
    color: var(--gold-200);
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }
ul, ol { list-style: none; }

/* --- Utility Classes --- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(to left, var(--gold-100), var(--gold-500));
}

.glass {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border-radius: var(--radius-2xl);
    transition: border-color var(--transition-base), transform var(--transition-base);
}

.glass-card:hover {
    border-color: rgba(215, 179, 64, 0.3);
}

.glass-nav {
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Hide scrollbar */
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

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

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

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

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(205, 154, 35, 0.2); }
    50% { box-shadow: 0 0 40px rgba(205, 154, 35, 0.4); }
}

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

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

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

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

.animate-fade-in-up { animation: fadeInUp 0.7s ease-out forwards; }
.animate-fade-in-down { animation: fadeInDown 0.5s ease-out forwards; }
.animate-fade-in { animation: fadeIn 0.5s ease-out forwards; }
.animate-scale-in { animation: scaleIn 0.4s ease-out forwards; }
.animate-slide-right { animation: slideInRight 0.6s ease-out forwards; }
.animate-slide-left { animation: slideInLeft 0.6s ease-out forwards; }
.animate-pulse-glow { animation: pulse-glow 3s ease-in-out infinite; }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-bounce-subtle { animation: bounce-subtle 2s ease-in-out infinite; }

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }
.delay-600 { animation-delay: 600ms; }
.delay-700 { animation-delay: 700ms; }

/* Start hidden for animation */
[data-animate] { opacity: 0; }

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    width: 100%;
    z-index: 50;
    transition: all var(--transition-slow);
    padding: 1.5rem 0;
}

.navbar.scrolled {
    padding: 1rem 0;
}

.navbar.scrolled .navbar-inner {
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar-inner {
    transition: all var(--transition-slow);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.main-logo-img {
    height: 75px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.35rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all var(--transition-base);
    transform-origin: left center;
}

@media (min-width: 768px) {
    .main-logo-img {
        height: 160px; /* Huge on desktop */
        transform: scale(1.15);
        padding: 0.5rem;
        box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    }
    
    /* Shrink gracefully when user scrolls down so it doesn't block the screen */
    .navbar.scrolled .main-logo-img {
        height: 85px;
        transform: scale(1);
    }
}

.nav-logo h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
}

.nav-logo p {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gold-400);
}

.nav-links {
    display: none;
    align-items: center;
    gap: 2rem;
}

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

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate-300);
    transition: all var(--transition-base);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--gold-400);
    transition: width var(--transition-base);
    border-radius: 1px;
}

.nav-links a:hover {
    color: white;
    transform: scale(1.05);
}

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

.nav-cta {
    display: none;
}

@media (min-width: 768px) {
    .nav-cta { display: block; }
}

.nav-cta a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    font-weight: 700;
    color: var(--slate-950);
    background: var(--gold-400);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    font-size: 0.875rem;
}

.nav-cta a:hover {
    background: var(--gold-300);
    box-shadow: 0 0 20px rgba(205, 154, 35, 0.4);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: flex;
    padding: 0.5rem;
    color: white;
    font-size: 1.5rem;
}

@media (min-width: 768px) {
    .mobile-menu-btn { display: none; }
}

.mobile-menu {
    display: none;
    position: absolute;
    width: 100%;
    top: 100%;
    right: 0;
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border-radius: 0 0 1.5rem 1.5rem;
    padding: 1rem 1.5rem 2rem;
    animation: fadeInDown 0.3s ease-out;
}

.mobile-menu.active { display: block; }

@media (min-width: 768px) {
    .mobile-menu { display: none !important; }
}

.mobile-menu a {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: white;
    border-radius: var(--radius-xl);
    transition: background var(--transition-fast);
}

.mobile-menu a:hover {
    background: rgba(255, 255, 255, 0.05);
}

.mobile-menu .mobile-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    margin-top: 1.5rem;
    padding: 1rem;
    background: #25D366;
    color: white;
    border-radius: var(--radius-xl);
    font-weight: 700;
    font-size: 1rem;
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

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

.hero-bg .overlay-1 {
    position: absolute;
    inset: 0;
    background: linear-gradient(to left, var(--slate-950), rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.2));
}

.hero-bg .overlay-2 {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--slate-950), transparent, transparent);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 5rem 0 8rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(205, 154, 35, 0.3);
    background: rgba(205, 154, 35, 0.1);
    color: var(--gold-400);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    backdrop-filter: blur(8px);
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    color: white;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero h1 .sub {
    display: block;
    margin-top: 0.5rem;
    padding-bottom: 0.5rem;
}

@media (min-width: 1024px) {
    .hero h1 .sub { margin-top: 1rem; padding-bottom: 1rem; }
}

.hero-desc {
    font-size: clamp(1.125rem, 2.5vw, 1.375rem);
    color: var(--slate-300);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    font-weight: 300;
}

.hero-desc strong {
    color: white;
    font-weight: 700;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .hero-buttons { flex-direction: row; }
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem 2.5rem;
    background: var(--gold-500);
    color: var(--slate-950);
    border-radius: var(--radius-2xl);
    font-weight: 700;
    font-size: 1.125rem;
    transition: all var(--transition-base);
    box-shadow: 0 0 30px rgba(205, 154, 35, 0.3);
}

.btn-primary:hover {
    background: var(--gold-400);
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(205, 154, 35, 0.5);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-2xl);
    font-weight: 700;
    font-size: 1.125rem;
    backdrop-filter: blur(12px);
    transition: all var(--transition-base);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--transition-base);
    animation: bounce-subtle 2s ease-in-out infinite;
}

.scroll-indicator:hover { color: white; }

/* --- STATS BAR --- */
.stats-bar {
    background: var(--slate-900);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem 0;
    position: relative;
    z-index: 20;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gold-400);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--slate-400);
    font-weight: 300;
}

/* --- SECTION SHARED --- */
.section {
    padding: 6rem 0;
    position: relative;
}

.section-dark { background: var(--slate-950); }
.section-darker { background: var(--slate-900); }

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 5rem;
}

.section-header h2 {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
}

.section-header h2 span { color: var(--gold-400); }

.section-header p {
    font-size: 1.125rem;
    color: var(--slate-400);
    font-weight: 300;
    line-height: 1.8;
}

/* --- ABOUT SECTION --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .about-grid { grid-template-columns: 2fr 1fr; }
}

.about-main {
    border-radius: var(--radius-2xl);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .about-main { padding: 3.5rem; }
}

.about-main .glow {
    position: absolute;
    top: 0;
    right: 0;
    width: 16rem;
    height: 16rem;
    background: rgba(205, 154, 35, 0.1);
    border-radius: 50%;
    filter: blur(80px);
    margin: -5rem -5rem 0 0;
    transition: background var(--transition-slow);
}

.about-main:hover .glow {
    background: rgba(205, 154, 35, 0.2);
}

.about-main h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
}

.about-main h2 span { color: var(--gold-400); }

.about-main p {
    font-size: 1.125rem;
    line-height: 1.8;
    font-weight: 300;
    color: var(--slate-300);
    margin-bottom: 2rem;
    position: relative;
}

.about-main strong { color: white; font-weight: 500; }

.about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
}

.about-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
    color: var(--gold-200);
}

.about-tag i { color: var(--gold-500); }

.about-rating {
    border-radius: var(--radius-2xl);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: border-color var(--transition-base);
}

.about-rating:hover {
    border-color: rgba(205, 154, 35, 0.3);
}

.about-rating .icon-circle {
    width: 5rem;
    height: 5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.about-rating .icon-circle i {
    font-size: 2rem;
    color: white;
}

.about-rating .rating-number {
    font-size: 3.75rem;
    font-weight: 900;
    color: white;
    margin-bottom: 0.5rem;
}

.about-rating .stars {
    display: flex;
    gap: 0.25rem;
    color: var(--gold-400);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.about-rating .rating-text {
    font-size: 0.875rem;
    color: var(--slate-400);
    font-weight: 500;
}

/* --- SERVICES --- */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

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

@media (min-width: 1024px) {
    .services-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}

.service-card {
    background: var(--slate-950);
    border-radius: var(--radius-2xl);
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-slow);
}

.service-card:hover {
    border-color: rgba(205, 154, 35, 0.5);
    transform: translateY(-8px);
}

.service-icon {
    width: 4rem;
    height: 4rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    transition: background var(--transition-slow), color var(--transition-slow);
}

.service-icon i {
    font-size: 1.5rem;
    color: var(--gold-400);
    transition: color var(--transition-slow);
}

.service-card:hover .service-icon {
    background: var(--gold-500);
}

.service-card:hover .service-icon i {
    color: var(--slate-950);
}

.service-card h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--slate-400);
    line-height: 1.8;
    font-weight: 300;
}

/* --- PROPERTIES SECTION --- */
.properties-header {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .properties-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
    }
}

.properties-header h2 {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
}

.properties-header h2 span { color: var(--gold-400); }

.properties-header p {
    font-size: 1.125rem;
    color: var(--slate-400);
    font-weight: 300;
}

/* Filter Bar */
.filter-bar {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-2xl);
    padding: 1.5rem;
    margin-bottom: 2.5rem;
}

.filter-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

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

@media (min-width: 1024px) {
    .filter-row { grid-template-columns: repeat(4, 1fr); }
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gold-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-select,
.filter-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--slate-950);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    color: white;
    font-size: 0.875rem;
    outline: none;
    transition: border-color var(--transition-fast);
    appearance: none;
    -webkit-appearance: none;
}

.filter-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 1rem center;
    padding-left: 2.5rem;
}

.filter-select:focus,
.filter-input:focus {
    border-color: var(--gold-500);
    box-shadow: 0 0 0 2px rgba(205, 154, 35, 0.15);
}

.filter-select option {
    background: var(--slate-900);
    color: white;
}

.filter-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    justify-content: flex-end;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 0.875rem;
    transition: all var(--transition-base);
}

.filter-btn-primary {
    background: var(--gold-500);
    color: var(--slate-950);
}

.filter-btn-primary:hover {
    background: var(--gold-400);
}

.filter-btn-ghost {
    color: var(--slate-400);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-btn-ghost:hover {
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.filter-results-count {
    text-align: center;
    padding: 1rem;
    color: var(--slate-400);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.filter-results-count strong {
    color: var(--gold-400);
    font-weight: 700;
}

/* Properties Grid */
.properties-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .properties-grid { grid-template-columns: repeat(2, 1fr); }
}

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

/* Property Card */
.property-card {
    border-radius: var(--radius-2xl);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    transition: all var(--transition-slow);
    background: rgba(15, 23, 42, 0.6);
}

.property-card:hover {
    border-color: rgba(205, 154, 35, 0.3);
    transform: translateY(-6px);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.5);
}

.property-image {
    position: relative;
    height: 16rem;
    overflow: hidden;
}

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

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

/* Slider Controls */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.7);
    color: white;
    border: none;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity var(--transition-base), background var(--transition-base);
    backdrop-filter: blur(4px);
    z-index: 5;
}

.property-image:hover .slider-btn {
    opacity: 1;
}

.slider-btn:hover {
    background: var(--gold-500);
    color: var(--slate-950);
}

.slider-prev { right: 0.5rem; }
.slider-next { left: 0.5rem; }

.slider-dots {
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.3rem;
    z-index: 5;
}

.slider-dot {
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: all var(--transition-base);
}

.slider-dot.active {
    background: var(--gold-400);
    width: 1rem;
    border-radius: 1rem;
}

.property-badge {
    position: absolute;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.badge-status {
    top: 1rem;
    right: 1rem;
}

.badge-status.available {
    background: rgba(34, 197, 94, 0.8);
    color: white;
}

.badge-status.rented {
    background: rgba(239, 68, 68, 0.8);
    color: white;
}

.badge-status.sold {
    background: rgba(239, 68, 68, 0.8);
    color: white;
}

.badge-type {
    top: 1rem;
    left: 1rem;
    background: rgba(15, 23, 42, 0.8);
    color: var(--gold-400);
}

.badge-category {
    bottom: 1rem;
    right: 1rem;
    background: rgba(15, 23, 42, 0.8);
    color: var(--slate-300);
}

.property-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.property-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.property-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--slate-400);
    font-weight: 300;
    margin-bottom: 0.75rem;
}

.property-location i { color: var(--gold-500); }

.property-details {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.property-detail {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: var(--slate-400);
    background: rgba(255, 255, 255, 0.03);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.property-detail i {
    color: var(--gold-500);
    font-size: 0.7rem;
}

.property-price {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--gold-400);
    margin-bottom: 1.5rem;
}

.property-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
}

.property-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: var(--radius-xl);
    font-weight: 700;
    font-size: 0.875rem;
    transition: all var(--transition-base);
}

.property-btn-map {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.property-btn-map:hover {
    background: rgba(255, 255, 255, 0.1);
}

.property-btn-whatsapp {
    background: #25D366;
    color: white;
}

.property-btn-whatsapp:hover {
    background: #20bd5a;
    transform: translateY(-1px);
}

.no-properties {
    grid-column: 1 / -1;
    text-align: center;
    padding: 5rem 2rem;
    color: var(--slate-500);
}

.no-properties i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* --- REVIEWS --- */
.reviews-header {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .reviews-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
    }
}

.reviews-header h2 {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
}

.reviews-header p {
    font-size: 1.125rem;
    color: var(--slate-400);
    font-weight: 300;
}

.reviews-scroll {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    padding-bottom: 3rem;
    scroll-snap-type: x mandatory;
}

.review-card {
    min-width: 320px;
    scroll-snap-align: center;
    flex-shrink: 0;
    border-radius: var(--radius-2xl);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

@media (min-width: 768px) {
    .review-card { min-width: 400px; }
}

.review-stars {
    display: flex;
    gap: 0.25rem;
    color: var(--gold-400);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.review-text {
    color: var(--slate-300);
    margin-bottom: 2rem;
    line-height: 1.8;
    font-weight: 300;
    font-size: 1.125rem;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.review-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--slate-800);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    color: white;
}

.review-name {
    font-weight: 700;
    color: white;
}

.review-date {
    font-size: 0.875rem;
    color: var(--slate-400);
    margin-top: 0.25rem;
}

/* --- CONTACT --- */
.contact-wrapper {
    border-radius: var(--radius-3xl);
    padding: 0.5rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    border-radius: calc(var(--radius-3xl) - 0.25rem);
    overflow: hidden;
}

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

.contact-info {
    background: var(--slate-950);
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .contact-info { padding: 4rem; }
}

.contact-info .glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top right, rgba(205, 154, 35, 0.1), transparent, transparent);
}

.contact-info h3 {
    font-size: 2.25rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
}

.contact-info > p {
    color: var(--slate-400);
    margin-bottom: 3rem;
    font-weight: 300;
    font-size: 1.125rem;
    position: relative;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.contact-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i { color: var(--gold-400); }

.contact-item h4 {
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
}

.contact-item p,
.contact-item a {
    color: var(--slate-400);
}

.contact-item a {
    color: var(--gold-400);
    font-size: 1.25rem;
    letter-spacing: 0.05em;
    transition: color var(--transition-base);
}

.contact-item a:hover { color: white; }

.contact-form-wrapper {
    background: rgba(15, 23, 42, 0.5);
    padding: 3rem;
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 1024px) {
    .contact-form-wrapper { padding: 4rem; }
}

.contact-form-wrapper h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.contact-form-wrapper > p {
    color: var(--slate-400);
    font-weight: 300;
    margin-bottom: 2.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--slate-950);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    color: white;
    font-size: 0.95rem;
    font-weight: 300;
    outline: none;
    transition: all var(--transition-fast);
}

.form-input::placeholder { color: var(--slate-500); }

.form-input:focus {
    border-color: var(--gold-500);
    box-shadow: 0 0 0 3px rgba(205, 154, 35, 0.1);
}

textarea.form-input { resize: none; }

.form-submit {
    width: 100%;
    padding: 1rem;
    background: white;
    color: var(--slate-950);
    border: none;
    border-radius: var(--radius-xl);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.form-submit:hover {
    background: var(--gold-400);
}

.form-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.form-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: var(--green-400);
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    margin-bottom: 2rem;
}

.form-success h4 {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-success p {
    font-size: 0.875rem;
    font-weight: 300;
}

/* --- FOOTER --- */
.footer {
    background: var(--slate-950);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.5rem 0;
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .footer .container {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-brand .name {
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.footer-brand .sub {
    font-size: 0.75rem;
    color: var(--gold-400);
    margin-top: 0.25rem;
}

.footer-copy {
    font-size: 0.875rem;
    font-weight: 300;
    color: var(--slate-500);
}

.footer-admin-link {
    font-size: 0.75rem;
    color: var(--slate-600);
    transition: color var(--transition-base);
}

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

/* ============================================
   ADMIN PANEL STYLES
   ============================================ */

/* --- Admin Login --- */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--slate-950);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(205, 154, 35, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.login-page::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.login-card {
    width: 100%;
    max-width: 420px;
    border-radius: var(--radius-2xl);
    padding: 2.5rem;
    position: relative;
    z-index: 1;
    animation: scaleIn 0.5s ease-out;
}

.login-card .logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-card .logo h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
}

.login-card .logo p {
    color: var(--gold-400);
    font-size: 0.875rem;
    font-weight: 500;
}

.login-card h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    text-align: center;
    margin-bottom: 0.5rem;
}

.login-card .subtitle {
    text-align: center;
    color: var(--slate-400);
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

.login-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--red-400);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: none;
    text-align: center;
}

.login-error.show { display: block; }

.login-form .form-group {
    margin-bottom: 1rem;
}

.login-form .form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate-400);
    margin-bottom: 0.5rem;
}

.login-form .form-input {
    padding: 0.875rem 1rem;
}

.login-form .login-btn {
    width: 100%;
    padding: 1rem;
    background: var(--gold-500);
    color: var(--slate-950);
    border: none;
    border-radius: var(--radius-xl);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-base);
    margin-top: 0.5rem;
}

.login-form .login-btn:hover {
    background: var(--gold-400);
    box-shadow: 0 0 30px rgba(205, 154, 35, 0.3);
}

/* --- Admin Layout --- */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background: var(--slate-950);
}

/* Sidebar */
.admin-sidebar {
    width: 280px;
    background: var(--slate-900);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 40;
    transition: transform var(--transition-base);
}

@media (max-width: 1023px) {
    .admin-sidebar {
        transform: translateX(100%);
    }

    .admin-sidebar.open {
        transform: translateX(0);
    }
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-header h1 {
    font-size: 1.25rem;
    font-weight: 800;
    color: white;
}

.sidebar-header p {
    font-size: 0.75rem;
    color: var(--gold-400);
    font-weight: 500;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate-400);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.sidebar-link.active {
    background: rgba(205, 154, 35, 0.1);
    color: var(--gold-400);
    border: 1px solid rgba(205, 154, 35, 0.2);
}

.sidebar-link i {
    width: 1.25rem;
    text-align: center;
}

.sidebar-spacer { flex: 1; }

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 0.75rem;
}

.sidebar-user-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--gold-500);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate-950);
    font-weight: 700;
    font-size: 0.875rem;
}

.sidebar-user-name {
    font-weight: 600;
    color: white;
    font-size: 0.875rem;
}

.sidebar-user-role {
    font-size: 0.75rem;
    color: var(--slate-400);
}

.sidebar-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem;
    border-radius: var(--radius-lg);
    color: var(--red-400);
    font-size: 0.875rem;
    font-weight: 600;
    transition: background var(--transition-fast);
}

.sidebar-logout:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* Admin Main Content */
.admin-main {
    flex: 1;
    margin-right: 280px;
    padding: 2rem;
    min-height: 100vh;
}

@media (max-width: 1023px) {
    .admin-main { margin-right: 0; }
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.admin-topbar h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.admin-topbar-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.mobile-sidebar-btn {
    display: none;
    padding: 0.5rem;
    color: white;
    font-size: 1.25rem;
    border-radius: var(--radius-lg);
    transition: background var(--transition-fast);
}

.mobile-sidebar-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 1023px) {
    .mobile-sidebar-btn { display: flex; }
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 35;
}

@media (max-width: 1023px) {
    .sidebar-overlay.active { display: block; }
}

/* --- Dashboard Stats --- */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .dashboard-stats { grid-template-columns: repeat(4, 1fr); }
}

.stat-card {
    background: var(--slate-900);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all var(--transition-base);
}

.stat-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.stat-card-icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-card-icon.blue { background: rgba(59, 130, 246, 0.15); color: var(--blue-400); }
.stat-card-icon.green { background: rgba(34, 197, 94, 0.15); color: var(--green-400); }
.stat-card-icon.amber { background: rgba(245, 158, 11, 0.15); color: var(--amber-400); }
.stat-card-icon.red { background: rgba(239, 68, 68, 0.15); color: var(--red-400); }

.stat-card-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.stat-card-label {
    font-size: 0.8rem;
    color: var(--slate-400);
    margin-top: 0.25rem;
}

/* --- Admin Tables --- */
.admin-table-wrapper {
    background: var(--slate-900);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.admin-table-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

@media (min-width: 768px) {
    .admin-table-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.admin-table-header h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
}

.admin-search {
    position: relative;
}

.admin-search input {
    padding: 0.625rem 1rem;
    padding-right: 2.5rem;
    background: var(--slate-950);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    color: white;
    font-size: 0.875rem;
    outline: none;
    width: 250px;
    transition: border-color var(--transition-fast);
}

.admin-search input:focus {
    border-color: var(--gold-500);
}

.admin-search i {
    position: absolute;
    right: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--slate-400);
    font-size: 0.875rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.admin-table thead {
    background: rgba(255, 255, 255, 0.03);
}

.admin-table th {
    padding: 0.875rem 1.25rem;
    text-align: right;
    font-weight: 600;
    color: var(--slate-400);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.admin-table td {
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--slate-300);
    white-space: nowrap;
}

.admin-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.admin-table .prop-title {
    font-weight: 600;
    color: white;
}

.table-status {
    display: inline-flex;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.table-status.available {
    background: rgba(34, 197, 94, 0.15);
    color: var(--green-400);
}

.table-status.rented {
    background: rgba(245, 158, 11, 0.15);
    color: var(--amber-400);
}

.table-status.sold {
    background: rgba(239, 68, 68, 0.15);
    color: var(--red-400);
}

.table-actions {
    display: flex;
    gap: 0.5rem;
}

.table-action-btn {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: all var(--transition-fast);
}

.table-action-btn.edit {
    background: rgba(59, 130, 246, 0.15);
    color: var(--blue-400);
}

.table-action-btn.edit:hover { background: rgba(59, 130, 246, 0.3); }

.table-action-btn.status {
    background: rgba(245, 158, 11, 0.15);
    color: var(--amber-400);
}

.table-action-btn.status:hover { background: rgba(245, 158, 11, 0.3); }

.table-action-btn.delete {
    background: rgba(239, 68, 68, 0.15);
    color: var(--red-400);
}

.table-action-btn.delete:hover { background: rgba(239, 68, 68, 0.3); }

.table-responsive {
    overflow-x: auto;
}

/* --- Admin Modals --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease-out;
}

.modal-content {
    position: relative;
    background: var(--slate-900);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: scaleIn 0.3s ease-out;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.modal-header h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: white;
}

.modal-close {
    color: var(--slate-400);
    font-size: 1.25rem;
    transition: color var(--transition-fast);
    padding: 0.25rem;
}

.modal-close:hover { color: white; }

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

.modal-form .form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate-400);
    margin-bottom: 0.5rem;
}

.modal-form .form-input {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding-top: 1.5rem;
    margin-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-xl);
    font-weight: 700;
    font-size: 0.875rem;
    transition: all var(--transition-base);
}

.modal-btn-cancel {
    color: white;
}

.modal-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.05);
}

.modal-btn-save {
    background: var(--gold-500);
    color: var(--slate-950);
}

.modal-btn-save:hover {
    background: var(--gold-400);
}

.modal-btn-danger {
    background: rgba(239, 68, 68, 0.2);
    color: var(--red-400);
}

.modal-btn-danger:hover {
    background: rgba(239, 68, 68, 0.3);
}

/* --- Export Section --- */
.export-section {
    background: var(--slate-900);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
}

.export-section .export-icon {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: rgba(205, 154, 35, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.export-section .export-icon i {
    font-size: 2rem;
    color: var(--gold-400);
}

.export-section h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.75rem;
}

.export-section p {
    color: var(--slate-400);
    font-weight: 300;
    max-width: 500px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

.export-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: var(--gold-500);
    color: var(--slate-950);
    border-radius: var(--radius-xl);
    font-weight: 700;
    font-size: 1rem;
    transition: all var(--transition-base);
}

.export-btn:hover {
    background: var(--gold-400);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(205, 154, 35, 0.3);
}

.export-info {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.export-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 640px) {
    .export-steps { grid-template-columns: 1fr; }
}

.export-step {
    text-align: center;
}

.export-step .step-num {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    font-weight: 700;
    color: var(--gold-400);
    font-size: 0.875rem;
}

.export-step p {
    font-size: 0.8rem;
    margin: 0;
}

/* --- Toast Notifications --- */
.toast-container {
    position: fixed;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-xl);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideInLeft 0.4s ease-out;
    min-width: 300px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.toast.success {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.3);
    color: var(--green-400);
}

.toast.error {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--red-400);
}

.toast.info {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
    color: var(--blue-400);
}

.toast-hide {
    animation: fadeIn 0.3s ease-out reverse forwards;
}

/* --- Settings Page --- */
.settings-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .settings-grid { grid-template-columns: repeat(2, 1fr); }
}

.settings-card {
    background: var(--slate-900);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
}

.settings-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.settings-card h4 i {
    color: var(--gold-400);
}

/* Scrollbar for admin tables */
.table-responsive::-webkit-scrollbar {
    height: 6px;
}

.table-responsive::-webkit-scrollbar-track {
    background: var(--slate-900);
}

.table-responsive::-webkit-scrollbar-thumb {
    background: var(--slate-700);
    border-radius: 3px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: var(--slate-600);
}

/* Admin page view toggle */
.admin-page { display: none; }
.admin-page.active { display: block; }

/* ==========================================
   Mobile UI Optimizations
   ========================================== */
@media (max-width: 768px) {
    /* 1. Navbar Logo Size */
    .main-logo-img {
        height: 55px;
    }
    .navbar.scrolled .main-logo-img {
        height: 50px;
    }

    /* 2. Modal Gallery Height */
    #modalImageGallery {
        height: 250px !important;
    }
    
    /* 3. Modal Texts */
    #modalTitle {
        font-size: 1.25rem !important;
    }
    #modalPrice {
        font-size: 1.1rem !important;
        padding: 0.25rem 0.5rem !important;
    }
    
    /* 4. Filter Buttons */
    .filter-actions {
        flex-direction: column;
    }
    .filter-actions button {
        width: 100%;
        justify-content: center;
    }
    
    /* 5. Contact Section */
    .contact-form-wrapper {
        padding: 2rem 1rem !important;
    }
    .contact-form-wrapper i.fa-whatsapp {
        font-size: 2.5rem !important;
    }
    
    /* 6. Hero padding */
    .hero-content {
        padding: 4rem 0 6rem;
    }
    
    /* 7. Reviews Scroll on Mobile (Full bleed to prevent cut-off look) */
    .reviews-scroll {
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
        scroll-padding-left: 1rem;
        scroll-padding-right: 1rem;
    }
    .review-card {
        min-width: 85vw !important;
        padding: 1.5rem !important;
    }
}
