/* Vila n'Kosovë - Premium CSS 
    Style: Modern, Clean, High-Conversion
    Updated for: Full-width Hero, Smooth Fade Animation & Responsive Categories
*/

:root {
    --brand: #0ea5e9;
    --brand-dark: #0284c7;
    --brand-light: rgba(14, 165, 233, 0.1);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --bg-body: #f8fafc;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Plus Jakarta Sans', sans-serif; 
}

/* SHTESË: Smooth scroll për të gjithë faqen */
html {
    scroll-behavior: smooth;
}

body { 
    background-color: var(--bg-body); 
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
    width: 100%;
}

/* NAVBAR */
.navbar {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 1rem 8%; 
    background: rgba(255, 255, 255, 0.85); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky; 
    top: 0; 
    z-index: 1000;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: var(--shadow-sm);
}

.logo { 
    font-size: 1.6rem; 
    font-weight: 800; 
    letter-spacing: -0.5px;
    cursor: pointer;
    flex-shrink: 0;
    text-decoration: none;
    color: var(--text-main);
}

.logo span { color: var(--brand); }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.nav-links-wrapper {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--brand);
    transition: var(--transition);
}

.nav-link:hover { color: var(--brand); }
.nav-link:hover::after { width: 100%; }

.btn-primary {
    background: var(--brand); 
    color: var(--white); 
    padding: 12px 26px;
    border-radius: 12px; 
    text-decoration: none; 
    font-weight: 700; 
    font-size: 0.9rem;
    box-shadow: 0 4px 14px 0 rgba(14, 165, 233, 0.3);
    transition: var(--transition);
    white-space: nowrap;
    display: flex;
    align-items: center;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--brand-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.23);
}

/* HERO SECTION */
.hero {
    height: 80vh; 
    width: 100%; 
    position: relative;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    color: var(--white);
    background-color: #0f172a;
    overflow: hidden;
    margin: 0;
}

.hero-bg-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.3), rgba(15, 23, 42, 0.6));
    z-index: 1;
}

.hero-content {
    max-width: 850px;
    z-index: 5;
    padding: 0 20px;
    animation: fadeInHero 1.2s ease-out;
    position: relative;
}

@keyframes fadeInHero {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-content h1 { 
    font-size: clamp(2.5rem, 6vw, 4.2rem); 
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.25rem;
    opacity: 0.95;
    max-width: 650px;
    margin: 0 auto;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* SEARCH BOX */
.search-box {
    background: var(--white); 
    padding: 8px; 
    border-radius: 24px; 
    display: flex; 
    align-items: center;
    max-width: 750px; 
    margin: 3.5rem auto 0;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    position: relative;
    z-index: 10;
}

.search-box input { 
    flex: 1; 
    border: none; 
    padding: 15px 25px; 
    outline: none; 
    font-size: 1.1rem; 
    color: var(--text-main);
    background: transparent;
}

.search-box button {
    background: var(--brand);
    color: var(--white);
    border: none;
    padding: 16px 35px;
    border-radius: 18px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.search-box button:hover { 
    background: var(--brand-dark);
    box-shadow: 0 10px 15px -3px rgba(14, 165, 233, 0.3);
}

/* CATEGORIES / FILTERS SECTION */
.categories-container {
    padding: 2rem 8% 0;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

.categories-wrapper {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 10px 5px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.categories-wrapper::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 80px;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0.7;
    flex-shrink: 0; 
}

.category-item i {
    font-size: 1.4rem;
    color: var(--text-main);
}

.category-item span {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.category-item:hover, .category-item.active {
    opacity: 1;
    color: var(--brand);
    transform: translateY(-2px);
}

.category-item.active i, .category-item.active span {
    color: var(--brand);
}

/* SHTESË: Stili për Counter-at e Statistikave */
.counter {
    font-variant-numeric: tabular-nums;
    background: linear-gradient(to right, var(--brand), #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* GRID & CARDS */
.container { padding: 3rem 8% 5rem; width: 100%; max-width: 1600px; margin: 0 auto; }

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3.5rem;
}

.section-header h2 { font-size: 2.4rem; font-weight: 800; letter-spacing: -1px; }
#countText { color: var(--text-muted); font-weight: 600; font-size: 1.1rem; }

.listings-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); 
    gap: 2.5rem;
}

/* VILA CARD DESIGN */
.vila-card {
    background: var(--white); 
    border-radius: 30px; 
    overflow: hidden;
    transition: var(--transition); 
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.vila-card:hover { 
    transform: translateY(-10px); 
    box-shadow: var(--shadow-lg); 
}

.card-img-container {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
}

.vila-card img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.8s ease;
}

.vila-card:hover img { transform: scale(1.1); }

.price-tag {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: white;
    padding: 8px 15px;
    border-radius: 12px;
    font-weight: 800;
    color: var(--text-main);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    font-size: 1rem;
    z-index: 5;
}

.price-tag span { color: var(--brand); font-size: 0.8rem; font-weight: 600; }

.vila-info { padding: 1.8rem; flex-grow: 1; }

.location-info {
    color: var(--brand);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.vila-info h3 { 
    margin: 10px 0 12px 0; 
    font-size: 1.4rem; 
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.3;
}

/* FOOTER */
.main-footer {
    background: #ffffff;
    padding: 4rem 8% 2rem;
    border-top: 1px solid #e2e8f0;
    margin-top: 5rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 2rem;
}

.copyright {
    color: #1e293b;
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.copyright span { color: var(--brand); }

.credits {
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 500;
}

.author-link {
    color: var(--brand);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
}

.author-link:hover { color: var(--brand-dark); text-decoration: underline; }

.footer-socials { display: flex; gap: 12px; }

.social-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #f8fafc;
    color: #64748b;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.social-icon:hover {
    transform: translateY(-5px);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.social-icon.fb:hover { background: #1877f2; border-color: #1877f2; }
.social-icon.wa:hover { background: #25d366; border-color: #25d366; }
.social-icon.gm:hover { background: #ea4335; border-color: #ea4335; }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .container { padding: 4rem 5%; }
}

@media (max-width: 768px) {
    .navbar { padding: 1rem 5%; }
    .nav-actions { gap: 1rem; }
    /* Menuja shfaqet përmes klasës active në JS */
    .nav-links-wrapper { display: none; } 
    .hero { height: 70vh; }
    .hero-content h1 { font-size: 2.2rem; }
    .search-box { flex-direction: column; padding: 15px; border-radius: 20px; margin-top: 2rem; width: 90%; }
    .search-box input { width: 100%; text-align: center; padding: 10px; }
    .search-box button { width: 100%; margin-top: 10px; }
    .section-header { flex-direction: column; align-items: flex-start; gap: 10px; }
    .listings-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-content { flex-direction: column; text-align: center; }
    .categories-container { padding: 1.5rem 5% 0; }
}