:root {
    --bg: #fff8ec;
    --paper: #ffffff;
    --text: #133463;
    --muted: #5e6d83;
    --line: rgba(19, 52, 99, 0.12);
    --primary: #0b4aa2;
    --primary-deep: #082e65;
    --sun: #efb126;
    --sand: #f7ead2;
    --sea: #d8ecff;
    --sea-deep: #b8d8ff;
    --shadow: 0 18px 45px rgba(13, 44, 85, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Outfit", "Trebuchet MS", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(239, 177, 38, 0.18), transparent 30%),
        linear-gradient(180deg, #fffdf8 0%, var(--bg) 100%);
    color: var(--text);
}

.admin-body {
    background:
        radial-gradient(circle at top right, rgba(11, 74, 162, 0.14), transparent 30%),
        linear-gradient(180deg, #fffaf1 0%, #f6f8fc 100%);
}

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

.container {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(16px);
    background: rgba(255, 248, 236, 0.86);
    border-bottom: 1px solid var(--line);
}

.header-inner,
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
}

.brand {
    display: inline-flex;
    align-items: center;
}

.brand-logo {
    width: min(100%, 320px);
    height: auto;
    display: block;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--muted);
    font-weight: 600;
}

.main-nav a.is-active {
    color: var(--primary);
}

.hero,
.section {
    padding: 4.5rem 0;
}

.hero-grid,
.dual-panel,
.database-preview {
    display: grid;
    gap: 1.5rem;
}

.hero-grid {
    grid-template-columns: 1.3fr 0.9fr;
    align-items: center;
}

.eyebrow,
.mini-label,
.footer-label {
    margin: 0 0 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--primary);
}

h1,
h2,
h3 {
    margin-top: 0;
}

h1,
h2 {
    font-family: "Merriweather", Georgia, serif;
    line-height: 1.12;
}

h1 {
    margin-bottom: 1rem;
    font-size: clamp(2.5rem, 6vw, 4.8rem);
}

h2 {
    margin-bottom: 0.75rem;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.lead,
.section-note,
.job-card p,
.info-panel p,
.hero-card p,
.site-footer p {
    color: var(--muted);
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin: 1.8rem 0;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.85rem 1.2rem;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-deep));
    color: #fff;
    box-shadow: var(--shadow);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
}

.hero-points,
.check-list,
.stack-list,
.hero-card ul,
.job-tags {
    padding: 0;
    margin: 0;
    list-style: none;
}

.hero-points,
.check-list,
.stack-list,
.hero-card ul {
    display: grid;
    gap: 0.8rem;
}

.hero-points li,
.check-list li,
.stack-list li,
.hero-card li {
    position: relative;
    padding-left: 1.4rem;
}

.hero-points li::before,
.check-list li::before,
.stack-list li::before,
.hero-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: var(--sun);
}

.hero-card,
.category-card,
.job-card,
.info-panel {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 28px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.accent-card {
    background: linear-gradient(180deg, var(--sea) 0%, #ffffff 100%);
}

.contact-mail {
    display: inline-flex;
    margin-top: 0.4rem;
    font-weight: 800;
    color: var(--primary);
    word-break: break-word;
}

.hero-panel {
    display: grid;
    gap: 1rem;
}

.section-heading {
    margin-bottom: 2rem;
}

.split-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
}

.category-grid,
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}

.listing-grid,
.form-grid,
.detail-shell {
    display: grid;
    gap: 1.2rem;
}

.listing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-shell {
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.8fr);
    align-items: start;
}

.category-card p,
.job-card p {
    margin-bottom: 0;
}

