/* 
  MyPropertyGuru - Premium Design System
  Inspired by modern luxury real estate platforms
*/

@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Color Palette - Balanced Luxury Navy & Gold Identity */
    --primary: #0f172a; /* Deep Navy */
    --primary-light: #1e293b;
    --accent: #d4af37; /* Metallic Gold */
    --accent-hover: #b8962e;
    --secondary: #475569;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --white: #ffffff;
    --bg-light: #f8fafc;
    --bg-dark: #020617;
    --luxury-gradient: linear-gradient(135deg, #0f172a 0%, #d4af37 100%);
    
    /* Typography */
    --font-sans: 'Quicksand', sans-serif;
    --font-serif: 'Quicksand', sans-serif;
    
    /* Shadows & Effects */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --glass: rgba(255, 255, 255, 0.7);
    --glass-dark: rgba(15, 23, 42, 0.8);
    
    /* Layout */
    --container: 1440px;
    --header-height: 80px;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--white);
    color: var(--primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography Helpers */
h1, h2, h3, h4, h5 {
    color: var(--primary);
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--secondary);
    font-size: 1.125rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    text-decoration: none;
    gap: 0.5rem;
}

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

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px var(--accent);
    color: white !important;
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
}

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

.btn-dark:hover {
    background: var(--bg-dark);
    transform: translateY(-2px);
    color: white !important;
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

.btn-success { background: var(--success); color: white !important; }
.btn-success:hover { background: #059669; transform: translateY(-2px); }

.btn-danger { background: var(--danger); color: white !important; }
.btn-danger:hover { background: #dc2626; transform: translateY(-2px); }

.btn-warning { background: var(--warning); color: white !important; }
.btn-warning:hover { background: #d97706; transform: translateY(-2px); }

.btn i { color: inherit; }

/* Navbar */
.navbar {
    height: var(--header-height);
    background: var(--white);
    backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--accent); /* Gold accent border */
    display: flex;
    align-items: center;
}

.navbar .container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1.5rem;
}

.nav-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-logo {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 62px;
    width: auto;
    object-fit: contain;
}

.logo-mobile {
    display: none;
}

/* Mobile ad width adjustment */
@media (max-width: 768px) {
    .nav-ad {
        width: 50% !important;
        max-width: none;
    }
}

.nav-ad-link {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    text-decoration: none;
}

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

.nav-ad-text {
    color: #000;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--black);
    font-weight: 700;
    font-size: 0.95rem;
    transition: color 0.3s;
    white-space: nowrap;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.mobile-text {
    display: none;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
}


/* Hero Section */
.hero-premium {
    min-height: 100vh;
    padding-top: var(--header-height);
    background: linear-gradient(rgba(15, 23, 42, 0.4), rgba(15, 23, 42, 0.7)), url('../images/home-banner.jpg') no-repeat center center;
    overlay: var(--glass-dark);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--white);
    position: relative;
}

.hero-premium .container {
    position: relative;
    z-index: 2;
}

.hero-tag {
    background: #0182ff;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--white);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: inline-block;
}

/* Ad Unit Styles */
.hero-ad-featured {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 1.5rem 2rem;
    max-width: 500px;
    margin-bottom: 3rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.ad-label {
    background: var(--accent);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    letter-spacing: 1px;
}

.hero-ad-featured h4 {
    color: white;
    margin-bottom: 0.25rem;
}

.hero-ad-featured p {
    font-size: 0.875rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.btn-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(255,255,255,0.3);
}

.top-ad-banner {
    background: var(--primary);
    color: white;
    border-radius: 24px;
    padding: 1.5rem 2.5rem;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
    overflow: hidden;
}

.ad-badge {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 0.75rem;
    opacity: 0.5;
    font-weight: 700;
}

.ad-image img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
}

.ad-text h3 { color: white; margin-bottom: 0.25rem; }
.ad-text p { opacity: 0.7; }

.bottom-ad-wide {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 2.5rem;
    border-radius: 32px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}

.ad-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

@media (max-width: 768px) {
    .ad-flex { flex-direction: column; gap: 1.5rem; text-align: center; }
}

.hero-title-premium {
    font-family: var(--font-sans);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    max-width: 900px;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--white);
}

.hero-subtitle-premium {
    font-size: 1.25rem;
    max-width: 600px;
    opacity: 0.9;
    margin-bottom: 3rem;
}

.search-bar-premium {
    background: var(--white);
    padding: 0.5rem;
    border-radius: 100px;
    display: flex;
    max-width: 700px;
    box-shadow: var(--shadow-xl);
}

.search-bar-premium input {
    flex: 1;
    border: none;
    padding: 0 2rem;
    font-size: 1rem;
    outline: none;
    color: var(--primary);
}

/* Advantage Section */
.section-premium {
    padding: 8rem 0;
}

.advantage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.advantage-card {
    padding: 3rem;
    background: var(--white);
    border-radius: 32px;
    border: 1px solid #f1f5f9;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent);
}

.advantage-icon {
    width: 64px;
    height: 64px;
    background: #eff6ff;
    color: var(--accent);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

/* Property Grid */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

.property-card {
    background: var(--white);
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid #f1f5f9;
    transition: all 0.4s;
    position: relative;
}

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

.property-image {
    height: 280px;
    width: 100%;
    object-fit: cover;
}

.property-tag {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 10;
}

.tag-sale { background: var(--accent); color: white; }
.tag-rent { background: var(--success); color: white; }

.property-content {
    padding: 2.5rem 2rem;
}

.property-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafafa;
}

.agent-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary);
}

