/* Hostinsync — marketplace (browse + detail) */
:root {
    --mp-bg: #f1f5f9;
    --mp-surface: #ffffff;
    --mp-text: #0f172a;
    --mp-muted: #64748b;
    --mp-muted-soft: #94a3b8;
    --mp-accent: #0d9488;
    --mp-accent-hover: #0f766e;
    --mp-accent-soft: rgba(13, 148, 136, 0.12);
    --mp-border: #e2e8f0;
    --mp-border-strong: #cbd5e1;
    --mp-radius: 16px;
    --mp-radius-sm: 10px;
    --mp-max: 1160px;
    --mp-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --mp-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --mp-shadow: 0 4px 24px rgba(15, 23, 42, 0.07);
    --mp-shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
    --mp-hero-dark: #0c1222;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

body.pb-marketplace {
    margin: 0;
    font-family: var(--mp-font);
    background: var(--mp-bg);
    color: var(--mp-text);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

a {
    color: var(--mp-accent);
}

/* Header */
.mp-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.95);
}

.mp-header__inner {
    width: min(100% - 2rem, var(--mp-max));
    margin: 0 auto;
    padding: 0.85rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.mp-brand {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--mp-text);
    text-decoration: none;
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
}

/* Header logo — name on top, tagline below */
.mp-brand .hs-brand-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.12rem;
    line-height: 1.15;
    min-width: 0;
}

.mp-brand .hs-brand-name {
    display: block;
    font-weight: inherit;
    line-height: 1.2;
}

.mp-brand .hs-brand-mark {
    color: var(--mp-accent);
}

.mp-brand .hs-tagline {
    display: block;
    color: var(--mp-muted);
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-transform: none;
    line-height: 1.35;
    max-width: 10.5rem;
}

.mp-brand__mark {
    flex-shrink: 0;
    margin-top: 0.05rem;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: linear-gradient(145deg, var(--mp-accent), #0891b2);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    display: grid;
    place-items: center;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.35);
}

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

.mp-nav__link {
    padding: 0.45rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--mp-muted);
    text-decoration: none;
    border-radius: 8px;
    transition: color 0.15s, background 0.15s;
}

.mp-nav__link:hover {
    color: var(--mp-text);
    background: rgba(15, 23, 42, 0.04);
}

.mp-nav__link.is-active {
    color: var(--mp-accent);
    background: var(--mp-accent-soft);
}

.mp-nav__cta {
    margin-left: 0.35rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    background: var(--mp-hero-dark);
    border-radius: 999px;
    transition: background 0.15s, transform 0.15s;
}

.mp-nav__cta:hover {
    background: #151d30;
}

/* Hero band */
.mp-hero-band {
    background: linear-gradient(165deg, var(--mp-hero-dark) 0%, #151d30 45%, #1a2744 100%);
    color: #f8fafc;
    padding: 2.75rem 0 3.25rem;
    position: relative;
    overflow: hidden;
}

.mp-hero-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 90% 10%, rgba(45, 212, 191, 0.15), transparent),
        radial-gradient(ellipse 50% 40% at 10% 90%, rgba(56, 189, 248, 0.08), transparent);
    pointer-events: none;
}

.mp-hero-band__inner {
    position: relative;
    text-align: center;
}

.mp-hero-band__eyebrow {
    margin: 0 0 0.65rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #5eead4;
}

.mp-hero-band h1 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.85rem, 4.5vw, 2.65rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.mp-hero-band__lead {
    margin: 0 auto;
    max-width: 34rem;
    font-size: 1.05rem;
    color: #cbd5e1;
    line-height: 1.6;
}

.mp-wrap {
    width: min(100% - 2rem, var(--mp-max));
    margin: 0 auto;
}

.mp-main {
    padding: 0 0 3.5rem;
    margin-top: -1.75rem;
    position: relative;
    z-index: 2;
}

/* Search panel */
.mp-search-panel {
    background: var(--mp-surface);
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius);
    box-shadow: var(--mp-shadow-lg);
    padding: 1.35rem 1.5rem 1.5rem;
    margin-bottom: 1.75rem;
}

.mp-search-panel__head {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--mp-border);
}

.mp-search-panel__head h2 {
    margin: 0 0 0.25rem;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.mp-search-panel__head p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--mp-muted);
}

.mp-search-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mp-search-form__row {
    display: grid;
    gap: 0.85rem 1rem;
    align-items: end;
}

.mp-search-form__row--primary {
    grid-template-columns: 1fr minmax(160px, 220px);
}

.mp-search-form__row--region {
    grid-template-columns: 1fr;
}

.mp-search-form__row--secondary {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
}

@media (max-width: 900px) {
    .mp-search-form__row--primary,
    .mp-search-form__row--region,
    .mp-search-form__row--secondary {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .mp-search-form__actions {
        flex-direction: column-reverse;
        width: 100%;
        justify-content: stretch;
        padding-bottom: 0;
    }

    .mp-search-form__actions .mp-btn {
        width: 100%;
    }
}

@media (min-width: 480px) and (max-width: 900px) {
    .mp-search-form__row--secondary {
        grid-template-columns: 1fr 1fr;
    }

    .mp-search-form__actions {
        grid-column: 1 / -1;
    }
}

.mp-field label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--mp-muted);
    margin-bottom: 0.4rem;
}

.mp-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.mp-input-icon {
    position: absolute;
    left: 0.85rem;
    font-size: 0.95rem;
    color: var(--mp-muted-soft);
    pointer-events: none;
    line-height: 1;
}

.mp-input-prefix {
    position: absolute;
    left: 0.85rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--mp-muted);
    pointer-events: none;
}

