:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --text-color: #1f2937;
    --light-text: #6b7280;
    --bg-color: #f3f4f6;
    --card-bg: #ffffff;
    --border-color: #e5e7eb;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background-color: var(--card-bg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    margin-bottom: 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.2s;
}

.header-phone:hover {
    color: var(--primary-color);
}

.header-phone svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.logo img {
    height: 50px;
    width: auto;
}

nav a {
    text-decoration: none;
    color: var(--light-text);
    margin-left: 1.5rem;
    font-weight: 500;
    transition: color 0.2s;
}

nav a:hover,
nav a.active {
    color: var(--primary-color);
}

/* Controls */
.controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

#searchInput,
select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    background-color: white;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

#searchInput {
    flex: 2;
    min-width: 200px;
}

select {
    flex: 1;
    min-width: 150px;
    cursor: pointer;
}

#searchInput:focus,
select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Grid */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding-bottom: 4rem;
}

/* Card */
.listing-card {
    background-color: var(--card-bg);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    /* For absolute positioning of WA button */
}

.listing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.image-container {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.listing-card:hover .image-container img {
    transform: scale(1.05);
}

.badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: rgba(37, 99, 235, 0.9);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* WhatsApp Button */
.whatsapp-btn {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background-color: #25D366;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, background-color 0.2s;
    z-index: 10;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    background-color: #128C7E;
}

.whatsapp-btn svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.content {
    padding: 1.5rem;
}

.title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 3.4rem;
}

.details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.location {
    font-size: 0.875rem;
    color: var(--light-text);
}

.price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.meta {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
    color: var(--light-text);
}

/* Footer */
.site-footer {
    background-color: white;
    padding: 2rem 0;
    text-align: center;
    color: var(--light-text);
    border-top: 1px solid var(--border-color);
}

.footer-contact {
    margin-top: 1rem;
    font-size: 0.875rem;
}

.footer-contact p {
    margin-bottom: 0.5rem;
}

/* Content Page */
.content-page {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.content-page h1 {
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.content-page p {
    margin-bottom: 1rem;
    color: var(--light-text);
}

@media (max-width: 768px) {
    .listings-grid {
        grid-template-columns: 1fr;
    }

    .controls {
        flex-direction: column;
    }

    #searchInput,
    select {
        width: 100%;
    }

    .header-right {
        gap: 1rem;
    }

    .header-phone span {
        display: none;
        /* Hide text on mobile if needed, but user asked for clickable number */
    }
}