* {
    box-sizing: border-box;
}

:root {
    --bg: #f3f7f5;
    --surface: #ffffff;
    --surface-soft: #f8faf9;
    --line: #dfe7e4;
    --text: #102033;
    --muted: #667085;
    --navy: #0b1f33;
    --navy-2: #12304a;
    --blue: #2563eb;
    --green: #138a72;
    --green-dark: #0f6f5d;
    --green-soft: #dff5ef;
    --gold-soft: #fff3d6;
    --danger: #dc2626;
    --shadow: 0 14px 34px rgba(15, 31, 51, .08);
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Malgun Gothic", sans-serif;
    background: var(--bg);
    color: var(--text);
}

a {
    color: var(--green-dark);
    text-decoration: none;
}

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

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
}

th,
td {
    border: 1px solid var(--line);
    padding: 10px;
    text-align: left;
    font-size: 14px;
    vertical-align: top;
}

th {
    background: var(--surface-soft);
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 16px;
}

.site-header {
    background: var(--navy);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
}

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

.logo {
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0;
}

.nav {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.nav a {
    color: rgba(255, 255, 255, .9);
    font-size: 14px;
    font-weight: 700;
}

.site-footer {
    padding: 28px 0;
    color: var(--muted);
    text-align: center;
}

.hero,
.card,
.form-card,
.chat-rooms,
.chat-window,
.kpi,
.mini-card,
.empty {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.hero {
    padding: 28px;
    margin: 24px 0;
}

.hero h1 {
    margin: 0 0 8px;
    font-size: 30px;
}

.hero p,
.muted,
.help {
    color: var(--muted);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border: 0;
    border-radius: 10px;
    background: var(--green);
    color: #fff;
    cursor: pointer;
    font-weight: 800;
}

.btn:hover {
    background: var(--green-dark);
}

.btn.secondary {
    background: #e8efec;
    color: var(--text);
}

.btn.danger {
    background: var(--danger);
}

.btn.warn {
    background: #c98112;
}

.btn.small {
    min-height: 34px;
    padding: 7px 12px;
    font-size: 13px;
}

.grid {
    display: grid;
    gap: 16px;
}

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

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

.card {
    overflow: hidden;
}

.card-body,
.form-card {
    padding: 20px;
}

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

.price {
    margin: 6px 0 10px;
    font-size: 20px;
    font-weight: 900;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef4ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 800;
    margin-right: 6px;
}

.badge.pending {
    background: var(--gold-soft);
    color: #946400;
}

.badge.active {
    background: var(--green-soft);
    color: var(--green-dark);
}

.badge.hidden,
.badge.rejected {
    background: #fee2e2;
    color: #991b1b;
}

.badge.completed,
.badge.approved {
    background: #e6eef8;
    color: var(--navy-2);
}

.badge.requested,
.badge.reserved {
    background: #ece9ff;
    color: #5b43bd;
}

.alert {
    padding: 14px 16px;
    border-radius: 12px;
    margin: 16px 0;
}

.alert.success {
    background: var(--green-soft);
    color: var(--green-dark);
}

.alert.error {
    background: #fee2e2;
    color: #991b1b;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-weight: 800;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cfdad6;
    border-radius: 10px;
    background: #fff;
    color: var(--text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: 3px solid rgba(19, 138, 114, .14);
    border-color: var(--green);
}

.form-group textarea {
    min-height: 110px;
    resize: vertical;
}

.detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 18px;
    margin: 24px 0;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0;
}

.gallery img {
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
}

.map-wrap {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 16px;
    margin: 20px 0;
}

.listing-list,
.messages,
.owner-inquiry-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.listing-list {
    max-height: 640px;
    overflow: auto;
}

.mini-card {
    padding: 14px;
}

#map {
    width: 100%;
    min-height: 640px;
    border-radius: 8px;
    background: #e5ece9;
}

.admin-actions,
.toolbar,
.home-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.empty {
    padding: 28px;
    color: var(--muted);
    text-align: center;
}

.chat-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 16px;
    margin: 20px 0;
}

.chat-rooms {
    padding: 12px;
}

.chat-window {
    padding: 18px;
}

.chat-room-link {
    display: block;
    padding: 12px;
    border-radius: 12px;
    color: var(--text);
}