.mp-field input,
.mp-field select {
    width: 100%;
    padding: 0.65rem 0.85rem;
    font: inherit;
    font-size: 0.9375rem;
    color: var(--mp-text);
    background: #f8fafc;
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius-sm);
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.mp-input-wrap input {
    padding-left: 2.25rem;
}

.mp-input-wrap--currency input {
    padding-left: 2rem;
}

.mp-field select {
    padding-right: 2rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    appearance: none;
    cursor: pointer;
}

.mp-field input:hover,
.mp-field select:hover {
    border-color: var(--mp-border-strong);
}

.mp-field input:focus,
.mp-field select:focus {
    outline: none;
    background: var(--mp-surface);
    border-color: var(--mp-accent);
    box-shadow: 0 0 0 3px var(--mp-accent-soft);
}

.mp-field input::placeholder {
    color: var(--mp-muted-soft);
}

.mp-region-lookup {
    position: relative;
}

.mp-search-form__row--region .mp-region-lookup {
    z-index: 30;
}

.mp-region-suggestions {
    position: absolute;
    z-index: 40;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    margin: 0;
    padding: 0.35rem 0;
    list-style: none;
    max-height: 16rem;
    overflow-y: auto;
    background: var(--mp-surface);
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius-sm);
    box-shadow: var(--mp-shadow-md, 0 12px 32px rgba(15, 23, 42, 0.12));
}

.mp-region-suggestion {
    padding: 0.55rem 0.85rem 0.55rem 2.25rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.mp-region-suggestion:hover,
.mp-region-suggestion[aria-selected='true'] {
    background: var(--mp-accent-soft, rgba(59, 130, 246, 0.08));
}

.mp-region-suggestion__label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--mp-text);
}

.mp-region-suggestion__meta {
    font-size: 0.72rem;
    color: var(--mp-muted);
}

.mp-region-suggestions__head {
    padding: 0.45rem 0.85rem 0.35rem 2.25rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--mp-muted);
    pointer-events: none;
    border-bottom: 1px solid var(--mp-border);
    margin-bottom: 0.15rem;
}

.mp-region-lookup.is-open .mp-region-suggestions {
    z-index: 100;
}

.mp-search-form__actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    justify-content: flex-end;
    padding-bottom: 0.1rem;
}

/* Buttons */
.mp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.65rem 1.25rem;
    border-radius: var(--mp-radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    font-family: inherit;
    border: none;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s, transform 0.1s;
}

.mp-btn:active {
    transform: translateY(1px);
}

.mp-btn--primary {
    background: linear-gradient(180deg, #0fafa0 0%, var(--mp-accent) 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.35);
}

.mp-btn--primary:hover {
    background: linear-gradient(180deg, var(--mp-accent) 0%, var(--mp-accent-hover) 100%);
}

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

.mp-btn--soft:hover {
    color: var(--mp-text);
    border-color: var(--mp-border-strong);
    background: #f8fafc;
}

.mp-btn--ghost {
    background: var(--mp-surface);
    color: var(--mp-accent);
    border: 1px solid var(--mp-border);
}

.mp-btn--ghost:hover {
    border-color: var(--mp-accent);
    background: var(--mp-accent-soft);
}

.mp-btn--sm {
    padding: 0.45rem 0.9rem;
    font-size: 0.8125rem;
}

/* Results */
.mp-results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.15rem;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.mp-results-bar__tools {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
}

.mp-sort-field {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.mp-sort-field__label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--mp-muted);
    white-space: nowrap;
}

.mp-sort-field__select {
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--mp-text);
    background: var(--mp-surface);
    border: 1px solid var(--mp-border);
    border-radius: 10px;
    padding: 0.42rem 2rem 0.42rem 0.65rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M3 4.5 6 7.5 9 4.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.55rem center;
    min-width: 10.5rem;
}

.mp-sort-field__select:focus {
    outline: 2px solid var(--mp-accent-soft);
    border-color: rgba(13, 148, 136, 0.45);
}

.mp-results-bar__count {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--mp-text);
}

.mp-results-bar__count span {
    color: var(--mp-muted);
    font-weight: 500;
}

.mp-view-toggle {
    display: inline-flex;
    padding: 3px;
    gap: 2px;
    background: var(--mp-surface);
    border: 1px solid var(--mp-border);
    border-radius: 10px;
    flex-shrink: 0;
}

.mp-view-toggle__btn {
    border: none;
    background: transparent;
    color: var(--mp-muted);
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
}

.mp-view-toggle__btn.is-active {
    background: var(--mp-accent-soft);
    color: var(--mp-accent);
}

.mp-results-layout {
    display: block;
}

.mp-results-layout__map {
    margin-top: 1rem;
}

.mp-market-map-panel {
    background: var(--mp-surface);
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius);
    overflow: hidden;
    box-shadow: var(--mp-shadow-sm);
}

.mp-market-map-panel__hint {
    margin: 0;
    padding: 0.65rem 0.85rem;
    font-size: 0.8125rem;
    color: var(--mp-muted);
    border-bottom: 1px solid var(--mp-border);
    background: #f8fafc;
}

.mp-market-map {
    width: 100%;
    height: min(480px, 58vh);
    min-height: 300px;
    background: #e2e8f0;
}

.mp-market-map .leaflet-container {
    width: 100%;
    height: 100%;
    font-family: inherit;
}

.mp-card.is-map-highlight {
    border-color: var(--mp-accent);
    box-shadow: 0 0 0 2px var(--mp-accent-soft);
}

/* Listing view vs map view (one at a time, all screen sizes) */
.mp-results-layout--list .mp-results-layout__map {
    display: none;
}

.mp-results-layout--map .mp-results-layout__main {
    display: none;
}

