:root {
    --bg: #f3f3f3;
    --surface: #ffffff;
    --surface-soft: #f8f8f8;
    --text: #1d2220;
    --text-muted: #6f7472;
    --line: rgba(29, 34, 32, 0.12);
    --green: #0f8b3b;
    --green-dark: #0d6f31;
    --green-soft: #edf7f0;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --shadow: 0 10px 28px rgba(20, 24, 23, 0.06);
    --shell: 1280px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

a {
    color: inherit;
}

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

button,
input,
select,
textarea {
    font: inherit;
}

.site-bg {
    display: none;
}

.shell {
    width: min(calc(100% - 2rem), var(--shell));
    margin: 0 auto;
}

.main {
    min-height: calc(100vh - 160px);
}

.header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: grid;
    grid-template-columns: 240px minmax(220px, 1fr) auto;
    align-items: center;
    min-height: 68px;
    gap: 0;
}

.logo {
    display: inline-flex;
    align-items: center;
    min-height: 68px;
    padding-right: 1.5rem;
    text-decoration: none;
    border-right: 1px solid var(--line);
}

.logo-text {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.95rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    color: #0d4f25;
}

.search-form {
    display: flex;
    align-items: center;
    min-height: 68px;
    padding: 0 1.75rem;
}

.search-icon {
    color: var(--green);
    font-size: 1.5rem;
    line-height: 1;
}

.search-input {
    width: 100%;
    min-width: 0;
    padding-left: 0.9rem;
    border: 0;
    background: transparent;
    color: var(--text);
    font-size: 1rem;
}

.search-input:focus {
    outline: none;
}

.search-input::placeholder {
    color: #aaadaf;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 0.8rem;
    border-radius: 999px;
    text-decoration: none;
    color: #3f4244;
    font-size: 0.95rem;
    transition: background-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.nav-link-cta {
    color: var(--green);
    font-weight: 500;
    background: rgba(15, 139, 59, 0.08);
}

.nav-link:hover {
    background: rgba(15, 139, 59, 0.08);
    color: #1d2220;
    transform: translateY(-1px);
}

.nav-link-cta:hover {
    background: rgba(15, 139, 59, 0.14);
    color: var(--green-dark);
}

.nav-link-button {
    padding: 0 1rem;
    border: 1px solid rgba(15, 139, 59, 0.24);
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 139, 59, 0.06);
}

.nav-link-button:hover {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
    box-shadow: 0 10px 22px rgba(15, 139, 59, 0.16);
}

.nav-link-logout {
    color: var(--green-dark);
    font-weight: 600;
}

.user-menu {
    position: relative;
}

.user-menu-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.user-menu-trigger:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 14px rgba(15, 139, 59, 0.35);
}

.user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    line-height: 1;
}
.user-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 200px;
    padding: 0.5rem 0;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: 0 12px 32px rgba(20, 24, 23, 0.12);
    border: 1px solid var(--line);
    z-index: 100;
    display: none;
}

.user-menu-dropdown.is-open {
    display: block;
}

.user-menu-item {
    display: block;
    padding: 0.6rem 1rem;
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.15s ease;
}

.user-menu-item:hover {
    background: var(--green-soft);
    color: var(--green-dark);
}

.user-menu-item-logout {
    font-weight: 600;
    color: var(--green-dark);
    border-top: 1px solid var(--line);
    margin-top: 0.25rem;
    padding-top: 0.75rem;
}

.flash-messages {
    padding-top: 1rem;
}

.flash {
    padding: 0.9rem 1rem;
    border-radius: 12px;
    margin-bottom: 0.6rem;
}

.flash-success {
    background: #e9f7ee;
    color: #126236;
}

.flash-danger {
    background: #ffe8e2;
    color: #9b3f22;
}

.flash-info {
    background: #edf5fb;
    color: #2f607b;
}

.hero {
    position: relative;
    min-height: 680px;
    overflow: hidden;
}

.hero-media,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-media-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.1) contrast(0.9) brightness(0.56);
}

.hero-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.28));
}

.hero-centered {
    position: relative;
    z-index: 1;
    min-height: 680px;
    display: grid;
    place-items: center;
    text-align: center;
}

.hero-title {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(3.6rem, 8vw, 5.6rem);
    line-height: 0.95;
    letter-spacing: -0.06em;
    color: #fff;
}

.hero-tagline {
    margin: 1rem 0 1.8rem;
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.2rem;
}

