/* 
==============================================
   Zynova Estates - Premium Luxury Real Estate
   Version: 1.0.0
==============================================
*/

:root {
    --bg-dark: #0f1014;
    --bg-card: #1c1d24;
    --gold: #dfb163;
    --gold-hover: #f1c982;
    --text-main: #f5f5f5;
    --text-muted: #a0a0ab;
    --border-color: rgba(223, 177, 99, 0.2);
    --glass-bg: rgba(28, 29, 36, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--text-main);
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    text-align: center;
}

.btn-gold {
    background-color: var(--gold);
    color: var(--bg-dark);
}

.btn-gold:hover {
    background-color: var(--gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(223, 177, 99, 0.3);
}

.btn-outline {
    background: transparent;
    border-color: var(--gold);
    color: var(--gold);
}

.btn-outline:hover {
    background: var(--gold);
    color: var(--bg-dark);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 16, 20, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
    transition: var(--transition);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-logo {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.brand-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 400;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
}

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

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--gold);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 700px;
    position: relative;
    display: flex;
    align-items: center;
    background: url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(15, 16, 20, 0.9) 0%, rgba(15, 16, 20, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin-top: 80px;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
}

.hero-title span {
    color: var(--gold);
    font-style: italic;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.2s forwards;
    opacity: 0;
}

/* Search Bar Mock */
.search-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 20px 30px;
    gap: 20px;
    animation: fadeInUp 1s ease 0.4s forwards;
    opacity: 0;
}

.search-group {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.search-group label {
    font-size: 0.85rem;
    color: var(--gold);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.search-group input, .search-group select {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 10px 0;
    font-family: var(--font-body);
    font-size: 1rem;
    width: 100%;
}

.search-group input:focus, .search-group select:focus {
    outline: none;
    border-bottom-color: var(--gold);
}

.search-group select option {
    background: var(--bg-card);
    color: var(--text-main);
}

/* Section Common */
.section-header {
    text-align: center;
    margin: 80px 0 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-muted);
}

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

.property-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border-color: var(--gold);
}

.property-img {
    height: 250px;
    overflow: hidden;
    position: relative;
}

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

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

.property-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gold);
    color: var(--bg-dark);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    z-index: 2;
}

.property-content {
    padding: 25px;
}

.property-price {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 10px;
}

.property-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.property-meta {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--glass-border);
    padding-top: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.meta-item i {
    color: var(--gold);
}

/* CTA */
.cta-section {
    padding: 80px 20px;
    background: url('https://images.unsplash.com/photo-1613977257363-707ba9348227?auto=format&fit=crop&w=1920&q=80') center/cover fixed no-repeat;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 16, 20, 0.7);
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 60px 40px;
    max-width: 800px;
}

.cta-content h2 {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--text-main);
}

/* Footer */
.footer {
    background: #0A0A0C;
    padding: 80px 0 20px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 20px;
    max-width: 300px;
}

.footer h3 {
    color: var(--gold);
    font-family: var(--font-heading);
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: var(--text-muted);
}

.footer-links ul li a:hover {
    color: var(--gold);
    padding-left: 5px;
}

.footer-contact p {
    color: var(--text-muted);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

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

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Utilities */
.text-center { text-align: center; }
.mt-4 { margin-top: 40px; }

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

/* Responsive block */
@media (max-width: 991px) {
    .hero-title { font-size: 3.5rem; }
    .search-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* simple hidden for now, can be toggled via JS */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-card);
        padding: 20px;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
    }
    .nav-links.active { display: flex; }
    .mobile-toggle { display: block; }
    
    .hero-title { font-size: 2.8rem; }
    .property-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
}


/* Premium Luxury Curved Redesign */
.property-card, .glass-panel, .btn, .search-bar, .auth-box, input, select, textarea, img {
    border-radius: 20px !important;
}
.property-card { overflow: hidden; }
.property-card img {
    border-radius: 20px 20px 0 0 !important;
}
.hero-overlay { border-radius: 0; }

/* Premium Luxury Curved Redesign */
.property-card, .glass-panel, .btn, .search-bar, .auth-box, input, select, textarea, img {
    border-radius: 18px !important;
}
.property-card { overflow: hidden; }
.property-card img {
    border-radius: 18px 18px 0 0 !important;
}
.hero-overlay { border-radius: 0; }
/* Toast System */
#global-toast-container { position: fixed; top: 30px; right: 30px; z-index: 99999; display: flex; flex-direction: column; gap: 12px; pointer-events: none; }
.toast { display: flex; align-items: flex-start; gap: 14px; background: rgba(20,22,28,0.98); backdrop-filter: blur(20px); border: 1px solid rgba(212,175,55,0.3); border-radius: 16px; padding: 18px 22px; min-width: 320px; max-width: 400px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); animation: slideInToast 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; pointer-events: all; position: relative; }
.toast.hiding { animation: slideOutToast 0.3s ease forwards; }
.toast-icon { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.toast-gold .toast-icon { background: rgba(212,175,55,0.15); color: #D4AF37; }
.toast-body { flex: 1; }
.toast-title { color: #fff; font-weight: 600; font-size: 0.95rem; margin-bottom: 3px; }
.toast-msg { color: rgba(255,255,255,0.5); font-size: 0.83rem; line-height: 1.4; }
.toast-close { color: rgba(255,255,255,0.3); cursor: pointer; font-size: 1rem; background: none; border: none; padding: 0; transition: color 0.2s; position: absolute; top: 18px; right: 22px; }
.toast-close:hover { color: rgba(255,255,255,0.7); }
@keyframes slideInToast { from { opacity: 0; transform: translateX(60px) scale(0.95); } to { opacity: 1; transform: translateX(0) scale(1); } }
@keyframes slideOutToast { from { opacity: 1; transform: translateX(0);} to { opacity: 0; transform: translateX(60px); } }

/* Toast System */
#global-toast-container { position: fixed; top: 30px; right: 30px; z-index: 99999; display: flex; flex-direction: column; gap: 12px; pointer-events: none; }
.toast { display: flex; align-items: flex-start; gap: 14px; background: rgba(20,22,28,0.98); backdrop-filter: blur(20px); border: 1px solid rgba(212,175,55,0.3); border-radius: 16px; padding: 18px 22px; min-width: 320px; max-width: 400px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); animation: slideInToast 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; pointer-events: all; position: relative; }
.toast.hiding { animation: slideOutToast 0.3s ease forwards; }
.toast-icon { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.toast-gold .toast-icon { background: rgba(212,175,55,0.15); color: #D4AF37; }
.toast-body { flex: 1; }
.toast-title { color: #fff; font-weight: 600; font-size: 0.95rem; margin-bottom: 3px; }
.toast-msg { color: rgba(255,255,255,0.5); font-size: 0.83rem; line-height: 1.4; }
.toast-close { color: rgba(255,255,255,0.3); cursor: pointer; font-size: 1rem; background: none; border: none; padding: 0; transition: color 0.2s; position: absolute; top: 18px; right: 22px; }
.toast-close:hover { color: rgba(255,255,255,0.7); }
@keyframes slideInToast { from { opacity: 0; transform: translateX(60px) scale(0.95); } to { opacity: 1; transform: translateX(0) scale(1); } }
@keyframes slideOutToast { from { opacity: 1; transform: translateX(0);} to { opacity: 0; transform: translateX(60px); } }