.mp-results-layout--map .mp-results-layout__map {
    margin-top: 0;
}

.mp-results-layout--map .mp-market-map-panel {
    display: flex;
    flex-direction: column;
}

.mp-results-layout--map .mp-market-map {
    height: min(560px, 66vh);
    min-height: 340px;
}

@media (min-width: 768px) {
    .mp-results-layout--map .mp-market-map {
        height: min(620px, 70vh);
        min-height: 400px;
    }
}

/* Grid & cards */
.mp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 1.35rem;
}

/* Marketplace browse — mobile */
@media (max-width: 640px) {
    .mp-wrap,
    .mp-header__inner {
        width: min(100% - 1.25rem, var(--mp-max));
    }

    .mp-header__inner {
        padding: 0.65rem 0;
    }

    .mp-brand {
        font-size: 0.95rem;
        min-width: 0;
    }

    .mp-brand__mark {
        width: 30px;
        height: 30px;
        font-size: 0.62rem;
        flex-shrink: 0;
    }

    .mp-nav {
        gap: 0.15rem;
    }

    .mp-nav__link {
        padding: 0.4rem 0.5rem;
        font-size: 0.8125rem;
    }

    .mp-nav__cta {
        margin-left: 0.15rem;
        padding: 0.45rem 0.75rem;
        font-size: 0.8125rem;
    }

    .mp-hero-band {
        padding: 2rem 0 2.5rem;
    }

    .mp-hero-band__lead {
        font-size: 0.95rem;
        padding: 0 0.25rem;
    }

    .mp-main {
        margin-top: -1.25rem;
        padding-bottom: calc(2.5rem + env(safe-area-inset-bottom, 0px));
    }

    .mp-search-panel {
        padding: 1rem 0.95rem 1.1rem;
        border-radius: 14px;
        margin-bottom: 1.25rem;
    }

    .mp-search-panel__head {
        margin-bottom: 1rem;
        padding-bottom: 0.85rem;
    }

    .mp-search-panel__head h2 {
        font-size: 1rem;
    }

    .mp-search-panel__head p {
        font-size: 0.8125rem;
    }

    .mp-search-form {
        gap: 0.85rem;
    }

    .mp-field input,
    .mp-field select {
        font-size: 16px;
        min-height: 44px;
        padding-top: 0.6rem;
        padding-bottom: 0.6rem;
    }

    .mp-input-wrap input {
        padding-left: 2.15rem;
    }

    .mp-region-suggestions {
        max-height: min(16rem, 45dvh);
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    .mp-region-lookup.is-open .mp-region-suggestions {
        position: fixed;
        top: var(--mp-suggest-top, 4rem);
        left: var(--mp-suggest-left, 0.625rem);
        right: auto;
        width: var(--mp-suggest-width, calc(100vw - 1.25rem));
        max-width: calc(100vw - 1.25rem);
        box-shadow: var(--mp-shadow-lg);
    }

    .mp-region-suggestion {
        min-height: 44px;
        justify-content: center;
        padding-top: 0.65rem;
        padding-bottom: 0.65rem;
        -webkit-tap-highlight-color: transparent;
    }

    .mp-region-suggestion__label {
        font-size: 0.9rem;
        overflow-wrap: anywhere;
    }

    .mp-region-suggestion__meta {
        font-size: 0.6875rem;
    }

    .mp-btn {
        min-height: 44px;
        padding-top: 0.7rem;
        padding-bottom: 0.7rem;
        touch-action: manipulation;
    }

    .mp-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .mp-card__foot {
        flex-wrap: wrap;
    }

    .mp-card__foot .mp-btn--sm {
        width: 100%;
        justify-content: center;
    }

    .mp-results-bar__count {
        font-size: 0.85rem;
    }

    .mp-empty-state {
        padding: 2.5rem 1rem;
    }
}

.mp-card {
    background: var(--mp-surface);
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s;
}

.mp-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--mp-shadow);
    border-color: rgba(13, 148, 136, 0.25);
}

.mp-card__media {
    position: relative;
    display: block;
    text-decoration: none;
}

.mp-card__img {
    aspect-ratio: 4 / 3;
    background: linear-gradient(145deg, #e2e8f0 0%, #cbd5e1 50%, #94a3b8 100%);
    background-size: cover;
    background-position: center;
}

.mp-card__featured {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.3rem 0.65rem;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, #0d9488, #0891b2);
    border-radius: 999px;
    box-shadow: var(--mp-shadow-sm);
}

.mp-card__type {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    padding: 0.25rem 0.55rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: capitalize;
    color: var(--mp-text);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    border-radius: 6px;
}

.mp-card__body {
    padding: 1.15rem 1.2rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mp-card h2 {
    margin: 0 0 0.4rem;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.mp-card h2 a {
    color: inherit;
    text-decoration: none;
}

.mp-card h2 a:hover {
    color: var(--mp-accent);
}

.mp-card__location {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: var(--mp-muted);
    margin: 0 0 0.65rem;
}

.mp-card__location-icon {
    font-size: 0.75rem;
    opacity: 0.85;
}

.mp-card__excerpt {
    font-size: 0.875rem;
    color: var(--mp-muted);
    margin: 0 0 1rem;
    flex: 1;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mp-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--mp-border);
}

.mp-price {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--mp-text);
    letter-spacing: -0.02em;
}

.mp-price small {
    font-weight: 500;
    font-size: 0.8rem;
    color: var(--mp-muted);
}

/* Empty & loading */
.mp-empty-state {
    text-align: center;
    padding: 3.5rem 1.5rem;
    background: var(--mp-surface);
    border: 1px dashed var(--mp-border-strong);
    border-radius: var(--mp-radius);
}

.mp-empty-state__icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.9;
}