.chat-room-link.active,
.msg.mine {
    background: var(--green-soft);
}

.messages {
    max-height: 480px;
    overflow: auto;
    margin-bottom: 14px;
}

.msg {
    padding: 12px 14px;
    border-radius: 14px;
    max-width: 78%;
}

.msg.mine {
    align-self: flex-end;
}

.msg.other {
    background: #edf2f0;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 18px 0;
}

.kpi {
    padding: 18px;
}

.kpi .num {
    font-size: 28px;
    font-weight: 900;
    margin-top: 8px;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 24px 0 12px;
}

.thumb-sm {
    width: 90px;
    height: 70px;
    object-fit: cover;
    border-radius: 10px;
}

.inline-form {
    display: inline;
}

.status-box,
.owner-inquiry-item {
    padding: 14px;
    border-radius: 14px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    margin: 12px 0;
}

.owner-inquiry-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
    font-weight: 800;
}

.owner-inquiry-meta {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 8px;
}

.owner-inquiry-msg {
    font-size: 14px;
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 10px;
    word-break: break-all;
}

.owner-chat-btn {
    width: 100%;
    background: var(--green);
    color: #fff;
    border-color: var(--green);
}

.owner-chat-btn:hover {
    background: var(--green-dark);
}

.disabled-btn {
    opacity: .65;
    cursor: not-allowed;
}

.mobile-only {
    display: none;
}

@media (max-width: 900px) {
    .grid-2,
    .grid-3,
    .detail-grid,
    .chat-layout,
    .map-wrap,
    .kpi-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    #map {
        min-height: 380px;
    }

    .nav {
        gap: 10px;
    }

    .header-inner {
        align-items: flex-start;
        padding: 12px 0;
    }

    .gallery img {
        height: 180px;
    }
}

/* Soft app-like theme inspired by the provided reference */
:root {
    --bg: #f4f4f7;
    --surface: rgba(255, 255, 255, .92);
    --surface-soft: #f8f7fb;
    --line: rgba(88, 82, 98, .16);
    --text: #21172f;
    --muted: #77727f;
    --primary: #8618d4;
    --primary-dark: #6f12b5;
    --primary-soft: #f0e4fb;
    --accent: #707070;
    --accent-soft: #eeeeef;
    --shadow: 0 18px 42px rgba(67, 55, 82, .13);
}

body {
    min-height: 100vh;
    background: linear-gradient(180deg, #ffffff 0%, var(--bg) 42%, #ededf2 100%);
    color: var(--text);
}

.container {
    max-width: 1200px;
}

.site-header {
    background: rgba(255, 255, 255, .78);
    color: var(--text);
    padding: 18px 0 8px;
    box-shadow: none;
    backdrop-filter: blur(18px);
}

.header-inner {
    width: min(1560px, calc(100vw - 32px));
    max-width: none;
    min-height: 76px;
    padding: 10px 14px;
    border: 1px solid rgba(112, 112, 112, .14);
    border-radius: 28px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 14px 34px rgba(67, 55, 82, .11);
}

.logo,
.footer-brand {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--primary);
    font-weight: 900;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 11px;
    background: var(--primary);
    color: #fff;
    font-size: 15px;
    box-shadow: 0 10px 22px rgba(134, 24, 212, .25);
}

.nav {
    min-width: 0;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}

.nav a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 42px;
    padding: 8px 12px;
    border-radius: 999px;
    color: #6f6f75;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    transition: background .16s ease, color .16s ease, transform .16s ease;
}

.nav a::before {
    content: attr(data-icon);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 9px;
    background: #f2f2f4;
    color: var(--primary);
    font-size: 13px;
    line-height: 1;
}

.nav a:hover {
    background: var(--primary-soft);
    color: var(--primary);
    transform: translateY(-1px);
}

main.container {
    padding-top: 20px;
    padding-bottom: 28px;
}

.hero,
.hero-box,
.card,
.form-card,
.mini-card,
.chat-rooms,
.chat-window,
.kpi,
.empty,
.empty-box,
.sidebar-card,
.main-card {
    border: 1px solid rgba(255, 255, 255, .82) !important;
    border-radius: 28px !important;
    background: rgba(255, 255, 255, .92) !important;
    box-shadow: var(--shadow) !important;
}

.card,
.mini-card,
.hero-box {
    overflow: hidden;
}

