:root {
    --ink: #18332f;
    --muted: #62706d;
    --line: #dce5df;
    --paper: #ffffff;
    --soft: #f4f8f2;
    --accent: #2f7d5c;
    --accent-dark: #1f5b45;
    --warm: #f2994a;
    --blue: #2f6f9f;
    --shadow: 0 14px 34px rgba(25, 50, 47, 0.10);
}

* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    margin: 0;
    background: var(--soft);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.55;
    overflow-x: hidden;
}

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

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

input,
select,
textarea,
button {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 11px 12px;
    font: inherit;
}

button,
.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-height: 44px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    min-width: 0;
    text-align: center;
}

.primary-button {
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #fff;
    padding: 11px 16px;
}

.primary-button:hover {
    background: var(--accent-dark);
}

.ghost-button {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    padding: 11px 16px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 14px clamp(16px, 4vw, 48px);
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--ink);
    color: #fff;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--muted);
    font-size: 14px;
}

.nav-links a:hover {
    color: var(--accent-dark);
}

.header-actions {
    display: flex;
    gap: 10px;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    gap: 28px;
    align-items: center;
    padding: clamp(36px, 7vw, 88px) clamp(16px, 4vw, 48px) 24px;
    background:
        linear-gradient(135deg, rgba(244, 248, 242, 0.90), rgba(238, 244, 247, 0.82)),
        url("/assets/img/placeholder-room.svg") center/cover no-repeat;
}

.hero h1,
.page-title h1,
.form-shell h1,
.auth-card h1 {
    margin: 0 0 12px;
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.05;
    max-width: 100%;
    overflow-wrap: break-word;
}

.hero p,
.page-title p,
.form-shell p {
    max-width: 660px;
    color: var(--muted);
    font-size: 18px;
}

.eyebrow,
.card-kicker {
    margin: 0 0 10px;
    color: var(--blue);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.search-panel,
.filter-bar,
.detail-panel,
.contact-box,
.auth-card,
.large-form {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.search-panel {
    display: grid;
    gap: 12px;
    padding: 18px;
}

.search-panel label span {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.quick-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 18px clamp(16px, 4vw, 48px);
    background: #fff;
    border-block: 1px solid var(--line);
}

.quick-filters a,
.chips span,
.badge {
    border-radius: 999px;
    padding: 7px 11px;
    background: #eef5f0;
    color: var(--accent-dark);
    font-size: 13px;
    font-weight: 700;
}

.content-section,
.page-title,
.listing-grid-wide,
.detail-layout,
.form-shell,
.auth-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 34px auto;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.section-heading h2 {
    margin: 0;
    font-size: 26px;
}

.section-heading a {
    color: var(--accent-dark);
    font-weight: 800;
}

.listing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.listing-card {
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 10px 22px rgba(25, 50, 47, 0.06);
}

.card-media {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #eef5f0;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge {
    display: inline-flex;
}

.card-media .badge {
    position: absolute;
    left: 10px;
    top: 10px;
}

.verified {
    background: #e9f4ff;
    color: #15547a;
}

.card-body {
    padding: 14px;
}

.card-body h3 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.25;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
}

.card-meta strong,
.detail-price {
    color: var(--accent-dark);
    font-weight: 900;
}

.card-body p,
.muted {
    color: var(--muted);
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-bar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 24px;
    padding: 14px;
}

.check-line {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-weight: 700;
}

.check-line input {
    width: 18px;
    min-height: 18px;
}

.empty-state {
    width: min(720px, calc(100% - 32px));
    margin: 48px auto;
    padding: 28px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 20px;
    align-items: start;
}

.gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.gallery img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff;
}

.detail-panel,
.contact-box {
    padding: 20px;
}

.detail-panel h1 {
    margin: 12px 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.12;
}

.detail-price {
    font-size: 24px;
}

.contact-box {
    position: sticky;
    top: 86px;
}

.block {
    display: flex;
    width: 100%;
    margin-bottom: 10px;
}

.stack-form {
    display: grid;
    gap: 12px;
}

.form-shell {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 24px;
    align-items: start;
}

.large-form,
.auth-card {
    padding: 18px;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.upload-placeholder {
    display: grid;
    gap: 10px;
    padding: 16px;
    border: 1px dashed var(--line);
    border-radius: 8px;
    color: var(--muted);
    background: #fbfdfb;
}

.upload-placeholder input {
    background: #fff;
}

.admin-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 34px auto;
}

.admin-list {
    display: grid;
    gap: 14px;
}

.admin-item,
.admin-row {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr) 180px;
    gap: 16px;
    align-items: start;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.admin-thumb img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line);
}

.admin-actions {
    display: grid;
    gap: 10px;
}

.admin-table {
    display: grid;
    gap: 8px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.stats-grid div {
    padding: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.stats-grid strong {
    display: block;
    color: var(--accent-dark);
    font-size: 30px;
    line-height: 1;
}

.stats-grid span {
    color: var(--muted);
    font-weight: 700;
}

.admin-row {
    grid-template-columns: minmax(0, 1fr) 220px 90px;
    align-items: center;
}

.inquiry-row {
    grid-template-columns: 220px minmax(0, 1fr) 100px;
}

.admin-row form {
    margin: 0;
}

.notice {
    padding: 12px 14px;
    border-radius: 8px;
    font-weight: 700;
}

.notice.success {
    border: 1px solid #a9d9bb;
    background: #ecf8f0;
    color: #245b35;
}

.notice.warning {
    border: 1px solid #f2c391;
    background: #fff7ed;
    color: #7a4114;
}

.owner-row {
    grid-template-columns: minmax(0, 1fr) 160px 110px;
}

.status-pill {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 13px;
    font-weight: 800;
    background: #eef5f0;
    color: var(--accent-dark);
}

.status-pending {
    background: #fff7ed;
    color: #7a4114;
}

.status-published {
    background: #ecf8f0;
    color: #245b35;
}

.status-hidden,
.status-rejected {
    background: #f8eeee;
    color: #7d2525;
}

.auth-shell {
    min-height: 58vh;
    display: grid;
    place-items: center;
}

.auth-card {
    width: min(430px, 100%);
}

.site-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding: 26px clamp(16px, 4vw, 48px);
    color: #fff;
    background: var(--ink);
}

@media (max-width: 940px) {
    .site-header,
    .hero,
    .detail-layout,
    .form-shell,
    .admin-item,
    .admin-row {
        grid-template-columns: 1fr;
    }

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

    .nav-links {
        order: 3;
        grid-column: 1 / -1;
    }

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

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

    .contact-box {
        position: static;
    }
}

@media (max-width: 620px) {
    .site-header {
        gap: 12px;
    }

    .brand {
        white-space: normal;
    }

    .header-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
        max-width: 100%;
        grid-column: 1 / -1;
        overflow: hidden;
    }

    .header-actions a,
    .header-actions .primary-button,
    .header-actions .ghost-button {
        width: 100%;
        max-width: 100%;
        padding-inline: 8px;
        font-size: 14px;
        white-space: normal;
    }

    .hero {
        padding-top: 28px;
    }

    .listing-grid,
    .filter-bar,
    .gallery,
    .two-col,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .hero h1,
    .page-title h1,
    .form-shell h1,
    .auth-card h1 {
        font-size: 30px;
    }
}