.mp-empty-state h3 {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
}

.mp-empty-state p {
    margin: 0 0 1.25rem;
    color: var(--mp-muted);
    max-width: 28rem;
    margin-inline: auto;
}

.mp-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--mp-muted);
    font-size: 0.95rem;
}

/* Footer */
.mp-footer {
    border-top: 1px solid var(--mp-border);
    background: var(--mp-surface);
    padding: 1.25rem 0;
}

.mp-footer__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    font-size: 0.875rem;
    color: var(--mp-muted);
}

.mp-footer a {
    color: var(--mp-muted);
    text-decoration: none;
    font-weight: 500;
}

.mp-footer a:hover {
    color: var(--mp-accent);
}

/* Footer logo — name on top, tagline below */
.mp-footer .hs-brand-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
    text-decoration: none;
    color: inherit;
    line-height: 1.15;
}

.mp-footer .hs-brand-name {
    display: block;
    font-weight: 600;
    color: var(--mp-text);
    line-height: 1.2;
}

.mp-footer .hs-brand-mark {
    color: var(--mp-accent);
}

.mp-footer .hs-tagline {
    display: block;
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-transform: none;
    color: var(--mp-muted);
    line-height: 1.35;
    max-width: 10.5rem;
}

.mp-footer .hs-brand-block:hover .hs-brand-name,
.mp-footer .hs-brand-block:hover .hs-tagline {
    color: var(--mp-accent);
}

.mp-footer p .hs-brand-block {
    display: inline-flex;
    vertical-align: middle;
}

/* Property detail page */
.mp-property-main {
    padding: 1.25rem 0 3.5rem;
}

.mp-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    color: var(--mp-muted);
    margin-bottom: 1.25rem;
}

.mp-breadcrumb a {
    color: var(--mp-muted);
    text-decoration: none;
}

.mp-breadcrumb a:hover {
    color: var(--mp-accent);
}

.mp-breadcrumb span[aria-hidden] {
    opacity: 0.5;
}

.mp-property-hero {
    position: relative;
    border-radius: var(--mp-radius);
    overflow: hidden;
    min-height: 280px;
    max-height: 520px;
    aspect-ratio: 21 / 9;
    background: linear-gradient(145deg, var(--mp-hero-dark) 0%, #334155 100%);
    background-size: cover;
    background-position: center;
    box-shadow: var(--mp-shadow-lg);
    margin-bottom: 1.5rem;
}

.mp-property-hero--video {
    aspect-ratio: 16 / 9;
    max-height: 560px;
}

.mp-property-hero__video-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.mp-property-hero__video-wrap iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 180%;
    height: 180%;
    max-width: none;
    border: 0;
    transform: translate(-50%, -50%);
}

@media (min-width: 900px) {
    .mp-property-hero__video-wrap iframe {
        width: 150%;
        height: 150%;
    }
}

.mp-property-hero__video-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    padding: 0.35rem 0.75rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.mp-property-hero__shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(12, 18, 34, 0.88) 0%, rgba(12, 18, 34, 0.35) 50%, rgba(12, 18, 34, 0.15) 100%);
}

.mp-property-hero--video .mp-property-hero__shade {
    background: linear-gradient(to top, rgba(12, 18, 34, 0.92) 0%, rgba(12, 18, 34, 0.45) 55%, rgba(12, 18, 34, 0.25) 100%);
}

.mp-property-hero__content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 1.75rem 1.75rem 1.5rem;
    color: #f8fafc;
}

.mp-property-hero__content .mp-detail-type {
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    color: #99f6e4;
    backdrop-filter: blur(4px);
}

.mp-property-hero__content h1 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.65rem, 4vw, 2.35rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.mp-property-hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
    font-size: 0.95rem;
    color: #e2e8f0;
}

.mp-property-layout {
    display: grid;
    grid-template-columns: 1fr min(100%, 320px);
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 900px) {
    .mp-property-layout {
        grid-template-columns: 1fr;
    }

    .mp-property-aside {
        position: static !important;
        order: -1;
    }
}

.mp-property-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.mp-property-panel {
    background: var(--mp-surface);
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius);
    padding: 1.5rem 1.65rem;
    box-shadow: var(--mp-shadow-sm);
}

.mp-property-panel__title {
    margin: 0 0 1rem;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.mp-detail-type {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--mp-accent);
    background: var(--mp-accent-soft);
    border-radius: 6px;
}

.mp-detail-desc {
    line-height: 1.75;
    color: #334155;
    font-size: 1rem;
    margin: 0;
}

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

.mp-house-rules li {
    position: relative;
    padding-left: 1.35rem;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--mp-text);
    font-weight: 500;
}

.mp-house-rules li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--mp-accent);
    opacity: 0.85;
}

.mp-property-panel--contact {
    background: linear-gradient(165deg, rgba(13, 148, 136, 0.06) 0%, rgba(255, 255, 255, 0) 55%);
}

.mp-contact-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

@media (min-width: 560px) {
    .mp-contact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 960px) {
    .mp-contact-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.mp-contact-card {
    min-width: 0;
}

.mp-contact-card__link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.95rem 1rem;
    border-radius: 14px;
    border: 1px solid var(--mp-border);
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
    height: 100%;
    box-sizing: border-box;
}

.mp-contact-card__link:hover {
    border-color: rgba(13, 148, 136, 0.35);
    box-shadow: 0 8px 24px rgba(13, 148, 136, 0.1);
    transform: translateY(-1px);
}

.mp-contact-card__link--static {
    cursor: default;
}

