﻿:root {
    --brand-primary: #2c7be5;
    --brand-primary-dark: #1b64d8;
    --brand-secondary: #0d2b45;
    --brand-accent: #f2994a;
    --surface: #ffffff;
    --surface-muted: #f1f5f9;
    --text-primary: #1f2933;
    --text-secondary: #52606d;
    --shadow-soft: 0 12px 24px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(132deg, rgba(240, 249, 255, 0.92), rgba(247, 253, 255, 0.9)),
        url('/images/photo-1505691938895-1758d7feb511-big.jpg') center/cover fixed;
    color: var(--text-primary);
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 24px 24px 0;
}

main {
    flex: 1 0 auto;
    padding-bottom: 60px;
}

a {
    color: var(--brand-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover,
a:focus {
    color: var(--brand-primary-dark);
    text-decoration: underline;
}

.container {
    max-width: 1120px;
}

header .navbar {
    border-radius: 18px;
    margin-top: 18px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.06);
}

.navbar-brand {
    font-weight: 700;
    color: var(--brand-secondary) !important;
    letter-spacing: 0.5px;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--brand-primary) !important;
    transform: translateY(-1px);
}

.hero {
    position: relative;
    margin: 24px 0 56px;
    border-radius: 32px;
    overflow: hidden;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.78));
    box-shadow: var(--shadow-soft);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(140deg, rgba(13, 43, 69, 0.8), rgba(38, 84, 140, 0.55));
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 0;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url('/images/photo-1505691723518-36a5ac3be353-big.jpg') center/cover;
    opacity: 0.25;
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    padding: 72px 64px;
    max-width: 620px;
    color: #fff;
    z-index: 1;
}

.hero-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 18px;
    color: #fff;
}

.hero h1 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 18px;
    line-height: 1.05;
}

.hero p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #fff;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 32px;
}

.btn-primary {
    background: var(--brand-primary);
    border: none;
    border-radius: 999px;
    padding: 12px 28px;
    font-weight: 600;
    box-shadow: 0 10px 18px rgba(44, 123, 229, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--brand-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(27, 100, 216, 0.32);
}

.btn-outline-light {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 999px;
    padding: 12px 28px;
    font-weight: 600;
    background: transparent;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn-outline-light:hover,
.btn-outline-light:focus {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    transform: translateY(-1px);
}

.section-header {
    text-align: center;
    margin-bottom: 32px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--brand-secondary);
    margin-bottom: 12px;
}

.section-subtitle {
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}

.property-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.property-card {
    background-color: var(--surface);
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 32px rgba(15, 23, 42, 0.16);
}

.property-image {
    position: relative;
    width: 100%;
    height: 220px;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: var(--brand-accent);
    color: #fff;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.property-details {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.property-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--brand-secondary);
    margin: 0 0 6px 0;
}

.property-address {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0 0 20px 0;
}

.property-specs {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--surface-muted);
    padding-top: 16px;
    margin-top: auto;
    gap: 12px;
    flex-wrap: wrap;
}

.property-specs span {
    font-size: 0.92rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.property-specs i {
    color: var(--brand-primary);
}

.btn-details,
a.btn-details {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 12px;
    margin-top: 24px;
    background-color: var(--brand-primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
}

.btn-details:hover,
.btn-details:focus {
    background-color: var(--brand-primary-dark);
    transform: translateY(-2px);
    color: #fff;
}

.value-section {
    margin: 64px 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: rgba(44, 123, 229, 0.12);
    color: var(--brand-primary);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 1.35rem;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin: 0;
    color: var(--brand-secondary);
}

.feature-card p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.cta-section {
    margin: 72px 0 96px;
}

.cta-card {
    background: linear-gradient(120deg, rgba(44, 123, 229, 0.95), rgba(27, 100, 216, 0.92));
    border-radius: 24px;
    padding: 48px 56px;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 18px;
    box-shadow: 0 18px 38px rgba(27, 100, 216, 0.32);
}

.cta-card h3 {
    font-size: 2rem;
    margin: 0;
}

.cta-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 6px;
}

.link-arrow {
    color: inherit;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.link-arrow::after {
    content: '→';
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

.link-arrow:hover::after {
    transform: translateX(4px);
}

footer {
    background: rgba(255, 255, 255, 0.92);
}

footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-links {
    display: flex;
    gap: 18px;
    font-size: 0.95rem;
}

.footer-links a {
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--brand-primary);
}

.form-card,
.content-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.12);
    margin: 0 auto;
    text-align: left;
}

.form-card {
    max-width: 640px;
}

.content-card {
    max-width: 900px;
    margin-bottom: 48px;
}

.content-card h1,
.content-card h2 {
    color: var(--brand-secondary);
    margin-bottom: 16px;
}

.content-card p,
.content-card li {
    color: var(--text-secondary);
    line-height: 1.7;
}

.content-card ul {
    padding-left: 1.2rem;
    margin-bottom: 0;
}

.content-card ul li {
    margin-bottom: 8px;
}

.form-card h2 {
    margin-bottom: 12px;
    color: var(--brand-secondary);
}

.form-card p {
    color: var(--text-secondary);
}

.form-floating,
.form-group {
    margin-bottom: 20px;
}

.form-control,
.form-select,
textarea.form-control {
    border-radius: 12px;
    border: 1px solid rgba(163, 177, 198, 0.6);
    padding: 14px 16px;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 4px rgba(44, 123, 229, 0.12);
}

.validation-summary-errors,
.field-validation-error {
    color: #d4314b;
    font-weight: 500;
}

input.validation-error,
select.validation-error,
textarea.validation-error {
    border-color: #d4314b;
}

@media (max-width: 992px) {
    .hero-content {
        padding: 56px 40px;
        max-width: 100%;
    }

    header .navbar {
        margin-top: 12px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 20px 16px 0;
    }

    .hero {
        margin: 16px 0 40px;
        border-radius: 24px;
    }

    .hero-content {
        padding: 48px 28px;
    }

    .cta-card {
        padding: 36px 28px;
    }

    footer .container {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 400px) {
    .property-container {
        grid-template-columns: 1fr;
    }

    .hero-content {
        padding: 36px 24px;
    }

    .hero-actions,
    .cta-actions {
        flex-direction: column;
    }
}