.property-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

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

.property-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--secondary);
    font-size: 0.875rem;
    margin-top: 1.5rem;
}

/* Pricing Grid */
.pricing-grid-premium {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    align-items: center;
}

@media (max-width: 768px) {
    .pricing-grid-premium {
        grid-template-columns: 1fr;
    }
}

.pricing-card-premium {
    background: var(--white);
    padding: 4rem 3rem;
    border-radius: 40px;
    border: 1px solid #f1f5f9;
    text-align: center;
    transition: all 0.4s;
}

.pricing-card-premium.featured {
    background: var(--primary);
    color: var(--white);
    border: 2px solid var(--accent);
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.3);
}

.pricing-card-premium.featured .price, 
.pricing-card-premium.featured h3 {
    color: var(--white);
}

.pricing-card-premium h3 {
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 3px;
    margin-bottom: 2rem;
    color: var(--secondary);
}

.pricing-card-premium .price {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 3rem;
}

.pricing-card-premium ul {
    list-style: none;
    text-align: left;
    margin-bottom: 4rem;
}

.pricing-card-premium ul li {
    padding: 1rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
}

.pricing-card-premium ul li i {
    color: var(--success);
}

/* Testimonial Section */
.testimonial-premium {
    background: var(--primary);
    padding: 10rem 0;
    color: var(--white);
    border-radius: 60px;
    margin: 8rem 0;
}

.testimonial-quote {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    margin-bottom: 4rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.author-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.1);
}

/* Footer */
.footer-premium {
    padding: 8rem 0 4rem;
    border-top: 1px solid #f1f5f9;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.footer-links a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid #f1f5f9;
    text-align: center;
    color: var(--secondary);
    font-size: 0.875rem;
}

.mobile-admin-header {
    display: none;
}

/* Admin Sidebar Enhanced */
.sidebar {
    background: var(--bg-dark);
    width: 280px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255,255,255,0.05);
}

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

.sidebar-header .nav-logo {
    color: var(--white);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.sidebar-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Keep it white for dark sidebar if needed, or remove if logo is colored */
}

.sidebar-menu {
    list-style: none;
    padding: 2rem 1rem;
    flex: 1;
}

.sidebar-menu li {
    margin-bottom: 0.5rem;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1.25rem;
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.3s;
}

.sidebar-menu li a i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.sidebar-menu li a:hover, 
.sidebar-menu li a.active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white) !important;
}