.mp-contact-card__link--static:hover {
    transform: none;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.mp-contact-card__icon {
    flex-shrink: 0;
    width: 2.65rem;
    height: 2.65rem;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: var(--mp-accent);
    background: rgba(13, 148, 136, 0.1);
}

.mp-contact-card__icon svg {
    width: 1.35rem;
    height: 1.35rem;
}

.mp-contact-card--phone .mp-contact-card__icon {
    color: #0d9488;
    background: rgba(13, 148, 136, 0.12);
}

.mp-contact-card--email .mp-contact-card__icon {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.1);
}

.mp-contact-card--website .mp-contact-card__icon {
    color: #475569;
    background: rgba(71, 85, 105, 0.1);
}

.mp-contact-card--facebook .mp-contact-card__icon {
    color: #1877f2;
    background: rgba(24, 119, 242, 0.1);
}

.mp-contact-card--instagram .mp-contact-card__icon {
    color: #e1306c;
    background: linear-gradient(135deg, rgba(225, 48, 108, 0.12), rgba(253, 126, 20, 0.1));
}

.mp-contact-card__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.mp-contact-card__label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--mp-muted);
}

.mp-contact-card__value {
    font-size: 0.92rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.35;
    word-break: break-word;
}

.mp-contact-card__link:hover .mp-contact-card__value {
    color: var(--mp-accent);
}

.mp-contact-card--facebook .mp-contact-card__link:hover .mp-contact-card__value {
    color: #1877f2;
}

.mp-contact-card--instagram .mp-contact-card__link:hover .mp-contact-card__value {
    color: #c13584;
}

.mp-contact-card__chev {
    flex-shrink: 0;
    width: 1.1rem;
    height: 1.1rem;
    color: #94a3b8;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.15s, transform 0.15s;
}

.mp-contact-card__chev svg {
    width: 100%;
    height: 100%;
}

.mp-contact-card__link:hover .mp-contact-card__chev {
    opacity: 1;
    transform: translateX(0);
}

.mp-contact-card__link--static .mp-contact-card__chev {
    display: none;
}

.mp-location-address {
    margin: 0 0 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.5;
}

.mp-property-map {
    width: 100%;
    height: min(480px, 58vh);
    min-height: 280px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--mp-border);
    background: #e2e8f0;
}

.mp-property-map .leaflet-container {
    width: 100%;
    height: 100%;
    font-family: inherit;
}

.mp-location-map-error {
    margin: 0 0 0.75rem;
    font-size: 0.875rem;
    color: var(--mp-muted);
}

.mp-location-actions {
    margin: 1rem 0 0;
}

.mp-related-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--mp-border);
}

.mp-related-section__title {
    margin: 0 0 0.35rem;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.mp-related-section__intro {
    margin: 0 0 1.25rem;
    font-size: 0.9rem;
    color: var(--mp-muted);
}

.mp-related-grid {
    margin-bottom: 1.25rem;
}

.mp-related-section__foot {
    margin: 0;
    text-align: center;
}

.mp-related-section .mp-card h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
}

.mp-related-section .mp-card h3 a {
    color: inherit;
    text-decoration: none;
}

.mp-related-section .mp-card h3 a:hover {
    color: var(--mp-accent);
}

.mp-map-popup-shell.leaflet-popup .leaflet-popup-content-wrapper {
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--mp-shadow);
}

.mp-map-popup-shell.leaflet-popup .leaflet-popup-content {
    margin: 0;
    line-height: 1.45;
    width: 280px !important;
}

.mp-map-popup-shell.leaflet-popup .leaflet-popup-tip {
    background: #fff;
}

.mp-map-popup__media img {
    display: block;
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.mp-map-popup__body {
    padding: 0.85rem 1rem 1rem;
}

.mp-map-popup__type {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--mp-accent);
    margin-bottom: 0.35rem;
}

.mp-map-popup__title {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.35rem;
}

.mp-map-popup__loc {
    margin: 0 0 0.5rem;
    font-size: 0.8rem;
    color: var(--mp-muted);
}

.mp-map-popup__price {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}

.mp-map-popup__price span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--mp-muted);
}

.mp-map-popup__rating {
    margin: 0 0 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #0f172a;
}

.mp-map-popup__rating-count {
    font-weight: 500;
    color: var(--mp-muted);
}

.mp-map-popup__host {
    margin: 0 0 0.65rem;
    font-size: 0.78rem;
    color: var(--mp-muted);
}

.mp-map-popup__cta {
    display: inline-block;
    padding: 0.45rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff !important;
    background: var(--mp-accent);
    border-radius: 8px;
    text-decoration: none;
}

.mp-map-popup__cta:hover {
    filter: brightness(1.05);
}

.mp-map-popup__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.mp-map-popup__cta--ghost {
    background: transparent !important;
    color: var(--mp-accent) !important;
    border: 1px solid var(--mp-border);
}

.mp-property-aside {
    position: sticky;
    top: 5.25rem;
}

.mp-book-card {
    background: var(--mp-surface);
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius);
    padding: 1.35rem;
    box-shadow: var(--mp-shadow);
}

.mp-book-card .mp-price {
    font-size: 1.65rem;
    margin-bottom: 0.25rem;
}

.mp-book-card__note {
    font-size: 0.8rem;
    color: var(--mp-muted);
    margin: 0 0 1rem;
}

.mp-stay-times {
    font-size: 0.8125rem;
    color: var(--mp-text);
    line-height: 1.45;
    margin: 0 0 1rem;
    padding: 0.55rem 0.65rem;
    background: var(--mp-accent-soft, #ecfdf5);
    border-radius: 8px;
    border: 1px solid rgba(13, 148, 136, 0.15);
}

.mp-stay-times__icon {
    margin-right: 0.15rem;
}

.mp-detail-host {
    font-size: 0.85rem;
    color: var(--mp-muted);
    margin: 0 0 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--mp-border);
}

