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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #f8fafc;
}

.container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
}

.site-header {
    background: #0f172a;
    color: #fff;
    padding: 1rem 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.main-nav a {
    color: #cbd5e1;
    text-decoration: none;
    margin-left: 1.5rem;
    font-weight: 500;
}

.main-nav a:hover {
    color: #fff;
}

.hero {
    text-align: center;
    padding: 3rem 0 2rem;
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding-bottom: 3rem;
}

.listing-card {
    background: #fff;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.15s ease;
}

.listing-card:hover {
    transform: translateY(-4px);
}

.listing-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.listing-body {
    padding: 1.25rem;
}

.badge {
    display: inline-block;
    background: #2563eb;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
}

.listing-body h2 {
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
}

.listing-body h2 a {
    color: #0f172a;
    text-decoration: none;
}

.listing-body h2 a:hover {
    color: #2563eb;
}

.location {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.summary {
    display: flex;
    gap: 1rem;
    list-style: none;
    font-size: 0.9rem;
    color: #475569;
}

.listing-detail {
    padding: 2rem 0;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.gallery img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 0.5rem;
}

.listing-info {
    background: #fff;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.listing-info h1 {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.listing-info h2 {
    font-size: 1.15rem;
    margin: 1.5rem 0 0.5rem;
}

.features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin-bottom: 1.5rem;
}

.features li {
    background: #e2e8f0;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
}

.btn {
    display: inline-block;
    background: #2563eb;
    color: #fff;
    padding: 0.85rem 1.5rem;
    border-radius: 0.375rem;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #1d4ed8;
}

.contact {
    max-width: 640px;
    margin: 2rem auto;
    background: #fff;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.contact-form label {
    display: block;
    margin: 1rem 0 0.35rem;
    font-weight: 500;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.65rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.375rem;
    font-size: 1rem;
}

.contact-form button {
    margin-top: 1.25rem;
}

.success,
.error-list,
.error {
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
}

.success {
    background: #dcfce7;
    color: #166534;
}

.error-list,
.error {
    background: #fee2e2;
    color: #991b1b;
}

.note {
    background: #eff6ff;
    padding: 0.75rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
}

.site-footer {
    background: #0f172a;
    color: #94a3b8;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
}
