/* =========================================
   AUREUS - ULTRA PREMIUM FINAL STYLES
   ========================================= */

:root {
    /* Detyron shfletuesin te rrije Light Mode (Bllokon ngjyren e zeze automatike) */
    color-scheme: light; 
    
    /* Paleta e Ngjyrave */
    --primary: #0f172a;       /* Navy Blue (Kryesorja - Serioze) */
    --accent: #3b82f6;        /* Tech Blue (Butonat/Hover) */
    --emerald: #047857;       /* Jeshile (Për statusin Offer/Sold) */
    --bg-light: #f8fafc;      /* Sfond i hapur */
    --text-dark: #1e293b;     /* Tekst i zi */
    --text-light: #64748b;    /* Tekst gri */
    --white: #ffffff;
    --border: #e2e8f0;        /* Vijat gri */
    
    --radius: 8px;
    --font-main: 'Plus Jakarta Sans', sans-serif;
}

/* --- RESET & GLOBAL --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden; /* Heq scrollin horizontal */
}

/* Sigurohemi qe elementet te kene sfond te bardhe (Fix per Dark Mode) */
.prop-card, .service-box, .insight-card, .dev-card, .search-box, .valuation-container, .mobile-sidebar {
    background-color: #ffffff !important;
    color: var(--text-dark) !important;
}

a { text-decoration: none; color: inherit; transition: 0.3s; cursor: pointer; }
ul { list-style: none; }
img { width: 100%; height: 100%; object-fit: cover; display: block; }
button { font-family: var(--font-main); }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; width: 100%; }

/* --- MOBILE SIDEBAR (FIXED Z-INDEX) --- */
.mobile-sidebar {
    position: fixed; top: 0; right: -320px; /* Fshehur djathtas */
    width: 300px; height: 100vh;
    background: white; 
    z-index: 9999; /* Mbi çdo gjë tjetër */
    box-shadow: -10px 0 40px rgba(0,0,0,0.2);
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 30px; display: flex; flex-direction: column;
}
.mobile-sidebar.open { right: 0; }

.sidebar-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(4px);
    z-index: 9998; opacity: 0; visibility: hidden; transition: 0.3s;
}
.sidebar-overlay.active { opacity: 1; visibility: visible; }

.sidebar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.close-btn { font-size: 1.5rem; background: none; border: none; cursor: pointer; color: var(--primary); }
.sidebar-links li { margin-bottom: 15px; border-bottom: 1px solid var(--border); padding-bottom: 15px; }
.sidebar-links a { font-size: 1.1rem; font-weight: 600; color: var(--primary); display: flex; justify-content: space-between; }

/* --- HEADER & NAV --- */
.top-bar { background: var(--primary); color: rgba(255,255,255,0.8); padding: 8px 0; font-size: 0.8rem; }
.top-bar-content { display: flex; justify-content: space-between; }

.main-header {
    background: white; padding: 20px 0;
    position: sticky; top: 0; z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.03);
}
.header-content { display: flex; justify-content: space-between; align-items: center; }

.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.5rem; color: var(--primary); }
.logo-symbol { width: 36px; height: 36px; background: var(--accent); color: white; display: flex; align-items: center; justify-content: center; border-radius: 6px; }

.nav-menu { display: flex; gap: 30px; }
.nav-link { font-weight: 600; font-size: 0.95rem; color: var(--text-dark); position: relative; }
.nav-link:hover, .nav-link.active { color: var(--accent); }

/* BUTONAT */
.btn-primary { 
    background: var(--primary); color: white; padding: 12px 28px; 
    border-radius: 6px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: none; cursor: pointer; transition: 0.3s; 
}
.btn-primary:hover { background: var(--accent); transform: translateY(-2px); }

.btn-outline { 
    border: 1px solid var(--border); padding: 10px 20px; border-radius: 6px; 
    font-weight: 600; transition: 0.3s; background: transparent; cursor: pointer;
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

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

/* --- HERO SECTION (ULTRA COMPACT - 60vh) --- */
.hero {
    height: 60vh; /* Lartësi perfekte për laptop */
    min-height: 500px;
    background: linear-gradient(rgba(15, 23, 42, 0.5), rgba(15, 23, 42, 0.3)), url('https://images.unsplash.com/photo-1513635269975-59663e0ac1ad?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover; background-position: center; background-attachment: fixed;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    position: relative; padding-bottom: 80px;
}
.hero-content { 
    text-align: center; color: white; 
    margin-bottom: 20px; margin-top: -40px; 
}
.hero h1 { 
    font-size: 3.5rem; font-weight: 800; line-height: 1.1; margin-bottom: 10px; 
    text-shadow: 0 4px 20px rgba(0,0,0,0.5); color: white !important; 
}
.hero p { 
    font-size: 1.2rem; opacity: 0.95; font-weight: 300; 
    text-shadow: 0 2px 10px rgba(0,0,0,0.5); color: white !important; 
}

/* Headers për Faqet e Tjera */
.page-header, .valuation-hero {
    background: var(--primary); color: white; padding: 140px 0 80px; text-align: center;
    background-size: cover; background-position: center; position: relative;
}
.valuation-hero { background-image: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.8)), url('https://images.unsplash.com/photo-1564013799919-ab600027ffc6?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80'); }