.sidebar-menu li a.active {
    background: var(--accent);
    color: var(--white) !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

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

.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--white);
    position: relative;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: var(--accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.user-info h4 {
    font-size: 0.875rem;
    margin: 0;
    color: white;
}


/* Admin logout hover effect */
.user-profile {
    position: relative;
}
.logout-link {
    display: none;
    margin-top: 0.5rem;
    color: #ef4444;
    font-weight: 600;
    text-decoration: none;
}
.user-profile:hover .logout-link {
    display: block;
}


/* Hide logout link initially */
.logout-link {
    display: none;
    margin-top: 0.5rem;
}

/* Show logout link when hovering over user profile */
.user-profile:hover .logout-link {
    display: inline-block;
}


/* Dashboard Enhancements */
.chart-container {
    background: white;
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid #f1f5f9;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
    height: 400px; /* Cap the height */
    overflow: hidden;
}

.charts-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    margin-top: 2.5rem;
}

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

/* Stats Dashboard */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid #f1f5f9;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-card h3 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

/* General Layouts */
.main-content {
    padding: 3rem 0;
    min-height: calc(100vh - var(--header-height));
}

@media (min-width: 1025px) {
    .sidebar ~ .main-content {
        margin-left: 280px;
        padding: 3rem;
    }
}

/* For pages with top navbar */
.navbar ~ .main-content {
    padding-top: calc(var(--header-height) + 2rem);
}