.hero-actions {
    display: flex;
    gap: 0.85rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 1.3rem;
    border-radius: 8px;
    border: 0;
    text-decoration: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--green);
    color: #fff;
}

.btn-secondary {
    background: #fff;
    color: var(--text);
    border: 1px solid var(--line);
}

.btn-small {
    min-height: 40px;
    padding: 0 1rem;
}

.btn-block {
    width: 100%;
}

.section {
    padding: 4.5rem 0;
}

.section-heading {
    max-width: 900px;
    margin: 0 auto 2rem;
    text-align: center;
}

.section-title {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.section-copy {
    margin: 0.75rem auto 0;
    max-width: 760px;
    color: var(--text-muted);
}

.eyebrow,
.card-kicker,
.mini-label {
    display: inline-block;
    margin-bottom: 0.8rem;
    color: var(--green);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

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

.category-card,
.listing-card,
.panel,
.auth-page,
.auth-aside,
.feature-card,
.how-card {
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    border-radius: var(--radius-md);
}

.category-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-decoration: none;
}

.category-card-media {
    min-height: 210px;
    background: #eef1ef;
}

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

.category-card-fallback,
.listing-card-fallback,
.detail-fallback {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    font-family: "Space Grotesk", sans-serif;
    font-size: 3.2rem;
    color: rgba(29, 34, 32, 0.5);
    background: #edf0ed;
}

.category-card-body {
    padding: 1rem 1rem 1.15rem;
}

.category-card-title {
    margin: 0 0 0.25rem;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.35rem;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.category-card-link,
.text-link {
    color: var(--green-dark);
    text-decoration: none;
    font-weight: 600;
}

.page-hero {
    padding: 2rem 0 1rem;
}

.page-hero-compact {
    padding-bottom: 0.5rem;
}

.page-hero-inner {
    max-width: 920px;
}

.page-hero h1 {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

.page-hero p {
    margin: 0.7rem 0 0;
    color: var(--text-muted);
}

.panel {
    padding: 1.1rem 1.2rem;
}

.panel-heading {
    margin-bottom: 0.85rem;
}

.panel-heading h2,
.form-panel h2,
.tips-panel h2,
.auth-page h2,
.map-header h2 {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.4rem;
    letter-spacing: -0.04em;
}

.search-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 1rem;
    align-items: start;
    padding-bottom: 3rem;
}

.search-sidebar {
    display: grid;
    gap: 0.75rem;
}

.search-results-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.search-results-count {
    display: block;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.8rem;
    line-height: 1;
}

.search-results-subtitle,
.auth-copy {
    margin: 0.45rem 0 0;
    color: var(--text-muted);
}

.map-focus-clear {
    display: inline-block;
    margin-top: 0.35rem;
    font-size: 0.9rem;
}

.sort-form {
    display: grid;
    gap: 0.35rem;
}

.sort-form label {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text-muted);
}

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

.filter-btn {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 1rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface-soft);
    text-decoration: none;
}

.filter-btn.active,
.filter-btn:hover {
    background: #2d7560;
    border-color: #2d7560;
    color: #fff;
}

.sort-select,
.form-control,
.price-inputs input {
    width: 100%;
    min-height: 50px;
    padding: 0.75rem 0.95rem;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
}

.form-control::placeholder,
.price-inputs input::placeholder {
    color: #8a918e;
    opacity: 1;
}

.sort-select:focus,
.form-control:focus,
.price-inputs input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(15, 139, 59, 0.55);
    box-shadow: 0 0 0 3px rgba(15, 139, 59, 0.10);
}

.price-filter-form {
    display: grid;
    gap: 0.85rem;
}

.price-inputs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

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

.no-results {
    display: grid;
    gap: 0.9rem;
}

.no-results-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: #eef1ef;
}

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

.listing-card {
    display: block;
    overflow: hidden;
    text-decoration: none;
}

.listing-card-img {
    min-height: 210px;
    background: #eef1ef;
}

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

.listing-card-fallback {
    min-height: 210px;
    font-size: 3rem;
}

.listing-card-body {
    padding: 1rem;
}

.listing-card-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.listing-card-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 0.75rem;
    border-radius: 999px;
    background: var(--green-soft);
    color: var(--green-dark);
    font-size: 0.8rem;
    font-weight: 700;
}

