@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&family=Roboto:wght@400;500;700&display=swap');

:root {
    /* Brand Colors */
    --primary-color: #0056b3;
    /* Trustworthy Blue */
    --primary-dark: #004494;
    --secondary-color: #ffc107;
    /* Warning/Action Yellow */
    --accent-green: #28a745;
    /* Price/Success */
    --text-dark: #212529;
    --text-medium: #6c757d;
    --bg-light: #f8f9fa;
    --white: #ffffff;

    /* Dimensions & Spacing */
    --radius: 6px;
    --container-width: 1200px;
    --header-height: 70px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    /* Clean, modern sans */
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    padding-top: var(--header-height);
    /* For sticky header */
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}

/* --- HEADER --- */
header {
    background-color: var(--white);
    height: var(--header-height);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    /* Subtle shadow */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
}

header .header-content {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

header nav {
    display: flex;
    gap: 25px;
}

header nav a {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
}

header nav a:hover,
header nav a.active {
    color: var(--primary-color);
}

/* --- HERO --- */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.6)), url('../images/hero-bg.jpg');
    /* Need detailed image or fallback */
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 80px 20px 100px;
    /* Extra bottom padding for search overlap */
    text-align: center;
    position: relative;
    margin-bottom: 60px;
}

.hero h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* --- SEARCH BAR (Floating) --- */
.hero-search-container {
    background: var(--white);
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    display: flex;
    gap: 15px;
    align-items: flex-end;
    transform: translateY(50%);
    /* Half overlapping hero */
}

.search-input-group {
    flex: 1;
}

.search-input-group label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-medium);
    font-weight: 600;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-input-group input,
.search-input-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 1rem;
    color: var(--text-dark);
    background: #fdfdfd;
}

.search-input-group input:focus,
.search-input-group select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

.btn-search-hero {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 35px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
    height: 48px;
    /* Match input height roughly */
}

.btn-search-hero:hover {
    background-color: var(--primary-dark);
}

/* --- CONTAINER & GRID --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px 60px;
}

.property-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    /* Widen cards */
    gap: 30px;
}

/* --- PROPERTY CARDS (Enhanced) --- */
.property-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid #eaeaea;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.card-image-placeholder {
    height: 220px;
    position: relative;
    background-color: #eee;
}

.card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.card-badge.date {
    background: var(--primary-color);
    /* Blue for Date */
}

.card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.4;
    height: 3.2em;
    /* Limit to 2 lines approx */
    overflow: hidden;
}

.card-meta {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    align-items: center;
}

.card-meta i {
    color: var(--text-medium);
    opacity: 0.7;
}

.card-price {
    font-size: 1.4rem;
    color: var(--accent-green);
    /* Competitor style green */
    font-weight: 700;
    margin-top: auto;
    margin-bottom: 15px;
}

.btn-know-more {
    display: block;
    width: 100%;
    text-align: center;
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 10px;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-know-more:hover {
    background-color: var(--primary-color);
    color: white;
}

/* --- TRUST SECTION --- */
.trust-section {
    padding: 80px 20px;
    background-color: white;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.trust-section h2 {
    font-size: 2rem;
    margin-bottom: 50px;
    color: var(--text-dark);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    max-width: var(--container-width);
    margin: 0 auto;
}

.trust-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.trust-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* --- FOOTER --- */
footer {
    background-color: var(--text-dark);
    color: #adb5bd;
    padding: 60px 0 20px;
}

.footer-grid {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col a {
    color: #adb5bd;
}

.footer-col a:hover {
    color: white;
}

/* --- PROPERTY DETAIL SPECIFIC --- */
.property-hero {
    height: 350px;
    /* Shorter than home hero */
    position: relative;
    background-size: cover;
    background-position: center;
}

.property-hero .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.detail-container {
    max-width: var(--container-width);
    margin: -80px auto 40px;
    /* Overlap hero */
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.detail-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 30px;
}

.detail-content {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.detail-sidebar-box {
    background: white;
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 90px;
    /* Below header */
}

.price-tag {
    font-size: 2rem;
    color: var(--accent-green);
    font-weight: 700;
    margin-bottom: 10px;
}

.breadcrumbs {
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #ddd;
}

.breadcrumbs a {
    color: white;
    opacity: 0.9;
}

.breadcrumbs .current {
    font-weight: 600;
    color: white;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 10px;
        padding: 10px;
        height: auto;
    }

    header {
        height: auto;
        position: relative;
    }

    body {
        padding-top: 0;
    }

    .hero-search-container {
        flex-direction: column;
        align-items: stretch;
        transform: none;
        margin-top: 30px;
    }

    .detail-layout {
        grid-template-columns: 1fr;
    }
}

/* ADVANCED PAGINATION */
.pagination-container {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding-top: 30px;
    /* Separator space */
    border-top: 1px solid #eee;
}

.pagination-links {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-links a,
.pagination-links span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: var(--text-dark);
    font-weight: 600;
    transition: all 0.2s;
    background: white;
}

.pagination-links a:hover {
    background-color: #f1f1f1;
    border-color: #ccc;
}

.pagination-links .active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-links .disabled {
    color: #ccc;
    background: #f9f9f9;
    cursor: not-allowed;
    border-color: #eee;
}

.jump-to-form {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-medium);
}

.jump-to-form input {
    width: 60px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.jump-to-form button {
    padding: 8px 15px;
    background-color: var(--text-dark);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.jump-to-form button:hover {
    background-color: black;
}