: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;
    /* Legal pages: hero title + body share the same readable width */
    --legal-doc-max: 920px;
}

* {
    box-sizing: border-box;
}

/* Toast notification (top-right), theme vert */
.toast {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
    padding: 0.75rem 1.25rem;
    background: var(--green-dark);
    color: #fff;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 20px rgba(13, 111, 49, 0.35);
    opacity: 0;
    transform: translateX(100%);
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    max-width: min(320px, calc(100vw - 2rem));
}

.toast.toast-visible {
    opacity: 1;
    transform: translateX(0);
    visibility: visible;
}

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: 1000;
    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 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;
    gap: 0.25rem;
    min-height: 68px;
    padding: 0 1.75rem;
}

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

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

.search-submit {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2.15rem;
    margin-left: 0.15rem;
    padding: 0;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    background: transparent;
    color: #9aa0a6;
    cursor: pointer;
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.search-submit:hover {
    color: var(--green-dark);
    background: var(--green-soft);
    border-color: rgba(13, 79, 37, 0.12);
}

.search-submit:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

.search-submit svg {
    display: block;
}

.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;
}

.lang-select-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}
.lang-select-wrap--right {
    margin-left: 0.5rem;
}
.lang-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    line-height: 1;
    flex-shrink: 0;
    user-select: none;
}
.lang-select-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    white-space: nowrap;
}
.lang-select {
    min-height: 38px;
    padding: 0 2rem 0 0.75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    font-size: 0.9rem;
    cursor: pointer;
}
.lang-select--acronym,
.lang-select--flags {
    min-width: 4.5rem;
    width: auto;
    padding: 0 1.75rem 0 0.6rem;
    text-align: left;
    letter-spacing: 0.02em;
}
.lang-select--flags {
    min-width: 5.75rem;
    padding-left: 0.5rem;
}
.lang-select:hover,
.lang-select:focus {
    border-color: var(--green);
    outline: none;
}

.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-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

.user-avatar-wrap--sm {
    width: 36px;
    height: 36px;
}

.user-avatar-wrap--has-alerts {
    animation: avatar-pulse-ring 2s ease-in-out infinite;
}

@keyframes avatar-pulse-ring {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.45); }
    50% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}

.user-avatar-dot {
    position: absolute;
    top: 0;
    right: 0;
    width: 12px;
    height: 12px;
    background: #ef4444;
    border: 2px solid var(--surface);
    border-radius: 50%;
    animation: avatar-dot-pulse 1.5s ease-in-out infinite;
}

@keyframes avatar-dot-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.9; }
}

.user-avatar-wrap--sm .user-avatar-dot {
    width: 10px;
    height: 10px;
    border-width: 1.5px;
    top: -1px;
    right: -1px;
}

.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;
}

.user-menu-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25em;
    height: 1.25em;
    padding: 0 0.35em;
    margin-left: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--green);
    color: #fff;
    border-radius: 999px;
    vertical-align: middle;
}

.user-menu-item .user-menu-badge {
    margin-left: auto;
    flex-shrink: 0;
}

.flash-messages {
    padding-top: 1rem;
    position: relative;
    z-index: 2;
}

.flash {
    padding: 0.95rem 1.15rem;
    border-radius: 12px;
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.45;
    box-shadow: 0 4px 14px rgba(13, 79, 37, 0.08);
    border: 1px solid transparent;
    transition: opacity 0.35s ease, transform 0.35s ease, margin 0.35s ease, padding 0.35s ease;
}

.flash.flash--hide {
    opacity: 0;
    transform: translateY(-4px);
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    pointer-events: none;
}

.flash-messages.flash-messages--empty {
    display: none;
}

.flash-success {
    background: #e9f7ee;
    color: #0d4f25;
    border-color: rgba(18, 98, 54, 0.22);
}

.flash-danger {
    background: #ffe8e2;
    color: #7a2e18;
    border-color: rgba(155, 63, 34, 0.28);
}

.flash-info {
    background: #e3eef8;
    color: #1a4a66;
    border-color: rgba(47, 96, 123, 0.35);
}

.flash-warning {
    background: #fff8e6;
    color: #6b4e00;
    border-color: rgba(180, 140, 0, 0.35);
}

.flash-message {
    background: #e3eef8;
    color: #1a4a66;
    border-color: rgba(47, 96, 123, 0.35);
}

.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: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.55),
        0 2px 16px rgba(0, 0, 0, 0.45);
}

.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-lg {
    padding: 0.85rem 1.55rem;
    font-size: 1rem;
}

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

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

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid transparent;
}

.btn-ghost:hover {
    color: var(--text);
    border-color: var(--line);
}

.btn-danger {
    border-color: #9b3f22;
    color: #9b3f22;
}

.btn-danger:hover {
    background: #fdf2f0;
}

.auth-forgot {
    margin-top: 0.75rem;
    font-size: 0.95rem;
}

.auth-forgot a {
    color: var(--text-muted);
}

.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: var(--legal-doc-max);
}

.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.25rem 1.4rem;
}

.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: 1.5rem;
    align-items: start;
    padding-top: 1.5rem;
    padding-bottom: 3rem;
}

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

#search-sidebar-dynamic {
    display: grid;
    gap: 1.25rem;
}

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

.search-filters-panel .search-results-header {
    margin-bottom: 0;
}

.search-results-toolbar {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.search-filters-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 38px;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface-soft);
    color: inherit;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.search-filters-toggle:hover {
    background: #eef1ef;
    border-color: #c8cfcb;
}

.search-filters-toggle-icon {
    flex-shrink: 0;
    color: var(--text-muted);
}

.search-filters-active-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2d7560;
    flex-shrink: 0;
}

.search-filters-body.is-collapsed {
    display: none;
}

.search-results-count {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;
}

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

.search-results-subtitle-inline {
    margin: 0.5rem 0 0;
    font-size: 0.9rem;
}

/* Sort inline (same line as results count) */
.sort-form-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.sort-form-inline .sort-select {
    width: auto;
    min-width: 130px;
    min-height: 38px;
    padding: 0.4rem 0.65rem;
    font-size: 0.9rem;
}

/* Filter sections inside single panel */
.filter-section {
    margin-top: 1.1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

.filter-section:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 1rem;
}

.search-filters-panel .filter-section + .filter-section {
    margin-top: 1rem;
    padding-top: 1rem;
}

.filter-section-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.5rem;
}

/* Price filter: inputs + buttons on one row when space allows */
.price-filter-inline .price-filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.price-filter-inline .price-inputs {
    flex: 1 1 140px;
    min-width: 0;
}

.price-filter-inline .price-actions {
    flex: 0 0 auto;
}

.price-filter-inline {
    gap: 0.5rem;
}

.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.75rem;
}

.search-filter-form {
    display: grid;
    gap: 0;
}

.search-filter-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

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

.date-input-label {
    display: block;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.date-inputs .form-control {
    min-height: 50px;
}

.price-actions {
    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;
}

/* Favorites: exactly 3 per row, each item takes 1/3 width (no stretching) */
.favorites-page .listings-grid {
    grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) {
    .favorites-page .listings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 500px) {
    .favorites-page .listings-grid {
        grid-template-columns: 1fr;
    }
}

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

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

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

.listing-card-img .listing-card-photo.is-hidden {
    display: none !important;
}

/* Letter placeholder: centered in the image slot (no full title in this area). */
.listing-card-img .listing-card-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 210px;
    box-sizing: border-box;
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2.25rem, 6vw, 3.25rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    color: rgba(29, 34, 32, 0.42);
    background: #edf0ed;
}

.listing-card-img--has-photo:not(.listing-card-img--photo-broken) > .listing-card-fallback {
    display: none;
}

.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;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}

.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);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.listing-card-owner-link {
    color: var(--green-dark);
    text-decoration: underline;
    cursor: pointer;
}
.listing-card-owner-link:hover {
    color: var(--green);
}