.btn,
.btn-link,
.more-btn,
.action-view,
.action-edit,
.action-verify,
.contact-btn,
.report-btn {
    border-radius: 18px !important;
    background: var(--primary) !important;
    color: #fff !important;
    box-shadow: 0 12px 28px rgba(134, 24, 212, .24);
}

.btn:hover,
.btn-link:hover,
.more-btn:hover,
.contact-btn:hover {
    background: var(--primary-dark) !important;
}

.btn-light,
.btn.secondary,
.inquiry-btn {
    background: #f1f1f3 !important;
    color: #4e4a55 !important;
    border: 1px solid rgba(112, 112, 112, .16) !important;
    box-shadow: none;
}

.delete-btn,
.btn.danger {
    background: #ef5b76 !important;
}

.complete-btn,
.chat-btn,
.owner-chat-btn {
    background: var(--primary) !important;
}

.badge,
.mini-badge {
    border-radius: 999px !important;
    background: var(--primary-soft) !important;
    color: var(--primary) !important;
    font-weight: 900;
}

.badge-status {
    background: #ede8ff !important;
    color: var(--primary) !important;
}

.badge-seller,
.mini-badge-seller {
    background: var(--accent-soft) !important;
    color: #66666b !important;
}

.badge-owner,
.mini-badge-owner {
    background: #e9e3ef !important;
    color: #6f12b5 !important;
}

.thumb-wrap,
.detail-gallery-item,
.preview-item,
.map-wrap,
#map,
.map-empty,
.photo-box {
    border-radius: 24px !important;
    border-color: rgba(102, 78, 190, .14) !important;
}

input,
select,
textarea,
.input,
.select,
.textarea {
    border-radius: 18px !important;
    border-color: rgba(102, 78, 190, .18) !important;
    background: rgba(255, 255, 255, .9) !important;
}

input:focus,
select:focus,
textarea:focus,
.input:focus,
.select:focus,
.textarea:focus {
    outline: 4px solid rgba(90, 69, 214, .13) !important;
    border-color: var(--primary) !important;
}

.site-footer {
    margin-top: 32px;
    padding: 24px 0 34px;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: min(1560px, calc(100vw - 32px));
    max-width: none;
    margin-left: auto;
    margin-right: auto;
    padding: 22px;
    border: 1px solid rgba(112, 112, 112, .14);
    border-radius: 28px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 14px 34px rgba(67, 55, 82, .1);
    text-align: left;
}

.footer-copy {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.footer-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
}

.home-hero {
    margin: 20px 0 26px;
}

.home-hero-inner {
    padding: 22px 28px 24px;
    border: 1px solid rgba(112, 112, 112, .14);
    border-radius: 28px;
    background: rgba(255, 255, 255, .94);
    box-shadow: var(--shadow);
}

.home-kicker {
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 16px;
    font-weight: 700;
}

.home-hero h1 {
    margin: 0 0 8px;
    color: var(--text);
    font-size: 21px;
    line-height: 1.24;
    font-weight: 900;
}

.home-hero p {
    max-width: 760px;
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.75;
}

.home-section {
    margin-bottom: 34px;
}

.home-listings .home-card {
    color: var(--text);
}

.home-card-title {
    margin: 0 0 8px;
    color: var(--primary);
    font-size: 19px;
    line-height: 1.45;
}

.home-no-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 220px;
    background: var(--primary-soft);
    color: var(--muted);
    font-size: 20px;
    font-weight: 800;
}

.auth-page {
    padding-top: 18px;
    padding-bottom: 28px;
}

.auth-card {
    padding: 32px 34px 30px;
}

.auth-card h1 {
    margin-bottom: 28px !important;
}

.auth-field {
    margin-bottom: 22px !important;
}

.auth-field label {
    margin-bottom: 10px !important;
}

.auth-field input {
    min-height: 44px;
}

.auth-card button[type="submit"] {
    margin-top: 2px;
    min-height: 44px;
}

.auth-links {
    margin-top: 22px !important;
    padding-bottom: 4px;
    row-gap: 10px;
}

.list-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin: 24px 0 18px;
}

.list-page-head h1 {
    margin: 0 0 8px;
    font-size: 30px;
}

.listing-card {
    color: var(--text);
}