/* --- HERO SEARCH (INTEGRATED & CLICKABLE) --- */
.hero-search-wrapper { 
    width: 100%; max-width: 950px; padding: 0 20px; 
    margin-bottom: -160px; /* Overlap mbi slider */
    position: relative; z-index: 50; 
}

.hero-tabs { display: flex; gap: 5px; }
.hero-tab { 
    background: rgba(255,255,255,0.9); padding: 15px 30px; 
    border-radius: 12px 12px 0 0; font-weight: 700; color: var(--primary);
    border: none; cursor: pointer; display: flex; align-items: center; gap: 8px;
    transition: 0.3s;
}
.hero-tab.active { background: white; color: var(--accent); }
.hero-tab.secondary { background: rgba(15, 23, 42, 0.8); color: white; backdrop-filter: blur(10px); }
.hero-tab.secondary:hover { background: var(--primary); }

.hero-search-box { 
    background: white; padding: 30px; border-radius: 0 12px 12px 12px; 
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.search-form-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr auto; gap: 20px; align-items: end; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 700; font-size: 0.85rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; }
.form-group input, .form-group select { width: 100%; padding: 14px; border: 1px solid var(--border); border-radius: 6px; font-family: var(--font-main); font-size: 1rem; color: var(--primary); font-weight: 500; }
.search-btn { height: 52px; font-size: 1.1rem; padding: 0 40px; }

/* BOXES (Search Page & Valuation) */
.search-section { margin-top: -100px; position: relative; z-index: 10; padding-bottom: 80px; }
.valuation-wrapper { margin-top: -100px; position: relative; z-index: 10; padding-bottom: 80px; }

.search-box, .valuation-container { background: white; border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,0.15); padding: 40px; margin: 0 auto; }
.search-box { max-width: 1000px; }
.valuation-container { max-width: 800px; }

/* TABS për Faqet e tjera (Search) */
.search-tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 30px; }
.tab-btn { 
    padding: 12px 30px; border-radius: 30px; font-weight: 600; 
    background: rgba(255,255,255,0.9); color: var(--primary); backdrop-filter: blur(5px); 
    border: 1px solid rgba(255,255,255,0.3); display: flex; align-items: center; gap: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.tab-btn i { color: var(--accent); }
.tab-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.tab-btn.active i { color: white; }

/* --- PROPERTY SLIDER (HORIZONTAL) --- */
.showcase-section { padding-top: 100px; padding-bottom: 60px; background: var(--bg-light); overflow: hidden; }
.horizontal-scroll {
    display: flex; gap: 25px; overflow-x: auto; padding-bottom: 30px; padding-left: 2px;
    scroll-behavior: smooth; -webkit-overflow-scrolling: touch;
}
.horizontal-scroll::-webkit-scrollbar { height: 6px; }
.horizontal-scroll::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }

.slider-card {
    min-width: 300px; width: 300px; background: white; border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); overflow: hidden; transition: 0.3s;
    border: 1px solid white; flex-shrink: 0; display: block;
}
.slider-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.slider-img { height: 180px; position: relative; }
.slider-status { position: absolute; top: 10px; left: 10px; background: var(--primary); color: white; padding: 4px 10px; font-size: 0.7rem; font-weight: 700; border-radius: 4px; }
.slider-content { padding: 20px; }
.slider-price { font-size: 1.3rem; font-weight: 700; color: var(--primary); margin-bottom: 5px; }
.slider-title { font-size: 1rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-dark); }
.slider-meta { font-size: 0.85rem; color: var(--text-light); margin-top: 10px; display: flex; gap: 15px; }

/* --- STATS (BLUE - ORIGINAL) --- */
.market-pulse { padding: 60px 0; background: white; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.pulse-grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; gap: 30px; }
.pulse-val { font-size: 3rem; font-weight: 800; color: var(--primary); line-height: 1; letter-spacing: -1px; }
.symbol { font-size: 3rem; font-weight: 800; color: var(--primary); }
.pulse-item p { color: var(--text-light); font-weight: 600; text-transform: uppercase; font-size: 0.85rem; margin-top: 10px; letter-spacing: 1px; }