.listing-card-title {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.25rem;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.listing-card-price {
    margin: 0.6rem 0 0;
    font-weight: 700;
    color: var(--green-dark);
}

.listing-card-location {
    color: var(--text-muted);
    font-size: 0.86rem;
}

.listing-card-owner {
    margin: 0.4rem 0 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.pagination {
    margin-top: 1.5rem;
    padding: 1rem 0;
}

.pagination-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 1rem;
}

.pagination-link,
.pagination-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    padding: 0.4rem 0.65rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    text-decoration: none;
    color: var(--text);
}

.pagination-link:hover:not(.is-disabled),
.pagination-page:hover {
    background: var(--green-soft);
    color: var(--green-dark);
}

.pagination-link.is-disabled {
    color: var(--text-muted);
    cursor: default;
}

.pagination-pages {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.pagination-page.is-current {
    background: var(--green);
    color: #fff;
}

.pagination-ellipsis {
    padding: 0 0.25rem;
    color: var(--text-muted);
}

.map-container {
    position: sticky;
    top: 90px;
    align-self: start;
}

.map-frame {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.map-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1rem 0;
}

.map-expand-btn {
    flex-shrink: 0;
    padding: 0.45rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--green-dark);
    background: var(--green-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.map-expand-btn:hover {
    background: #d4ecd9;
}

#map {
    height: 520px;
    width: 100%;
    margin-top: 0.7rem;
}

.map-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}

.map-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.map-modal {
    position: relative;
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.map-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--line);
    flex-shrink: 0;
}

.map-modal-header h2 {
    margin: 0;
    font-size: 1.15rem;
}

.map-modal-close {
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    border-radius: var(--radius-sm);
}

.map-modal-close:hover {
    color: var(--text);
    background: var(--surface-soft);
}

.map-modal-container {
    flex: 1;
    min-height: 400px;
    height: 70vh;
}

.auth-shell,
.form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(360px, 0.7fr);
    gap: 1.2rem;
    padding: 2.4rem 0 3.2rem;
}

.auth-aside {
    position: relative;
    min-height: 740px;
    overflow: hidden;
    padding: 0;
    background: #f7f8f7;
}

.auth-aside-image,
.auth-aside-overlay {
    position: absolute;
    inset: 0;
}

.auth-aside-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-aside-overlay {
    background: linear-gradient(180deg, rgba(8, 20, 14, 0.34), rgba(8, 20, 14, 0.76));
}

.auth-aside-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    padding: 2rem;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.24);
}

.auth-aside-content-dark {
    justify-content: center;
    padding: 2.2rem;
}