.listing-card,
.detail-card,
.filter-bar,
.empty-state,
.listing-form,
.detail-main {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 28px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.page-top {
    padding-top: 3rem;
}

.page-title {
    margin-bottom: 1rem;
    font-size: clamp(2.1rem, 4vw, 3.8rem);
    font-family: "Merriweather", Georgia, serif;
    line-height: 1.15;
}

.filter-bar {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr 0.8fr auto;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.filter-actions {
    display: flex;
    align-items: end;
    gap: 0.8rem;
}

.field {
    display: grid;
    gap: 0.45rem;
    color: var(--muted);
    font-weight: 600;
}

.field.is-hidden {
    display: none;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    font: inherit;
    color: var(--text);
    background: #fff;
}

.field textarea {
    resize: vertical;
}

.field-note {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.captcha-wrap {
    margin: 0.35rem 0 0.75rem;
    overflow-x: auto;
}

.field-full {
    grid-column: 1 / -1;
}

.checkbox-field {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1.9rem;
}

.checkbox-field-stacked {
    align-items: flex-start;
    padding-top: 0.2rem;
}

.checkbox-field input {
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.2rem;
    flex: 0 0 auto;
}

.checkbox-field-stacked span {
    line-height: 1.6;
}

.listing-card h2,
.detail-card h2,
.detail-main h2,
.empty-state h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.text-link {
    display: inline-flex;
    margin-top: 1rem;
    color: var(--primary);
    font-weight: 800;
}

.listing-photo,
.detail-photo {
    width: 100%;
    display: block;
    object-fit: cover;
    border-radius: 22px;
    margin-bottom: 1rem;
    background: #eef4fb;
}

.listing-photo {
    aspect-ratio: 16 / 10;
}

.detail-photo {
    max-height: 420px;
}

.property-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    margin: 0 0 1.2rem;
}

.property-gallery-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 18px;
    background: #eef4fb;
}

.empty-state {
    text-align: center;
}

.listing-form {
    margin-top: 1rem;
}

.compact-form {
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
}

.report-toggle {
    margin-top: 0.4rem;
}

.report-panel {
    display: none;
    margin-top: 1rem;
}

.report-panel.is-open {
    display: block;
}

.detail-copy,
.detail-block {
    margin-top: 1.5rem;
}

.detail-side {
    display: grid;
    gap: 1rem;
}

.form-success,
.form-errors {
    border-radius: 20px;
    padding: 1rem 1.1rem;
    margin-bottom: 1rem;
}

.form-success {
    background: #e5f7e9;
    color: #14532d;
}

.form-errors {
    background: #fff0f0;
    color: #9f1239;
}

.form-errors p {
    margin: 0.2rem 0;
}

.admin-login-shell {
    max-width: 560px;
}

.admin-login-form {
    margin: 0 auto;
}

.danger-zone {
    margin-top: 1rem;
}

.admin-topbar,
.admin-stats-grid {
    display: grid;
    gap: 1rem;
}

.admin-topbar {
    grid-template-columns: 1fr auto;
    align-items: end;
    margin-bottom: 1.5rem;
}

.admin-user {
    display: grid;
    gap: 0.25rem;
    text-align: right;
    color: var(--muted);
}

.admin-stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 1.5rem;
}

.admin-stat-card,
.admin-table-shell {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 28px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.admin-stat-card strong {
    display: block;
    font-size: 2.4rem;
    line-height: 1;
    margin-bottom: 0.35rem;
}

.admin-stat-card span {
    color: var(--muted);
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 0.9rem 0.75rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    color: var(--primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-published {
    background: #e5f7e9;
    color: #14532d;
}

.status-pending {
    background: #ffedd5;
    color: #9a3412;
}

.status-draft {
    background: #fff6db;
    color: #92400e;
}

.status-closed {
    background: #eef2ff;
    color: #3730a3;
}

.admin-inline-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.admin-inline-form select {
    min-width: 135px;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    font: inherit;
}

.section-sand {
    background:
        linear-gradient(180deg, rgba(247, 234, 210, 0.68), rgba(255, 255, 255, 0.72)),
        radial-gradient(circle at top right, rgba(11, 74, 162, 0.12), transparent 24%);
}

.section-deep {
    background: linear-gradient(180deg, var(--primary-deep), #0f488b);
    color: #fff;
}

.section-deep .eyebrow,
.section-deep .section-note,
.section-deep .stack-list,
.section-deep p {
    color: rgba(255, 255, 255, 0.82);
}

.job-meta,
.job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.job-meta {
    margin-bottom: 1rem;
}

.job-meta span,
.job-tags li {
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    background: rgba(11, 74, 162, 0.08);
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
}

.company {
    margin-top: -0.4rem;
    font-weight: 700;
    color: var(--primary);
}

.dual-panel,
.database-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.warm-panel {
    background: linear-gradient(180deg, rgba(239, 177, 38, 0.16), rgba(255, 255, 255, 0.94));
}

.site-footer {
    background: #08203f;
    color: #fff;
}

.site-footer p {
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 0;
}

.footer-meta {
    margin-top: 0.4rem;
}

.footer-links {
    display: grid;
    gap: 0.45rem;
}

.footer-links a,
.footer-link-button {
    color: rgba(255, 255, 255, 0.82);
}

.footer-link-button {
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.legal-page {
    max-width: 860px;
    margin: 0 auto;
}

.cookie-banner {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 30;
    width: min(560px, calc(100% - 2rem));
    background: rgba(8, 32, 63, 0.97);
    color: #fff;
    border-radius: 24px;
    padding: 1.2rem;
    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.24);
}

.cookie-banner p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
}

.cookie-banner a {
    color: #fff;
    text-decoration: underline;
}

.cookie-banner__content {
    display: grid;
    gap: 0.75rem;
}

.cookie-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 900px) {
    .hero-grid,
    .category-grid,
    .jobs-grid,
    .listing-grid,
    .form-grid,
    .admin-stats-grid,
    .dual-panel,
    .database-preview,
    .detail-shell,
    .filter-bar,
    .property-gallery {
        grid-template-columns: 1fr;
    }

    .header-inner,
    .footer-inner,
    .split-heading,
    .admin-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-user {
        text-align: left;
    }

    .filter-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .cookie-banner {
        left: 1rem;
        width: auto;
    }
}

@media (max-width: 640px) {
    .hero,
    .section {
        padding: 3.4rem 0;
    }

    .main-nav {
        gap: 0.7rem;
        font-size: 0.95rem;
    }

    .brand-logo {
        width: min(100%, 260px);
    }
}