.listing-card-title {
    margin: 0 0 8px;
    color: var(--primary);
    font-size: 19px;
    line-height: 1.45;
}

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0;
}

.listing-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(300px, .86fr);
    gap: 18px;
    align-items: start;
}

.listing-detail-main,
.listing-detail-side .sidebar-card {
    padding: 24px;
}

.listing-detail-title {
    margin: 0 0 12px;
    color: var(--text);
    font-size: 30px;
    line-height: 1.35;
}

.listing-detail-price {
    margin-bottom: 14px;
    color: var(--text);
    font-size: 24px;
    font-weight: 900;
}

.listing-detail-address {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
}

.detail-section {
    margin-top: 28px;
}

.detail-section h2,
.listing-detail-side h2 {
    margin: 0 0 14px;
    font-size: 18px;
    line-height: 1.35;
}

.detail-gallery-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: var(--primary-soft);
}

.detail-gallery-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.detail-gallery-track::-webkit-scrollbar {
    display: none;
}

.detail-gallery-slide {
    position: relative;
    flex: 0 0 100%;
    aspect-ratio: 4 / 3;
    margin: 0;
    overflow: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.detail-gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-gallery-slide figcaption {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(32, 22, 63, .78);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.detail-gallery-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    background: rgba(32, 22, 63, .64);
    color: #fff;
    cursor: pointer;
    font-size: 34px;
    line-height: 1;
    transform: translateY(-50%);
}

.detail-gallery-arrow.prev {
    left: 14px;
}

.detail-gallery-arrow.next {
    right: 14px;
}

.detail-gallery-arrow:disabled {
    opacity: .28;
    cursor: default;
}

.detail-empty-photo {
    min-height: 220px;
}

.info-table {
    overflow: hidden;
    border-radius: 18px;
}

.detail-description {
    color: var(--text);
    font-size: 15px;
    line-height: 1.9;
}

.listing-detail-side {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.listing-detail-side .sidebar-card {
    margin: 0;
}

.seller-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 0;
    color: var(--muted);
    border-bottom: 1px solid rgba(102, 78, 190, .12);
}

.seller-row strong {
    color: var(--text);
}

.detail-contact {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.contact-btn {
    width: 100%;
}

.owner-inquiry-card {
    display: grid;
    gap: 6px;
    color: var(--text);
}

.owner-inquiry-card span {
    color: var(--muted);
    font-size: 13px;
}

.map-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    padding: 18px;
    border-radius: 24px;
    background: var(--primary-soft);
    color: var(--muted);
    text-align: center;
}

.map-search-shell {
    display: grid;
    grid-template-columns: 390px minmax(0, 1fr);
    gap: 14px;
    width: calc(100vw - 32px);
    min-height: calc(100vh - 158px);
    margin: 12px 0 18px calc(50% - 50vw + 16px);
}

.map-search-panel,
.map-canvas-panel {
    min-height: calc(100vh - 158px);
    border: 1px solid rgba(112, 112, 112, .14);
    border-radius: 24px;
    background: rgba(255, 255, 255, .94);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.map-search-panel {
    display: flex;
    flex-direction: column;
}

.map-search-top {
    padding: 22px 20px 16px;
    border-bottom: 1px solid rgba(112, 112, 112, .12);
}

.map-search-top h1 {
    margin: 0 0 8px;
    font-size: 26px;
    line-height: 1.2;
}

.map-search-top p {
    margin: 0 0 16px;
    line-height: 1.55;
}

.map-search-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    margin-bottom: 12px;
}

.map-search-box input {
    min-height: 44px;
    padding: 0 14px;
}

.map-search-box button,
.map-filter-row button,
.map-floating-tools button {
    border: 0;
    border-radius: 14px;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    font-weight: 900;
}

.map-search-box button {
    min-width: 64px;
}

.map-filter-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
}

.map-filter-row::-webkit-scrollbar {
    display: none;
}

.map-filter-row button {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0 12px;
    background: #f1f1f3;
    color: #4e4a55;
    border: 1px solid rgba(112, 112, 112, .14);
}

.map-result-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(112, 112, 112, .12);
}

.map-result-head span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.map-search-shell .map-listing-list {
    flex: 1;
    max-height: none;
    padding: 12px;
    overflow: auto;
}