.listing-card-wrap {
    position: relative;
}

/* Card content stays behind the favorite button (image and placeholder) */
.listing-card {
    position: relative;
    z-index: 0;
    isolation: isolate;
}

.listing-card-img,
.listing-card-fallback {
    position: relative;
    z-index: auto;
}

.listing-fav-form {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 100;
    pointer-events: auto;
}

.listing-fav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.98);
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.listing-fav-btn:hover {
    color: var(--green);
    background: #fff;
    border-color: rgba(15, 139, 59, 0.3);
    transform: scale(1.08);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.22);
}

/* Non favori : contour visible, cœur vide */
.listing-fav-btn:not(.is-favorited) {
    color: var(--text-muted);
    -webkit-text-stroke: 1px currentColor;
}

/* Favori : cœur plein vert, fond vert clair, bien lisible sur toute image */
.listing-fav-btn.is-favorited {
    color: #fff;
    background: var(--green-dark);
    border-color: var(--green-dark);
    -webkit-text-stroke: 0;
    box-shadow: 0 2px 12px rgba(13, 111, 49, 0.4);
}

.listing-fav-btn.is-favorited:hover {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
}

.detail-fav-form {
    display: inline-block;
}

.detail-fav-btn.is-favorited {
    color: var(--green);
}

.favorites-empty-hint {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0.5rem 0 1rem;
}

.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-info {
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: 0 0.5rem;
}

.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 {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    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-icon {
    flex-shrink: 0;
    display: block;
}

.map-popup-approx {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.82rem;
    line-height: 1.35;
    color: var(--text-muted);
}

.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: 0.75rem;
    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: min(1600px, 96vw);
    height: 95vh;
    max-height: 95vh;
    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: 0;
    height: 100%;
}

.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-section {
    padding: 2rem 0 3rem;
}

.profile-layout {
    max-width: min(52rem, 100%);
    margin: 0 auto;
    width: 100%;
}

.profile-page {
    padding: 2rem 2.5rem;
}
.profile-page-title {
    margin: 0 0 1.25rem;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.65rem;
}
.profile-password-link {
    margin: -0.35rem 0 1.25rem;
    font-size: 0.9rem;
}
.profile-password-link a {
    color: var(--link, #2563eb);
    text-decoration: underline;
}
.profile-password-link a:hover {
    text-decoration: none;
}
.profile-info {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.profile-avatar-col {
    flex-shrink: 0;
}
.profile-info-fields {
    flex: 1;
    min-width: 0;
}
.profile-info-fields .form-group:first-of-type {
    margin-top: 0;
}
.profile-info-fields .form-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.3rem;
}
.profile-avatar {
    width: 80px;
    height: 80px;
    min-width: 80px;
    min-height: 80px;
    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: 80px;
    height: 80px;
    min-width: 80px;
    min-height: 80px;
    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: 0;
    padding-top: 1.5rem;
}
.profile-edit-title {
    margin: 0 0 1rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
}
.profile-form .form-group {
    margin-bottom: 0.75rem;
}

.profile-stripe-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin-top: 0.65rem;
}

.profile-stripe-disconnect-form {
    margin: 0;
    display: none;
}

.profile-stripe-disconnect-btn {
    color: #991b1b;
    border-color: #fca5a5;
    background: #fef2f2;
}

.profile-stripe-disconnect-btn:hover {
    color: #fff;
    border-color: #b91c1c;
    background: #dc2626;
}

.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;
}

.listing-thumbs-wrap {
    margin-bottom: 0;
}

.listing-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.listing-thumbs-existing + .listing-thumbs-new {
    margin-top: 0.5rem;
}

.listing-thumb {
    position: relative;
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--surface-soft);
    border: 1px solid var(--line);
}

.listing-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.listing-thumb-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 22px;
    height: 22px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.listing-thumb-remove:hover {
    background: #c00;
}

.listing-thumb.is-removed {
    display: none;
}

.file-upload-wrap.at-limit .file-upload-label {
    opacity: 0.7;
    pointer-events: none;
}

.profile-form .btn-primary {
    min-width: 10rem;
}

.profile-listings {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}
.profile-listings-title {
    margin: 0 0 1rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
}
.profile-listings-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.profile-listing-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-radius: var(--radius-md);
    color: var(--text);
    text-decoration: none;
    transition: background 0.2s ease;
}
.profile-listing-link:hover {
    background: var(--green-soft);
    color: var(--green-dark);
}
.profile-listing-thumb {
    width: 48px;
    height: 48px;
    min-width: 48px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}
.profile-listing-fallback {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: var(--radius-sm);
    background: var(--green-soft);
    color: var(--green-dark);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}
.profile-listing-title {
    flex: 1;
    min-width: 0;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}
.profile-listing-price {
    font-size: 0.9rem;
    color: var(--text-muted);
}
.profile-no-listings {
    margin: 1rem 0 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.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.form-control--textarea {
    min-height: 6.5rem;
    resize: vertical;
}

.form-group textarea.form-control--compact {
    min-height: 4.5rem;
}

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

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.form-control--number {
    max-width: 100%;
}

.input-with-suffix {
    display: flex;
    align-items: stretch;
    max-width: 12rem;
}

.input-with-suffix .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: 0;
}

.input-suffix {
    display: flex;
    align-items: center;
    padding: 0 0.95rem;
    min-height: 50px;
    border: 1px solid var(--line);
    border-left: 0;
    border-radius: 0 12px 12px 0;
    background: var(--surface-soft, #f4f6f5);
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.95rem;
}

/* Listing create / edit form */
.listing-create-layout .listing-form-panel {
    padding: 1.5rem 1.6rem 1.75rem;
}

.listing-form {
    display: grid;
    gap: 0.25rem;
}

.listing-form fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

.listing-form-section {
    padding: 1.35rem 0;
    border-bottom: 1px solid var(--line);
}

.listing-form-section:first-of-type {
    padding-top: 0.25rem;
}

.listing-form-section:last-of-type {
    border-bottom: 0;
    padding-bottom: 0.5rem;
}

.listing-form-section-title {
    display: block;
    margin: 0 0 1rem;
    padding: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
}

.listing-form-optional {
    font-weight: 500;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.listing-form-section-lead {
    margin: -0.5rem 0 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.listing-form .form-group {
    margin-bottom: 0.85rem;
}

.listing-form .form-group--flush {
    margin-bottom: 0.5rem;
}

.listing-form-pricing {
    display: grid;
    grid-template-columns: minmax(0, 11rem) minmax(12rem, auto);
    gap: 1.25rem 2rem;
    align-items: start;
}

.listing-form-pricing .form-group label {
    white-space: nowrap;
}

.listing-form-location .form-group {
    margin-bottom: 0;
}

.listing-form-section--photos .listing-photo-drop {
    display: grid;
    gap: 1rem;
}

.listing-photo-upload .file-upload-label {
    width: 100%;
    justify-content: center;
    min-height: 5.5rem;
    padding: 1rem 1.25rem;
    flex-direction: column;
    text-align: center;
}

.listing-photo-upload .file-upload-copy {
    display: grid;
    gap: 0.2rem;
}

.listing-photo-upload .file-upload-hint {
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--text-muted);
}

.listing-form-section--photos .listing-thumbs {
    gap: 0.65rem;
}

.listing-form-section--photos .listing-thumb {
    width: 88px;
    height: 88px;
}

.listing-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
}

.listing-form-actions .btn-lg {
    min-width: 11rem;
}

.listing-create-tips {
    position: sticky;
    top: 5.5rem;
    align-self: start;
}

.listing-tips-steps {
    margin: 1rem 0 0;
    padding-left: 1.25rem;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.listing-tips-steps li + li {
    margin-top: 0.75rem;
}

.listing-tips-steps strong {
    color: var(--text);
    font-weight: 700;
}

.listing-create-tips-note {
    margin: 1.1rem 0 0;
}

@media (max-width: 900px) {
    .listing-form-pricing {
        grid-template-columns: 1fr 1fr;
        max-width: 100%;
    }

    .input-with-suffix {
        max-width: 100%;
    }

    .listing-create-tips {
        position: static;
    }
}

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

    .listing-form-pricing .form-group label {
        white-space: normal;
    }

    .listing-form-location.form-row {
        grid-template-columns: 1fr;
    }
}

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

.form-group--terms {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-top: 0.35rem;
}

.form-checkbox {
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
    accent-color: var(--green);
    cursor: pointer;
}

.form-checkbox-label {
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--text);
    cursor: pointer;
}

