/* ===========================
   GLOBAL RESET & BASE STYLES
   =========================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f8f8f8;
    color: #222;
    line-height: 1.5;
}

h1, h2, h3 {
    margin-bottom: 15px;
    color: #222;
}

p {
    margin-bottom: 15px;
    color: #555;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}


/* ===========================
   HERO SECTION
   =========================== */

.hero {
    background: url('/assets/images/hero-placeholder.jpg') center/cover no-repeat;
    padding: 80px 20px;
    text-align: center;
    color: #fff;
}

.hero-content h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 20px;
}


/* ===========================
   SEARCH FILTERS
   =========================== */

.search-filters {
    background: #fff;
    padding: 25px;
    margin: 30px 0;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-form select,
.filter-form button {
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.filter-form button {
    background: #1a1a1a;
    color: #fff;
    cursor: pointer;
}

.filter-form button:hover {
    background: #333;
}


/* ===========================
   LISTING GRID
   =========================== */

.listing-grid .grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 20px;
}


/* ===========================
   LISTING CARD
   =========================== */

.listing-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform .15s ease;
}

.listing-card:hover {
    transform: translateY(-4px);
}

.listing-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card-content {
    padding: 15px;
}

.card-title {
    font-size: 18px;
    margin-bottom: 8px;
}

.card-price {
    font-size: 20px;
    font-weight: bold;
    color: #1a7f37;
    margin-bottom: 10px;
}

.card-details {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
}

.card-location {
    font-size: 14px;
    color: #777;
}


/* ===========================
   LISTING PAGE
   =========================== */

.listing-meta {
    margin-bottom: 20px;
}

.listing-meta .price {
    font-size: 28px;
    font-weight: bold;
    color: #1a7f37;
}

.listing-meta .location {
    font-size: 18px;
    color: #555;
    margin-left: 10px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.gallery-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 4px;
}

.listing-specs table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.listing-specs th,
.listing-specs td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.listing-specs th {
    width: 180px;
    font-weight: bold;
    color: #333;
}


/* ===========================
   FILTER BAR
   =========================== */

.filter-bar {
    margin: 20px 0;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    background: #1a1a1a;
    color: #fff;
    padding: 10px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 15px;
}

.filter-btn:hover {
    background: #333;
}


/* ===========================
   FOOTER
   =========================== */

footer {
    background: #1a1a1a;
    color: #fff;
    padding: 40px 20px 20px;
    margin-top: 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-section h4 {
    margin-bottom: 10px;
    font-size: 18px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
}

.footer-section ul li a:hover {
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    font-size: 14px;
    color: #aaa;
}


/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 32px;
    }
    .filter-form {
        flex-direction: column;
    }
}