/* --- LAYOUTS & GRIDS --- */
.listing-layout { display: grid; grid-template-columns: 280px 1fr; gap: 40px; padding: 60px 0; }
.sidebar { background: white; padding: 25px; border-radius: 12px; border: 1px solid var(--border); height: fit-content; position: sticky; top: 100px; }

/* Kjo rregullon Grid-in: 3 ne rresht ne Desktop, 1 ne Celular */
.property-grid-page, .services-grid, .insights-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 30px; 
}

/* --- CARDS DESIGN --- */
.prop-card, .service-box, .insight-card { 
    background: white; border: 1px solid var(--border); border-radius: 12px; 
    overflow: hidden; transition: 0.3s; display: flex; flex-direction: column; height: 100%;
}
.prop-card:hover, .service-box:hover, .insight-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }

.prop-img { height: 260px; position: relative; background-color: #e2e8f0; }
.tag-status { position: absolute; top: 15px; left: 15px; background: var(--primary); color: white; padding: 6px 14px; border-radius: 4px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; }
.tag-status.featured { background: var(--accent); }
.tag-status.offer { background: var(--primary); }

.prop-details { padding: 25px; flex: 1; }
.prop-price { font-size: 1.6rem; font-weight: 700; color: var(--primary); }
.prop-features { display: flex; gap: 20px; border-top: 1px solid var(--border); padding-top: 20px; margin-top: 20px; font-size: 0.9rem; color: var(--text-light); }

.service-box { padding: 40px 30px; text-align: center; }
.icon-lg { font-size: 3rem; color: var(--accent); margin-bottom: 20px; display: block; }

/* Development & Insights Cards */
.dev-card { display: grid; grid-template-columns: 1.5fr 1fr; height: 450px; background: white; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-bottom: 30px;}
.dev-img { height: 100%; position: relative; }
.dev-status { position: absolute; top: 20px; left: 20px; background: var(--primary); color: white; padding: 8px 16px; font-weight: 600; border-radius: 4px; }
.dev-content { padding: 50px; display: flex; flex-direction: column; justify-content: center; }
.dev-features { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 30px; }
.dev-feature { display: flex; align-items: center; gap: 10px; color: var(--text-dark); font-weight: 500; }
.dev-feature i { color: var(--accent); }

.insight-img { height: 220px; position: relative; }
.category-tag { position: absolute; top: 15px; left: 15px; background: var(--accent); color: white; padding: 5px 12px; font-size: 0.75rem; font-weight: 700; border-radius: 4px; text-transform: uppercase; }
.insight-content { padding: 25px; flex: 1; display: flex; flex-direction: column; }
.insight-date { font-size: 0.85rem; color: var(--text-light); margin-bottom: 10px; }
.insight-content h3 { font-size: 1.3rem; margin-bottom: 15px; color: var(--primary); line-height: 1.4; }
.read-more { margin-top: auto; color: var(--accent); font-weight: 600; font-size: 0.9rem; }

/* Forms & Pagination */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.full-width { grid-column: span 2; }
.pagination-container { display: flex; justify-content: center; margin-top: 50px; gap: 5px; }
.page-btn { padding: 10px 16px; border: 1px solid var(--border); background: white; border-radius: 6px; cursor: pointer; transition: 0.2s; }
.page-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

/* FOOTER */
footer { background: var(--primary); color: white; padding: 80px 0 20px; margin-top: auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-col h4 { margin-bottom: 20px; color: white; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: rgba(255,255,255,0.7); }
.footer-col ul li a:hover { color: var(--accent); padding-left: 5px; }

/* RESPONSIVE */
@media (max-width: 900px) {
    .nav-menu, .header-actions { display: none; } .mobile-toggle { display: block; }
    .hero { height: auto; min-height: 500px; padding: 100px 0; }
    .hero h1 { font-size: 2.5rem; }
    .hero-search-wrapper { margin-bottom: -50px; }
    .search-form-grid { grid-template-columns: 1fr; }
    .pulse-grid, .footer-top { grid-template-columns: 1fr; gap: 30px; }
    .listing-layout { grid-template-columns: 1fr; }
    .dev-card { grid-template-columns: 1fr; height: auto; } .dev-img { height: 250px; } .dev-content { padding: 30px; }
    
    /* Ne celular gridi behet 1 ne rresht automatikisht */
    .services-grid { grid-template-columns: 1fr; }
}