/* Accordion Tables */
.accordion-row { cursor: pointer; transition: background 0.2s; }
.accordion-row:hover { background: #f8fafc !important; }
.details-row { display: none; background: #f8fafc !important; border-top: 1px solid #f1f5f9; }
.details-row.active { display: table-row; }
.details-container { padding: 1.5rem 3rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; border-left: 4px solid var(--accent); }
.detail-item label { display: block; font-size: 0.75rem; text-transform: uppercase; color: var(--secondary); margin-bottom: 0.5rem; font-weight: 700; letter-spacing: 0.5px; }
.detail-item span { font-weight: 500; color: var(--primary); font-size: 0.9375rem; }
.toggle-icon { transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); color: var(--secondary); }
.toggle-icon.active { transform: rotate(180deg); color: var(--accent); }

.card {
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
    border: 1px solid #f1f5f9;
    box-shadow: var(--shadow-sm);
}

.table {
    border-collapse: separate;
    border-spacing: 0 0.5rem;
}

.table th {
    background: transparent;
    color: var(--secondary);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    padding: 1rem 1.5rem;
}

.table tr td {
    background: white;
    padding: 1.5rem;
}

.table tr td:first-child { border-radius: 12px 0 0 12px; }
.table tr td:last-child { border-radius: 0 12px 12px 0; }

.badge {
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-weight: 700;
}

.verified-badge {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    background: var(--accent);
    color: var(--white);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.4;
    z-index: 10;
}

.badge-pending { background: #fef3c7; color: #92400e; }
.badge-active { background: #d1fae5; color: #065f46; }
.badge-ads { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }

/* Enhanced Form Styles */
.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--primary);
    font-size: 0.9375rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    font-size: 1rem;
    font-family: var(--font-sans);
    transition: all 0.3s;
    background: #f8fafc;
    color: var(--primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: white;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

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

.auth-header {
    text-align: center;
    margin-bottom: 3rem;
}

.alert {
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    font-weight: 500;
    font-size: 0.9375rem;
}

.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* --- Mobile Responsiveness --- */

@media (max-width: 1200px) {
    :root {
        --container: 960px;
    }
    
    .hero-title-premium {
        font-size: 2.75rem;
    }
}

@media (max-width: 992px) {
    :root {
        --container: 720px;
    }

    .section-premium {
        padding: 5rem 0;
    }

    .hero-title-premium {
        font-size: 2.25rem;
    }

    .advantage-grid, 
    .pricing-grid-premium {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

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

    .testimonial-quote {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    :root {
        --container: 100%;
    }

    .container {
        padding: 0 1.5rem;
    }

    /* Navbar Mobile */
    .nav-links {
        display: none; /* Hide for now, will add toggle later */
    }

    .hero-premium {
        padding: 10rem 0 5rem;
        text-align: center;
    }

    .hero-subtitle-premium {
        margin: 0 auto 2.5rem;
    }

    .search-bar-premium {
        flex-direction: column;
        border-radius: 24px;
        padding: 1rem;
        gap: 1rem;
    }

    .search-bar-premium input {
        padding: 1rem;
        text-align: center;
    }

    .search-bar-premium .btn {
        width: 100%;
    }

    .advantage-grid, 
    .pricing-grid-premium,
    .property-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card-premium.featured {
        transform: scale(1);
    }

    .testimonial-premium {
        padding: 5rem 1.5rem;
        margin: 4rem 0;
        border-radius: 30px;
    }

    .testimonial-quote {
        font-size: 1.5rem;
    }

    .footer-top {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 1.5rem;
    }

    /* Dashboard/Sidebar */
    .sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        z-index: 1100;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex !important;
    }

    .sidebar.active {
        left: 0;
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        backdrop-filter: blur(4px);
        z-index: 1050;
    }

    .sidebar-overlay.active {
        display: block;
    }

    .main-content {
        margin-left: 0 !important;
        padding: 5rem 1.5rem 2rem !important;
    }

    .mobile-admin-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem 1.5rem;
        background: var(--white);
        border-bottom: 1px solid #f1f5f9;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
    }

    .sidebar-toggle-btn {
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--primary);
        cursor: pointer;
    }


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

    .section-title h2 {
        font-size: 1.75rem;
    }

    .pricing-card-premium {
        padding: 3rem 1.5rem;
    }

    .payment-card {
        padding: 2.5rem 1.5rem !important;
        border-radius: 30px !important;
    }

    .amount-display {
        font-size: 2.5rem !important;
    }

    .login-container {
        padding: 1rem !important;
    }

    .property-content {
        padding: 1.5rem;
    }


    .property-section-header {
        text-align: left;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .property-section-header div {
        width: 100%;
    }

    .view-all-link {
        color: var(--accent);
        font-weight: 600;
        text-decoration: none;
    }

    /* Tables to Mobile Cards */

    .table thead {
        display: none;
    }

    .table, .table tbody, .table tr, .table td {
        display: block;
        width: 100%;
    }

    .table tr {
        margin-bottom: 1.5rem;
        box-shadow: var(--shadow-sm);
        border-radius: 16px;
        overflow: hidden;
    }

    .table td {
        text-align: right;
        padding-left: 50%;
        position: relative;
        border-bottom: 1px solid #f1f5f9;
    }

    .table td::before {
        content: attr(data-label);
        position: absolute;
        left: 1.5rem;
        width: 45%;
        text-align: left;
        font-weight: 700;
        color: var(--secondary);
        font-size: 0.75rem;
        text-transform: uppercase;
    }

    .table td:last-child {
        border-bottom: none;
    }

    .details-container {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title-premium {
        font-size: 1.75rem;
    }

    .btn:not(.nav-register-btn) {
        width: 100%;
        padding-right: 1rem;
        text-align: center;
    }

    .nav-logo {
        font-size: 1.25rem;
    }

    .logo-img {
        height: 42px;
    }
}


/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
    padding: 5px;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 768px) {
    .logo-desktop {
        display: none !important;
    }

    .logo-mobile {
        display: block !important;
        height: 42px;
        width: auto;
        object-fit: contain;
    }

    .nav-right {
        gap: 0.75rem;
    }

    /* Fix duplicate register text */
    .nav-register-btn .desktop-text {
        display: none !important;
    }

    .nav-register-btn .mobile-text {
        display: inline !important;
    }

    .nav-register-btn {
        width: auto !important;
        padding: 0.5rem 1.25rem !important;
        font-size: 0.875rem !important;
    }

    .menu-toggle {
        display: flex;
    }


    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        padding: 4rem 2rem;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        z-index: 1000;
        display: flex !important;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        font-size: 1.25rem;
        display: block;
        padding: 1rem 0;
        border-bottom: 1px solid #f1f5f9;
    }

    .nav-links .btn {
        margin-top: 1rem;
        width: 100%;
    }

    /* Hamburger Animation */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Stationary Contact Buttons */
.stationary-buttons {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 2px;
    z-index: 1000;
}

.stat-btn {
    background: #1e3a8a; /* Corporate Blue */
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 12px;
    width: 52px;
    height: 52px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    white-space: nowrap;
    border-radius: 12px 0 0 12px;
    box-shadow: -4px 4px 15px rgba(0,0,0,0.15);
    font-family: 'Quicksand', sans-serif;
}

.stat-icon {
    font-size: 1.25rem;
    min-width: 28px;
    text-align: center;
}

.stat-text {
    opacity: 0;
    margin-left: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: opacity 0.3s ease;
}

.stat-btn:hover {
    width: 180px;
    background: #2563eb;
    transform: translateX(-5px);
}

.stat-btn:hover .stat-text {
    opacity: 1;
}

.stat-notary, .stat-advocate, .stat-deed { background: #1e3a8a; }

.stat-btn:hover { background: #2563eb; color: white; }

/* Premium Specifications & Features Checkbox Grid */
.specifications-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 2.5rem;
    margin: 2rem 0;
}

.specifications-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary);
}

.specifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1rem;
}

.spec-checkbox-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--white);
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.spec-checkbox-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.spec-checkbox-card input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--accent);
    cursor: pointer;
}