.form-checkbox-label a {
    color: var(--green);
    font-weight: 500;
}

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

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

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

.help--success {
    color: #0d4f25;
}

.stripe-connect-success {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stripe-connect-check {
    display: flex;
    flex-shrink: 0;
    line-height: 0;
    color: #1a7f3e;
}

.stripe-connect-check svg {
    width: 1.35rem;
    height: 1.35rem;
    vertical-align: middle;
}

.auth-oauth {
    margin: 0 0 1.25rem;
}

.auth-oauth--divider-first {
    margin: 1.25rem 0 0;
}

.auth-oauth--divider-first .auth-divider {
    margin-top: 0;
    margin-bottom: 1rem;
}

.auth-oauth:not(.auth-oauth--divider-first) .auth-divider {
    margin-top: 1rem;
    margin-bottom: 0;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    text-transform: lowercase;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border, #e2e8f0);
}

.btn-google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    background: #fff;
    color: #1f2937;
    border: 1px solid #dadce0;
    font-weight: 600;
}

.btn-google:hover {
    background: #f8f9fa;
    border-color: #c6c9cc;
    color: #111827;
}

.btn-google.is-disabled {
    opacity: 0.55;
    pointer-events: none;
    cursor: not-allowed;
}

.btn-google-icon {
    display: inline-flex;
    line-height: 0;
}

.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-back-to-listings {
    display: inline-block;
    margin-bottom: 0.85rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--green-dark, #1a5c3a);
    text-decoration: none;
    transition: opacity 0.15s ease;
}
.detail-back-to-listings:hover {
    opacity: 0.85;
    text-decoration: underline;
}

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

.detail-summary-card {
    position: relative;
}

.detail-fav-form-overlay,
.detail-fav-link {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 100;
}

.detail-fav-link {
    display: block;
    text-decoration: none;
}

.detail-fav-link .listing-fav-btn {
    -webkit-text-stroke: 1px currentColor;
}

.detail-image {
    width: 100%;
    min-height: 460px;
    max-height: 640px;
    object-fit: cover;
}

.detail-gallery { margin: 0; }
.detail-gallery-main {
    position: relative;
    width: 100%;
    min-height: 460px;
    max-height: 640px;
    background: var(--surface-soft, #eef1ef);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.detail-gallery-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}
.detail-gallery-img.is-active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
}
.detail-gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}
.detail-gallery-thumb {
    width: 56px;
    height: 56px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    background: none;
    cursor: pointer;
    transition: border-color 0.2s ease, opacity 0.2s ease;
}
.detail-gallery-thumb:hover { opacity: 0.9; }
.detail-gallery-thumb.is-active { border-color: var(--green-dark); }
.detail-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 6px;
}

.detail-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: var(--green-dark, #1a5c3a);
    font-size: 1.65rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.14);
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.detail-gallery-nav:hover {
    background: #fff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
    transform: translateY(-50%) scale(1.04);
}
.detail-gallery-nav:focus-visible {
    outline: 2px solid var(--green-dark, #1a5c3a);
    outline-offset: 2px;
}
.detail-gallery-nav--prev {
    left: 12px;
}
.detail-gallery-nav--next {
    right: 12px;
}

.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;
    word-break: break-word;
}

.detail-description-block {
    margin-top: 0.35rem;
}

.detail-description-shell {
    position: relative;
    overflow: hidden;
}

.detail-description-shell--collapsed .detail-description {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    overflow: hidden;
}

.detail-description-shell--collapsed::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3rem;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--surface, #fff));
}

.detail-description-toggle {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.detail-description-toggle[hidden] {
    display: none !important;
}

.detail-description-toggle:hover {
    text-decoration: underline;
}

.detail-units-stock {
    margin: 0.35rem 0 0.75rem;
    font-size: 0.95rem;
    color: var(--color-muted, #5c6470);
}

.detail-availability-note {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md, 12px);
    background: var(--surface-soft, #f0f3f1);
    border: 1px solid rgba(29, 34, 32, 0.08);
}
.detail-availability-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}
.detail-availability-text {
    margin: 0;
    white-space: pre-wrap;
    font-size: 0.95rem;
    line-height: 1.45;
    color: var(--text, #1d2220);
}

.detail-actions {
    margin-top: 1.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.detail-delete-form {
    display: inline-block;
}

.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 it works (guide) —— */
.how-hero--guide {
    background: linear-gradient(180deg, rgba(237, 247, 240, 0.55) 0%, rgba(255, 255, 255, 0) 100%);
    border-bottom: 1px solid rgba(13, 111, 49, 0.08);
}

.how-hero-lead {
    max-width: 38rem;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.08rem;
    line-height: 1.65;
    color: var(--text-muted);
}

.how-guide {
    padding-bottom: 3.5rem;
}

.how-guide-intro {
    text-align: center;
    max-width: 40rem;
    margin: 0 auto 2.5rem;
}

.how-guide-heading {
    margin: 0 0 0.65rem;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.35rem, 2vw, 1.65rem);
    letter-spacing: -0.03em;
    color: var(--text);
}

.how-guide-deck {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.how-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.15rem;
    margin-bottom: 2.75rem;
}

.how-step-card {
    position: relative;
    padding: 1.35rem 1.35rem 1.5rem;
    border-radius: var(--radius-md);
    background: linear-gradient(165deg, #ffffff 0%, #f9fbf9 100%);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.how-step-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(20, 24, 23, 0.1);
    border-color: rgba(15, 139, 59, 0.22);
}

.how-step-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.how-step-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(145deg, var(--green-soft), #e4f4ea);
    color: var(--green-dark);
}

.how-step-card__icon svg {
    width: 22px;
    height: 22px;
}

.how-step-card__num {
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(13, 111, 49, 0.45);
    letter-spacing: 0.06em;
}

.how-step-card__title {
    margin: 0 0 0.5rem;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.28rem;
    letter-spacing: -0.03em;
    color: var(--text);
}

.how-step-card__text {
    margin: 0;
    font-size: 0.94rem;
    line-height: 1.55;
    color: var(--text-muted);
}

.how-trust-panel {
    margin-top: 0.5rem;
    padding: 2rem 1.5rem 2.25rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(160deg, #f4faf6 0%, #eef6f1 50%, #e8f3ec 100%);
    border: 1px solid rgba(13, 111, 49, 0.12);
    margin-bottom: 2.5rem;
}

.how-trust-panel__title {
    margin: 0 0 1.35rem;
    text-align: center;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.2rem, 1.8vw, 1.45rem);
    letter-spacing: -0.03em;
    color: var(--green-dark);
}

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

.how-trust-item {
    padding: 1.15rem 1.2rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 6px 20px rgba(13, 111, 49, 0.06);
}

.how-trust-item__icon {
    display: flex;
    margin-bottom: 0.75rem;
    color: var(--green);
}

.how-trust-item__icon svg {
    width: 28px;
    height: 28px;
}

.how-trust-item__title {
    margin: 0 0 0.45rem;
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

.how-trust-item__text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--text-muted);
}

.how-cta-panel {
    text-align: center;
    padding: 2rem 1rem;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px dashed rgba(13, 111, 49, 0.2);
}

.how-cta-panel__lead {
    margin: 0 0 1rem;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text);
}

.how-cta-panel__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

@media (max-width: 1100px) {
    .how-steps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .how-steps-grid {
        grid-template-columns: 1fr;
    }

    .how-trust-grid {
        grid-template-columns: 1fr;
    }
}

.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 {
        margin-top: 1rem;
        padding-top: 1rem;
    }

    .detail-visual .detail-calendar {
        margin-top: 0.85rem;
        padding-top: 0.85rem;
    }

    .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;
    }

    .detail-calendar--compact .calendar-nav--compact .calendar-nav-btn {
        min-width: 40px;
        min-height: 40px;
    }

    .detail-calendar--compact .cal-cell {
        border-radius: 6px;
    }

    .detail-calendar--compact .cal-date {
        font-size: 0.78rem;
    }
}

