@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --brand: #12c48b;
    --brand-strong: #0fa872;
    --brand-soft: #d9f7eb;
    --text-primary: #0f172a;
    --text-muted: #64748b;
    --bg: #f5f7fb;
    --surface: #ffffff;
    --border: #e2e8f0;
    --shadow-soft: 0 22px 60px rgba(15, 23, 42, 0.08);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.page-body {
    background: var(--bg);
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-content {
    flex: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.1rem 0;
}

.brand {
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--brand);
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex: 1;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 600;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.lang-switch {
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
}

.lang-switch a {
    padding: 0.35rem 0.6rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.85rem 1.35rem;
    border-radius: 12px;
    border: 1px solid transparent;
    font-weight: 800;
    font-size: 0.98rem;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
}

.btn:focus-visible {
    outline: 3px solid rgba(18, 196, 139, 0.25);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--brand);
    color: #ffffff;
    box-shadow: 0 12px 35px rgba(18, 196, 139, 0.28);
}

.btn-primary:hover {
    background: var(--brand-strong);
    transform: translateY(-2px);
}

.btn-secondary {
    background: #ffffff;
    color: var(--text-primary);
    border-color: var(--border);
}

.btn-secondary:hover {
    border-color: #cbd5e1;
    color: #0b1224;
}

.btn.full-width {
    width: 100%;
}

.shadow-glow {
    box-shadow: 0 15px 35px rgba(18, 196, 139, 0.32);
}

.hero {
    padding: 4.5rem 0 3.25rem;
}

.hero-wide {
    position: relative;
    padding: 0;
    background: #0b1224;
    color: #fff;
    min-height: 520px;
    isolation: isolate;
}

.hero-wide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--hero-image, none) center/cover no-repeat;
    opacity: 0.9;
    z-index: -3;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(9, 14, 25, 0.5) 0%, rgba(9, 14, 25, 0.75) 60%, rgba(9, 14, 25, 0.8) 100%);
    z-index: -2;
}

.hero-rail {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem 0 3rem;
}

.hero-top {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 1rem;
    align-items: center;
}

.hero-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 800;
    font-size: 1.2rem;
    color: #fff;
}

.hero-brand__logo {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #12c48b;
    color: #fff;
    border-radius: 10px;
}

.hero-meta {
    display: inline-flex;
    gap: 0.5rem;
}

.hero-actions {
    display: inline-flex;
    justify-content: flex-end;
    gap: 0.6rem;
}

.hero-content {
    margin-top: 1rem;
}

.hero-heading h1 {
    margin: 0 0 1.25rem;
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 800;
    color: #fff;
}

.pill {
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: transparent;
    color: #fff;
    border-radius: 999px;
    padding: 0.55rem 1rem;
    font-weight: 700;
    cursor: pointer;
}

.pill-ghost {
    border: none;
    background: rgba(255, 255, 255, 0.15);
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    align-items: center;
}

.hero-copy {
    max-width: 560px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--brand);
}

.hero-title {
    font-size: clamp(2.3rem, 5vw, 3.3rem);
    line-height: 1.15;
    margin: 0.65rem 0;
    font-weight: 800;
    color: #0b1224;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 1.4rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    align-items: center;
}

.highlight-card {
    background: radial-gradient(circle at 18% 20%, rgba(18, 196, 139, 0.14), transparent 45%),
        var(--surface);
}

.search-card {
    padding: 1.75rem;
}

.search-card--wide {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.tabs {
    display: flex;
    gap: 0.6rem;
    padding: 0.35rem;
    background: #f0f4fa;
    border-radius: 999px;
    width: fit-content;
}

.tab {
    border: none;
    background: transparent;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab.is-active {
    background: #ffffff;
    color: var(--text-primary);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

.tab:hover {
    color: var(--text-primary);
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-label {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.96rem;
}

.form-control {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #ffffff;
    font-size: 1rem;
    color: var(--text-primary);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: rgba(18, 196, 139, 0.6);
    box-shadow: 0 0 0 4px rgba(18, 196, 139, 0.15);
}

.search-form {
    display: grid;
    gap: 1rem;
    margin-top: 1.25rem;
}

.search-form--wide .form-grid.wide {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.8rem;
}

.filters-row {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
}

.filters-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filters-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.85rem;
}

.ui-card {
    background: var(--surface);
    border-radius: 18px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: var(--shadow-soft);
    padding: 1.5rem;
}

.section-heading {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 1.25rem;
}

.featured {
    padding: 1.5rem 0 3.5rem;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0b1224;
    margin: 0;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.1rem;
}

.property-card {
    display: grid;
    gap: 0.4rem;
}

.property-thumb {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    margin-bottom: 0.5rem;
}

.property-thumb img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease;
}

.property-card:hover .property-thumb img {
    transform: scale(1.02);
}

.frequent {
    background: #fff;
}

.frequent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.frequent-card {
    text-align: center;
    display: grid;
    gap: 0.5rem;
}

.frequent-thumb {
    display: flex;
    justify-content: center;
}

.frequent-title {
    font-weight: 700;
    color: #0b1224;
}

.meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.property-card h3 {
    margin: 0.35rem 0 0.2rem;
    font-size: 1.1rem;
    color: #0b1224;
}

.property-meta {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
}

.price {
    font-weight: 800;
    font-size: 1.25rem;
    margin-top: 0.4rem;
    color: #0b1224;
}

.meta-secondary {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.38rem 0.8rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.88rem;
}

.badge-success {
    background: #e9fbf3;
    color: #0f9f6a;
}

.badge-warning {
    background: #fff6e5;
    color: #c87a00;
}

.badge-info {
    background: #eef4ff;
    color: #4154f1;
}

.badge-neutral {
    background: #f1f5f9;
    color: var(--text-muted);
}

.site-footer {
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    background: #ffffff;
    color: var(--text-muted);
    padding: 1.1rem 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.footer-brand {
    font-weight: 800;
    color: #0b1224;
}

.footer-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    font-weight: 600;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-copy {
    font-size: 0.95rem;
}

@media (max-width: 960px) {
    .hero-top {
        grid-template-columns: 1fr;
        justify-items: start;
        gap: 0.5rem;
    }
}

@media (max-width: 640px) {
    .tabs {
        width: 100%;
    }

    .tab {
        flex: 1;
        text-align: center;
    }
}