.spec-checkbox-card .card-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary-light);
}

.spec-checkbox-card.checked {
    border-color: var(--accent);
    background: #eff6ff;
    box-shadow: 0 0 0 1px var(--accent);
}

/* Hidden inputs reveal container */
.spec-details-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.spec-details-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    background: var(--white);
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 1.5rem;
    margin-top: 1rem;
    animation: slideDown 0.3s ease-out;
}

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

/* Google Translate Premium Overrides */
#google_translate_element {
    display: inline-block;
    vertical-align: middle;
}
.goog-te-gadget {
    font-family: 'Quicksand', sans-serif !important;
    font-size: 0px !important;
}
.goog-te-gadget-simple {
    background-color: #e5e7eb !important; /* light grey circle background */
    border: 1px solid #cbd5e1 !important;
    padding: 8px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    cursor: pointer !important;
    transition: all 0.2s ease-in-out !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.goog-te-gadget-simple:hover {
    background-color: #d1d5db !important;
    transform: scale(1.05);
}
.goog-te-gadget-simple img {
    margin: 0 !important;
    padding: 0 !important;
    width: 18px !important;
    height: 18px !important;
}
.goog-te-gadget-simple span,
.goog-te-menu-value span {
    display: none !important;
}
.goog-te-menu-value img {
    display: none !important;
}
body, html {
    top: 0px !important;
    position: static !important;
}
.goog-te-banner-frame, .goog-te-banner, .goog-te-banner-frame.skiptranslate, #goog-gt-tt, .goog-te-balloon-frame {
    display: none !important;
    visibility: hidden !important;
}
.goog-te-gadget span {
    display: none !important;
}
.goog-te-menu-value {
    display: none !important;
}
.goog-text-highlight {
    background: none !important;
    box-shadow: none !important;
}

/* Nav Register Button Override */
.nav-register-li {
    display: flex;
    align-items: center;
}

.nav-register-btn {
    background-color: #0269fd !important;
    color: #ffffff !important;
    border-radius: 100px !important;
    padding: 0.7rem 1.75rem !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    border: none !important;
    white-space: nowrap;
}
.nav-register-btn:hover {
    background-color: #1e293b !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(12, 17, 34, 0.15);
}

.card {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
    width: 100%;
}

.category-card img {
    height: 160px; /* Increased from 120px */
}

/* Mobile: Register button full-width inside hamburger menu */
@media (max-width: 768px) {
    .nav-register-li {
        width: 100%;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #f1f5f9;
    }

    .nav-register-btn {
        width: 100% !important;
        padding: 0.875rem 1.5rem !important;
        font-size: 1.05rem !important;
        text-align: center !important;
        border-radius: 12px !important;
    }
}