@media (max-width: 480px) {
    .detail-visual .detail-calendar {
        padding-top: 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;
    }

    .detail-calendar--compact .cal-date {
        font-size: 0.72rem;
    }

    .detail-calendar--compact .cal-weekday {
        font-size: 0.62rem;
    }
}

/* 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;
}

/* Booking request confirmation */
.booking-confirmation-panel {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.booking-confirmation-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--green-soft);
    color: var(--green-dark);
}

.booking-confirmation-icon svg {
    width: 36px;
    height: 36px;
}

.booking-confirmation-eyebrow {
    display: block;
    margin-bottom: 0.5rem;
}

.booking-confirmation-title {
    margin-bottom: 0.5rem;
}

.booking-confirmation-lead {
    color: var(--text-muted);
    margin: 0 0 1.25rem;
}

.booking-confirmation-summary {
    padding: 1rem 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin-bottom: 1.25rem;
}

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

.booking-confirmation-listing a:hover {
    text-decoration: underline;
}

.booking-confirmation-dates {
    margin: 0;
    font-weight: 600;
    color: var(--green-dark);
}

.booking-confirmation-owner {
    margin: 0.35rem 0 0;
    font-size: 0.95rem;
    color: var(--text-muted);
}

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

/* Inbox list – card-based design */
.inbox-page {
    max-width: 640px;
}

.inbox-header {
    margin-bottom: 1.75rem;
}

.inbox-title {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 0.35rem;
    color: var(--text);
}

.inbox-lead {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.45;
}

.inbox-empty {
    text-align: center;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.inbox-empty-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.inbox-empty-text {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: var(--text);
}

.inbox-empty-hint {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0 0 1.25rem;
}

.inbox-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.inbox-item {
    margin: 0;
}

.inbox-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.inbox-card:hover {
    border-color: var(--green);
    box-shadow: 0 4px 12px rgba(15, 139, 59, 0.12);
    background: var(--green-soft);
}

.inbox-card-avatar {
    position: relative;
    flex-shrink: 0;
}

.inbox-card-avatar img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
}

.inbox-card-avatar-initial {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green-soft) 0%, rgba(15, 139, 59, 0.15) 100%);
    color: var(--green-dark);
    font-weight: 700;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.inbox-card-unread-dot {
    position: absolute;
    top: 0;
    right: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--green);
    border: 2px solid var(--surface);
}

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

.inbox-card-top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.2rem;
}

.inbox-card-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
}

.inbox-card-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25em;
    height: 1.25em;
    padding: 0 0.35em;
    font-size: 0.7rem;
    font-weight: 600;
    background: var(--green);
    color: #fff;
    border-radius: 999px;
}

.inbox-card-time {
    margin-left: auto;
    font-size: 0.8rem;
    color: var(--text-muted);
}

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