a.mp-host-link {
    color: var(--mp-accent);
    font-weight: 600;
    text-decoration: none;
}

a.mp-host-link:hover {
    color: var(--mp-accent-hover);
    text-decoration: underline;
}

.mp-card__host {
    font-size: 0.82rem;
    color: var(--mp-muted);
    margin: 0.35rem 0 0;
}

.mp-host-main {
    padding-top: 0.5rem;
    padding-bottom: 3rem;
}

.mp-host-hero {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    padding: 1.75rem 0 2rem;
    border-bottom: 1px solid var(--mp-border);
    margin-bottom: 2rem;
}

.mp-host-hero__avatar {
    flex-shrink: 0;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--mp-accent), #0c4a6e);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.04em;
    box-shadow: var(--mp-shadow);
}

.mp-host-hero__eyebrow {
    margin: 0 0 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--mp-muted-soft);
}

.mp-host-hero__body h1 {
    margin: 0 0 0.35rem;
    font-size: clamp(1.5rem, 4vw, 2rem);
    line-height: 1.2;
}

.mp-host-hero__meta {
    margin: 0;
    color: var(--mp-muted);
    font-size: 0.95rem;
}

.mp-host-listings__head h2 {
    margin: 0 0 0.35rem;
    font-size: 1.25rem;
}

.mp-host-listings__head p {
    margin: 0 0 1.25rem;
    color: var(--mp-muted);
    font-size: 0.92rem;
}

.mp-host-reviews {
    margin-top: 2.75rem;
    padding-top: 2rem;
    border-top: 1px solid var(--mp-border);
}

.mp-host-reviews__hero {
    margin: 0.65rem 0 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--mp-text);
}

.mp-host-reviews__hero .mp-stars {
    margin-right: 0.25rem;
}

.mp-review-item__property {
    margin: 0.35rem 0 0.5rem;
    font-size: 0.82rem;
    font-weight: 600;
}

.mp-review-item__property a {
    color: var(--mp-accent);
    text-decoration: none;
}

.mp-review-item__property a:hover {
    text-decoration: underline;
}

@media (max-width: 520px) {
    .mp-host-hero {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
}

.mp-book-card .mp-btn {
    width: 100%;
}

.mp-book-card .mp-btn + .mp-btn {
    margin-top: 0.5rem;
}

.mp-book-card__trust {
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.8rem;
    color: var(--mp-muted);
}

.mp-book-card__trust li {
    padding: 0.35rem 0;
    padding-left: 1.25rem;
    position: relative;
}

.mp-book-card__trust li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--mp-accent);
    font-weight: 700;
}

.mp-packages {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius-sm);
    overflow: hidden;
}

.mp-packages li {
    padding: 0.85rem 1rem;
    border-top: 1px solid var(--mp-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafbfc;
}

.mp-packages li:first-child {
    border-top: none;
}

.mp-packages li span:last-child {
    font-weight: 600;
    color: var(--mp-text);
}

.mp-package-item {
    display: block !important;
    align-items: stretch !important;
}

.mp-package-item__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}

.mp-package-item__label {
    font-weight: 600;
}

.mp-package-item__price {
    font-weight: 600;
    color: var(--mp-text);
    white-space: nowrap;
}

.mp-package-desc,
.mp-package-meta {
    margin: 0.35rem 0 0;
    font-size: 0.85rem;
    color: var(--mp-muted);
}

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

.mp-promo-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 1.1rem;
    border: 1px dashed var(--mp-accent);
    border-radius: var(--mp-radius-sm);
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.06), rgba(13, 148, 136, 0.02));
}

.mp-promo-card__code {
    font-family: ui-monospace, monospace;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    color: var(--mp-accent);
    padding: 0.35rem 0.55rem;
    background: #fff;
    border-radius: 6px;
    border: 1px solid var(--mp-border);
}

.mp-promo-card__body {
    flex: 1;
    font-size: 0.9rem;
}

.mp-promo-card__body strong {
    display: block;
    margin-bottom: 0.25rem;
}

.mp-promo-card__badge {
    display: inline-block;
    margin-left: 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--mp-accent);
}

.mp-promo-card__body p {
    margin: 0.35rem 0 0;
    color: var(--mp-muted);
}

.mp-promo-dates,
.mp-promo-meta {
    margin: 0.35rem 0 0 !important;
    font-size: 0.8rem !important;
}

.mp-panel-intro {
    margin: -0.35rem 0 1.15rem;
    font-size: 0.9rem;
    color: var(--mp-muted);
}

/* Photo gallery */
.mp-photo-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 120px;
    gap: 0.5rem;
}

@media (max-width: 720px) {
    .mp-photo-gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 100px;
    }
}

.mp-photo-gallery__item {
    position: relative;
    border: none;
    padding: 0;
    border-radius: var(--mp-radius-sm);
    overflow: hidden;
    cursor: pointer;
    background: #e2e8f0;
}

.mp-photo-gallery__item:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

.mp-photo-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

.mp-photo-gallery__item:hover img {
    transform: scale(1.04);
}

.mp-photo-gallery__item span {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.35rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
}

.mp-lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(12, 18, 34, 0.92);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.mp-lightbox__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
}

.mp-lightbox img {
    max-width: min(100%, 960px);
    max-height: min(70vh, 720px);
    border-radius: var(--mp-radius-sm);
    object-fit: contain;
}

.mp-lightbox__caption {
    margin: 1rem 0 0;
    color: #e2e8f0;
    font-size: 0.95rem;
}

/* Availability calendar */
.mp-cal-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.mp-cal-toolbar__label {
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.02em;
}