.auth-aside h1 {
    margin: 0.4rem 0 0.9rem;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.auth-aside-media h1,
.auth-aside-media p,
.auth-aside-media .auth-eyebrow,
.auth-aside-media .auth-point strong,
.auth-aside-media .auth-point span {
    color: #fff;
}

.auth-aside-soft {
    background:
        radial-gradient(circle at top right, rgba(15, 139, 59, 0.10), transparent 28%),
        linear-gradient(180deg, #f8faf8 0%, #f1f5f2 100%);
}

.auth-aside p {
    margin: 0;
    color: var(--text-muted);
}

.auth-points {
    display: grid;
    gap: 0.9rem;
    margin-top: 1.6rem;
}

.auth-point {
    display: grid;
    gap: 0.2rem;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
}

.auth-point strong,
.auth-mini-stat strong {
    font-size: 1rem;
}

.auth-point span,
.auth-mini-stat span,
.auth-quote span {
    font-size: 0.95rem;
    line-height: 1.5;
}

.auth-page {
    padding: 1.6rem;
}

.auth-form-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.profile-page {
    padding: 1.5rem;
}
.profile-page-title {
    margin: 0 0 1.25rem;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.35rem;
}
.profile-info {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}
.profile-avatar {
    width: 64px;
    height: 64px;
    min-width: 64px;
    min-height: 64px;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    font-size: 1.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}
.profile-avatar-img {
    width: 64px;
    height: 64px;
    min-width: 64px;
    min-height: 64px;
    object-fit: cover;
    border-radius: 50%;
}
.profile-dl {
    margin: 0;
}
.profile-dl dt {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.6rem;
}
.profile-dl dt:first-child {
    margin-top: 0;
}
.profile-dl dd {
    margin: 0.15rem 0 0;
    font-weight: 500;
}
.profile-edit {
    margin-bottom: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
}
.profile-edit-title {
    margin: 0 0 0.75rem;
    font-size: 1rem;
}
.profile-form .form-group {
    margin-bottom: 0.75rem;
}

.file-upload-wrap {
    position: relative;
}
.file-upload-input {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}
.file-upload-label {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 48px;
    padding: 0 1.25rem;
    background: linear-gradient(180deg, #fff 0%, #f8f9f8 100%);
    border: 2px dashed rgba(15, 139, 59, 0.35);
    border-radius: var(--radius-md);
    color: var(--green-dark);
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.file-upload-label:hover {
    border-color: var(--green);
    background: var(--green-soft);
    box-shadow: 0 4px 14px rgba(15, 139, 59, 0.1);
}
.file-upload-label.has-file {
    border-style: solid;
    border-color: var(--green);
    background: var(--green-soft);
}
.file-upload-icon {
    font-size: 1.35rem;
    line-height: 1;
}
.file-upload-text {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.auth-form-header {
    margin-bottom: 1rem;
}

.auth-form-header h2 {
    margin-bottom: 0.35rem;
}

.auth-quote {
    margin-top: 1.4rem;
    padding: 1rem 1.1rem;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid var(--line);
}

.auth-quote p {
    margin: 0 0 0.4rem;
    color: var(--text);
}

.auth-mini-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    margin-top: 1rem;
}

.auth-mini-stat {
    display: grid;
    gap: 0.15rem;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid var(--line);
}

.form-group {
    display: grid;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.form-group label,
.form-check label {
    font-weight: 700;
    font-size: 0.95rem;
}

.form-group textarea {
    min-height: 8rem;
    resize: vertical;
}

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

.form-check {
    margin-top: 0.4rem;
}

.form-actions {
    margin-top: 1.4rem;
}

.help {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.help-error {
    color: #9b3f22;
}

.auth-switch {
    margin: 1rem 0 0;
    color: var(--text-muted);
}

.tips-list {
    margin: 1rem 0 0;
    padding-left: 1.2rem;
    color: var(--text-muted);
}

.tips-list li + li {
    margin-top: 0.65rem;
}

.detail-page {
    padding: 2rem 0 3rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 1rem;
}

.detail-visual,
.detail-summary {
    padding: 1rem;
}

.detail-image {
    width: 100%;
    min-height: 460px;
    max-height: 640px;
    object-fit: cover;
    border-radius: 18px;
    background: #eef1ef;
}

.detail-title {
    margin: 0.7rem 0 0.8rem;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.detail-price {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--green-dark);
}

.detail-location {
    margin: 0.9rem 0 1.1rem;
    color: var(--text-muted);
}

.detail-description {
    white-space: pre-wrap;
}

.detail-actions {
    margin-top: 1.8rem;
}

.how-content {
    padding-bottom: 3rem;
}

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

.feature-card,
.how-card {
    padding: 1.4rem;
}

.feature-card h3,
.how-card h2 {
    margin: 0.8rem 0 0.5rem;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.3rem;
}

.feature-card p,
.how-card p {
    margin: 0;
    color: var(--text-muted);
}

.how-hero {
    padding-bottom: 1.5rem;
}

.how-hero-minimal {
    padding: 3rem 0 1.5rem;
}

.how-hero-minimal-inner {
    max-width: 760px;
    text-align: center;
}

.how-hero-minimal-inner .eyebrow {
    margin-bottom: 1rem;
}

.how-hero-minimal-inner h1 {
    margin-bottom: 0.9rem;
}

.how-hero-minimal-inner p {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.05rem;
}

.how-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) 320px;
    gap: 1rem;
    align-items: end;
}

.how-hero-copy {
    max-width: 820px;
}

.how-hero-summary {
    display: grid;
    gap: 0.85rem;
}

.how-summary-item {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 0.75rem;
    align-items: start;
}

.how-summary-item strong {
    color: var(--green-dark);
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.1rem;
}

.how-summary-item span {
    color: var(--text);
}

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

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

.how-list {
    margin: 1rem 0 0;
    padding-left: 1.1rem;
    color: var(--text-muted);
}

.how-list li + li {
    margin-top: 0.5rem;
}

.how-flow {
    margin-top: 3.5rem;
}

.how-content-minimal {
    padding-top: 0.5rem;
    padding-bottom: 4rem;
}

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

.how-simple-card {
    padding: 1.5rem;
    border-radius: var(--radius-md);
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.how-simple-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 48px;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: var(--green-soft);
    color: var(--green-dark);
    font-weight: 700;
    font-family: "Space Grotesk", sans-serif;
}

.how-simple-card h2 {
    margin: 0 0 0.55rem;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.45rem;
    letter-spacing: -0.04em;
}

.how-simple-card p {
    margin: 0;
    color: var(--text-muted);
}

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

.how-timeline-item {
    position: relative;
    padding: 1.35rem 1.4rem;
    border-radius: var(--radius-md);
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.how-timeline-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: var(--green-soft);
    color: var(--green-dark);
    font-weight: 700;
    margin-bottom: 0.9rem;
}

.how-timeline-item h3 {
    margin: 0 0 0.45rem;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.2rem;
    letter-spacing: -0.03em;
}

.how-timeline-item p {
    margin: 0;
    color: var(--text-muted);
}

.feature-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    border-radius: 999px;
    background: var(--green-soft);
    color: var(--green-dark);
    font-weight: 700;
}

.testimonials {
    padding: 4rem 0;
    background: #23463d;
}

.section-heading-light .eyebrow,
.section-heading-light .section-title,
.section-heading-light .section-copy {
    color: #fff;
}

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

.testimonial {
    padding: 1.4rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.testimonial-text {
    margin: 0 0 1rem;
}

.testimonial-author {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
}

/* PWA install banner */
.install-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 1rem 1.5rem;
    background: #23463d;
    color: #fff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}
.install-banner.is-visible {
    transform: translateY(0);
}
.install-banner-inner {
    max-width: var(--shell);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.install-banner-text {
    flex: 1;
    min-width: 200px;
}
.install-banner-actions {
    display: flex;
    gap: 0.75rem;
}
.install-banner-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 500;
    cursor: pointer;
}
.install-banner-btn-primary {
    background: var(--green);
    color: #fff;
}
.install-banner-btn-primary:hover {
    background: var(--green-dark);
}
.install-banner-btn-secondary {
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.4);
}
.install-banner-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}
.footer-install-link {
    white-space: nowrap;
}

.footer {
    padding: 1.2rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    padding: 1.3rem 1.5rem;
    border-radius: var(--radius-lg);
    background: #23463d;
    color: rgba(255, 255, 255, 0.84);
}

.footer-brand {
    display: inline-block;
    margin-bottom: 0.5rem;
    color: #fff;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
}

.footer-copy {
    margin: 0;
    max-width: 30rem;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
}

@media (max-width: 1080px) {
    .header-inner,
    .search-layout,
    .auth-shell,
    .form-layout,
    .detail-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .logo {
        border-right: 0;
        padding-right: 0;
    }

    .nav {
        justify-content: flex-start;
        padding-bottom: 0.65rem;
    }

    .how-hero-inner,
    .how-grid-steps,
    .how-timeline,
    .how-simple-grid {
        grid-template-columns: 1fr;
    }

    .auth-aside {
        min-height: 460px;
    }

    .map-container {
        position: static;
    }

    #map {
        height: 400px;
    }
}

@media (max-width: 760px) {
    .shell {
        width: min(calc(100% - 1.2rem), var(--shell));
    }

    .header-inner {
        gap: 0.35rem;
        padding: 0.5rem 0;
        min-height: auto;
    }

    .logo,
    .search-form {
        min-height: 52px;
    }

    .logo-text {
        font-size: 1.55rem;
    }

    .hero,
    .hero-centered {
        min-height: 430px;
    }

    .search-results-header,
    .price-actions,
    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero .hero-actions {
        align-items: center;
    }

    .price-inputs,
    .form-row {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 3.2rem 0;
    }

    .panel,
    .auth-page,
    .auth-aside,
    .footer-grid {
        padding: 1.2rem;
    }

    .auth-aside {
        display: none;
    }

    .auth-shell {
        grid-template-columns: 1fr;
        padding: 1rem 0 2rem;
    }

    .auth-page {
        max-width: 420px;
        margin: 0 auto;
    }

    .auth-form-header .auth-copy {
        display: none;
    }

    .auth-mini-stats {
        grid-template-columns: 1fr;
    }

    .detail-image {
        min-height: 280px;
    }

    .detail-calendar {
        padding: 1rem;
        margin-top: 1.5rem;
    }

    .detail-calendar-top {
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    .detail-calendar-title {
        font-size: 1.25rem;
    }

    .calendar-legend {
        gap: 0.6rem;
    }

    .calendar-legend-item {
        font-size: 0.82rem;
    }

    .calendar-shell {
        padding: 0.75rem;
    }

    .calendar-nav {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "month month"
            "prev next"
            "today today";
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }

    .calendar-prev {
        grid-area: prev;
        justify-self: start;
    }

    .calendar-next {
        grid-area: next;
        justify-self: end;
    }

    .calendar-month-block {
        grid-area: month;
    }

    .calendar-today-btn {
        grid-area: today;
        justify-self: stretch;
        min-height: 44px;
    }

    .calendar-nav-btn {
        min-width: 44px;
        min-height: 44px;
    }

    .calendar-month-label {
        font-size: 1.15rem;
    }

    .availability-calendar {
        min-height: 300px;
    }

    .cal-grid {
        gap: 0.35rem;
    }

    .cal-grid-head {
        margin-bottom: 0.35rem;
    }

    .cal-weekday {
        font-size: 0.7rem;
    }

    .cal-cell {
        min-height: 56px;
        padding: 0.4rem 0.35rem;
        border-radius: 12px;
    }

    .cal-cell.is-free {
        border: 2px solid var(--green-dark);
        box-shadow: 0 0 0 1px rgba(13, 111, 49, 0.2);
    }

    .cal-cell.is-booked {
        border: 2px solid #b42323;
        box-shadow: 0 0 0 1px rgba(180, 35, 35, 0.2);
    }

    .cal-date {
        font-size: 0.95rem;
    }

    .cal-state {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .detail-calendar {
        padding: 0.75rem;
    }

    .detail-calendar-title {
        font-size: 1.1rem;
    }

    .calendar-shell {
        padding: 0.5rem;
    }

    .calendar-legend {
        gap: 0.5rem;
    }

    .calendar-legend-item {
        font-size: 0.75rem;
    }

    .cal-grid {
        gap: 0.25rem;
    }

    .cal-cell {
        min-height: 44px;
        padding: 0.3rem 0.25rem;
        border-radius: 8px;
    }

    .cal-cell.is-free {
        border: 2px solid var(--green-dark);
    }

    .cal-cell.is-booked {
        border: 2px solid #b42323;
    }

    .cal-cell .cal-state {
        display: none;
    }

    .cal-date {
        font-size: 0.85rem;
    }

    .cal-weekday {
        font-size: 0.65rem;
    }

    .calendar-month-label {
        font-size: 1rem;
    }
}

/* Inbox / conversations */
.page-section {
    padding: 2rem 0;
}

.page-title {
    font-size: 1.75rem;
    margin: 0 0 0.5rem;
}

.page-lead {
    color: var(--text-muted);
    margin: 0 0 1.5rem;
}

.conversation-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.conversation-item {
    border-bottom: 1px solid var(--line);
}

.conversation-link {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    text-decoration: none;
    color: var(--text);
}

.conversation-link:hover {
    background: var(--surface-soft);
}

.conversation-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--green-soft);
    color: var(--green-dark);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-transform: uppercase;
}

.conversation-body {
    flex: 1;
    min-width: 0;
}

.conversation-meta {
    margin-bottom: 0.25rem;
}

.conversation-listing {
    color: var(--text-muted);
    font-weight: 400;
}

.conversation-preview {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.conversation-time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.conversation-detail {
    max-width: 640px;
}

.conversation-header {
    margin-bottom: 1rem;
}

.conversation-title {
    font-size: 1.25rem;
    margin: 0.5rem 0 0;
}

.messages-panel {
    padding: 1rem;
}

.messages-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.message {
    margin-bottom: 1rem;
}

.message-bubble {
    max-width: 85%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
}

.message-sent .message-bubble {
    margin-left: auto;
    background: var(--green-soft);
    color: var(--text);
}

.message-sender {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.25rem;
}

.message-body {
    margin: 0 0 0.35rem;
    white-space: pre-wrap;
}

.message-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.message-form-inner {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
}

.message-form .message-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    resize: vertical;
    min-height: 80px;
}

.new-conversation-panel {
    max-width: 520px;
}

.new-conversation-listing {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.new-conversation-listing a {
    color: var(--green);
}

/* Availability calendar */
.detail-booking {
    margin-top: 2rem;
    padding: 1.5rem;
}

.booking-hint {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0 0 1rem;
}

.booking-form .booking-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 560px) {
    .booking-form .booking-fields {
        grid-template-columns: 1fr;
    }
}

.form-error {
    font-size: 0.85rem;
    color: #b91c1c;
    display: block;
    margin-top: 0.25rem;
}

.booking-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.booking-item {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.booking-item-main {
    flex: 1;
    min-width: 0;
}

.booking-listing {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
}

.booking-listing a {
    color: var(--green);
}

.booking-dates {
    margin: 0.25rem 0;
    font-weight: 600;
}

.booking-user {
    margin: 0.25rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.booking-message {
    margin: 0.5rem 0 0;
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-muted);
}

.booking-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.booking-action-form {
    display: inline-block;
}

.bookings-section-title {
    font-size: 1.1rem;
    margin: 2rem 0 0.75rem;
    color: var(--text);
}

.bookings-section-title:first-of-type {
    margin-top: 0;
}

.bookings-section-title .badge {
    display: inline-block;
    min-width: 1.4em;
    padding: 0.15em 0.5em;
    font-size: 0.85rem;
    background: var(--green);
    color: #fff;
    border-radius: 999px;
}

.no-results-inline {
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
}

.no-results-inline p {
    margin: 0;
    color: var(--text-muted);
}

.booking-status {
    flex-shrink: 0;
    font-size: 0.9rem;
    font-weight: 600;
}

.booking-status-accepted {
    color: var(--green-dark);
}

.booking-status-rejected {
    color: var(--text-muted);
}

.detail-calendar {
    margin-top: 2rem;
    padding: 1.4rem;
}

.detail-calendar-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.detail-calendar-title {
    margin: 0.25rem 0 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.5rem;
    letter-spacing: -0.04em;
}

.calendar-legend {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.calendar-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.calendar-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    display: inline-block;
    flex-shrink: 0;
}

.calendar-legend .calendar-dot-free {
    background-color: #0d6f31;
}

.calendar-legend .calendar-dot-booked {
    background-color: #b42323;
}

.calendar-legend .calendar-dot-today {
    background-color: #1f2c28;
}

.calendar-legend .calendar-dot-selected {
    background-color: var(--green);
}

.calendar-dot-free {
    background-color: #0d6f31;
}

.calendar-dot-booked {
    background-color: #b42323;
}

.calendar-legend-item--free {
    color: var(--green-dark);
    font-weight: 500;
}

.calendar-legend-item--booked {
    color: #b42323;
    font-weight: 500;
}

.calendar-legend-item--selected {
    color: var(--green-dark);
    font-weight: 500;
}

.calendar-dot-selected {
    background-color: var(--green);
}

.calendar-dot-today {
    background-color: #1f2c28;
}

.calendar-shell {
    border-radius: 20px;
    border: 1px solid rgba(29, 34, 32, 0.08);
    background: linear-gradient(180deg, #fbfcfb 0%, #f5f7f5 100%);
    padding: 1rem;
}

.calendar-nav {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.calendar-nav-btn {
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--text);
    cursor: pointer;
    font-size: 1.3rem;
    line-height: 1;
    transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.calendar-nav-btn:hover {
    background: var(--green);
    color: #fff;
    transform: translateY(-1px);
}

.calendar-today-btn {
    justify-self: end;
    height: 42px;
    padding: 0 1rem;
    border: 1px solid rgba(24, 135, 63, 0.18);
    border-radius: 999px;
    background: rgba(24, 135, 63, 0.08);
    color: var(--green);
    font-weight: 700;
    cursor: pointer;
    transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.calendar-today-btn:hover {
    background: rgba(24, 135, 63, 0.14);
    border-color: rgba(24, 135, 63, 0.28);
    transform: translateY(-1px);
}

.calendar-month-block {
    display: grid;
    justify-items: center;
}

.calendar-month-kicker {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.calendar-month-label {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.availability-calendar {
    min-height: 360px;
}

.calendar-loading {
    display: grid;
    place-items: center;
    min-height: 320px;
    color: var(--text-muted);
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.55rem;
}

.cal-grid-head {
    margin-bottom: 0.55rem;
}

.cal-weekday {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
}

.cal-cell {
    min-height: 90px;
    padding: 0.8rem 0.7rem;
    border-radius: 18px;
    border: 1px solid rgba(29, 34, 32, 0.08);
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.cal-cell:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(20, 24, 23, 0.06);
}

.cal-cell-empty {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.cal-date {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
}

.cal-state {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
}

.cal-cell.is-free {
    background: linear-gradient(180deg, #ffffff 0%, #f3fbf5 100%);
}

.cal-cell.is-free .cal-state {
    color: var(--green-dark);
}

.cal-cell.is-booked {
    background: linear-gradient(180deg, #fff6f6 0%, #ffe5e5 100%);
}

.cal-cell.is-booked .cal-state,
.cal-cell.is-booked .cal-date {
    color: #b42323;
}

.cal-cell.is-past {
    opacity: 0.56;
}

.cal-cell.is-today {
    border-color: #1f2c28;
    box-shadow: inset 0 0 0 1px #1f2c28;
}

.cal-cell.is-selected {
    background: linear-gradient(180deg, #e8f5ec 0%, #d4edd9 100%);
    border-color: var(--green);
    box-shadow: 0 0 0 2px rgba(15, 139, 59, 0.35);
}
.cal-cell.is-selected .cal-state {
    color: var(--green-dark);
}

.cal-cell-clickable {
    cursor: pointer;
}
.cal-cell-clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(13, 111, 49, 0.18);
}

.detail-booking-form {
    margin-top: 1.5rem;
}
.detail-booking-form-title {
    margin: 0 0 1rem;
    font-size: 1.15rem;
}
.booking-dates-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.detail-owner {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- Mobile menu (smartphone only, desktop unchanged) --- */
.mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
    color: var(--text);
    cursor: pointer;
    flex-shrink: 0;
}

.mobile-menu-btn-bar {
    position: absolute;
    width: 22px;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-menu-btn-bar:nth-child(1) { top: 16px; }
.mobile-menu-btn-bar:nth-child(2) { top: 24px; }
.mobile-menu-btn-bar:nth-child(3) { top: 32px; }

.mobile-menu {
    display: none;
}

@media (max-width: 760px) {
    .mobile-menu-btn {
        display: flex;
        position: relative;
    }

    .mobile-menu-btn .mobile-menu-btn-bar {
        position: absolute;
        left: 50%;
        margin-left: -11px;
    }

    .header-inner .search-form,
    .header-inner .nav {
        display: none !important;
    }

    .header-inner {
        grid-template-columns: 1fr auto;
    }

    .mobile-menu {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 100;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transition: visibility 0.25s ease, opacity 0.25s ease;
    }

    .mobile-menu.is-open {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-menu-backdrop {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
    }

    .mobile-menu-panel {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(320px, 88vw);
        max-width: 100%;
        background: var(--surface);
        box-shadow: -8px 0 24px rgba(0, 0, 0, 0.12);
        display: flex;
        flex-direction: column;
        transform: translateX(100%);
        transition: transform 0.25s ease;
        overflow: auto;
    }

    .mobile-menu.is-open .mobile-menu-panel {
        transform: translateX(0);
    }

    .mobile-menu-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 56px;
        padding: 0 1rem;
        border-bottom: 1px solid var(--line);
        flex-shrink: 0;
    }

    .mobile-menu-header .logo-text {
        font-size: 1.35rem;
    }

    .mobile-menu-close {
        width: 44px;
        height: 44px;
        padding: 0;
        border: 0;
        background: none;
        font-size: 1.75rem;
        line-height: 1;
        color: var(--text-muted);
        cursor: pointer;
        border-radius: var(--radius-sm);
    }

    .mobile-menu-close:hover {
        color: var(--text);
        background: var(--surface-soft);
    }

    .mobile-search-form {
        display: flex;
        align-items: center;
        padding: 0.75rem 1rem;
        gap: 0.5rem;
        border-bottom: 1px solid var(--line);
        background: var(--surface-soft);
    }

    .mobile-search-form .search-input {
        flex: 1;
        min-width: 0;
        padding: 0.6rem 0.75rem;
        border-radius: 8px;
        border: 1px solid var(--line);
        background: #fff;
    }

    .mobile-nav {
        display: flex;
        flex-direction: column;
        padding: 1rem;
        gap: 0.25rem;
    }

    .mobile-nav-link {
        display: block;
        padding: 0.85rem 1rem;
        border-radius: var(--radius-sm);
        text-decoration: none;
        color: var(--text);
        font-weight: 500;
        transition: background-color 0.15s ease;
    }

    .mobile-nav-link:hover {
        background: var(--green-soft);
        color: var(--green-dark);
    }

    .mobile-nav-link-cta {
        background: rgba(15, 139, 59, 0.1);
        color: var(--green-dark);
    }

    .mobile-nav-link-cta:hover {
        background: rgba(15, 139, 59, 0.18);
    }

    .mobile-nav-link-logout {
        margin-top: 0.5rem;
        border: 1px solid var(--line);
        text-align: center;
    }

    .mobile-nav-user {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        padding: 0.75rem 1rem;
        margin-bottom: 0.25rem;
    }
    .user-avatar-sm {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
        background: var(--green);
        color: #fff;
        font-size: 0.95rem;
        font-weight: 600;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .mobile-nav-user-name {
        font-weight: 600;
        color: var(--text);
    }
}