.inbox-card-preview {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.inbox-card-arrow {
    flex-shrink: 0;
    color: var(--green);
    font-size: 1.1rem;
    opacity: 0.7;
    transition: transform 0.2s ease;
}

.inbox-card:hover .inbox-card-arrow {
    transform: translateX(3px);
    opacity: 1;
}

/* Conversation page: one card = header + scrollable messages + input inside */
.page-section-conversation {
    min-height: calc(100vh - 72px);
    display: flex;
    flex-direction: column;
    padding: 2rem 0 0;
}

.page-section-conversation .conversation-detail {
    width: 100%;
    max-width: none;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.page-section-conversation .conversation-header {
    flex-shrink: 0;
    margin-bottom: 0;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
}

.conversation-title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.conversation-contact-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.conversation-contact-avatar-fallback {
    background: var(--green-soft);
    color: var(--green-dark);
    font-weight: 700;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.conversation-detail {
    width: 100%;
    max-width: none;
}

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

.conversation-title {
    font-size: 1.25rem;
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.conversation-contact-name-wrap {
    position: relative;
    display: inline-block;
}

.conversation-contact-name {
    cursor: pointer;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 2px;
}

.conversation-contact-name:hover,
.conversation-contact-name:focus {
    outline: none;
}

.user-hover-card {
    position: absolute;
    left: 0;
    top: 100%;
    margin-top: 0.25rem;
    padding: 1rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    min-width: 200px;
    z-index: 20;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
}

.conversation-contact-name-wrap:hover .user-hover-card,
.conversation-contact-name-wrap:focus-within .user-hover-card {
    opacity: 1;
    visibility: visible;
}

.user-hover-card-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin-bottom: 0.5rem;
}

.user-hover-card-avatar-fallback {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--green-soft);
    color: var(--green-dark);
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.user-hover-card-name {
    display: block;
    margin: 0 0 0.25rem;
    font-size: 1rem;
}

.user-hover-card-city {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.user-hover-card-link {
    font-size: 0.9rem;
    color: var(--green);
    text-decoration: none;
}

.user-hover-card-link:hover {
    text-decoration: underline;
}

.page-section-conversation .messages-panel {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.messages-panel {
    padding: 1.25rem;
    min-height: 420px;
    display: flex;
    flex-direction: column;
}

.page-section-conversation .messages-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    list-style: none;
    padding: 1rem 1.25rem;
    margin: 0;
}

.messages-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    flex: 1;
    min-height: 200px;
}

.message {
    margin-bottom: 1rem;
}

.message-received {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.message-avatar-fallback {
    background: var(--green-soft);
    color: var(--green-dark);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.message-sender-link {
    color: inherit;
    text-decoration: underline;
    text-decoration-style: dotted;
}

.message-sender-link:hover {
    color: var(--green-dark);
}

.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 inside chat card (conversation page) */
.page-section-conversation .message-form {
    flex-shrink: 0;
    padding: 0.75rem 1.25rem 1rem;
    border-top: 1px solid var(--line);
    background: var(--surface);
}

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

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

.page-section-conversation .message-input {
    min-height: 44px;
    max-height: 100px;
}

.message-send-btn {
    flex-shrink: 0;
    min-height: 44px;
    min-width: 4.5rem;
    touch-action: manipulation;
}

@media (max-width: 760px) {
    .page-conversation .footer {
        display: none;
    }

    .page-section-conversation {
        padding: 0;
        min-height: calc(100dvh - 68px);
    }

    .page-section-conversation .shell {
        padding-left: 0;
        padding-right: 0;
    }

    .page-section-conversation .conversation-detail {
        border-radius: 0;
        box-shadow: none;
        min-height: calc(100dvh - 68px);
    }

    .page-section-conversation .message-form {
        position: sticky;
        bottom: 0;
        z-index: 60;
        padding-bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
    }
}

.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);
}

/* Status as plain text at top of card (no badge) */
.booking-item-status-text {
    margin: 0 0 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

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

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

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

/* ----- Legal / terms page ----- */
.legal-page {
    padding-bottom: 3rem;
}

.legal-prose {
    max-width: 46rem;
    margin: 0 auto;
}

/* Same column as hero title: width comes from parent .shell.page-hero-inner (see terms/rental templates) */
.legal-page .legal-prose {
    max-width: none;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
}

.legal-doc-title {
    margin: 0 0 1.25rem;
    font-size: 1.05rem;
    color: var(--text);
    letter-spacing: 0.02em;
    line-height: 1.5;
}

.legal-prose h2 {
    margin: 1.75rem 0 0.65rem;
    font-size: 1.15rem;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.02em;
}

.legal-prose h2:first-of-type {
    margin-top: 0;
}

.legal-prose p {
    margin: 0 0 0.85rem;
    line-height: 1.65;
    color: var(--text-muted);
}

.legal-prose ul {
    margin: 0.2rem 0 1rem 1.1rem;
    padding: 0;
    color: var(--text-muted);
}

.legal-prose li {
    margin: 0 0 0.45rem;
    line-height: 1.6;
}

.legal-prose p a {
    color: var(--green);
    font-weight: 500;
}

.legal-prose p.legal-meta,
.legal-prose p.legal-disclaimer {
    font-size: 0.9rem;
}

.legal-prose p.legal-disclaimer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    font-style: italic;
    color: var(--text-muted);
}

.legal-hero-lead {
    max-width: none;
}

/* ----- Bookings page (owner view) — modern dashboard ----- */
.bookings-page .bookings-header {
    margin-bottom: 1.5rem;
}

.bookings-header-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.bookings-header-top .page-title {
    margin: 0;
}

.bookings-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 1.25rem;
    padding: 0.25rem;
    background: var(--surface-soft);
    border-radius: var(--radius-sm);
    width: fit-content;
}

.bookings-tab {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.bookings-tab:hover {
    color: var(--text);
    background: var(--surface);
}

.bookings-tab.is-active {
    color: var(--green-dark);
    background: var(--surface);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.bookings-tab-count {
    display: inline-block;
    min-width: 1.25em;
    margin-left: 0.35rem;
    padding: 0.1em 0.4em;
    font-size: 0.8rem;
    background: var(--line);
    color: var(--text-muted);
    border-radius: 999px;
}

.bookings-tab.is-active .bookings-tab-count {
    background: var(--green-soft);
    color: var(--green-dark);
}

.bookings-tab-count--pending {
    background: #fef3c7;
    color: #92400e;
}

.bookings-tab.is-active .bookings-tab-count--pending {
    background: #fde68a;
    color: #92400e;
}

.bookings-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.booking-card {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto 1fr;
    gap: 0 1.25rem;
    align-items: start;
    padding: 1.25rem;
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.booking-card:hover {
    border-color: rgba(15, 139, 59, 0.2);
    box-shadow: 0 12px 32px rgba(20, 24, 23, 0.08);
}

.booking-card__status {
    grid-column: 1;
    grid-row: 1;
}

.booking-card__status-pill {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 999px;
}

.booking-card__status-pill--pending {
    background: #fef3c7;
    color: #92400e;
}

.booking-card__status-pill--accepted {
    background: var(--green-soft);
    color: var(--green-dark);
}

.booking-card__status-pill--rejected {
    background: var(--surface-soft);
    color: var(--text-muted);
}

.booking-card__status-pill--cancelled {
    background: #fff3cd;
    color: #856404;
}

.booking-card__cancel-info {
    margin-top: 0.35rem;
    font-size: 0.85rem;
}

.booking-card__deposit {
    grid-column: 1 / -1;
    margin-top: 0.25rem;
}

.booking-card__deposit-countdown {
    font-size: 0.85rem;
    color: #666;
    margin: 0 0.5rem;
}

.booking-card__status-pill--deposit-held {
    background: #fff3cd;
    color: #856404;
}

.booking-card__status-pill--deposit-released {
    background: #d4edda;
    color: #155724;
}

.booking-card__status-pill--deposit-disputed {
    background: #f8d7da;
    color: #721c24;
}

.booking-card__body {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
}

.booking-card__title {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.booking-card__title a {
    color: var(--green);
    text-decoration: none;
}

.booking-card__title a:hover {
    text-decoration: underline;
}

.booking-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.booking-card__dates {
    font-weight: 500;
    color: var(--text);
}

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

.booking-card__guest a:hover {
    text-decoration: underline;
}

.booking-card__message {
    margin: 0.75rem 0 0;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-muted);
    background: var(--surface-soft);
    border-radius: 8px;
    border-left: 3px solid var(--line);
}

.booking-card__payment {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--text);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.booking-card__payment-detail {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.booking-card__actions {
    grid-column: 2;
    grid-row: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
    justify-content: center;
}

.booking-card__form {
    display: inline-block;
}

.booking-card__actions .btn {
    min-width: 7rem;
}

.booking-card--rejected .booking-card__actions {
    visibility: hidden;
    pointer-events: none;
}

/* Guest "my bookings": pending / rejected without action column */
.booking-card--no-actions {
    grid-template-columns: 1fr;
}

.bookings-empty,
.bookings-empty-filtered {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-radius: var(--radius-md);
}

.bookings-empty-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.7;
}

.bookings-empty-title {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
    font-family: "Space Grotesk", sans-serif;
}

.bookings-empty-text {
    margin: 0 0 1.25rem;
    color: var(--text-muted);
}

@media (max-width: 640px) {
    .booking-card {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }

    .booking-card__actions {
        grid-column: 1;
        grid-row: 3;
        flex-direction: row;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .booking-card__actions .btn {
        min-width: auto;
    }

    .booking-card--rejected .booking-card__actions {
        display: none;
    }

    .bookings-tabs {
        width: 100%;
    }

    .bookings-tab {
        flex: 1;
        min-width: 0;
        text-align: center;
    }
}

.detail-calendar {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(29, 34, 32, 0.08);
}

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

.detail-visual .detail-calendar-top {
    flex-direction: column;
    gap: 0.75rem;
}

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

.detail-visual .calendar-legend {
    gap: 0.55rem 0.75rem;
}

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

.detail-visual .detail-calendar--compact .calendar-nav--compact {
    display: flex;
}

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

.detail-visual .detail-calendar--compact .availability-calendar {
    min-height: 0;
}

.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-owner-blocked {
    background-color: #b45309;
}

.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-dot-owner-blocked {
    background-color: #b45309;
}

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

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

.calendar-legend-item--owner-blocked {
    color: #92400e;
    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;
}

/* Month change: dim grid while fetching (avoid replacing DOM with a full-page flash). */
.availability-calendar.calendar-loading-state {
    opacity: 0.58;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.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-owner-blocked {
    background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
}

.cal-cell.is-owner-blocked .cal-state,
.cal-cell.is-owner-blocked .cal-date {
    color: #92400e;
}

.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);
}

/* Compact availability calendar (detail page) */
.detail-calendar--compact .detail-calendar-top {
    margin-bottom: 0.65rem;
    gap: 0.5rem;
}

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

.detail-calendar--compact .calendar-legend--compact {
    gap: 0.45rem 0.65rem;
}

.detail-calendar--compact .calendar-legend--compact .calendar-legend-item {
    font-size: 0.72rem;
    gap: 0.3rem;
}

.detail-calendar--compact .calendar-legend--compact .calendar-dot {
    width: 8px;
    height: 8px;
}

.detail-calendar--compact .calendar-dot-partial,
.detail-calendar--compact .calendar-legend .calendar-dot-partial {
    background: linear-gradient(135deg, #0d6f31 50%, #d4edd9 50%);
}

.detail-calendar--compact .calendar-legend-item--partial {
    color: #0d6f31;
    font-weight: 500;
}

.detail-calendar--compact .calendar-shell {
    padding: 0.65rem 0.75rem;
}

.detail-calendar--compact .calendar-nav--compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.55rem;
}

.detail-calendar--compact .calendar-nav--compact .calendar-nav-btn {
    width: 34px;
    height: 34px;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.detail-calendar--compact .calendar-nav--compact .calendar-month-label {
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    flex: 1;
}

.detail-calendar--compact .availability-calendar {
    min-height: 0;
}

.detail-calendar--compact .cal-grid {
    gap: 0.28rem;
}

.detail-calendar--compact .cal-grid-head {
    margin-bottom: 0.28rem;
}

.detail-calendar--compact .cal-weekday {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.detail-calendar--compact .cal-cell {
    min-height: 0;
    aspect-ratio: 1;
    padding: 0;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    border-width: 1px;
}

.detail-calendar--compact .cal-cell:hover {
    transform: none;
    box-shadow: none;
}

.detail-calendar--compact .cal-cell-empty {
    min-height: 0;
    aspect-ratio: 1;
}

.detail-calendar--compact .cal-date {
    font-size: 0.82rem;
    line-height: 1;
}

.detail-calendar--compact .cal-state {
    display: none;
}

.detail-calendar--compact .cal-cell.is-free {
    background: #e8f5ec;
    border-color: rgba(13, 111, 49, 0.35);
}

.detail-calendar--compact .cal-cell.is-free .cal-date {
    color: #0d6f31;
}

.detail-calendar--compact .cal-cell.is-partial {
    background: linear-gradient(160deg, #c8e6d0 0%, #e8f5ec 55%);
    border-color: rgba(13, 111, 49, 0.5);
}

.detail-calendar--compact .cal-cell.is-partial .cal-date {
    color: #0d6f31;
    font-weight: 700;
}

.detail-calendar--compact .cal-cell.is-booked {
    background: #fde8e8;
    border-color: rgba(180, 35, 35, 0.4);
}

.detail-calendar--compact .cal-cell.is-booked .cal-date {
    color: #b42323;
}

.detail-calendar--compact .cal-cell.is-owner-blocked {
    background: #fef3c7;
    border-color: rgba(180, 69, 9, 0.45);
}

.detail-calendar--compact .cal-cell.is-owner-blocked .cal-date {
    color: #92400e;
}

.detail-calendar--compact .cal-cell.is-past {
    opacity: 0.45;
    background: #f3f4f3;
    border-color: rgba(29, 34, 32, 0.06);
}

.detail-calendar--compact .cal-cell.is-past .cal-date {
    color: var(--text-muted);
}

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

.detail-calendar--compact .cal-cell.is-selected {
    background: var(--green);
    border-color: var(--green-dark);
    box-shadow: 0 0 0 2px rgba(15, 139, 59, 0.35);
}

.detail-calendar--compact .cal-cell.is-selected .cal-date {
    color: #fff;
    font-weight: 700;
}

.detail-calendar--compact .cal-cell-clickable:hover {
    filter: brightness(0.97);
    box-shadow: 0 2px 8px rgba(13, 111, 49, 0.15);
}

.detail-visual .detail-calendar--compact .availability-calendar {
    min-height: 0;
}

.detail-booking-form {
    margin-top: 1.5rem;
}
.detail-booking-form-title {
    margin: 0 0 1rem;
    font-size: 1.15rem;
}

.booking-price-summary {
    margin: 0 0 1rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(29, 34, 32, 0.08);
    background: #f7faf7;
}

.booking-price-summary.is-pending .booking-price-summary__row--total .booking-price-summary__value {
    color: var(--text-muted, #5c6470);
}

.booking-price-summary.is-pending {
    border-style: dashed;
}

.booking-price-summary__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.2rem 0;
    font-size: 0.9rem;
}

.booking-price-summary__row--total {
    margin-top: 0.35rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(29, 34, 32, 0.08);
    font-weight: 700;
    font-size: 1rem;
}

.booking-price-summary__label {
    color: var(--text-muted, #5c6470);
}

.booking-price-summary__value {
    font-variant-numeric: tabular-nums;
    color: var(--text, #1d2220);
}

.booking-price-summary__hint {
    margin: 0.5rem 0 0;
}
.booking-dates-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Send request button – loading state with spinner */
.booking-submit-wrap {
    display: inline-block;
    position: relative;
}
.booking-submit-spinner {
    display: none;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 22px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: booking-spin 0.7s linear infinite;
    pointer-events: none;
}
.booking-submit-wrap.is-loading .booking-submit-spinner {
    display: block;
}
.booking-submit-wrap.is-loading .btn {
    color: transparent;
    cursor: wait;
}
@keyframes booking-spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Full-width primary buttons (auth) — same loading spinner as booking */
.auth-submit-wrap.booking-submit-wrap {
    display: block;
    width: 100%;
}

.detail-owner {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.detail-owner-link {
    color: var(--green-dark);
    text-decoration: underline;
}
.detail-owner-link:hover {
    color: var(--green);
}

/* --- 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) {
    .header {
        z-index: 1000;
    }

    .detail-fav-form-overlay,
    .detail-fav-link {
        z-index: 10;
    }

    .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 auto;
    }

    .mobile-menu {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1001;
        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-search-form .search-submit--mobile {
        width: 2.65rem;
        height: 2.65rem;
        margin-left: 0;
        border-radius: 8px;
        border: 1px solid var(--line);
        background: #fff;
        color: var(--text-muted);
    }

    .mobile-search-form .search-submit--mobile:hover {
        color: var(--green-dark);
        background: var(--green-soft);
        border-color: rgba(13, 79, 37, 0.2);
    }

    .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-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 1.25em;
        height: 1.25em;
        padding: 0 0.35em;
        margin-left: 0.4rem;
        font-size: 0.75rem;
        font-weight: 600;
        background: var(--green);
        color: #fff;
        border-radius: 999px;
        vertical-align: middle;
    }

    .mobile-nav-user {
        /* On smartphone, la section avatar + nom est redondante : le menu affiche déjà toutes les options. */
        display: none;
    }
    .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);
    }

    .mobile-lang-wrap {
        padding: 0.5rem 1rem;
        display: flex;
        align-items: center;
    }
    .mobile-lang-wrap .lang-select {
        max-width: 180px;
    }
    .mobile-lang-wrap .lang-flag {
        font-size: 1.35rem;
    }
}

/* My listings page – action buttons */
.my-listings-page .my-listings-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* Owner earnings summary (same page as “my listings”, no extra nav item) */
.my-listings-page .owner-earnings-panel {
    margin-bottom: 1.75rem;
    padding: 1.25rem 1.35rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(20, 24, 23, 0.08);
    background: linear-gradient(165deg, rgba(15, 139, 59, 0.06) 0%, rgba(255, 255, 255, 0.92) 45%);
}
.my-listings-page .owner-earnings-panel__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-bottom: 0.35rem;
}
.my-listings-page .owner-earnings-panel__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 650;
    letter-spacing: -0.02em;
    color: var(--ink, #141817);
}
.my-listings-page .owner-earnings-panel__link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--green);
    text-decoration: none;
    white-space: nowrap;
}
.my-listings-page .owner-earnings-panel__link:hover {
    text-decoration: underline;
}
.my-listings-page .owner-earnings-panel__lead {
    margin: 0 0 1rem;
    font-size: 0.875rem;
    color: rgba(20, 24, 23, 0.65);
    line-height: 1.45;
}
.my-listings-page .owner-earnings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
    gap: 1rem 1.5rem;
}
.my-listings-page .owner-earnings-metric {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(20, 24, 23, 0.06);
}
.my-listings-page .owner-earnings-metric--pending {
    background: rgba(255, 248, 235, 0.85);
    border-color: rgba(200, 150, 40, 0.2);
}
.my-listings-page .owner-earnings-metric__label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(20, 24, 23, 0.55);
}
.my-listings-page .owner-earnings-metric__value {
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--ink, #141817);
    font-variant-numeric: tabular-nums;
}
.my-listings-page .owner-earnings-metric--pending .owner-earnings-metric__value {
    color: rgba(120, 85, 20, 0.95);
}
.my-listings-page .owner-earnings-metric__hint {
    font-size: 0.8125rem;
    color: rgba(20, 24, 23, 0.55);
}
.my-listings-page .owner-earnings-panel__footnote {
    margin: 1rem 0 0;
    font-size: 0.75rem;
    line-height: 1.4;
    color: rgba(20, 24, 23, 0.5);
}

.my-listings-page .my-listings-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.my-listings-page .my-listing-item {
    margin-bottom: 1rem;
    padding: 1.25rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: center;
    border-radius: var(--radius-sm);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
/* Active listings: green accent border */
.my-listings-page .my-listing-item--active.panel {
    border-color: rgba(15, 139, 59, 0.35);
    border-left: 4px solid var(--green);
    box-shadow:
        0 10px 28px rgba(20, 24, 23, 0.06),
        0 0 0 1px rgba(15, 139, 59, 0.1);
}
.my-listings-page .my-listing-item:hover {
    box-shadow: var(--shadow);
}
.my-listings-page .my-listing-item--active:hover {
    box-shadow:
        0 12px 32px rgba(15, 139, 59, 0.1),
        0 0 0 1px rgba(15, 139, 59, 0.14);
}
.my-listings-page .my-listing-main {
    min-width: 0;
}
.my-listings-page .my-listing-topline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.my-listings-page .my-listing-link {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.my-listings-page .my-listing-link:hover {
    color: var(--green);
}
.my-listings-page .my-listing-link img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}
.my-listings-page .my-listing-status {
    font-size: 0.8rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.my-listings-page .my-listing-status.badge--success {
    background: var(--green-soft);
    color: var(--green-dark);
}
.my-listings-page .my-listing-status.badge--muted {
    background: var(--surface-soft);
    color: var(--text-muted);
}
.my-listings-page .my-listing-meta,
.my-listings-page .my-listing-main > p {
    margin: 0.25rem 0 0 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.my-listings-page .my-listing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    justify-content: flex-end;
}
.my-listings-page .my-listing-actions__form {
    display: inline-flex;
    margin: 0;
}
/* Shared pill action control */
.my-listings-page .my-listing-action {
    -webkit-appearance: none;
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin: 0;
    min-height: 40px;
    padding: 0.35rem 0.95rem;
    border-radius: 999px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.8125rem;
    letter-spacing: 0.01em;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 1px 2px rgba(20, 24, 23, 0.04);
    transition:
        background 0.18s ease,
        color 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.15s ease;
}
.my-listings-page .my-listing-action:hover {
    box-shadow: 0 4px 14px rgba(20, 24, 23, 0.08);
}
.my-listings-page .my-listing-action:active {
    transform: scale(0.98);
}
.my-listings-page .my-listing-action__icon {
    flex-shrink: 0;
    opacity: 0.92;
}
.my-listings-page .my-listing-action span {
    white-space: nowrap;
}
/* View – filled green */
.my-listings-page .my-listing-action--view {
    background: linear-gradient(165deg, var(--green-soft) 0%, #e8f5ec 100%);
    color: var(--green-dark);
    border-color: rgba(15, 139, 59, 0.22);
}
.my-listings-page .my-listing-action--view:hover {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
}
.my-listings-page .my-listing-action--view:hover .my-listing-action__icon {
    opacity: 1;
}
/* Edit – outline green */
.my-listings-page .my-listing-action--edit {
    background: #fff;
    color: var(--green-dark);
    border-color: rgba(15, 139, 59, 0.45);
}
.my-listings-page .my-listing-action--edit:hover {
    background: var(--green-soft);
    border-color: var(--green);
    color: var(--green-dark);
}
/* Unavailable periods – calendar accent */
.my-listings-page .my-listing-action--calendar {
    background: #fff;
    color: #0d4a5c;
    border-color: rgba(13, 74, 92, 0.28);
}
.my-listings-page .my-listing-action--calendar:hover {
    background: linear-gradient(180deg, #f0fafc 0%, #e6f4f8 100%);
    border-color: rgba(13, 74, 92, 0.45);
    color: #063542;
}
/* Activate / Deactivate – neutral */
.my-listings-page .my-listing-action--toggle {
    background: #fff;
    color: var(--text-muted);
    border-color: var(--line);
}
.my-listings-page .my-listing-action--toggle:hover {
    color: var(--green-dark);
    border-color: rgba(15, 139, 59, 0.35);
    background: var(--green-soft);
}
/* Delete – danger */
.my-listings-page .my-listing-action--delete {
    background: #fff;
    color: #b91c1c;
    border-color: rgba(185, 28, 28, 0.35);
}
.my-listings-page .my-listing-action--delete:hover {
    background: #fef2f2;
    border-color: #b91c1c;
    color: #991b1b;
}
.my-listings-page .my-listing-action--delete .my-listing-action__icon {
    opacity: 1;
}
@media (max-width: 640px) {
    .my-listings-page .my-listing-item {
        grid-template-columns: 1fr;
    }
    .my-listings-page .my-listing-actions {
        justify-content: flex-start;
    }
}

.listing-unavailability-page .unavailability-form-panel {
    margin-bottom: 1.25rem;
}
.my-listings-page .my-listings-bulk-hint {
    margin: 0.5rem 0 0 0;
    font-size: 0.95rem;
}
.my-listings-page .my-listings-bulk-hint a {
    color: var(--green-dark);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(15, 139, 59, 0.35);
}
.my-listings-page .my-listings-bulk-hint a:hover {
    border-bottom-color: var(--green);
    color: var(--green);
}
.listing-unavailability-page .unavailability-apply-all {
    margin-top: 0.35rem;
}
.listing-unavailability-page .unavailability-bulk-link-wrap {
    margin: 0.65rem 0 0 0;
    font-size: 0.9rem;
}
.listing-unavailability-page .unavailability-bulk-link {
    color: var(--green-dark);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(15, 139, 59, 0.3);
}
.listing-unavailability-page .unavailability-bulk-link:hover {
    border-bottom-color: var(--green);
    color: var(--green);
}
.listing-unavailability-page .unavailability-date-hint {
    margin: -0.15rem 0 0.85rem;
    font-size: 0.88rem;
    line-height: 1.45;
}
.listing-bulk-unavailability-page .page-title {
    max-width: 720px;
}
.listing-unavailability-page .unavailability-form-title {
    margin-top: 0;
    font-size: 1.1rem;
}
.listing-unavailability-page .unavailability-blocks-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.listing-unavailability-page .unavailability-block-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(29, 34, 32, 0.08);
}
.listing-unavailability-page .unavailability-block-row:last-child {
    border-bottom: none;
}
.listing-unavailability-page .unavailability-delete-form {
    margin: 0;
    flex-shrink: 0;
}

/* --- UI polish pass: interactions, hierarchy, friendly visuals --- */
:root {
    --ease-premium: cubic-bezier(0.2, 0.8, 0.2, 1);
}

.page-title {
    font-size: clamp(1.7rem, 1.2vw + 1.25rem, 2.2rem);
    letter-spacing: -0.02em;
    color: #101513;
}

.page-lead,
.section-copy {
    color: #4f5d58;
    line-height: 1.65;
}

.panel {
    transition: transform 0.24s var(--ease-premium), box-shadow 0.24s var(--ease-premium), border-color 0.24s var(--ease-premium);
}

.btn {
    transition: transform 0.2s var(--ease-premium), box-shadow 0.2s var(--ease-premium), background-color 0.2s var(--ease-premium), border-color 0.2s var(--ease-premium), color 0.2s var(--ease-premium);
}

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

.btn:active {
    transform: translateY(1px) scale(0.985);
    box-shadow: 0 2px 6px rgba(20, 24, 23, 0.2);
}

.listing-card {
    transition: transform 0.24s var(--ease-premium), box-shadow 0.24s var(--ease-premium), border-color 0.24s var(--ease-premium);
}

.listing-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 30px rgba(20, 24, 23, 0.15);
}

.listing-card:active {
    transform: translateY(-1px) scale(0.995);
}

.listing-fav-btn {
    transition: transform 0.2s var(--ease-premium), box-shadow 0.2s var(--ease-premium), background 0.2s var(--ease-premium), color 0.2s var(--ease-premium);
}

.listing-fav-btn:active {
    transform: scale(0.9);
}

.user-avatar,
.profile-avatar {
    background: linear-gradient(145deg, #1ca75a 0%, #0d4f25 70%);
    color: #fff;
    box-shadow: 0 10px 22px rgba(13, 79, 37, 0.24);
}

.user-menu-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.listing-card-badge,
.badge {
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    letter-spacing: 0.02em;
}

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

.hero-card {
    max-width: 720px;
    margin: 2.8rem auto;
    padding: clamp(1.2rem, 2vw, 2rem);
    border-radius: 20px;
    backdrop-filter: blur(4px);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(245, 250, 247, 0.84) 100%);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 16px 42px rgba(16, 21, 19, 0.24);
}

.hero-kicker {
    display: inline-block;
    margin-bottom: 0.65rem;
    padding: 0.26rem 0.58rem;
    font-size: 0.76rem;
    border-radius: 999px;
    color: #0f6a34;
    background: rgba(15, 139, 59, 0.12);
    font-weight: 700;
}

.hero-title {
    line-height: 1.13;
    letter-spacing: -0.03em;
}

/* Dark text only when tagline sits on the light glass card variant */
.hero-card .hero-tagline {
    margin-top: 0.7rem;
    font-size: clamp(0.98rem, 0.5vw + 0.9rem, 1.12rem);
    color: #3f4f49;
    font-weight: 500;
    text-shadow: none;
}

.hero-actions-dual {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.hero-social-proof {
    margin: 1rem 0 0;
    font-size: 0.9rem;
    color: #475a53;
    font-weight: 500;
}

.empty-actions {
    margin-top: 0.7rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem 0.7rem;
}

/* Professional menu refresh */
.header {
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(17, 24, 21, 0.08);
}

.header-inner {
    gap: 0.85rem;
    min-height: 74px;
}

.logo {
    border-right: none;
    min-height: 74px;
    padding-right: 0.6rem;
}

.logo-text {
    font-size: 1.75rem;
    letter-spacing: -0.04em;
}

.search-form {
    min-height: 54px;
    padding: 0 0.95rem;
    border: 1px solid rgba(17, 24, 21, 0.1);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(16, 21, 19, 0.04);
}

.search-input {
    font-size: 0.95rem;
}

.search-submit {
    border-radius: 10px;
}

.nav {
    gap: 0.45rem;
}

.nav-link {
    min-height: 40px;
    font-size: 0.9rem;
    color: #2f3a36;
}

.nav-link-cta {
    background: linear-gradient(160deg, rgba(15, 139, 59, 0.13), rgba(15, 139, 59, 0.05));
    border: 1px solid rgba(15, 139, 59, 0.25);
    color: #0d5a2f;
    font-weight: 600;
}

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

.user-menu-trigger {
    width: 42px;
    height: 42px;
    background: linear-gradient(145deg, #19a054, #0d4f25);
    box-shadow: 0 8px 18px rgba(13, 79, 37, 0.25);
}

.user-menu-trigger:hover {
    transform: translateY(-1px);
}

.user-menu-dropdown {
    top: calc(100% + 0.7rem);
    min-width: 250px;
    padding: 0.45rem;
    border-radius: 14px;
    border: 1px solid rgba(17, 24, 21, 0.1);
    box-shadow: 0 24px 40px rgba(12, 16, 14, 0.18);
}

.menu-item-icon {
    width: 1.25rem;
    height: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    color: #1d5b39;
    background: rgba(15, 139, 59, 0.12);
    border-radius: 8px;
    flex-shrink: 0;
}
.menu-item-icon svg {
    width: 0.82rem;
    height: 0.82rem;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    border-radius: 10px;
    padding: 0.63rem 0.72rem;
    font-size: 0.88rem;
}

.user-menu-item:hover {
    background: rgba(15, 139, 59, 0.1);
}

.user-menu-item:hover .menu-item-icon {
    background: rgba(15, 139, 59, 0.18);
}

.user-menu-item-logout {
    border-top: 1px dashed rgba(17, 24, 21, 0.12);
    margin-top: 0.35rem;
    padding-top: 0.75rem;
}

.lang-select--acronym {
    border-radius: 10px;
    min-width: 3.9rem;
}

@media (max-width: 760px) {
    .mobile-menu-backdrop {
        background: rgba(8, 14, 11, 0.5);
        backdrop-filter: blur(2px);
    }

    .mobile-menu-panel {
        width: min(340px, 90vw);
        border-left: 1px solid rgba(17, 24, 21, 0.1);
        box-shadow: -18px 0 35px rgba(9, 13, 11, 0.25);
        background: linear-gradient(180deg, #ffffff 0%, #f8fcf9 100%);
    }

    .mobile-menu-header {
        min-height: 62px;
    }

    .mobile-search-form {
        background: transparent;
        border-bottom: 1px solid rgba(17, 24, 21, 0.08);
    }

    .mobile-nav {
        gap: 0.4rem;
    }

    .mobile-nav-link {
        display: flex;
        align-items: center;
        gap: 0.55rem;
        border: 1px solid rgba(17, 24, 21, 0.08);
        background: #fff;
    }

    .mobile-nav-link:hover {
        border-color: rgba(15, 139, 59, 0.25);
        background: rgba(15, 139, 59, 0.07);
    }

    .mobile-nav-link-cta {
        background: linear-gradient(160deg, rgba(15, 139, 59, 0.14), rgba(15, 139, 59, 0.05));
        border-color: rgba(15, 139, 59, 0.25);
    }
}

/* --- In-app notifications --- */
.notifications-menu {
    position: relative;
    flex-shrink: 0;
}

.notifications-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-right: 0.35rem;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
    color: var(--text);
    cursor: pointer;
    touch-action: manipulation;
}

.notifications-trigger-icon {
    width: 1.25rem;
    height: 1.25rem;
    fill: currentColor;
}

.notifications-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 1.1rem;
    height: 1.1rem;
    padding: 0 0.25rem;
    border-radius: 999px;
    background: var(--green);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.1rem;
    text-align: center;
}

.notifications-badge[hidden] {
    display: none;
}

.notifications-dropdown {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    z-index: 1002;
    width: min(360px, calc(100vw - 2rem));
    max-height: min(70vh, 420px);
    display: none;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.notifications-dropdown.is-open {
    display: flex;
}

.notifications-dropdown-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--line);
}

.notifications-mark-all {
    border: 0;
    background: transparent;
    color: var(--green-dark);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}

.notifications-dropdown-list {
    overflow-y: auto;
    padding: 0.35rem;
}

.notifications-dropdown-empty {
    margin: 0;
    padding: 1rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.notifications-dropdown-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    width: 100%;
    padding: 0.75rem 0.85rem;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    text-align: left;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.notifications-dropdown-item:hover,
.notifications-dropdown-item:focus-visible {
    background: var(--surface-soft);
}

.notifications-dropdown-item--unread {
    background: var(--green-soft);
}

.notifications-dropdown-item-title {
    font-size: 0.9rem;
    font-weight: 650;
    color: var(--text);
}

.notifications-dropdown-item-body {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.4;
}

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

.notifications-dropdown-all {
    display: block;
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--line);
    text-align: center;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--green-dark);
    text-decoration: none;
}

.notifications-page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.notifications-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.notifications-list-item {
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.notifications-list-item--unread {
    border-left: 4px solid var(--green);
}

.notifications-list-form {
    margin: 0;
}

.notifications-list-link {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    width: 100%;
    padding: 1rem 1.1rem;
    text-decoration: none;
    color: inherit;
}

.notifications-list-title {
    font-weight: 650;
}

.notifications-list-body {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.notifications-list-time {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.notifications-empty {
    padding: 2rem;
    text-align: center;
}
