/* ==========================================================================
   TEMPLATE LANDFIELD - Natural & Earthy
   Specially crafted for land and property sales.
   ========================================================================== */

:root {
    --land-primary: #2d5a27;    /* Forest Green */
    --land-primary-dark: #1e3d1a;
    --land-accent: #8b4513;     /* Saddle Brown */
    --land-bg: #f9f7f2;         /* Light Sand */
    --land-text: #2c3e50;       /* Dark Slate */
    --land-muted: #57606f;      /* Darker Gray for contrast (WCAG AA) */
    --land-border: #dcdde1;
    --font-land-title: 'Lora', serif;
    --font-land-body: 'Cabin', sans-serif;
}

body {
    font-family: var(--font-land-body);
    background-color: var(--land-bg);
    color: var(--land-text);
    margin: 0;
    line-height: 1.6;
}

.page-container-landfield {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header-landfield {
    background: white;
    border-bottom: 3px solid var(--land-primary);
    padding: 20px 0;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-contact { text-align: right; }
.agentie-nume { color: var(--land-primary); font-weight: bold; font-family: var(--font-land-title); }
.agentie-telefon { color: var(--land-accent); font-weight: 700; text-decoration: none; font-size: 1.2rem; }

/* Hero */
.hero-landfield {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    color: white;
}

.hero-landfield h1 {
    font-family: var(--font-land-title);
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.nav-hero-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.nav-hero-links a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 25px;
    background: rgba(45, 90, 39, 0.8);
    border-radius: 4px;
    transition: all 0.3s;
}

.nav-hero-links a:hover, .nav-hero-links a.activ {
    background: var(--land-primary);
    transform: translateY(-2px);
}

/* Search Form */
#formular-cautare-hero {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

#formular-cautare-hero input[type="search"] {
    flex: 1;
    border: none;
    padding: 15px;
    font-size: 1.1rem;
    outline: none;
    color: var(--land-text);
}

#formular-cautare-hero button {
    background: var(--land-accent);
    color: white;
    border: none;
    padding: 0 40px;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
}

/* Cards */
.lista-anunturi-ilfov {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    padding: 60px 0;
}

.card-landfield {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--land-border);
}

.card-landfield:hover { transform: translateY(-10px); }

.card-landfield .imagine-container img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}

.card-landfield .info-container { padding: 25px; }
.card-landfield h3 { font-family: var(--font-land-title); color: var(--land-primary); margin: 0 0 10px; }
.card-landfield .locatie { color: var(--land-muted); font-size: 0.95rem; margin-bottom: 15px; font-weight: 600; }
.card-landfield .pret { font-size: 1.5rem; font-weight: 800; color: var(--land-accent); }
.card-landfield .detalii-mixte-anunt { color: var(--land-muted); font-weight: 600; }

.alternative-hint {
    font-size: 0.85em;
    color: var(--land-muted);
    line-height: 1.4;
}

.alternative-hint a {
    color: var(--land-primary);
    text-decoration: underline;
    font-weight: 700;
}

/* Details Page */
.anunt-detaliat-layout { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 40px; }
.coloana-principala-detalii { flex: 1; min-width: 60%; }
.coloana-secundara-detalii { flex-basis: 380px; flex-grow: 1; }

.breadcrumb-nav { padding: 20px 0; border-bottom: 1px solid var(--land-border); }
.breadcrumb-nav a { color: var(--land-primary); text-decoration: none; font-weight: 600; }

.galerie-foto .imagine-principala img { width: 100%; border-radius: 8px; border: 5px solid white; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.tabel-caracteristici .rand-tabel { background: white; padding: 15px; border-bottom: 1px solid var(--land-border); display: flex; justify-content: space-between; }

.pret-widget { background: var(--land-primary); color: white; padding: 30px; text-align: center; border-radius: 8px; }
.agent-widget-nested { background: white; padding: 30px; margin-top: 20px; border-radius: 8px; border: 1px solid var(--land-border); text-align: center; }
.buton-contact.telefon { background: var(--land-accent); color: white; display: block; padding: 15px; text-decoration: none; border-radius: 4px; font-weight: 700; margin-top: 20px; }

/* Popular Cities */
.orase-populare-section { padding: 40px 0; border-top: 1px solid var(--land-border); }
.orase-header-mobile { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.orase-header-mobile h2 { margin-bottom: 0 !important; }

.toggle-orase-btn {
    display: none;
    background: var(--land-primary);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 0;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    transition: all 0.3s;
}

.toggle-orase-btn.active .hamburger-line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.toggle-orase-btn.active .hamburger-line:nth-child(2) { opacity: 0; }
.toggle-orase-btn.active .hamburger-line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.lista-orase { display: flex; flex-wrap: wrap; gap: 15px; }
.oras-link { 
    display: inline-block;
    color: var(--land-primary); 
    font-weight: 700; 
    text-decoration: none; 
    padding: 12px 20px;
    background: white;
    border: 2px solid var(--land-border);
    border-radius: 8px;
    transition: all 0.2s;
}
.oras-link:hover {
    border-color: var(--land-primary);
    background: var(--land-primary);
    color: white;
}
.oras-link span { color: inherit; opacity: 0.9; margin-left: 5px; }

@media (max-width: 768px) {
    .page-container-landfield {
        padding: 0 5px;
    }

    .hero-landfield {
        padding: 60px 0;
    }

    .hero-landfield h1 {
        font-size: 2rem;
    }

    .nav-hero-links {
        flex-wrap: wrap;
        gap: 10px;
    }

    .nav-hero-links a {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    #formular-cautare-hero {
        flex-direction: column;
        background: transparent;
        box-shadow: none;
        gap: 10px;
        padding: 0;
    }

    #formular-cautare-hero input[type="search"] {
        width: 100%;
        border-radius: 8px;
        padding: 15px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }

    #formular-cautare-hero button {
        width: 100%;
        padding: 15px;
        border-radius: 8px;
    }

    .lista-anunturi-ilfov {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 30px 0;
    }

    .toggle-orase-btn { display: flex; }
    .lista-orase {
        display: none;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        margin-top: 10px;
    }
    .lista-orase.open { display: flex; }
    .oras-link { width: 100%; box-sizing: border-box; text-align: center; }
}

/* Footer */
.footer-ilfov { background: var(--land-primary-dark); color: #ecf0f1; padding: 60px 0; text-align: center; }
.footer-ilfov a { color: #f1c40f; }
.footer-links a { color: white !important; }
