/* QuintasPy - Modern Rural Directory Styles */

:root {
    /* Paleta de Colores (Naturaleza Paraguaya) */
    --forest-green: #2D5F3F;
    /* Verde selva - principal */
    --leaf-green: #4A7C59;
    /* Verde hoja - acentos */
    --sky-blue: #5BA3C5;
    /* Azul cielo */
    --sunset-orange: #E67E50;
    /* Naranja atardecer - CTAs */
    --earth-brown: #8B6F47;
    /* Marrón tierra */
    --golden-yellow: #F4B942;
    /* Amarillo dorado - ratings */

    /* Neutrales */
    --white: #FFFFFF;
    --cream: #FAF9F6;
    /* Background general */
    --light-gray: #F5F5F5;
    --gray: #9CA3AF;
    --dark-gray: #4B5563;
    --charcoal: #1F2937;

    /* Sombras */
    --shadow-sm: 0 1px 3px rgba(45, 95, 63, 0.08);
    --shadow-md: 0 4px 12px rgba(45, 95, 63, 0.12);
    --shadow-lg: 0 10px 30px rgba(45, 95, 63, 0.15);
    --shadow-xl: 0 20px 60px rgba(45, 95, 63, 0.2);

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;
    --border-radius: 12px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--cream);
    color: var(--charcoal);
    line-height: 1.6;
    font-size: 16px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--forest-green);
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.section-title {
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--dark-gray);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 4rem 0;
}

/* Header */
.header {
    height: var(--header-height);
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
}

.navbar {
    width: 100%;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--forest-green);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background-color: var(--leaf-green);
    /* Placeholder for SVG */
    border-radius: 8px;
}

.logo h1 {
    font-size: 1.5rem;
    margin: 0;
    line-height: 1;
}

.tagline {
    font-size: 0.75rem;
    color: var(--leaf-green);
    font-weight: 500;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu a {
    font-weight: 500;
    color: var(--dark-gray);
}

.nav-menu a:hover {
    color: var(--forest-green);
}

.nav-menu .btn-contact {
    background-color: var(--forest-green);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: background-color 0.2s;
}

.nav-menu .btn-contact:hover {
    background-color: var(--leaf-green);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
    background-color: var(--forest-green);
    color: var(--white);
    border-radius: 0 0 40px 40px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1580587771525-78b9dba3b91d?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    /* Placeholder Nature */
    background-size: cover;
    background-position: center;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.hero-badge {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* Search Bar */
.search-bar {
    background: var(--white);
    padding: 0.75rem;
    border-radius: 100px;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-lg);
    max-width: 700px;
    margin: 0 auto 3rem;
}

.search-item {
    flex: 1;
    padding: 0 1.5rem;
    border-right: 1px solid var(--light-gray);
    display: flex;
    flex-direction: column;
    text-align: left;
}

.search-item:last-child {
    border-right: none;
}

.search-item label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--forest-green);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.search-item select {
    border: none;
    outline: none;
    font-size: 1rem;
    color: var(--charcoal);
    width: 100%;
    background: transparent;
    cursor: pointer;
    appearance: none;
    /* Remove default arrow */
}

.search-btn {
    background-color: var(--sunset-orange);
    color: var(--white);
    border-radius: 50px;
    padding: 1rem 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s;
}

.search-btn:hover {
    transform: translateY(-2px);
    background-color: #d66a3d;
}

/* Geo Promo */
.geo-promo {
    margin-top: 2rem;
    text-align: center;
}

.geo-promo p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.btn-geo {
    color: var(--white);
    font-weight: 600;
    text-decoration: underline;
    opacity: 0.9;
}

.btn-geo:hover {
    opacity: 1;
}

/* Categories */
.categories {
    padding: 4rem 0;
}

.categories .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    border: 1px solid transparent;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--leaf-green);
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.category-card h3 {
    font-size: 1.125rem;
    color: var(--forest-green);
}

/* Property Grid & Cards */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

.property-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid var(--light-gray);
    display: flex;
    flex-direction: column;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.property-image-container {
    position: relative;
    padding-top: 66%;
    /* Aspect ratio 3:2 */
    background-color: var(--light-gray);
}

.property-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--white);
    color: var(--forest-green);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.property-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.property-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--forest-green);
}

.property-location {
    color: var(--gray);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.property-features {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: var(--dark-gray);
    flex-wrap: wrap;
}

.property-features span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

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

.price {
    font-weight: 700;
    color: var(--charcoal);
    font-size: 1.125rem;
}

.price span {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--gray);
}

.btn-card {
    color: var(--sunset-orange);
    font-weight: 600;
    font-size: 0.875rem;
}

/* Locations */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.location-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 200px;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    color: var(--white);
    background-color: var(--gray);
    /* fallback */
    display: block;
    /* ensure anchor builds block */
    transition: transform 0.2s;
}

.location-card:hover {
    transform: scale(1.02);
}

/* Temporary placeholders for location images via gradient */
.location-card:nth-child(1) {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent), url('https://images.unsplash.com/photo-1596422846543-75c6fc197f07?auto=format&fit=crop&w=400&q=80');
    background-size: cover;
}

.location-card:nth-child(2) {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent), url('https://images.unsplash.com/photo-1540541338287-41700207dee6?auto=format&fit=crop&w=400&q=80');
    background-size: cover;
}

.location-card:nth-child(3) {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent), url('https://images.unsplash.com/photo-1566073771259-6a8506099945?auto=format&fit=crop&w=400&q=80');
    background-size: cover;
}

.location-content {
    position: relative;
    z-index: 2;
}

.location-content h3 {
    color: var(--white);
    margin-bottom: 0.25rem;
}

.location-content p {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Footer */
.footer {
    background-color: var(--forest-green);
    color: var(--white);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand h2 {
    color: var(--white);
}

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

.footer-column h4 {
    color: var(--leaf-green);
    margin-bottom: 1.5rem;
}

.footer-column a {
    display: block;
    margin-bottom: 0.75rem;
    opacity: 0.8;
}

.footer-column a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
    opacity: 0.6;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .hero {
        padding: 4rem 0;
    }

    .search-bar {
        flex-direction: column;
        border-radius: var(--border-radius);
        padding: 1.5rem;
        gap: 1rem;
    }

    .search-item {
        width: 100%;
        border-right: none;
        padding: 0;
        border-bottom: 1px solid var(--light-gray);
        padding-bottom: 1rem;
    }

    .search-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .search-btn {
        width: 100%;
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}