.map-search-shell .map-mini-card {
    display: block;
    border-radius: 18px !important;
    box-shadow: none !important;
}

.map-search-shell .map-mini-card:hover {
    border-color: rgba(134, 24, 212, .36) !important;
    background: #fbf8ff !important;
}

.map-search-shell .map-detail-link {
    display: inline-flex;
    align-items: center;
    margin-top: 10px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 900;
}

.map-canvas-panel {
    position: relative;
}

.map-canvas-panel #map {
    min-height: calc(100vh - 158px);
    height: 100%;
    border-radius: 24px !important;
}

.map-floating-tools {
    position: absolute;
    top: 16px;
    left: 50%;
    z-index: 2;
    transform: translateX(-50%);
}

.map-floating-tools button {
    min-height: 42px;
    padding: 0 18px;
    box-shadow: 0 12px 28px rgba(67, 55, 82, .18);
}

@media (min-width: 901px) and (max-width: 1240px) {
    .header-inner {
        gap: 12px;
        padding: 10px 12px;
    }

    .logo {
        font-size: 18px;
    }

    .nav {
        gap: 6px;
    }

    .nav a {
        min-height: 38px;
        padding: 7px 9px;
        font-size: 12px;
    }

    .nav a::before {
        width: 22px;
        height: 22px;
        font-size: 12px;
    }
}

@media (max-width: 900px) {
    .site-header {
        position: fixed;
        left: 0;
        right: 0;
        top: auto;
        bottom: 0;
        padding: 0 10px 10px;
    }

    .header-inner {
        min-height: auto;
        border-radius: 22px;
        flex-direction: row;
        align-items: stretch;
        gap: 0;
        padding: 8px;
    }

    .logo {
        display: none;
    }

    .nav {
        width: 100%;
        justify-content: space-between;
        gap: 4px;
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .nav::-webkit-scrollbar {
        display: none;
    }

    .nav a {
        flex: 0 0 auto;
        flex-direction: column;
        gap: 4px;
        min-width: 60px;
        padding: 7px 8px;
        font-size: 11px;
    }

    main.container {
        padding-bottom: 96px;
    }

    .footer-inner {
        width: auto;
        max-width: none;
        margin-left: 0;
        margin-right: 0;
        flex-direction: column;
        align-items: flex-start;
    }

    .home-hero {
        margin-top: 14px;
    }

    .home-hero-inner {
        padding: 28px 20px 30px;
    }

    .home-hero h1 {
        font-size: 16px;
    }

    .home-hero p {
        font-size: 15px;
    }

    .section-title {
        align-items: flex-start;
        gap: 12px;
    }

    .listing-detail-layout {
        grid-template-columns: 1fr;
    }

    .map-search-shell {
        grid-template-columns: 1fr;
        width: 100%;
        min-height: 0;
        margin-left: 0;
    }

    .map-search-panel,
    .map-canvas-panel {
        min-height: auto;
    }

    .map-canvas-panel {
        min-height: 420px;
        order: -1;
    }

    .map-canvas-panel #map {
        min-height: 420px;
    }

    .map-search-shell .map-listing-list {
        max-height: none;
    }

    .detail-gallery-arrow {
        display: none;
    }

    .info-table,
    .info-table tbody,
    .info-table tr,
    .info-table th,
    .info-table td {
        display: block;
        width: 100%;
    }

    .info-table th {
        border-bottom: 0;
    }
}

@media (max-width: 560px) {
    .auth-page {
        margin-top: 22px !important;
        padding-left: 14px;
        padding-right: 14px;
    }

    .auth-card {
        padding: 30px 20px 28px;
    }

    .auth-card h1 {
        margin-bottom: 30px !important;
    }

    .auth-links {
        padding-top: 2px;
        padding-bottom: 8px;
        gap: 12px !important;
    }

    .home-hero-inner {
        padding: 24px 18px 26px;
    }

    .home-kicker {
        font-size: 14px;
    }

    .home-hero h1 {
        font-size: 14px;
    }

    .home-actions {
        width: 100%;
    }

    .home-actions .btn {
        flex: 1 1 100%;
    }

    .section-title {
        flex-direction: column;
    }

    .section-title .btn {
        width: 100%;
    }

    .list-page-head {
        flex-direction: column;
        align-items: stretch;
    }
}