.mp-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 1rem;
}

.mp-cal-dow {
    text-align: center;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--mp-muted);
    padding: 0.35rem 0;
}

.mp-cal-day {
    aspect-ratio: 1;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 8px;
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.mp-cal-day--empty {
    background: transparent;
    border: none;
}

.mp-cal-day--past {
    background: #f8fafc;
    color: var(--mp-muted-soft);
    border-color: var(--mp-border);
}

.mp-cal-day--booked {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
    font-weight: 600;
}

.mp-cal-day--block {
    background: #f1f5f9;
    color: #475569;
    border-color: #cbd5e1;
    font-weight: 600;
}

.mp-cal-day--peak {
    box-shadow: inset 0 0 0 2px #f59e0b;
}

.mp-cal-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    font-size: 0.8rem;
    color: var(--mp-muted);
}

.mp-cal-legend li {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.mp-cal-legend__swatch {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    border: 1px solid var(--mp-border);
}

.mp-cal-legend__swatch--avail {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.mp-cal-legend__swatch--booked {
    background: #fef2f2;
    border-color: #fecaca;
}

.mp-cal-legend__swatch--block {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.mp-cal-legend__swatch--peak {
    background: #fff;
    box-shadow: inset 0 0 0 2px #f59e0b;
}

.mp-cal-note {
    margin: 0;
    font-size: 0.9rem;
}

.mp-cal-note a {
    font-weight: 600;
}

/* Ratings & reviews */
.mp-stars {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    font-size: 1rem;
    line-height: 1;
}

.mp-stars--lg {
    font-size: 1.35rem;
    gap: 0.2rem;
}

.mp-star {
    color: #cbd5e1;
}

.mp-star.is-filled {
    color: #f59e0b;
}

.mp-rating-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.65rem;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
}

.mp-reviews-summary {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem 2rem;
    align-items: start;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--mp-border);
}

@media (max-width: 600px) {
    .mp-reviews-summary {
        grid-template-columns: 1fr;
    }
}

.mp-reviews-summary__score {
    text-align: center;
    min-width: 100px;
}

.mp-reviews-summary__avg {
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--mp-text);
}

.mp-reviews-summary__count {
    font-size: 0.85rem;
    color: var(--mp-muted);
    margin-top: 0.35rem;
}

.mp-reviews-bars {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.mp-reviews-bar {
    display: grid;
    grid-template-columns: 2.5rem 1fr 2rem;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--mp-muted);
}

.mp-reviews-bar__track {
    height: 8px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.mp-reviews-bar__fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    border-radius: 999px;
    transition: width 0.3s ease;
}

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

.mp-review-item {
    padding: 1.1rem 1.15rem;
    background: #f8fafc;
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius-sm);
}

.mp-review-item__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.mp-review-item__name {
    font-weight: 700;
    font-size: 0.95rem;
}

.mp-review-item__date {
    font-size: 0.8rem;
    color: var(--mp-muted);
}

.mp-review-item__text {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #334155;
}

.mp-review-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.85rem;
}

.mp-review-photos__item {
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    width: 4.5rem;
    height: 4.5rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
    transition: transform 0.15s, box-shadow 0.15s;
}

.mp-review-photos__item:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.15);
}

.mp-review-photos__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mp-review-photos-field__label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--mp-muted);
    margin-bottom: 0.35rem;
}

.mp-review-photos-field__optional {
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    opacity: 0.85;
}

.mp-review-photos-field__hint {
    margin: 0 0 0.65rem;
    font-size: 0.82rem;
    color: var(--mp-muted);
    line-height: 1.45;
}

.mp-review-photos-field__actions .mp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.mp-review-photo-preview {
    list-style: none;
    margin: 0.75rem 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.mp-review-photo-preview__item {
    position: relative;
    width: 4.25rem;
    height: 4.25rem;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--mp-border);
}

.mp-review-photo-preview__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mp-review-photo-preview__remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 1.35rem;
    height: 1.35rem;
    border: none;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.mp-review-photo-preview__remove:hover {
    background: #b91c1c;
}

.mp-review-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--mp-muted);
    font-size: 0.95rem;
}

.mp-review-form {
    margin-top: 1.75rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--mp-border);
}

.mp-review-gate {
    margin-top: 1rem;
    padding: 1rem 1.1rem;
    background: #f8fafc;
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius-sm);
}

.mp-review-gate__text {
    margin: 0 0 0.85rem;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--mp-muted);
}

.mp-review-gate__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.mp-review-signed-as {
    margin: 0 0 1rem;
    font-size: 0.875rem;
    color: var(--mp-muted);
}

.mp-review-form h3 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
}

.mp-review-form > p {
    margin: 0 0 1rem;
    font-size: 0.875rem;
    color: var(--mp-muted);
}

.mp-star-input {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.mp-star-input button {
    background: none;
    border: none;
    padding: 0.15rem;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    color: #cbd5e1;
    transition: color 0.12s, transform 0.12s;
}

.mp-star-input button:hover,
.mp-star-input button.is-active {
    color: #f59e0b;
    transform: scale(1.08);
}

.mp-review-form .mp-field {
    margin-bottom: 1rem;
}

.mp-review-form .mp-field input,
.mp-review-form .mp-field textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    font: inherit;
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius-sm);
    background: #f8fafc;
}

.mp-review-form .mp-field textarea {
    min-height: 100px;
    resize: vertical;
}

.mp-review-form .mp-field input:focus,
.mp-review-form .mp-field textarea:focus {
    outline: none;
    border-color: var(--mp-accent);
    box-shadow: 0 0 0 3px var(--mp-accent-soft);
    background: #fff;
}

