/* Finca.com.de Styles */

:root {
    --primary: #c45c26;
    --primary-dark: #a04a1e;
    --secondary: #1a4d5c;
    --accent: #e8a838;
    --text: #333;
    --text-light: #666;
    --bg: #fff;
    --bg-light: #f8f6f3;
    --bg-dark: #1a1a1a;
    --border: #e0dcd5;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --radius: 8px;
    --transition: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

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

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

a:hover {
    color: var(--primary-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--secondary);
}

/* Header */
.header {
    background: var(--bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--secondary);
}

.logo span {
    color: var(--primary);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    color: var(--text);
    font-weight: 500;
    padding: 10px 0;
}

.main-nav a:hover {
    color: var(--primary);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
    padding: 10px 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
}

.dropdown-menu a:hover {
    background: var(--bg-light);
}

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

.lang-switch {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    cursor: pointer;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--text);
}

/* Hero */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    padding: 60px 0;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--secondary) 0%, #2a6a7c 100%);
    z-index: -1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('/images/hero-finca.jpg') center/cover;
    opacity: 0.3;
}

.hero-content {
    text-align: center;
    color: #fff;
    max-width: 700px;
    margin: 0 auto 40px;
}

.hero-content h2 {
    font-size: 2.8rem;
    color: #fff;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Search Box */
.search-box {
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.search-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    gap: 15px;
    align-items: end;
}

.search-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 6px;
}

.search-field select,
.search-field input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    background: var(--bg);
}

.search-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background var(--transition);
    white-space: nowrap;
}

.search-btn:hover {
    background: var(--primary-dark);
}

/* Trust Section */
.trust-section {
    padding: 30px 0;
    background: var(--bg-light);
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--secondary);
    font-weight: 500;
}

.badge-icon {
    font-size: 1.5rem;
}

/* Destinations */
.destinations {
    padding: 80px 0;
}

.destinations h2,
.featured-properties h2,
.why-us h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 40px;
}

.destination-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.destination-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition);
    display: block;
    color: var(--text);
}

.destination-card:hover {
    transform: translateY(-5px);
}

.destination-card.featured {
    grid-row: span 2;
}

.destination-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.destination-card.featured .destination-image {
    height: 100%;
    min-height: 400px;
}

.destination-content {
    padding: 20px;
    background: var(--bg);
}

.destination-card.featured .destination-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
}

.destination-card.featured h3,
.destination-card.featured p {
    color: #fff;
}

.destination-content h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.destination-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.property-count {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
}

/* Why Us */
.why-us {
    padding: 80px 0;
    background: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.feature {
    text-align: center;
    padding: 30px 20px;
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.feature h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.feature p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Featured Properties */
.featured-properties {
    padding: 80px 0;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.property-card {
    background: var(--bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition);
}

.property-card:hover {
    transform: translateY(-5px);
}

.property-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

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

.property-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.property-badge.new {
    background: var(--accent);
}

.property-details {
    padding: 20px;
}

.property-details h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.property-location {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.property-features {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.property-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.property-rating {
    font-size: 0.85rem;
}

.stars {
    color: var(--accent);
}

.property-price strong {
    font-size: 1.3rem;
    color: var(--primary);
}

.view-all {
    text-align: center;
    margin-top: 40px;
}

.btn {
    display: inline-block;
    padding: 14px 35px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

/* SEO Content */
.seo-content {
    padding: 80px 0;
    background: var(--bg-light);
}

.seo-content article {
    max-width: 800px;
    margin: 0 auto;
}

.seo-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.seo-content h3 {
    font-size: 1.4rem;
    margin: 30px 0 15px;
}

.seo-content p {
    margin-bottom: 15px;
    color: var(--text-light);
}

/* Newsletter */
.newsletter {
    padding: 60px 0;
    background: var(--secondary);
    color: #fff;
    text-align: center;
}

.newsletter h2 {
    color: #fff;
    margin-bottom: 10px;
}

.newsletter-form {
    display: flex;
    gap: 15px;
    max-width: 500px;
    margin: 30px auto 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
}

.newsletter-form button {
    padding: 15px 30px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
}

.newsletter-form button:hover {
    background: var(--primary-dark);
}

.privacy-note {
    font-size: 0.85rem;
    opacity: 0.8;
}

.privacy-note a {
    color: #fff;
    text-decoration: underline;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: #ccc;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer ul {
    list-style: none;
}

.footer li {
    margin-bottom: 10px;
}

.footer a {
    color: #aaa;
}

.footer a:hover {
    color: #fff;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border: 1px solid #444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
}

.social-links a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid #333;
    font-size: 0.9rem;
}

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

.payment-methods img {
    height: 25px;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 992px) {
    .destination-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .destination-card.featured {
        grid-row: span 1;
    }

    .destination-card.featured .destination-image {
        min-height: 200px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .search-row {
        grid-template-columns: 1fr;
    }

    .destination-grid,
    .features-grid,
    .properties-grid {
        grid-template-columns: 1fr;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .newsletter-form {
        flex-direction: column;
    }
}

/* Landing Page Specific */
.landing-hero {
    min-height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
}

.landing-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.7), transparent);
}

.landing-hero-content {
    position: relative;
    max-width: 600px;
    color: #fff;
    padding: 40px;
}

.landing-hero h1 {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 20px;
}

.breadcrumb {
    padding: 15px 0;
    background: var(--bg-light);
}

.breadcrumb ul {
    display: flex;
    list-style: none;
    gap: 10px;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--text-light);
}

.breadcrumb span {
    color: var(--text);
}

.region-intro {
    padding: 60px 0;
}

.region-intro h2 {
    margin-bottom: 20px;
}

.region-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.stat-box {
    text-align: center;
    padding: 30px;
    background: var(--bg-light);
    border-radius: var(--radius);
}

.stat-box .number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-box .label {
    color: var(--text-light);
    margin-top: 5px;
}

/* i18n Language Classes */
[lang="en"] .de-only,
[lang="es"] .de-only {
    display: none;
}

[lang="de"] .en-only,
[lang="es"] .en-only {
    display: none;
}

[lang="de"] .es-only,
[lang="en"] .es-only {
    display: none;
}