.mp-card__rating {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--mp-text);
    margin-bottom: 0.35rem;
}

.mp-card__rating .mp-stars {
    font-size: 0.75rem;
}

/* Booking modal (property page) */
.mp-book-card .mp-btn--primary {
    width: 100%;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
}

.mp-cal-book-trigger {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: var(--mp-accent);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.mp-cal-book-trigger:hover {
    color: var(--mp-accent-hover);
}

.mp-book-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
}

.mp-book-modal__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
}

.mp-book-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 520px);
    margin: 2vh auto 2rem;
    background: var(--mp-surface);
    border-radius: var(--mp-radius);
    box-shadow: var(--mp-shadow-lg);
    border: 1px solid var(--mp-border);
    overflow: hidden;
}

.mp-book-modal__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
    border-bottom: 1px solid var(--mp-border);
    background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
}

.mp-book-modal__title {
    margin: 0 0 0.25rem;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.mp-book-modal__subtitle {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--mp-text);
}

.mp-book-modal__meta {
    margin: 0.2rem 0 0;
    font-size: 0.82rem;
    color: var(--mp-muted);
}

.mp-book-modal__close {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid var(--mp-border);
    border-radius: 8px;
    background: #fff;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    color: var(--mp-muted);
}

.mp-book-modal__close:hover {
    color: var(--mp-text);
    border-color: var(--mp-border-strong);
}

.mp-book-modal__body {
    padding: 1.15rem 1.25rem 1.35rem;
    max-height: min(70vh, 640px);
    overflow-y: auto;
}

.pb-book-scope {
    --pb-accent: var(--mp-accent);
    --pb-accent-hover: var(--mp-accent-hover);
    --pb-text: var(--mp-text);
    --pb-muted: var(--mp-muted);
    --pb-border: var(--mp-border);
    --pb-bg: var(--mp-bg);
}

.pb-book-scope .pb-field label {
    font-size: 0.85rem;
    font-weight: 600;
}

.pb-book-scope .pb-field input,
.pb-book-scope .pb-field select,
.pb-book-scope .pb-field textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--mp-border);
    border-radius: 8px;
    font-family: inherit;
}

.pb-book-scope .mp-book-promo-input {
    text-transform: uppercase;
}

.pb-book-scope .mp-book-promo-hint {
    margin: 0.35rem 0 0;
    font-size: 0.82rem;
    color: var(--mp-muted);
}

.pb-book-scope .mp-book-summary-note {
    margin: 0.75rem 0 0;
    font-size: 0.85rem;
    color: var(--mp-muted);
}

.pb-book-scope .mp-book-submit,
.pb-book-scope .pb-btn-block {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 10px;
    background: var(--mp-accent);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    font-family: inherit;
}

.pb-book-scope .mp-book-submit:hover,
.pb-book-scope .pb-btn-block:hover {
    background: var(--mp-accent-hover);
}

.mp-book-success h3 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
}

.mp-book-success__note {
    color: var(--mp-muted);
    font-size: 0.9rem;
}

.mp-book-pay {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--mp-border);
}

.mp-book-done {
    margin-top: 1rem;
    width: 100%;
}

/* Travel search modal — marketplace.html */
body.mp-travel-modal-open {
    overflow: hidden;
}

.mp-travel-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.mp-travel-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 18, 34, 0.55);
    backdrop-filter: blur(4px);
}

.mp-travel-modal__dialog {
    position: relative;
    width: min(100%, 440px);
    max-height: min(92vh, 640px);
    overflow: auto;
    background: var(--mp-surface);
    border-radius: 20px;
    box-shadow: var(--mp-shadow-lg);
    border: 1px solid var(--mp-border);
    padding: 1.5rem 1.35rem 1.35rem;
}

.mp-travel-modal__eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mp-accent);
}

.mp-travel-modal__head h2 {
    margin: 0 0 0.4rem;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.mp-travel-modal__lead {
    margin: 0 0 1.25rem;
    font-size: 0.9rem;
    color: var(--mp-muted);
    line-height: 1.5;
}

.mp-travel-modal__form .mp-field {
    margin-bottom: 1rem;
}

.mp-travel-modal__dates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

@media (max-width: 420px) {
    .mp-travel-modal__dates {
        grid-template-columns: 1fr;
    }
}

.mp-travel-modal__error {
    margin: 0 0 1rem;
    padding: 0.65rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--mp-radius-sm);
}

.mp-travel-modal__actions {
    display: flex;
    flex-direction: column-reverse;
    gap: 0.65rem;
    margin-top: 0.25rem;
}

@media (min-width: 420px) {
    .mp-travel-modal__actions {
        flex-direction: row;
        justify-content: flex-end;
    }

    .mp-travel-modal__actions .mp-btn--soft {
        margin-right: auto;
    }
}

.mp-date-input {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--mp-border-strong);
    border-radius: var(--mp-radius-sm);
    font-size: 0.9375rem;
    font-family: inherit;
    color: var(--mp-text);
    background: var(--mp-surface);
}

.mp-date-input:focus {
    outline: 2px solid var(--mp-accent-soft);
    border-color: var(--mp-accent);
}

.mp-search-form__row--dates {
    display: grid;
    gap: 0.85rem 1rem;
    grid-template-columns: 1fr 1fr;
    align-items: end;
}

@media (min-width: 640px) {
    .mp-search-form__row--dates {
        grid-template-columns: 1fr 1fr auto;
    }
}

.mp-field--dates-action .mp-btn--block {
    width: 100%;
    white-space: nowrap;
}

.mp-loading--prompt {
    text-align: center;
    color: var(--mp-muted);
    padding: 2.5rem 1rem;
}

.mp-results-bar__where {
    color: var(--mp-muted);
}
